public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Carlo Wood <carlo@alinoe.com>
To: Richard Henderson <rth@redhat.com>,
	gcc@gcc.gnu.org, wilson@specifixinc.com, jason@redhat.com
Subject: Re: RFA: Adding a location_t (or pointer) to tree_exp for 3.4 only.
Date: Tue, 07 Oct 2003 19:41:00 -0000	[thread overview]
Message-ID: <20031007194126.GA7786@alinoe.com> (raw)
In-Reply-To: <20031006215536.GB9757@redhat.com>

On Mon, Oct 06, 2003 at 02:55:36PM -0700, Richard Henderson wrote:
> And why exactly would you be calling get_callee_fndecl on a WFL
> in the first place?

Here is another way where get_callee_fndecl is called on
the WFL, still only having build_cxx_call return the WFL.

Breakpoint 1, get_callee_fndecl (call=0x41396d80)
    at ../../../gcc/gcc-mainline/gcc/tree.c:4428
4428        abort ();
(gdb) bt
#0  get_callee_fndecl (call=0x41396d80) at ../../../gcc/gcc-mainline/gcc/tree.c:4428
#1  0x081b1694 in build_new_1 (exp=0x41396d60)
    at ../../../gcc/gcc-mainline/gcc/cp/init.c:2069
#2  0x081b0038 in build_new (placement=0x0, decl=0x413aa6f4, init=0x0, use_global_new=0)
    at ../../../gcc/gcc-mainline/gcc/cp/init.c:1816
#3  0x0815f4de in cp_parser_new_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4210
#4  0x0815f096 in cp_parser_unary_expression (parser=0x402f95c0, address_p=false)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:3996
#5  0x0815faac in cp_parser_cast_expression (parser=0x402f95c0, address_p=false)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4546
#6  0x0816e02e in cp_parser_simple_cast_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13791
#7  0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c580, fn=0x816e01b <cp_parser_simple_cast_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#8  0x0815fad2 in cp_parser_pm_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4567
#9  0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c58c, fn=0x815fab7 <cp_parser_pm_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#10 0x0815faf2 in cp_parser_multiplicative_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4591
#11 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c59c, fn=0x815fad7 <cp_parser_multiplicative_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
---Type <return> to continue, or q <return> to quit---
#12 0x0815fb12 in cp_parser_additive_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4614
#13 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5a8, fn=0x815faf7 <cp_parser_additive_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#14 0x0815fb32 in cp_parser_shift_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4637
#15 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5b4, fn=0x815fb17 <cp_parser_shift_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#16 0x0815fb52 in cp_parser_relational_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4672
#17 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5d0, fn=0x815fb37 <cp_parser_relational_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#18 0x0815fb72 in cp_parser_equality_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4695
#19 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5dc, fn=0x815fb57 <cp_parser_equality_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#20 0x0815fb92 in cp_parser_and_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4716
#21 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5e4, fn=0x815fb77 <cp_parser_and_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#22 0x0815fbb2 in cp_parser_exclusive_or_expression (parser=0x402f95c0)
---Type <return> to continue, or q <return> to quit---
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4737
#23 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5ec, fn=0x815fb97 <cp_parser_exclusive_or_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#24 0x0815fbd2 in cp_parser_inclusive_or_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4759
#25 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5f4, fn=0x815fbb7 <cp_parser_inclusive_or_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#26 0x0815fbf2 in cp_parser_logical_and_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4780
#27 0x0816d18f in cp_parser_binary_expression (parser=0x402f95c0,
    token_tree_map=0x861c5fc, fn=0x815fbd7 <cp_parser_logical_and_expression>)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13290
#28 0x0815fc12 in cp_parser_logical_or_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4801
#29 0x0815fce8 in cp_parser_assignment_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4869
#30 0x0815fd3c in cp_parser_assignment_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:4887
#31 0x0815fe79 in cp_parser_expression (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5017
#32 0x08160310 in cp_parser_expression_statement (parser=0x402f95c0,
    in_statement_expr_p=false) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5299
#33 0x08160104 in cp_parser_statement (parser=0x402f95c0, in_statement_expr_p=false)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5209
---Type <return> to continue, or q <return> to quit---
#34 0x0816043e in cp_parser_statement_seq_opt (parser=0x402f95c0,
    in_statement_expr_p=false) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5364
#35 0x081603c5 in cp_parser_compound_statement (parser=0x402f95c0,
    in_statement_expr_p=false) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5337
#36 0x08167d13 in cp_parser_function_body (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:10849
#37 0x08167d42 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:10866
#38 0x0816d710 in cp_parser_function_definition_after_declarator (parser=0x402f95c0,
    inline_p=false) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13600
#39 0x0816d630 in cp_parser_function_definition_from_specifiers_and_declarator (
    parser=0x402f95c0, decl_specifiers=0x413aa2d0, attributes=0x0, declarator=0x41098ee8)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:13546
#40 0x0816548c in cp_parser_init_declarator (parser=0x402f95c0,
    decl_specifiers=0x413aa2d0, prefix_attributes=0x0,
    function_definition_allowed_p=true, member_p=false, declares_class_or_enum=0,
    function_definition_p=0xbfffef2f) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:9359
#41 0x08161138 in cp_parser_simple_declaration (parser=0x402f95c0,
    function_definition_allowed_p=true) at ../../../gcc/gcc-mainline/gcc/cp/parser.c:6156
#42 0x08161072 in cp_parser_block_declaration (parser=0x402f95c0, statement_p=false)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:6072
#43 0x08160f2e in cp_parser_declaration (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5992
#44 0x08160d64 in cp_parser_declaration_seq_opt (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5901
#45 0x08164c36 in cp_parser_namespace_body (parser=0x402f95c0)
---Type <return> to continue, or q <return> to quit---
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8915
#46 0x08164c06 in cp_parser_namespace_definition (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8900
#47 0x08160f1c in cp_parser_declaration (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5987
#48 0x08160d64 in cp_parser_declaration_seq_opt (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5901
#49 0x08164c36 in cp_parser_namespace_body (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8915
#50 0x08164c06 in cp_parser_namespace_definition (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8900
#51 0x08160f1c in cp_parser_declaration (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5987
#52 0x08160d64 in cp_parser_declaration_seq_opt (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5901
#53 0x08164c36 in cp_parser_namespace_body (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8915
#54 0x08164c06 in cp_parser_namespace_definition (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:8900
#55 0x08160f1c in cp_parser_declaration (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5987
#56 0x08160d64 in cp_parser_declaration_seq_opt (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:5901
#57 0x0815c41b in cp_parser_translation_unit (parser=0x402f95c0)
    at ../../../gcc/gcc-mainline/gcc/cp/parser.c:2163
#58 0x0816f60c in c_parse_file () at ../../../gcc/gcc-mainline/gcc/cp/parser.c:14523
---Type <return> to continue, or q <return> to quit---
#59 0x08240e14 in c_common_parse_file (set_yydebug=0)
    at ../../../gcc/gcc-mainline/gcc/c-opts.c:1226
#60 0x08510333 in compile_file () at ../../../gcc/gcc-mainline/gcc/toplev.c:1792
#61 0x08514fac in do_compile () at ../../../gcc/gcc-mainline/gcc/toplev.c:4482
#62 0x08515041 in toplev_main (argc=29, argv=0xbffff2f4)
    at ../../../gcc/gcc-mainline/gcc/toplev.c:4522
#63 0x08244aa6 in main (argc=29, argv=0xbffff2f4)
    at ../../../gcc/gcc-mainline/gcc/main.c:35
#64 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6

-- 
Carlo Wood <carlo@alinoe.com>

  parent reply	other threads:[~2003-10-07 19:41 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-22  2:31 RFC: debug line info & inlining; patch proposal and request for comments Carlo Wood
2003-09-23  5:33 ` Jim Wilson
2003-09-27 16:38 ` RFA: Adding a location_t (or pointer) to tree_exp for 3.4 only Carlo Wood
2003-10-06 12:58   ` Hans-Peter Nilsson
2003-10-06 17:41   ` Richard Henderson
2003-10-06 17:51     ` Daniel Jacobowitz
2003-10-06 18:03       ` Daniel Berlin
2003-10-06 19:20         ` Carlo Wood
2003-10-06 19:08     ` Carlo Wood
2003-10-06 20:11       ` Richard Henderson
2003-10-06 20:14         ` Daniel Jacobowitz
2003-10-06 20:20           ` Richard Henderson
2003-10-06 20:24             ` Daniel Jacobowitz
2003-10-06 21:54               ` Richard Henderson
2003-10-06 21:53             ` Carlo Wood
2003-10-06 21:55               ` Richard Henderson
2003-10-06 22:30                 ` Carlo Wood
2003-10-06 23:17                   ` Richard Henderson
2003-10-06 23:49                     ` Carlo Wood
2003-10-07  0:07                       ` Richard Henderson
2003-10-07  0:43                         ` Carlo Wood
2003-10-07  0:46                           ` Richard Henderson
2003-10-07  2:40                             ` Carlo Wood
2003-10-07 18:32                             ` Carlo Wood
2003-10-07 19:08                               ` Carlo Wood
2003-10-07 19:46                               ` Richard Henderson
2003-10-07 21:12                                 ` Carlo Wood
2003-10-07 23:43                                   ` Carlo Wood
2003-10-07 19:41                 ` Carlo Wood [this message]
2003-10-12  4:32             ` law
2003-10-12 12:02               ` Daniel Berlin

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=20031007194126.GA7786@alinoe.com \
    --to=carlo@alinoe.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=rth@redhat.com \
    --cc=wilson@specifixinc.com \
    /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: link
Be 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).