From 5eb6f9add0b24d3eb117a9ab93cad69a2587ee43 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 13 Sep 2015 08:27:27 +0000 Subject: [PATCH] fix gcc's misdetection of sh as not supporting tls --- patches/gcc-5.2.0/0003-shbitrot.diff | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/patches/gcc-5.2.0/0003-shbitrot.diff b/patches/gcc-5.2.0/0003-shbitrot.diff index 4b3ce76..27cbd68 100644 --- a/patches/gcc-5.2.0/0003-shbitrot.diff +++ b/patches/gcc-5.2.0/0003-shbitrot.diff @@ -9,3 +9,25 @@ supported_defaults="cpu" case "`echo $with_cpu | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ_ abcdefghijklmnopqrstuvwxyz- | sed s/sh/m/`" in "" | m1 | m2 | m2e | m3 | m3e | m4 | m4-single | m4-single-only | m4-nofpu ) +--- gcc-5.2.0.base/gcc/configure.ac 2015-08-11 16:23:36.000000000 +0000 ++++ gcc-5.2.0/gcc/configure.ac 2015-09-13 08:17:31.714972082 +0000 +@@ -3300,7 +3300,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[123456789lbe]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25 +--- gcc-5.2.0.base/gcc/configure 2015-08-11 16:23:35.000000000 +0000 ++++ gcc-5.2.0/gcc/configure 2015-09-13 08:17:42.608304751 +0000 +@@ -23754,7 +23754,7 @@ + tls_first_minor=14 + tls_as_opt="-m64 -Aesame --fatal-warnings" + ;; +- sh-*-* | sh[34]-*-*) ++ sh-*-* | sh[123456789lbe]*-*-*) + conftest_s=' + .section ".tdata","awT",@progbits + foo: .long 25