public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56321] New: ICE:segfault in midend for -funsafe-math-optimizations -O3
@ 2013-02-14 13:47 ktkachov at gcc dot gnu.org
  2013-02-14 13:52 ` [Bug tree-optimization/56321] " mpolacek at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2013-02-14 13:47 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56321
           Summary: ICE:segfault in midend for -funsafe-math-optimizations
                    -O3
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ktkachov@gcc.gnu.org
                CC: jgreenhalgh@gcc.gnu.org, wschmidt@linux.vnet.ibm.com
            Target: arm-none-eabi, x86_64-unknown-linux-gnu


Created attachment 29449
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29449
ICE triggers for -O3 -funsafe-math-optimizations

Attached test case triggers a segfault in the midend.

Observed on both arm-none-eabi and x86_64-unknown-linux-gnu

gcc -O3 -funsafe-math-optimizations test.c -S
test.c: In function ‘foo’:
test.c:1:7: internal compiler error: Segmentation fault
 float foo(int n)
       ^
0x8f4e45 crash_signal
    ../../gcc-fsf/gcc/toplev.c:332
0x84b7bc execute_function_todo
    ../../gcc-fsf/gcc/passes.c:1967
0x84da0d execute_todo
    ../../gcc-fsf/gcc/passes.c:1999
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


Bisection showed r186567 introduced the problem.
It seems that the reassoc code tries to do something wrong with __builtin_pow*


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

end of thread, other threads:[~2013-02-18 12:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-14 13:47 [Bug tree-optimization/56321] New: ICE:segfault in midend for -funsafe-math-optimizations -O3 ktkachov at gcc dot gnu.org
2013-02-14 13:52 ` [Bug tree-optimization/56321] " mpolacek at gcc dot gnu.org
2013-02-14 13:58 ` [Bug tree-optimization/56321] [4.8 Regression] " mpolacek at gcc dot gnu.org
2013-02-14 14:07 ` mpolacek at gcc dot gnu.org
2013-02-14 14:42 ` wschmidt at gcc dot gnu.org
2013-02-14 14:43 ` wschmidt at gcc dot gnu.org
2013-02-14 20:11 ` wschmidt at gcc dot gnu.org
2013-02-14 22:05 ` jsm28 at gcc dot gnu.org
2013-02-14 22:27 ` wschmidt at gcc dot gnu.org
2013-02-15  9:43 ` rguenth at gcc dot gnu.org
2013-02-15 11:09 ` ktkachov at gcc dot gnu.org
2013-02-15 15:14 ` wschmidt at gcc dot gnu.org
2013-02-15 15:49 ` wschmidt at gcc dot gnu.org
2013-02-18 12:12 ` rguenth at gcc dot gnu.org
2013-02-18 12:12 ` rguenth 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).