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: gcc 4.0 generates location list without DW_AT_frame_base


On Fri, Dec 31, 2004 at 03:09:45PM -0500, Daniel Berlin wrote:
> Dammit, wrong patch.
> I meant this.
> 

This patch doesn't work with Linux/x86_64 nor Linux/ia64:

Starting program:
/export/build/gnu/gcc-local/build-x86_64-linux.bad/gcc/stage1/cc1
-fpreprocessed c-ppoutput.i -quiet -dumpbase c-ppoutput.i -mtune=k8
-auxbase c-ppoutput -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -version -o c-ppoutput.s
GNU C version 4.0.0 20041230 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 3.2.3 20030502 (Red Hat Linux
3.2.3-47).
GGC heuristics: --param ggc-min-expand=97 --param
ggc-min-heapsize=126092

Program received signal SIGSEGV, Segmentation fault.
0x000000000055c84d in add_location_or_const_value_attribute
(die=0x2a96205820,
    decl=0x2a961ad000, attr=DW_AT_location)
    at /export/gnu/src/gcc/gcc/gcc/dwarf2out.c:10108
10108       return;
(gdb) bt
#0  0x000000000055c84d in add_location_or_const_value_attribute (
    die=0x2a96205820, decl=0x2a961ad000, attr=DW_AT_location)
    at /export/gnu/src/gcc/gcc/gcc/dwarf2out.c:10108
#1  0x000000000055e51a in gen_variable_die (decl=0x2a961ad000,
    context_die=0x2a962055f0) at
/export/gnu/src/gcc/gcc/gcc/dwarf2out.c:11523
#2  0x0000000000560127 in gen_decl_die (decl=0x2a961ad000,
    context_die=0x2a962055f0) at
/export/gnu/src/gcc/gcc/gcc/dwarf2out.c:12692
#3  0x000000000055fa0a in decls_for_scope (stmt=0x2a96188a10,
    context_die=0x2a962055f0, depth=0)
    at /export/gnu/src/gcc/gcc/gcc/dwarf2out.c:12361
#4  0x000000000055e25d in gen_subprogram_die (decl=0x2a961635b0,
    context_die=0x2a958e97d0) at
/export/gnu/src/gcc/gcc/gcc/dwarf2out.c:11436
#5  0x000000000055ffa3 in gen_decl_die (decl=0x2a961635b0,
    context_die=0x2a958e97d0) at
/export/gnu/src/gcc/gcc/gcc/dwarf2out.c:12632
#6  0x000000000056055b in dwarf2out_decl (decl=0x2a961635b0)
    at /export/gnu/src/gcc/gcc/gcc/dwarf2out.c:12927
#7  0x00000000007c05dd in rest_of_handle_final ()
    at /export/gnu/src/gcc/gcc/gcc/passes.c:330
#8  0x00000000007c29b4 in rest_of_compilation ()
    at /export/gnu/src/gcc/gcc/gcc/passes.c:1793
#9  0x000000000047843d in execute_one_pass (pass=0xb28a00)
    at /export/gnu/src/gcc/gcc/gcc/tree-optimize.c:525
#10 0x0000000000478522 in execute_pass_list (pass=0xb28a00)
    at /export/gnu/src/gcc/gcc/gcc/tree-optimize.c:562
#11 0x00000000004787cf in tree_rest_of_compilation
(fndecl=0x2a961635b0)
    at /export/gnu/src/gcc/gcc/gcc/tree-optimize.c:661
#12 0x0000000000417d61 in c_expand_body (fndecl=0x2a961635b0)
    at /export/gnu/src/gcc/gcc/gcc/c-decl.c:6383
#13 0x00000000007f2bc1 in cgraph_expand_function (node=0x2a961ad4e0)
    at /export/gnu/src/gcc/gcc/gcc/cgraphunit.c:822
#14 0x00000000007f48bb in cgraph_expand_all_functions ()
    at /export/gnu/src/gcc/gcc/gcc/cgraphunit.c:1689
#15 0x00000000007f4b78 in cgraph_optimize ()


H.J.


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