aboutsummaryrefslogtreecommitdiff
path: root/gcc/Makefile.in
diff options
context:
space:
mode:
authorJason Merrill <merrill@gnu.org>1995-05-04 21:25:31 +0000
committerJason Merrill <merrill@gnu.org>1995-05-04 21:25:31 +0000
commita31844688a498c9f57ea71be5180da3e697b919e (patch)
treed5cd65fb4395c72a796b852f8a232c7bca3a2253 /gcc/Makefile.in
parent1a62528312e1af15fc74a8507a61aa500d118fc7 (diff)
downloadgcc-a31844688a498c9f57ea71be5180da3e697b919e.zip
gcc-a31844688a498c9f57ea71be5180da3e697b919e.tar.gz
gcc-a31844688a498c9f57ea71be5180da3e697b919e.tar.bz2
Make collect demangle
From-SVN: r9573
Diffstat (limited to 'gcc/Makefile.in')
-rw-r--r--gcc/Makefile.in23
1 files changed, 19 insertions, 4 deletions
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index 21b82cf..6aaa3eb 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1034,16 +1034,31 @@ ld: collect2
ln collect2$(exeext) ld$(exeext) > /dev/null 2>&1 \
|| cp collect2$(exeext) ld$(exeext)
-collect2 : collect2.o version.o $(LIBDEPS)
+collect2 : collect2.o cplus-dem.o underscore.o version.o $(LIBDEPS)
# Don't try modifying collect2 (aka ld) in place--it might be linking this.
-rm -f collect2
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o collect2 collect2.o version.o $(LIBS)
+ $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o collect2 collect2.o cplus-dem.o \
+ underscore.o version.o $(LIBS)
-collect2.o : collect2.c $(CONFIG_H) gstab.h
+collect2.o : collect2.c $(CONFIG_H) gstab.h obstack.h demangle.h
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
- -DTARGET_MACHINE=\"$(target)\" \
+ -DTARGET_MACHINE=\"$(target)\" $(MAYBE_USE_COLLECT2) \
-c `echo $(srcdir)/collect2.c | sed 's,^\./,,'`
+cplus-dem.o: cplus-dem.c demangle.h
+
+underscore.c: $(GCC_PASSES)
+ echo "int xxy_us_dummy;" >dummy.c
+ $(GCC_FOR_TARGET) -S dummy.c
+ echo '/*WARNING: This file is automatically generated!*/' >underscore.t
+ if grep _xxy_us_dummy dummy.s > /dev/null ; then \
+ echo "int prepends_underscore = 1;" >>underscore.t; \
+ else \
+ echo "int prepends_underscore = 0;" >>underscore.t; \
+ fi
+ $(srcdir)/move-if-change underscore.t underscore.c
+ -rm -f dummy.c dummy.s
+
# Objective C language specific files.
objc-parse.o : $(srcdir)/objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \