[Bug c/25791] -O2 execution fails, -O and -g work

ebotcazou at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 15 10:01:00 GMT 2006



------- Comment #1 from ebotcazou at gcc dot gnu dot org  2006-01-15 10:01 -------
We cannot do anything without a reproducer.  See http://gcc.gnu.org/bugs.html.

However, a segfault at runtime on several platforms with -O2 and not -O1 may
hint at an aliasing problem in the code.  You could try to recompile everything
with -O2 -fno-strict-aliasing and see what happens.  Read the -fstrict-aliasing
entry in the manual, section Optimize Options, for more information.


-- 

ebotcazou at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot gnu dot
                   |                            |org
           Severity|major                       |normal
             Status|UNCONFIRMED                 |WAITING
            Summary|-O2 execution fails using   |-O2 execution fails, -O and
                   |3.4.4, -O and -g work       |-g work


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



More information about the Gcc-bugs mailing list