public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/51436] New: [4.7 Regression] ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603
@ 2011-12-06  9:36 burnus at gcc dot gnu.org
  2011-12-06 10:31 ` [Bug middle-end/51436] " markus at trippelsdorf dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-12-06  9:36 UTC (permalink / raw)
  To: gcc-bugs

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


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

end of thread, other threads:[~2011-12-06 12:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-06  9:36 [Bug middle-end/51436] New: [4.7 Regression] ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603 burnus at gcc dot gnu.org
2011-12-06 10:31 ` [Bug middle-end/51436] " markus at trippelsdorf dot de
2011-12-06 12:08 ` rguenth at gcc dot gnu.org
2011-12-06 12:18 ` rguenth at gcc dot gnu.org
2011-12-06 12:18 ` rguenth 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).