This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: .stabs statements refer to symbol not in source
- To: dave at hiauly1 dot hia dot nrc dot ca (John David Anglin)
- Subject: Re: .stabs statements refer to symbol not in source
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Date: Mon, 23 Apr 2001 20:57:19 -0400 (EDT)
- Cc: gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
> 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
These definitions come from the template at line 1155 of istream.tcc.
It is easy to see from the template code why __n could be optimized away.
Is this an assembler or compiler bug?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)