[LLVMbugs] [Bug 3756] __attribute__((always_inline)) and __builtin_constant_p

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Mar 10 21:13:33 PDT 2009


http://llvm.org/bugs/show_bug.cgi?id=3756


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX




--- Comment #6 from Chris Lattner <clattner at apple.com>  2009-03-10 23:13:33 ---
Unfortunately, this will never be fixed in either llvm-gcc or clang. 
__builtin_constant_p is a "best effort" constant folding tester, which is
allowed to fail.  You should never write code that assumes that
__builtin_constant_p can't fail (if you need that, just don't use
__builtin_constant_p).  It would be interesting and useful to bring this up on
the glibc list to see if they are willing to fix their headers.

Barring that, if this is really important to you, please raise the issue on the
llvmdev list.  We will need IR extensions to support this among other things.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list