OSDN Git Service

(libgcc1.S): New target.
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Feb 1995 22:14:59 +0000 (22:14 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 13 Feb 1995 22:14:59 +0000 (22:14 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8943 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/Makefile.in

index b33cbed..0cf3b43 100644 (file)
@@ -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.