On May 30, 2005, at 3:14 PM, Andrew Pinski wrote:


On May 30, 2005, at 2:59 PM, Ulrich Weigand wrote:

Hello,

we've just noticed a quite serious regression in debug info output
in GCC 4.0 over previous releases: when building with -funit-at-a-time
(which is on by default with -O2), *no* debug info for global variables
appears to be emitted at all.

I could not reproduce it with any of the following examples on i686-pc-linux-gnu
with dwarf-2:

Never mind, gdb must use something else for variables.
You can reproduce it using:
static int i;
int main(void)
{
  i += 3;
  i *= 5;
  return 0;
}

and readelf and looking for the DW_TAG_variable tag.

Thanks,
Andrew Pinski

Reply via email to