* t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2002 16:24:44 +0000 (16:24 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 22 May 2002 16:24:44 +0000 (16:24 +0000)
(embed-bb.c): New rule.
* config/sh/embed_bb.c: Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53737 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/sh/embed_bb.c [deleted file]
gcc/config/sh/t-sh

index 6085256..7ef5402 100644 (file)
@@ -1,3 +1,9 @@
+Wed May 22 17:08:48 2002  J"orn Rennecke <joern.rennecke@superh.com>
+
+       * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
+       (embed-bb.c): New rule.
+       * config/sh/embed_bb.c: Delete.
+
 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (*andorqi3): New.
diff --git a/gcc/config/sh/embed_bb.c b/gcc/config/sh/embed_bb.c
deleted file mode 100644 (file)
index 722b101..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#define L_bb
-#undef inhibit_libc
-#include "../../libgcc2.c"
index 15433f9..8d5c072 100644 (file)
@@ -3,7 +3,14 @@ LIB1ASMFUNCS = _ashiftrt _ashiftrt_n _ashiftlt _lshiftrt _movstr \
   _movstr_i4 _mulsi3 _sdivsi3 _sdivsi3_i4 _udivsi3 _udivsi3_i4 _set_fpscr \
   $(LIB1ASMFUNCS_CACHE)
 
-LIB2FUNCS_EXTRA=$(srcdir)/config/sh/embed_bb.c
+LIB2FUNCS_EXTRA=embed-bb.c
+
+embed-bb.c: $(srcdir)/libgcc2.c
+       echo '#ifdef inhibit_libc' > $@
+       echo '#define L_bb' >> $@
+       echo '#undef inhibit_libc' >> $@
+       cat $< >> $@
+       echo '#endif' >> $@
 
 # We want fine grained libraries, so use the new code to build the
 # floating point emulation libraries.