This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: Adding a location_t (or pointer) to tree_exp for 3.4 only.


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]