[PATCH] Fix .debug_ranges and a bug in output_loc_list
Richard Henderson
rth@redhat.com
Tue Dec 11 09:41:00 GMT 2001
On Tue, Dec 11, 2001 at 06:16:45PM +0100, Jakub Jelinek wrote:
> +#ifdef ASM_OUTPUT_DWARF_OFFSET
> + ASM_OUTPUT_DWARF_OFFSET (asm_out_file, size, label);
> + if (addend)
> + fprintf (asm_out_file, "+0x%lx", addend);
Everything is fine except this. On ia64 this would emit
data8 @secrel(.Ldebug_ranges0)+0x1234
instead of
data8 @secrel(.Ldebug_ranges0+0x1234)
If you were to add a label for each ranges entry, you wouldn't
have this problem, and wouldn't need the new function. Dunno
if this severely complicates the ranges code though...
r~
More information about the Gcc-patches
mailing list