.stabs statements refer to symbol not in source

John David Anglin dave@hiauly1.hia.nrc.ca
Mon Apr 23 17:02:00 GMT 2001


This is a follow up to the following problem:

> /xxx/gnu/gcc-3.0/objdir/gcc/xgcc -B/xxx/gnu/gcc-3.0/objdir/gcc/ -nostdinc++ -L/xxx/gnu/gcc-3.0/objdir/vax-dec-ultrix4.3/libstdc++-v3/src -L/xxx/gnu/gcc-3.0/objdir/vax-dec-ultrix4.3/libstdc++-v3/src/.libs -B/usr/local/vax-dec-ultrix4.3/bin/ -B/usr/local/vax-dec-ultrix4.3/lib/ -isystem /usr/local/vax-dec-ultrix4.3/include -nostdinc++ -I../../../../libstdc++-v3/include -I../../../../libstdc++-v3/include/std -I../../../../libstdc++-v3/include/c_std -I../include -I../../../../libstdc++-v3/libsupc++ -I../libio -I../../../../libstdc++-v3/libio -I../../../../libstdc++-v3/libmath -g -O2 -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -g -c ../../../../libstdc++-v3/src/misc-inst.cc -o misc-inst.o
> ../../../../libstdc++-v3/include/bits/basic_string.h: In function
>    `std::basic_istream<_CharT, _Traits>&
>    std::operator>>(std::basic_istream<_CharT, _Traits>&,
>    std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits =
>    std::char_traits<char>, _Alloc = std::allocator<char>]':
> ../../../../libstdc++-v3/src/misc-inst.cc:189:   instantiated from here
> ../../../../libstdc++-v3/include/bits/basic_string.h:1133: warning: comparison
>    between signed and unsigned integer expressions
> /usr/tmp/ccsCMPtL.s: Assembler messages:
> /usr/tmp/ccsCMPtL.s:45114: Error: Attempt to get value of unresolved symbol __n:V28
> /usr/tmp/ccsCMPtL.s:45114: Error: Attempt to get value of unresolved symbol __n:
> V28
> /usr/tmp/ccsCMPtL.s:45114: Error: Attempt to get value of unresolved symbol
> /usr/tmp/ccsCMPtL.s:45114: Error: Attempt to get value of unresolved symbol
> make[4]: *** [misc-inst.lo] Error 1

The unresolved symbol occurs twice in .stabs statements.  The file assembles
without problem if I remove the two statements:

--- misc-inst.s.orig	Sun Apr 22 17:13:23 2001
+++ misc-inst.s	Sun Apr 22 17:45:09 2001
@@ -41589,7 +41589,6 @@
 	.stabs	"__cerb:1282",128,0,1169,-2
 	.stabn	192,0,0,LBB3073
 	.data
-	.stabs	"__n:V28",38,0,1173,__ZNSs4_Rep11_S_max_sizeE
 	.stabs	"__idelim:r1",64,0,1175,7
 	.stabs	"__sb:r1121",64,0,1176,6
 	.stabs	"__c:r1",64,0,1177,2
@@ -41608,7 +41607,6 @@
 	.stabn	192,0,0,LBB3117
 	.stabn	224,0,0,LBE3117
 	.stabn	224,0,0,LBE3116
-	.stabs	"__n:V28",38,0,1173,__ZNSs4_Rep11_S_max_sizeE
 	.stabs	"__idelim:r1",64,0,1175,7
 	.stabs	"__sb:r1121",64,0,1176,6
 	.stabs	"__c:r1",64,0,1177,2

Does anyone have suggestions as to where to look to find out why these
are being generated.  I imagine the symbol has been optimized away.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)



More information about the Gcc-patches mailing list