aboutsummaryrefslogtreecommitdiff
path: root/gcc/collect2.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@codesourcery.com>2002-09-11 19:58:02 +0000
committerZack Weinberg <zack@gcc.gnu.org>2002-09-11 19:58:02 +0000
commit3fd9d606f3f68b72f7645400a79a8b09cc10a9e9 (patch)
tree6bbcd2c0a0f2af2f4a8beb06f20dc3cdb8866ba7 /gcc/collect2.c
parent6e471ea7b847f2a8bf4ee0673dc64a4156ec694e (diff)
downloadgcc-3fd9d606f3f68b72f7645400a79a8b09cc10a9e9.zip
gcc-3fd9d606f3f68b72f7645400a79a8b09cc10a9e9.tar.gz
gcc-3fd9d606f3f68b72f7645400a79a8b09cc10a9e9.tar.bz2
Makefile.in: Remove all references to s-under and underscore.c.
gcc: * Makefile.in: Remove all references to s-under and underscore.c. * collect2.c, tlink.c: Change all uses of prepends_underscore to look directly at USER_LABEL_PREFIX. gcc/cp: * Make-lang.in: Build cp/cxxfilt.o from $(srcdir)/cp/cxxfilt.c, and c++filt from cxxfilt.o + version.o + $(LIBDEPS). * cxxfilt.c: New file: split from libiberty/cplus-dem.c, with minor adjustments (use version_string, eliminate yet another duplicate of xmalloc) libiberty: * cplus-dem.c: Code code under #ifdef MAIN moved to gcc/cp/cxxfilt.c. * testsuite/Makefile.in: Adjust for test-demangle. * testsuite/regress-demangle: Deleted. * testsuite/test-demangle.c: New file. * testsuite/demangle-expected: Change \$ to $ throughout, now that this file is not being read by a shell script. From-SVN: r57037
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r--gcc/collect2.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c
index c9b8865..4345e3a 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -236,9 +236,6 @@ char * temporary_firstobj;
/* Holds the return value of pexecute. */
int pexecute_pid;
-/* Defined in the automatically-generated underscore.c. */
-extern int prepends_underscore;
-
/* Structure to hold all the directories in which to search for files to
execute. */
@@ -515,8 +512,8 @@ dump_file (name)
if (*word == '.')
++word, putc ('.', stderr);
p = word;
- if (*p == '_' && prepends_underscore)
- ++p;
+ if (!strncmp (p, USER_LABEL_PREFIX, strlen (USER_LABEL_PREFIX)))
+ p += strlen (USER_LABEL_PREFIX);
if (no_demangle)
result = 0;