From 0993851dc131608a49da294a9ca7dd102df349ab Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Wed, 4 Mar 2020 13:29:38 +0100 Subject: [PATCH] IBM Z: zTPF: Build libgcc with -mtpf-trace-skip 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 * 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 --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 -- 2.30.2