public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/65395] New: compiler crash, -ftree-pre leads to SSA corruption
@ 2015-03-11 21:02 jens.gustedt at inria dot fr
  2015-03-12  0:19 ` [Bug c/65395] [4.9 Regression] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jens.gustedt at inria dot fr @ 2015-03-11 21:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65395

            Bug ID: 65395
           Summary: compiler crash, -ftree-pre leads to SSA corruption
           Product: gcc
           Version: 4.9.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jens.gustedt at inria dot fr

Created attachment 35015
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35015&action=edit
code to reproduce compiler crash

The attached, very contrived code, has gcc crashing with

gcc -c -O3 orwl_proc_symbols-prepro.c

the code compiles fine with

gcc -c -O3 -fno-tree-pre orwl_proc_symbols-prepro.c

As indicated the code is very contrived and the result of reducing a
complicated macro expanded code to a minimal example. So the one I give here
seems to be minimal to reproduce the crash. It has

 - nested for loops of a depth 15 or so
 - uses setjmp (but no longjmp)
 - uses an inline function that does not much but calling a _Noreturn function
conditionally

without any of these components the bug goes away ...

BTW, I observed the bug already for earlier versions of gcc 4.9. gcc 4.8 works
fine. My system is a x86_64 with debian jessie, nothing fancy.


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

end of thread, other threads:[~2015-06-26 20:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-11 21:02 [Bug c/65395] New: compiler crash, -ftree-pre leads to SSA corruption jens.gustedt at inria dot fr
2015-03-12  0:19 ` [Bug c/65395] [4.9 Regression] " jakub at gcc dot gnu.org
2015-03-12 11:11 ` [Bug tree-optimization/65395] " rguenth at gcc dot gnu.org
2015-06-26 20:06 ` jakub at gcc dot gnu.org
2015-06-26 20:35 ` jakub 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).