This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rtlopt] Location list data


On Sun, Mar 09, 2003 at 11:20:48PM -0500, Daniel Jacobowitz wrote:
> I'm looking at the current location lists emitted by the rtlopt branch for a
> couple of simple testcases.  I've got GDB successfully using them, and it
> wasn't too painful to do; but there are some loose ends.  Here's one of
> them.  Consider this testcase:
> 
> int j = 2;
> 
> extern void baz (int *);
> void baz(int *bar)
> { 
>   ;
> }
> 
> int main()
> { 
>   int i = 1, k;
>   for (k = 0; k < 10; k++)
>     i = i * j;
>   baz (&i);
>   return i;
> }

By the way, also considering this test-case: we emit no location list
for i, we just say that it's in the frame at -8.  Which is wrong, since
as far as I can see it's never even stored there during the loop.  It's
mostly in $ebx, but the debug info doesn't say anything about it.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]