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

* [Bug c/65395] [4.9 Regression] compiler crash, -ftree-pre leads to SSA corruption
  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 ` jakub at gcc dot gnu.org
  2015-03-12 11:11 ` [Bug tree-optimization/65395] " rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-03-12  0:19 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.9.3
            Summary|compiler crash, -ftree-pre  |[4.9 Regression] compiler
                   |leads to SSA corruption     |crash, -ftree-pre leads to
                   |                            |SSA corruption

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r198681, got fixed again with r211625.


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

* [Bug tree-optimization/65395] [4.9 Regression] compiler crash, -ftree-pre leads to SSA corruption
  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 ` 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
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-03-12 11:11 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-03-12
          Component|c                           |tree-optimization
      Known to work|                            |4.8.3, 5.0
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
     Ever confirmed|0                           |1
      Known to fail|                            |4.9.2
           Severity|blocker                     |normal

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will eventually have a look.


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

* [Bug tree-optimization/65395] [4.9 Regression] compiler crash, -ftree-pre leads to SSA corruption
  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
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug tree-optimization/65395] [4.9 Regression] compiler crash, -ftree-pre leads to SSA corruption
  2015-03-11 21:02 [Bug c/65395] New: compiler crash, -ftree-pre leads to SSA corruption jens.gustedt at inria dot fr
                   ` (2 preceding siblings ...)
  2015-06-26 20:06 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:35 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


^ 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).