[LLVMbugs] [Bug 6415] clang miscompile with -static and -O2
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 24 13:20:05 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=6415
Chris Lattner <clattner at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner <clattner at apple.com> 2010-02-24 15:20:04 CST ---
I really have no idea about this one, however if you redefine a standard
function, you have to pass -fno-builtin. The fact that GCC is doing different
things at different optimization levels is a good indicator that you're relying
on undefined behavior. Clang doesn't currently support -fno-builtin but that
is tracked by another PR.
--
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