diff mbox series

[Committed,2/4] IBM Z: zTPF: Build libgcc with -mtpf-trace-skip

Message ID 20200304131327.79444-2-krebbel@linux.ibm.com
State New
Headers show
Series [Committed,1/4] IBM Z: zTPF: Add tpf trace customization options | expand

Commit Message

Andreas Krebbel March 4, 2020, 1:13 p.m. UTC
libgcc is supposed to be built with the trace skip flags and branch
targets.  Add a zTPF header file fragment and add the -mtpf-trace-skip
option.

libgcc/ChangeLog:

2020-03-04  Andreas Krebbel  <krebbel@linux.ibm.com>

	* config.host: Include the new makefile fragment.
	* config/s390/t-tpf: New file.
---
 libgcc/config.host       | 2 +-
 libgcc/config/s390/t-tpf | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)
 create mode 100644 libgcc/config/s390/t-tpf
diff mbox series

Patch

diff --git a/libgcc/config.host b/libgcc/config.host
index 4198dc8d95e..1ff41592337 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -1301,7 +1301,7 @@  s390x-*-linux*)
 	md_unwind_header=s390/linux-unwind.h
 	;;
 s390x-ibm-tpf*)
-	tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip"
+	tmake_file="${tmake_file} s390/t-crtstuff t-libgcc-pic t-eh-dw2-dip s390/t-tpf"
 	extra_parts="crtbeginS.o crtendS.o"
 	md_unwind_header=s390/tpf-unwind.h
 	;;
diff --git a/libgcc/config/s390/t-tpf b/libgcc/config/s390/t-tpf
new file mode 100644
index 00000000000..50da2239fab
--- /dev/null
+++ b/libgcc/config/s390/t-tpf
@@ -0,0 +1,7 @@ 
+DFP_ENABLE = true
+
+# Override t-slibgcc-elf-ver to export some libgcc symbols with
+# the symbol versions that glibc used.
+SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/s390/libgcc-glibc.ver
+
+HOST_LIBGCC2_CFLAGS += -mlong-double-128 -mtpf-trace-skip