From: Doug Evans Date: Mon, 13 Feb 1995 22:14:59 +0000 (+0000) Subject: (libgcc1.S): New target. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2ab7f2bf31282e7f915e31ed8650e48c3ecde07;p=gcc.git (libgcc1.S): New target. From-SVN: r8943 --- diff --git a/gcc/Makefile.in b/gcc/Makefile.in index b33cbedb460..0cf3b43c71f 100644 --- a/gcc/Makefile.in +++ b/gcc/Makefile.in @@ -789,6 +789,23 @@ libgcc1-asm.a: libgcc2.ready config.status $(srcdir)/config/$(LIB1ASMSRC) -rm -f libgcc1.S mv tmplibgcc1.a libgcc1-asm.a +# Generate assembly versions of the functions required for libgcc1. +# You'll still need to massage the code by hand (possibly hacking +# underscores and local labels) but this will get you started. +libgcc1.S: libgcc1.c $(CONFIG_H) config.status + -rm -f libgcc1.S + touch libgcc1.S + for name in $(LIB1FUNCS); \ + do \ + echo $${name}; \ + $(OLDCC) $(CCLIBFLAGS) $(INCLUDES) -S -DL$${name} $(srcdir)/libgcc1.c; \ + if [ $$? -eq 0 ] ; then true; else exit 1; fi; \ + echo '#ifdef ' L$${name} >> libgcc1.S; \ + cat libgcc1.s >> libgcc1.S; \ + echo '#endif /*' L$${name} '*/' >> libgcc1.S; \ + echo "" >> libgcc1.S; \ + done + # Compiling libgcc2.a requires making sure that cc1, etc. have been compiled. # But recompiling cc1 should not force recompilation of libgcc2.a. # If you want to force recompilation, delete libgcc2.a.