aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2017-04-07 16:11:57 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2017-04-07 16:11:57 +0000
commit726cec5c248f858bdebc7082dfbd9230bb555e03 (patch)
tree8cbcce7780cacc35ebe1392b0958f846c0afcd4b /libgcc
parentc75931b24532bb2eb4c3bee77bae3066bee7af98 (diff)
* Makefile.in: Swap definition of LIBGCC_LINKS and inclusion of
target makefile fragment. * config/sh/t-sh (unwind-dw2-Os-4-200.o): Depend on LIBGCC_LINKS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246766 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/Makefile.in5
-rw-r--r--libgcc/config/sh/t-sh2
3 files changed, 10 insertions, 3 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 427328df0a7..1dc5469cd8c 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-07 Jeff Law <law@redhat.com>
+
+ * Makefile.in: Swap definition of LIBGCC_LINKS and inclusion of
+ target makefile fragment.
+ * config/sh/t-sh (unwind-dw2-Os-4-200.o): Depend on LIBGCC_LINKS.
+
2017-04-07 Alan Modra <amodra@gmail.com>
PR target/45053
diff --git a/libgcc/Makefile.in b/libgcc/Makefile.in
index f71d3203f20..6f58fd451a6 100644
--- a/libgcc/Makefile.in
+++ b/libgcc/Makefile.in
@@ -348,8 +348,6 @@ LIBUNWIND =
SHLIBUNWIND_LINK =
SHLIBUNWIND_INSTALL =
-tmake_file = @tmake_file@
-include $(srcdir)/empty.mk $(tmake_file)
# Create links to files specified in config.host.
LIBGCC_LINKS = enable-execute-stack.c unwind.h md-unwind-support.h \
@@ -366,6 +364,9 @@ sfp-machine.h: $(srcdir)/config/$(sfp_machine_header)
gthr-default.h: $(srcdir)/$(thread_header)
-$(LN_S) $< $@
+tmake_file = @tmake_file@
+include $(srcdir)/empty.mk $(tmake_file)
+
# Collect target defines and headers from config.host.
libgcc_tm_defines = @tm_defines@
libgcc_tm_file = @tm_file@
diff --git a/libgcc/config/sh/t-sh b/libgcc/config/sh/t-sh
index 46d01a64dbd..10869c47c9a 100644
--- a/libgcc/config/sh/t-sh
+++ b/libgcc/config/sh/t-sh
@@ -45,7 +45,7 @@ sdivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.S
$(gcc_compile) -c -DL_sdivsi3_i4i $<
udivsi3_i4i-Os-4-200.o: $(srcdir)/config/sh/lib1funcs-Os-4-200.S
$(gcc_compile) -c -DL_udivsi3_i4i $<
-unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c
+unwind-dw2-Os-4-200.o: $(srcdir)/unwind-dw2.c $(LIBGCC_LINKS)
$(gcc_compile) $(LIBGCC2_CFLAGS) $(vis_hide) -fexceptions -Os -c $<
OBJS_Os_4_200=sdivsi3_i4i-Os-4-200.o udivsi3_i4i-Os-4-200.o unwind-dw2-Os-4-200.o