This is the mail archive of the gcc-patches@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: Checking failure building arm-elf


> #15 0x102f92c8 in flags_from_decl_or_type (exp=0x305efe00)
>     at /gcc/dje/src/gcc/calls.c:802
> 802           struct cgraph_rtl_info *i = cgraph_rtl_info (exp);
> (gdb) print exp
> $3 = 0x305efe00
> (gdb) pt
>  <function_decl 305efe00 __base_ctor
>     type <method_type 305dce00
>         type <void_type 30015f80 void type_6 VOID
>             align 8 symtab -11 alias set -1
>             pointer_to_this <pointer_type 30017000>>
>         type_6 TI
>         size <integer_cst 3000aca0 constant 128>
>         unit size <integer_cst 3000aec0 constant 16>
>         align 128 symtab 0 alias set -1 method basetype <record_type 302d3c80 ios_base>
>         arg-types <tree_list 3033a7b0 side-effects value <pointer_type 302d3d00>
>             chain <tree_list 3001b408 tree_2 value <void_type 30015f80 void>>>
>         pointer_to_this <pointer_type 30736480>>
>     addressable used public protected in_system_header external SI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 context <record_type 302d3c80 ios_base> abstract_origin <function_decl 305ef380 ios_base>
>     arguments <parm_decl 305efe80 this
>         type <pointer_type 305d8880 type <record_type 302d3c80 ios_base>
>             readonly unsigned DI
>             size <integer_cst 3000af20 constant 64>
>             unit size <integer_cst 3000af80 constant 8>
>             align 64 symtab 0 alias set -1>
>         readonly unsigned in_system_header DI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 size <integer_cst 3000af20 64> unit size <integer_cst 3000af80 8>
>         align 64 context <function_decl 305efe00 __base_ctor> initial <pointer_type 305d8880> arg-type <pointer_type 305d8880>>
>    
>     (mem:SI (symbol_ref:DI ("_ZNSt8ios_baseC2Ev[DS]")) [0 S4 A8]) chain <function_decl 305efd00 __comp_ctor>>
> 
> 
> #14 0x10300a04 in cgraph_rtl_info (decl=0x305efe00)
>     at /gcc/dje/src/gcc/cgraph.c:216
> 216       node = cgraph_node (decl);
> (gdb) print decl
> $4 = 0x305efe00
> (gdb) pt
>  <function_decl 305efe00 __base_ctor
>     type <method_type 305dce00
>         type <void_type 30015f80 void type_6 VOID
>             align 8 symtab -11 alias set -1
>             pointer_to_this <pointer_type 30017000>>
>         type_6 TI
>         size <integer_cst 3000aca0 constant 128>
>         unit size <integer_cst 3000aec0 constant 16>
>         align 128 symtab 0 alias set -1 method basetype <record_type 302d3c80 ios_base>
>         arg-types <tree_list 3033a7b0 side-effects value <pointer_type 302d3d00>
>             chain <tree_list 3001b408 tree_2 value <void_type 30015f80 void>>>
>         pointer_to_this <pointer_type 30736480>>
>     addressable used public protected in_system_header external SI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 context <record_type 302d3c80 ios_base> abstract_origin <function_decl 305ef380 ios_base>
>     arguments <parm_decl 305efe80 this
>         type <pointer_type 305d8880 type <record_type 302d3c80 ios_base>
>             readonly unsigned DI
>             size <integer_cst 3000af20 constant 64>
>             unit size <integer_cst 3000af80 constant 8>
>             align 64 symtab 0 alias set -1>
>         readonly unsigned in_system_header DI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 size <integer_cst 3000af20 64> unit size <integer_cst 3000af80 8>
>         align 64 context <function_decl 305efe00 __base_ctor> initial <pointer_type 305d8880> arg-type <pointer_type 305d8880>>
>    
>     (mem:SI (symbol_ref:DI ("_ZNSt8ios_baseC2Ev[DS]")) [0 S4 A8]) chain <function_decl 305efd00 __comp_ctor>>
> 
> 
> #13 0x103004cc in cgraph_node (decl=0x305efe00) at /gcc/dje/src/gcc/cgraph.c:88
> 88        slot =
> (gdb) print decl
> $5 = 0x305efe00
> (gdb) pt
>  <function_decl 305efe00 __base_ctor
>     type <method_type 305dce00
>         type <void_type 30015f80 void type_6 VOID
>             align 8 symtab -11 alias set -1
>             pointer_to_this <pointer_type 30017000>>
>         type_6 TI
>         size <integer_cst 3000aca0 constant 128>
>         unit size <integer_cst 3000aec0 constant 16>
>         align 128 symtab 0 alias set -1 method basetype <record_type 302d3c80 ios_base>
>         arg-types <tree_list 3033a7b0 side-effects value <pointer_type 302d3d00>
>             chain <tree_list 3001b408 tree_2 value <void_type 30015f80 void>>>
>         pointer_to_this <pointer_type 30736480>>
>     addressable used public protected in_system_header external SI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 context <record_type 302d3c80 ios_base> abstract_origin <function_decl 305ef380 ios_base>
>     arguments <parm_decl 305efe80 this
>         type <pointer_type 305d8880 type <record_type 302d3c80 ios_base>
>             readonly unsigned DI
>             size <integer_cst 3000af20 constant 64>
>             unit size <integer_cst 3000af80 constant 8>
>             align 64 symtab 0 alias set -1>
>         readonly unsigned in_system_header DI file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/ios_base.h line 664 size <integer_cst 3000af20 64> unit size <integer_cst 3000af80 8>
>         align 64 context <function_decl 305efe00 __base_ctor> initial <pointer_type 305d8880> arg-type <pointer_type 305d8880>>
>    
>     (mem:SI (symbol_ref:DI ("_ZNSt8ios_baseC2Ev[DS]")) [0 S4 A8]) chain <function_decl 305efd00 __comp_ctor>>
> 
> 
> #10 0x1000cda0 in decl_assembler_name (decl=0x3029a880)
>     at /gcc/dje/src/gcc/tree.c:152
> 152         (*lang_hooks.set_decl_assembler_name) (decl);
> (gdb) print decl
> $6 = 0x3029a880
> (gdb) pt
>  <result_decl 3029a880

This is very puzzling.. from where the result_decl_comes from?
Can you please check the p1 and p2 in eq_node?
It seems to be that DECL_ASSEMBLER_NAME must have been executed for both
of them already when they were inserted into the table, so I really
don't understand why they are checked again...

Thanks,
Honza
>     type <template_type_parm 302a8c00 _RandomAccessIter type_0 type_6 VOID
>         align 8 symtab 0 alias set 0
>        index 0 level 1 orig_level 1
>         chain <type_decl 302a8d80 _RandomAccessIter>>
>     in_system_header VOID file /gcc/dje/build/powerpc-ibm-aix4.3.3.0-20030306/powerpc-ibm-aix4.3.3.0/ppc64/libstdc++-v3/include/bits/stl_algo.h line 247
>     align 8 context <function_decl 3029a180 find_if>>


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