public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "steven at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/19241] [4.0 Regression] ICE in make_decl_rtl with inliner Date: Wed, 12 Jan 2005 11:45:00 -0000 [thread overview] Message-ID: <20050112114513.14211.qmail@sourceware.org> (raw) In-Reply-To: <20050103134043.19241.larsbj@gullik.net> ------- Additional Comments From steven at gcc dot gnu dot org 2005-01-12 11:45 ------- We choque on expanding this: inline void Iterator::IsEnd () const { compare (this, static_cast<const Map*>(0)->end()); } Which looks like this at -O: compare (&D.2008, &D.2013) (gdb) #11 0x00000000007008d1 in expand_call (exp=0x2a959f6820, target=0x0, ignore=1) at calls.c:2543 2543 precompute_register_parameters (num_actuals, args, ®_parm_seen); (gdb) p debug_tree(args[0]->tree_value) <addr_expr 0x2a959f4ec0 type <pointer_type 0x2a959e0340 type <record_type 0x2a959d79c0 Iterator addressable needs-constructing type_1 type_5 BLK size <integer_cst 0x2a95890690 constant invariant 8> unit size <integer_cst 0x2a958906c0 constant invariant 1> align 8 symtab 0 alias set -1 fields <type_decl 0x2a959e0000 Iterator> needs-constructor X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 0x2a959e0340> reference_to_this <reference_type 0x2a959e5680> chain <type_decl 0x2a959d7b60 Iterator>> public unsigned DI size <integer_cst 0x2a95890c30 constant invariant 64> unit size <integer_cst 0x2a95890c60 constant invariant 8> align 64 symtab 0 alias set -1> invariant arg 0 <var_decl 0x2a959f7680 type <record_type 0x2a959d79c0 Iterator> addressable used ignored BLK file t.C line 22 size <integer_cst 0x2a95890690 8> unit size <integer_cst 0x2a958906c0 1> align 8 context <function_decl 0x2a959de410 end> abstract_origin <var_decl 0x2a959e3000> (mem/s:BLK (plus:DI (reg/f:DI 54 virtual-stack-vars) (const_int -1 [0xffffffffffffffff])) [0 D.2013+0 S1 A8])>> $18 = void (gdb) p debug_tree(args[1]->tree_value) <addr_expr 0x2a959f8d40 type <pointer_type 0x2a959e0340 type <record_type 0x2a959d79c0 Iterator addressable needs-constructing type_1 type_5 BLK size <integer_cst 0x2a95890690 constant invariant 8> unit size <integer_cst 0x2a958906c0 constant invariant 1> align 8 symtab 0 alias set -1 fields <type_decl 0x2a959e0000 Iterator> needs-constructor X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 0x2a959e0340> reference_to_this <reference_type 0x2a959e5680> chain <type_decl 0x2a959d7b60 Iterator>> public unsigned DI size <integer_cst 0x2a95890c30 constant invariant 64> unit size <integer_cst 0x2a95890c60 constant invariant 8> align 64 symtab 0 alias set -1> invariant arg 0 <var_decl 0x2a959f7270 type <record_type 0x2a959d79c0 Iterator> addressable used ignored BLK file t.C line 22 size <integer_cst 0x2a95890690 8> unit size <integer_cst 0x2a958906c0 1> align 8 context <function_decl 0x2a959de410 end> abstract_origin <var_decl 0x2a959e3000>>> $19 = void (gdb) Note that the arg 1 does not have RTL yet. We eventually die expanding that arg when we trigger an assert: #1 0x0000000000a4eceb in make_decl_rtl (decl=0x2a959f7270) at varasm.c:868 868 abort (); (gdb) p debug_tree(decl) <var_decl 0x2a959f7270 type <record_type 0x2a959d79c0 Iterator addressable needs-constructing type_1 type_5 BLK size <integer_cst 0x2a95890690 constant invariant 8> unit size <integer_cst 0x2a958906c0 constant invariant 1> align 8 symtab 0 alias set -1 fields <type_decl 0x2a959e0000 Iterator type <record_type 0x2a959d79c0 Iterator> nonlocal decl_4 VOID file t.C line 12 align 1 context <record_type 0x2a959d79c0 Iterator> > needs-constructor X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 0x2a959e0340> reference_to_this <reference_type 0x2a959e5680> chain <type_decl 0x2a959d7b60 Iterator>> addressable used ignored BLK file t.C line 22 size <integer_cst 0x2a95890690 8> unit size <integer_cst 0x2a958906c0 1> align 8 context <function_decl 0x2a959de410 end> abstract_origin <var_decl 0x2a959e3000>> $31 = void (gdb) l 863 || (TREE_CODE (decl) == VAR_DECL 864 && !TREE_STATIC (decl) 865 && !TREE_PUBLIC (decl) 866 && !DECL_EXTERNAL (decl) 867 && !DECL_REGISTER (decl))) 868 abort (); 869 /* And that we were not given a type or a label. */ 870 else if (TREE_CODE (decl) == TYPE_DECL 871 || TREE_CODE (decl) == LABEL_DECL) 872 abort (); (gdb) p debug_tree (decl) <var_decl 0x2a959f7270 type <record_type 0x2a959d79c0 Iterator addressable needs-constructing type_1 type_5 BLK size <integer_cst 0x2a95890690 constant invariant 8> unit size <integer_cst 0x2a958906c0 constant invariant 1> align 8 symtab 0 alias set -1 fields <type_decl 0x2a959e0000 Iterator type <record_type 0x2a959d79c0 Iterator> nonlocal decl_4 VOID file t.C line 12 align 1 context <record_type 0x2a959d79c0 Iterator> > needs-constructor X() X(constX&) this=(X&) n_parents=0 use_template=0 interface-unknown pointer_to_this <pointer_type 0x2a959e0340> reference_to_this <reference_type 0x2a959e5680> chain <type_decl 0x2a959d7b60 Iterator>> addressable used ignored BLK file t.C line 22 size <integer_cst 0x2a95890690 8> unit size <integer_cst 0x2a958906c0 1> align 8 context <function_decl 0x2a959de410 end> abstract_origin <var_decl 0x2a959e3000>> $36 = void -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19241
next prev parent reply other threads:[~2005-01-12 11:45 UTC|newest] Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-01-03 13:41 [Bug c++/19241] New: ICE in make_decl_rtl, at varasm.c:867 larsbj at gullik dot net 2005-01-03 15:28 ` [Bug c++/19241] " pinskia at gcc dot gnu dot org 2005-01-03 16:22 ` larsbj at gullik dot net 2005-01-03 18:04 ` pinskia at gcc dot gnu dot org 2005-01-03 18:25 ` larsbj at gullik dot net 2005-01-03 19:03 ` pinskia at gcc dot gnu dot org 2005-01-03 19:21 ` larsbj at gullik dot net 2005-01-03 19:38 ` [Bug c++/19241] [4.0 Regression] " pinskia at gcc dot gnu dot org 2005-01-03 19:56 ` larsbj at gullik dot net 2005-01-03 20:08 ` pinskia at gcc dot gnu dot org 2005-01-03 20:19 ` larsbj at gullik dot net 2005-01-03 20:22 ` larsbj at gullik dot net 2005-01-03 20:28 ` larsbj at gullik dot net 2005-01-03 20:41 ` pinskia at gcc dot gnu dot org 2005-01-03 20:46 ` larsbj at gullik dot net 2005-01-04 19:48 ` pinskia at gcc dot gnu dot org 2005-01-05 17:31 ` arend dot bayer at web dot de 2005-01-05 18:14 ` larsbj at gullik dot net 2005-01-05 18:53 ` arend dot bayer at web dot de 2005-01-05 18:58 ` arend dot bayer at web dot de 2005-01-06 18:28 ` [Bug tree-optimization/19241] " pinskia at gcc dot gnu dot org 2005-01-06 18:55 ` nathan at gcc dot gnu dot org 2005-01-07 12:09 ` [Bug tree-optimization/19241] [4.0 Regression] ICE in make_decl_rtl with inliner nathan at gcc dot gnu dot org 2005-01-08 22:54 ` pinskia at gcc dot gnu dot org 2005-01-09 5:01 ` pinskia at gcc dot gnu dot org 2005-01-09 7:29 ` aj at gcc dot gnu dot org 2005-01-09 16:06 ` hubicka at ucw dot cz 2005-01-09 16:08 ` pinskia at gcc dot gnu dot org 2005-01-09 16:20 ` pinskia at gcc dot gnu dot org 2005-01-11 15:29 ` pinskia at gcc dot gnu dot org 2005-01-12 11:45 ` steven at gcc dot gnu dot org [this message] 2005-01-12 11:51 ` steven at gcc dot gnu dot org 2005-01-12 23:47 ` hubicka at ucw dot cz 2005-01-13 0:11 ` jason at redhat dot com 2005-01-25 23:02 ` pinskia at gcc dot gnu dot org 2005-01-26 9:21 ` steven at gcc dot gnu dot org 2005-02-24 13:56 ` cvs-commit at gcc dot gnu dot 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=20050112114513.14211.qmail@sourceware.org \ --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).