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: 4.0 regression: missing debug info for global variables in C with -O2



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:
static int i;


int main(void)
{
  i += 3;
  i *= 5;
  return 0;
}
-----
int i;

int main(void)
{
  i += 3;
  i *= 5;
  return 0;
}
----
int main(void)
{
static int i;
  i += 3;
  i *= 5;
  return 0;
}
---
Do you have an example which fails?

Thanks,
Andrew Pinski


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