void added a comment. This is related to https://reviews.llvm.org/D4276, which I believe has been deleted. However, I believe that a modified version of that patch will work.
The idea of this patch is *not* to be fully compatible with gcc's implementation, but to expand clang's implementation of `__builtin_constant_p` without breaking existing code. This has been tested by successfully building (and running) the Linux kernel for both ARM and X86. Repository: rC Clang https://reviews.llvm.org/D52854 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits