[PATCH] Add partial big-endian SH support to gcc/configure.
Robert P. J. Day
rpjday@mindspring.com
Mon Nov 14 18:45:00 GMT 2005
Add some big-endian SH configuration support to the most recent
versions of gcc.
diff -Nru crosstool-0.38/patches/gcc-3.4.4/pr24836-fix.patch crosstool-0.38.new/patches/gcc-3.4.4/pr24836-fix.patch
--- crosstool-0.38/patches/gcc-3.4.4/pr24836-fix.patch 1969-12-31 19:00:00.000000000 -0500
+++ crosstool-0.38.new/patches/gcc-3.4.4/pr24836-fix.patch 2005-11-14 13:38:02.000000000 -0500
@@ -0,0 +1,18 @@
+PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
+
+ The most recent versions of gcc don't take into account building for
+big-endian SH architectures. It's quite likely this case pattern should
+be extended to handle even more SH variations but, for now, this is
+minimally what should be recognized.
+
+--- gcc.old/gcc/configure 2005-11-14 13:15:15.000000000 -0500
++++ gcc/gcc/configure 2005-08-23 22:24:14.000000000 -0400
+@@ -10920,7 +10920,7 @@
+ tls_first_minor=14
+ tls_as_opt="-m64 -Aesame --fatal-warnings"
+ ;;
+- sh-*-* | sh[34]-*-*)
++ sh-*-* | sh[34]-*-* | sh[34]eb-*-*)
+ conftest_s='
+ .section ".tdata","awT",@progbits
+ foo: .long 25
diff -Nru crosstool-0.38/patches/gcc-4.0.0/pr24836-fix.patch crosstool-0.38.new/patches/gcc-4.0.0/pr24836-fix.patch
--- crosstool-0.38/patches/gcc-4.0.0/pr24836-fix.patch 1969-12-31 19:00:00.000000000 -0500
+++ crosstool-0.38.new/patches/gcc-4.0.0/pr24836-fix.patch 2005-11-14 13:38:21.000000000 -0500
@@ -0,0 +1,18 @@
+PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
+
+ The most recent versions of gcc don't take into account building for
+big-endian SH architectures. It's quite likely this case pattern should
+be extended to handle even more SH variations but, for now, this is
+minimally what should be recognized.
+
+--- gcc.old/gcc/configure 2005-11-14 13:15:15.000000000 -0500
++++ gcc/gcc/configure 2005-08-23 22:24:14.000000000 -0400
+@@ -13854,7 +13854,7 @@
+ tls_first_minor=14
+ tls_as_opt="-m64 -Aesame --fatal-warnings"
+ ;;
+- sh-*-* | sh[34]-*-*)
++ sh-*-* | sh[34]-*-* | sh[34]eb-*-*)
+ conftest_s='
+ .section ".tdata","awT",@progbits
+ foo: .long 25
diff -Nru crosstool-0.38/patches/gcc-4.0.1/pr24836-fix.patch crosstool-0.38.new/patches/gcc-4.0.1/pr24836-fix.patch
--- crosstool-0.38/patches/gcc-4.0.1/pr24836-fix.patch 1969-12-31 19:00:00.000000000 -0500
+++ crosstool-0.38.new/patches/gcc-4.0.1/pr24836-fix.patch 2005-11-14 13:38:38.000000000 -0500
@@ -0,0 +1,18 @@
+PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
+
+ The most recent versions of gcc don't take into account building for
+big-endian SH architectures. It's quite likely this case pattern should
+be extended to handle even more SH variations but, for now, this is
+minimally what should be recognized.
+
+--- gcc.old/gcc/configure 2005-11-14 13:15:15.000000000 -0500
++++ gcc/gcc/configure 2005-08-23 22:24:14.000000000 -0400
+@@ -13876,7 +13876,7 @@
+ tls_first_minor=14
+ tls_as_opt="-m64 -Aesame --fatal-warnings"
+ ;;
+- sh-*-* | sh[34]-*-*)
++ sh-*-* | sh[34]-*-* | sh[34]eb-*-*)
+ conftest_s='
+ .section ".tdata","awT",@progbits
+ foo: .long 25
diff -Nru crosstool-0.38/patches/gcc-4.0.2/pr24836-fix.patch crosstool-0.38.new/patches/gcc-4.0.2/pr24836-fix.patch
--- crosstool-0.38/patches/gcc-4.0.2/pr24836-fix.patch 1969-12-31 19:00:00.000000000 -0500
+++ crosstool-0.38.new/patches/gcc-4.0.2/pr24836-fix.patch 2005-11-14 13:38:55.000000000 -0500
@@ -0,0 +1,18 @@
+PR: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24836
+
+ The most recent versions of gcc don't take into account building for
+big-endian SH architectures. It's quite likely this case pattern should
+be extended to handle even more SH variations but, for now, this is
+minimally what should be recognized.
+
+--- gcc.old/gcc/configure 2005-11-14 13:15:15.000000000 -0500
++++ gcc/gcc/configure 2005-08-23 22:24:14.000000000 -0400
+@@ -13876,7 +13876,7 @@
+ tls_first_minor=14
+ tls_as_opt="-m64 -Aesame --fatal-warnings"
+ ;;
+- sh-*-* | sh[34]-*-*)
++ sh-*-* | sh[34]-*-* | sh[34]eb-*-*)
+ conftest_s='
+ .section ".tdata","awT",@progbits
+ foo: .long 25
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list