Re: [0/3] Improve debug info for addressable vars

2019-06-06 Thread Richard Sandiford
Richard Biener writes: > On Wed, Jun 5, 2019 at 4:30 PM Richard Sandiford > wrote: >> >> Richard Biener writes: >> > On Sat, Jun 1, 2019 at 5:49 PM Richard Sandiford >> > wrote: >> >> >> >> Taking the address of a variable stops us doing var-tracking on it, >> >> so that we just use the

Re: [0/3] Improve debug info for addressable vars

2019-06-06 Thread Richard Biener
On Wed, Jun 5, 2019 at 4:30 PM Richard Sandiford wrote: > > Richard Biener writes: > > On Sat, Jun 1, 2019 at 5:49 PM Richard Sandiford > > wrote: > >> > >> Taking the address of a variable stops us doing var-tracking on it, > >> so that we just use the DECL_RTL instead. This can easily cause

Re: [0/3] Improve debug info for addressable vars

2019-06-05 Thread Richard Sandiford
Richard Biener writes: > On Sat, Jun 1, 2019 at 5:49 PM Richard Sandiford > wrote: >> >> Taking the address of a variable stops us doing var-tracking on it, >> so that we just use the DECL_RTL instead. This can easily cause wrong >> debug info for regions of code that would have had correct

Re: [0/3] Improve debug info for addressable vars

2019-06-05 Thread Richard Biener
On Sat, Jun 1, 2019 at 5:49 PM Richard Sandiford wrote: > > Taking the address of a variable stops us doing var-tracking on it, > so that we just use the DECL_RTL instead. This can easily cause wrong > debug info for regions of code that would have had correct debug info > if the variable

[0/3] Improve debug info for addressable vars

2019-06-01 Thread Richard Sandiford
Taking the address of a variable stops us doing var-tracking on it, so that we just use the DECL_RTL instead. This can easily cause wrong debug info for regions of code that would have had correct debug info if the variable weren't addressable. E.g.: { int base; get_start (); x[i1] =