[Patch] Fix debug/17406

Danny Smith dannysmith@clear.net.nz
Wed Nov 3 18:16:00 GMT 2004


Richard Henderson wrote:
> On Thu, Oct 28, 2004 at 10:24:41AM +1300, Danny Smith wrote:
>> I confess that I do not quite understand all the rules in
>> dwarf2out_frame_debug_expr, but setting cfa_temp.reg to EAX here
>> seems wrong, Simply removing the flag from this instruction (as
>> suggested by the Big Picture comment in dwarf2out.c) fixes the later
>> assert failure when restoring EAX and saving to stack
> 
> I can't believe this is correct.  Otherwise the dwarf2 bits do not,
> while processing the allocate_stack_worker insn, have the size of
> the allocated stack.
> 
> I tried to reproduce this myself but got
> 
> z.c:1: error: target system does not support the "dwarf-2" debug
> format 
> 
> What is going on with this?
> 
> 
Dwarf2 support requires a newish assembler, which turns on 
 HAVE_GAS_PE_SECREL32_RELOC in configure.test

The BFD support was added in April 2004. (BFD  2.15.91)

Danny


> r~




More information about the Gcc-patches mailing list