This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65395] New: compiler crash, -ftree-pre leads to SSA corruption
- From: "jens.gustedt at inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Mar 2015 21:02:37 +0000
- Subject: [Bug c/65395] New: compiler crash, -ftree-pre leads to SSA corruption
- Auto-submitted: auto-generated
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.