This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/51436] New: [4.7 Regression] ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 06 Dec 2011 09:36:19 +0000
- Subject: [Bug middle-end/51436] New: [4.7 Regression] ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51436
Bug #: 51436
Summary: [4.7 Regression] ICE(segfault) in
gimplify_and_update_call_from_tree gimple-fold.c:603
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Host: x86_64-unknown-linux-gnu
Created attachment 26003
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26003
Reduced test case (test.ii, 5 KiB)
The attached test case compiles with g++ 4.6 but with the current 4.7.0
20111206 it fails with:
$ g++ test52.ii
test52.ii: In static member function âstatic Dest
v8::internal::BitCastHelper<Dest, Source*>::cast(Source*) [with Dest =
v8::internal::String**; Source = v8::internal::String*]â:
test52.ii:116:16: internal compiler error: Segmentation fault
Program received signal SIGSEGV, Segmentation fault.
gimplify_and_update_call_from_tree (si_p=0x7fffffffd8b0, expr=<optimized out>)
at gcc/gimple-fold.c:603
603 if (TREE_CODE (vdef) == SSA_NAME)
(gdb) p vdef
$1 = (tree_node *) 0x0
(gdb) bt
#0 gimplify_and_update_call_from_tree (si_p=0x7fffffffd8b0, expr=<optimized
out>)
at gcc/gimple-fold.c:603
#1 0x00000000008e704d in gimple_fold_call (inplace=<optimized out>,
gsi=<optimized out>)
at gcc/gimple-fold.c:1123
#2 fold_stmt_1 (gsi=0x7fffffffd8b0, inplace=false) at gcc/gimple-fold.c:1187
#3 0x0000000000a96b41 in fold_marked_statements (first=5,
statements=0x173bbc0)
at gcc/tree-inline.c:4131
#4 0x0000000000a9f1f7 in optimize_inline_calls (fn=0x2aaaacf86b00)
at gcc/tree-inline.c:4275
#5 0x0000000000f03223 in early_inliner () at gcc/ipa-inline.c:1968
#6 0x00000000009af115 in execute_one_pass (pass=0x15bf400) at
gcc/passes.c:2074
#7 0x00000000009af4b5 in execute_pass_list (pass=0x15bf400) at
gcc/passes.c:2129
#8 0x00000000009ae684 in do_per_function_toporder (callback=0x9af4a0
<execute_pass_list(opt_pass*)>, data=0x15bbbc0)
at gcc/passes.c:1616