Re: [dwarf2cfi] Cleanup interpretation of cfa.reg

2011-07-12 Thread Richard Henderson
On 07/12/2011 02:05 AM, Andreas Schwab wrote: > Richard Henderson writes: > >> @@ -261,6 +262,15 @@ extern void dwarf2out_set_demangle_name_func (const >> char *(*) (const char *)); >> extern void dwarf2out_vms_debug_main_pointer (void); >> #endif >> >> +/* Unfortunately, DWARF_FRAME_REGNUM

Re: [dwarf2cfi] Cleanup interpretation of cfa.reg

2011-07-12 Thread Richard Earnshaw
On 12/07/11 10:05, Andreas Schwab wrote: > Richard Henderson writes: > >> @@ -261,6 +262,15 @@ extern void dwarf2out_set_demangle_name_func (const >> char *(*) (const char *)); >> extern void dwarf2out_vms_debug_main_pointer (void); >> #endif >> >> +/* Unfortunately, DWARF_FRAME_REGNUM is no

Re: [dwarf2cfi] Cleanup interpretation of cfa.reg

2011-07-12 Thread Andreas Schwab
Richard Henderson writes: > @@ -261,6 +262,15 @@ extern void dwarf2out_set_demangle_name_func (const char > *(*) (const char *)); > extern void dwarf2out_vms_debug_main_pointer (void); > #endif > > +/* Unfortunately, DWARF_FRAME_REGNUM is not universally defined in such a > + way as to for

[dwarf2cfi] Cleanup interpretation of cfa.reg

2011-07-11 Thread Richard Henderson
Sometimes we compare cfa.reg with REGNO, and sometimes with something that has been passed through DWARF_FRAME_REGNUM. This leads to all sorts of confusion. I think that ideally we'd leave dw_cfa_location.reg in the GCC regno space, because that's convenient for the majority of the code that inter