This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25791] -O2 execution fails, -O and -g work
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jan 2006 10:01:21 -0000
- Subject: [Bug c/25791] -O2 execution fails, -O and -g work
- References: <bug-25791-12018@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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