Adriaan van Os wrote:
Waldek Hebisch wrote:
Adriaan van Os wrote:
The output below from objdump suggests that stabs debugging info from gpc is broken. Does this happen on other platforms also ?
On i386 with -gstabs+ I have the same problem. It seems that in the stab: .stabs "Timestamp:t(0,4)=s104Datevalid:(0,5)=@s8;-16;,0,1;Timevalid.... ^ the semicolon should be ommited. Looks like backend bug. Do not appear if I give -gstabs (without GNU extensions).
You are right, it doesn't happen with -gstabs !
Is there a way we can patch this and/or report it to the backend team ?
The following works for me:
diff -ru gcc-3.3.2.orig/gcc/dbxout.c gcc-3.3.2/gcc/dbxout.c --- gcc-3.3.2.orig/gcc/dbxout.c Fri Oct 31 21:23:40 2003 +++ gcc-3.3.2/gcc/dbxout.c Sat Nov 1 00:08:30 2003 @@ -1375,7 +1375,7 @@ fputs ("@s", asmfile); CHARS (2); print_wide_int (BITS_PER_UNIT * int_size_in_bytes (type)); - fputs (";-20;", asmfile); + fputs (";-20", asmfile); CHARS (4); } else @@ -1397,7 +1397,7 @@ fputs ("@s", asmfile); CHARS (2); print_wide_int (BITS_PER_UNIT * int_size_in_bytes (type)); - fputs (";-16;", asmfile); + fputs (";-16", asmfile); CHARS (4); } else /* Define as enumeral type (False, True) */