IBM Z: zTPF: Build libgcc with -mtpf-trace-skip
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 4 Mar 2020 12:29:38 +0000 (13:29 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 4 Mar 2020 12:50:02 +0000 (13:50 +0100)
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
libgcc/config/s390/t-tpf [new file with mode: 0644]

index 4198dc8d95eb00cb721b20bd48599a6d123d3bab..1ff41592337e2fea20ebaaaaeb489e08c723eacc 100644 (file)
@@ -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 (file)
index 0000000..50da223
--- /dev/null
@@ -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