This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
cp-demangle.c changes breaks ld error messages
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: binutils at sources dot redhat dot com, pme at gcc dot gnu dot org
- Date: Thu, 31 Jan 2002 23:35:24 +1030
- Subject: cp-demangle.c changes breaks ld error messages
This change:
2002-01-30 Phil Edwards <pme@gcc.gnu.org>
* cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
(cplus_demangle_v3): Mimic __cxa_demangle and fall back on
cp_demangle_type.
breaks ld error messages and hence the ld testsuite. eg.
failed with: <tmpdir/dump0.o: In function `_start':
tmpdir/dump0.o(.text+0x0): undefined reference to `double'>, expected: <undefined reference to `data'>
FAIL: ld-discard/extern
#0 demangle_builtin_type (dm=0x813d248)
at /src/binutils-current/libiberty/cp-demangle.c:2606
#1 0x80c5dab in demangle_type (dm=0x813d248)
at /src/binutils-current/libiberty/cp-demangle.c:2319
#2 0x80c75eb in cp_demangle_type (type_name=0x8138949 "data",
result=0x813d228) at /src/binutils-current/libiberty/cp-demangle.c:3553
#3 0x80c768d in cplus_demangle_v3 (mangled=0x8138949 "data")
at /src/binutils-current/libiberty/cp-demangle.c:3702
#4 0x80bebab in cplus_demangle (mangled=0x8138949 "data", options=3)
at /src/binutils-current/libiberty/cplus-dem.c:914
#5 0x8058fd6 in demangle (string=0x8138949 "data")
at /src/binutils-current/ld/ldmisc.c:86
#6 0x80591f9 in vfinfo (fp=0x40102fa0, fmt=0x80d695e "'\n", arg=0xbffff158)
at /src/binutils-current/ld/ldmisc.c:186
#7 0x805984c in einfo (fmt=0x80d6940 "%C: undefined reference to `%T'\n")
at /src/binutils-current/ld/ldmisc.c:433
#8 0x8056bc2 in undefined_symbol (info=0x8126c00, name=0x8138949 "data",
abfd=0x8137de0, section=0x813df44, address=0, fatal=bfd_tttrue)
at /src/binutils-current/ld/ldmain.c:1268
(gdb) p *dm
$3 = {name = 0x8138949 "data", next = 0x8138949 "data", result = 0x813d2f0,
num_substitutions = 0, substitutions_allocated = 10,
substitutions = 0x813d298, template_arg_lists = 0x0,
last_source_name = 0x813d278, style = 0, is_constructor = 0,
is_destructor = 0}
--
Alan Modra
IBM OzLabs - Linux Technology Centre