public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/51436] New: [4.7 Regression] ICE(segfault) in gimplify_and_update_call_from_tree gimple-fold.c:603 Date: Tue, 06 Dec 2011 09:36:00 -0000 [thread overview] Message-ID: <bug-51436-4@http.gcc.gnu.org/bugzilla/> (raw) 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
next reply other threads:[~2011-12-06 9:36 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-12-06 9:36 burnus at gcc dot gnu.org [this message] 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
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-51436-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).