[Bug target/54267] std::exception not catched when -O3 (-Os is fine, link static, FreeBSD 9.0-RELEASE-p3)

david.keller at litchis dot fr gcc-bugzilla@gcc.gnu.org
Wed Aug 15 03:40:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54267

--- Comment #7 from David Keller <david.keller at litchis dot fr> 2012-08-15 03:39:56 UTC ---
It might be related to a wrong stdlib selection on my side:

1) Without setenv LD_LIBRARY_PATH
/lib:/usr/local/bin:/usr/local/lib:/usr/local/lib32:/usr/local/lib64, the
program runs fine.
2) It is linked with -rpath,/usr/local/lib/gcc48 (and rpath should have
priority over LD_LIBRARy_PATH)

*) Why optimization level has an influence on all this ?



More information about the Gcc-bugs mailing list