summaryrefslogtreecommitdiff
path: root/gcc/config/sh
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-22 16:24:44 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-22 16:24:44 +0000
commite3286780770dae250c7215fe6883cbb245036e4a (patch)
treec60290db63c15613f6dc73ad3a11a7bba82ba844 /gcc/config/sh
parenta7bbef16cf2c4d79b0b9b68bb3fe5c3f70f5c9da (diff)
downloadgcc-e3286780770dae250c7215fe6883cbb245036e4a.tar.gz
* t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
(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
Diffstat (limited to 'gcc/config/sh')
-rw-r--r--gcc/config/sh/embed_bb.c3
-rw-r--r--gcc/config/sh/t-sh9
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/config/sh/embed_bb.c b/gcc/config/sh/embed_bb.c
deleted file mode 100644
index 722b101463c..00000000000
--- a/gcc/config/sh/embed_bb.c
+++ /dev/null
@@ -1,3 +0,0 @@
-#define L_bb
-#undef inhibit_libc
-#include "../../libgcc2.c"
diff --git a/gcc/config/sh/t-sh b/gcc/config/sh/t-sh
index 15433f93b9d..8d5c0728254 100644
--- a/gcc/config/sh/t-sh
+++ b/gcc/config/sh/t-sh
@@ -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.