This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [rtlopt] Location list data
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 9 Mar 2003 23:27:26 -0500
- Subject: Re: [rtlopt] Location list data
- References: <20030310042047.GA27067@nevyn.them.org>
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