aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2017-04-07 10:11:57 -0600
committerJeff Law <law@gcc.gnu.org>2017-04-07 10:11:57 -0600
commit29d8aae6bdb1fba656e0c4f768743015c96bc238 (patch)
tree8cbcce7780cacc35ebe1392b0958f846c0afcd4b
parent7879aabea75aaa447a6dddeb43cafb756a51388f (diff)
downloadgcc-29d8aae6bdb1fba656e0c4f768743015c96bc238.zip
gcc-29d8aae6bdb1fba656e0c4f768743015c96bc238.tar.gz
gcc-29d8aae6bdb1fba656e0c4f768743015c96bc238.tar.bz2
Makefile.in: Swap definition of LIBGCC_LINKS and inclusion of target makefile fragment.
* 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. From-SVN: r246766
-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 427328d..1dc5469 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 f71d320..6f58fd4 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 46d01a6..10869c4 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