This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]