This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
dbxout_init() botches labels
- To: gcc-bugs at gcc dot gnu dot org
- Subject: dbxout_init() botches labels
- From: David Gordon Hogan <dhog at plan9 dot bell-labs dot com>
- Date: Wed, 20 Jun 2001 14:25:32 -0400
In dbxout_init(), the label generated by the ASM_GENERATE_INTERNAL_LABEL()
macro has its first character excised unconditionally in two places:
fprintf (asmfile, ",%d,0,0,%s\n", N_SO, <ext_label_name[1]);
and
fprintf (asmfile, ",%d,0,0,%s\n",
N_SO, <ext_label_name[1]);
I believe that dbxout_init() should be testing for a first character of '*',
much like assemble_name() does, and behaving accordingly.
This bug causes the N_SO's to be removed by the linker (due to the
undefined symbol) on architectures where ASM_GENERATE_INTERNAL_LABEL()
is defined without the leading '*'.
This bug exists in gcc 3.0.