Re: DWARF location descriptor and multi-register frame pointer

2012-11-21 Thread Michael Eager
On 11/20/2012 02:22 AM, Senthil Kumar Selvaraj wrote: How are frame pointer registers that span more than one hard register handled? Would it be appropriate to check the mode and do a multiple_reg_loc_descriptor call or something similar to handle this case? There is no requirement that

Re: DWARF location descriptor and multi-register frame pointer

2012-11-20 Thread Richard Henderson
On 11/20/2012 02:22 AM, Senthil Kumar Selvaraj wrote: > Hi all, > > For the AVR target, the FP register spans two registers, yet the DWARF > location information (DW_AT_location) for a local variable refers to only > one > of them. > > Looking at the code, I found that based_loc_descr in dw

DWARF location descriptor and multi-register frame pointer

2012-11-20 Thread Senthil Kumar Selvaraj
Hi all, For the AVR target, the FP register spans two registers, yet the DWARF location information (DW_AT_location) for a local variable refers to only one of them. Looking at the code, I found that based_loc_descr in dwar2out.c, which handles base+offset based location descriptions, gets