[Bug target/58320] [4.7 / 4.8 / 4.9 Regression] code used in autoconf test fails with -O2, works with -O0

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Sep 5 10:36:00 GMT 2013


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

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

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Well, it's clearly a bogus test - you are comparing addresses of two distinct
objects which invokes undefined behavior.



More information about the Gcc-bugs mailing list