Re: [Dwarf-Discuss] .cfi_offset questions

2016-03-26 Thread Michael Eager
On 03/19/2016 04:46 AM, Jonas H. wrote: Hi! I hope this is the right mailing list to ask this kind of question. I’m working on a edu/research compiler that has yet to be equipped with DWARF info. Unlike GCC/Clang/… it doesn’t have spill slots that are “constant” within a procedure, i.e. may p

Re: [Dwarf-Discuss] .cfi_offset questions

2016-03-24 Thread Cary Coutant
> By saying that .debug_frame supports shrink wrapping, do you also mean that > it supports the “two paths join with different register state” case? Which > means it’s only a matter of the .cfi_xxx directives, and if I were to build > the .debug_frame/.eh_frame section by hand I would be fine?

Re: [Dwarf-Discuss] .cfi_offset questions

2016-03-24 Thread Jonas Haag
> On 24 Mar 2016, at 16:35, Cary Coutant wrote: > > It's fine to have different regions of code with different register > save states, but it's a bad idea to have two paths join without > compensation code at the end of one or both paths to match the states. > For example, you could restore the

Re: [Dwarf-Discuss] .cfi_offset questions

2016-03-24 Thread Cary Coutant
>> I’m working on a edu/research compiler that has yet to be equipped with >> DWARF info. Unlike GCC/Clang/… it doesn’t have spill slots that are >> “constant” within a procedure, i.e. may procedure code like this: >> >> … >> >> Is this supported by the DWARF .cfi_offset directives at all, and i

Re: [Dwarf-Discuss] .cfi_offset questions

2016-03-24 Thread Jonas Haag
> > On 19 Mar 2016, at 12:46, Jonas H. wrote: > > I’m working on a edu/research compiler that has yet to be equipped with DWARF > info. Unlike GCC/Clang/… it doesn’t have spill slots that are “constant” > within a procedure, i.e. may procedure code like this: > > … > > Is this supported by