From a31844688a498c9f57ea71be5180da3e697b919e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Thu, 4 May 1995 21:25:31 +0000 Subject: Make collect demangle From-SVN: r9573 --- gcc/Makefile.in | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'gcc/Makefile.in') 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 \ -- cgit v1.1