dwarf2: force_decl_die abort for CONST_DECL

Graham Stott graham.stott@btinternet.com
Fri Apr 9 17:33:00 GMT 2004


All,

Compiling sid/component/gdb/gdb.cxx triggers an abort in dwarf2out:force_decl_die
becuase it's being handed a CONST_DECL.

  <const_decl 0xbd754a8c cpu_trap_handled
     type <enumeral_type 0xbd754948 cpu_trap_disposition asm_written unsigned SI
         size <integer_cst 0xbd86db7c constant 32>
         unit size <integer_cst 0xbd86db90 constant 4>
         align 32 symtab -1116402880 alias set -1 precision 2 min <integer_cst 0xbd7556f4 0> max <integer_cst 0xbd755708 3>
         values <tree_list 0xbd755618
             purpose <identifier_node 0xbd750a40 cpu_trap_unhandled
             bindings <0xbe39e6b8>
             local bindings <(nil)>>
             value <integer_cst 0xbd755730 constant 0>
             chain <tree_list 0xbd755640
                 purpose <identifier_node 0xbd750a80 cpu_trap_handled
                 bindings <0xbd72f53c>
                 local bindings <(nil)>>
                 value <integer_cst 0xbd755758 constant 1>
                 chain <tree_list 0xbd755668
                     purpose <identifier_node 0xbd750ac0 cpu_trap_reissue
                     bindings <0xbe39e820>
                     local bindings <(nil)>>
                     value <integer_cst 0xbd755780 constant 2>
                     chain <tree_list 0xbd755690
                         purpose <identifier_node 0xbd750b00 cpu_trap_skip
                         bindings <0xbe39e550>
                         local bindings <(nil)>>
                         value <integer_cst 0xbd7557a8 constant 3>>>>> context <namespace_decl 0xbe2fd6c0 sidutil>
         chain <type_decl 0xbd7549b4 cpu_trap_disposition>>
     readonly constant VOID file ../sid/component/gdb/../../include/sidcpuutil.h line 94
     align 1 context <namespace_decl 0xbe2fd6c0 sidutil> initial <integer_cst 0xbd755758 1> chain <const_decl 0xbd754a20 cpu_trap_unhandled>>

Anyone ideas on what needs fixing?

Graham



More information about the Gcc-bugs mailing list