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: [PATCH] Fix .debug_ranges and a bug in output_loc_list


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~


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