This is the mail archive of the gcc-bugs@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]

[Bug debug/19124] [4.0 regression] gcc generates incorrect dwarf2 debug info


------- Additional Comments From hjl at lucon dot org  2004-12-22 00:53 -------
A simple testcase:

[hjl@gnu-10 gcc]$ cat foo.c
extern char *array;
void
foo (unsigned int array_members)
{
  unsigned int i;
  for (i = 0; i < array_members; i++)
    array[i] = i % 128;
}
[hjl@gnu-10 gcc]$ ./xgcc -B./ -g -O  -c foo.c -fomit-frame-pointer
[hjl@gnu-10 gcc]$ readelf -w foo.o > /dev/null
readelf: Error: Not enough comp units for .debug_loc section

-fomit-frame-pointer may cause gcc to generate .debug_loc section gdb
can't handle.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19124


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