public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/46315] New: gcc-4.5.1 -O2 -fno-strict-overflow causes bad code generation
@ 2010-11-05 16:27 zorry at gentoo dot org
  2010-11-05 16:43 ` [Bug tree-optimization/46315] [4.5 Regression] " rguenth at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: zorry at gentoo dot org @ 2010-11-05 16:27 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: gcc-4.5.1 -O2 -fno-strict-overflow causes bad code
                    generation
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zorry@gentoo.org


Created attachment 22294
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22294
testcase

If we disable -fstrict-overflow in the -O2 optimization the testcase segfault
but works fine with -O1 or -fstrict-overflow on in the -O2 optimization.
flame@yamato mytmpfs % gcc -O2 -fno-strict-overflow testcase.c -o testcase
flame@yamato mytmpfs % ./testcase
0x400770
0x2
zsh: segmentation fault (core dumped)  ./testcase


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-11-16 22:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-05 16:27 [Bug c/46315] New: gcc-4.5.1 -O2 -fno-strict-overflow causes bad code generation zorry at gentoo dot org
2010-11-05 16:43 ` [Bug tree-optimization/46315] [4.5 Regression] " rguenth at gcc dot gnu.org
2010-11-05 16:47 ` rguenth at gcc dot gnu.org
2010-11-09  4:50 ` dirtyepic at gentoo dot org
2010-11-12 15:47 ` rguenth at gcc dot gnu.org
2010-11-13 19:48 ` [Bug rtl-optimization/46315] " rguenth at gcc dot gnu.org
2010-11-13 22:29 ` ebotcazou at gcc dot gnu.org
2010-11-14 11:38 ` ebotcazou at gcc dot gnu.org
2010-11-16  0:42 ` [Bug rtl-optimization/46315] [4.5 regression] -O2 -fno-strict-overflow causes wrong " ebotcazou at gcc dot gnu.org
2010-11-16 22:15 ` ebotcazou at gcc dot gnu.org
2010-11-16 22:18 ` ebotcazou at gcc dot gnu.org
2010-11-16 22:22 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).