This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/79732] New: ICE in set_ssa_default_def, at tree-dfa.c:327
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Feb 2017 17:20:50 +0000
- Subject: [Bug c/79732] New: ICE in set_ssa_default_def, at tree-dfa.c:327
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79732
Bug ID: 79732
Summary: ICE in set_ssa_default_def, at tree-dfa.c:327
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gerhard.steinmetz.fortran@t-online.de
Target Milestone: ---
With a mismatch (int/void), down to at least 4.8,
at -Os, -O1 or higher. No ICE seen with 4.9 :
$ cat z1.c
int bar () __attribute__ ((alias ("foo")));
void foo () { }
int main () { return bar(); }
$ gcc-7-20170226 -O2 -c z1.c
z1.c: In function 'main':
z1.c:3:22: internal compiler error: Segmentation fault
int main () { return bar(); }
^~~~~
0xbf9f9f crash_signal
../../gcc/toplev.c:337
0xc4fe42 set_ssa_default_def(function*, tree_node*, tree_node*)
../../gcc/tree-dfa.c:327
0xc7e012 expand_call_inline
../../gcc/tree-inline.c:4790
0xc7f4a4 gimple_expand_calls_inline
../../gcc/tree-inline.c:4868
0xc7f4a4 optimize_inline_calls(tree_node*)
../../gcc/tree-inline.c:5008
0x1328d91 early_inliner(function*)
../../gcc/ipa-inline.c:2721