[LLVMbugs] [Bug 4588] GVN: deletes call to _Unwind_Resume causing C++ programs with EH to crash

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Jul 20 00:15:39 PDT 2009


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


Török Edwin <edwintorok at gmail.com> changed:

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




--- Comment #6 from Török Edwin <edwintorok at gmail.com>  2009-07-20 02:15:39 ---
Ok, the problem is that some files #define NDEBUG, others don't, and if you
link a file compiled with NDEBUG that includes
boost/date_time/posix_time/posix_time.hpp, with one that includes it w/o
defining NDEBUG then bad things happen.

With gcc at -O1 everything is fine, and the result is valgrind clean, however
even with gcc at -O0 it segfaults if one files defines it, and the other one
doesn't.

Now llvm-gcc at -O1 optimized things differently and preserved the bad
behaviour.

Doesn't look like a bug in LLVM, sorry for the noise.


-- 
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