This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.0 generates location list without DW_AT_frame_base
On Fri, Dec 31, 2004 at 01:50:10PM -0800, H. J. Lu wrote:
> 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
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 descr = loc_descriptor (NOTE_VAR_LOCATION
(node->var_loc_note),
(gdb) p *loc_list
$4 = {first = 0x0, last = 0x0, decl_id = 14047}
(gdb)
H.J.