This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch RFA] Disable fortran on some SH targets
- From: Kaz Kojima <kkojima at rr dot iij4u dot or dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Nov 2007 09:08:13 +0900 (JST)
- Subject: [patch RFA] Disable fortran on some SH targets
Hi,
Some SH targets have "short double" cases in their multilibs.
As discussed in the trail of PR 34040, fortran doesn't work
well for such cases. The appended patch disables fortran
for sh-*-* except for sh-*-{linux,netbsd}*.
Tested for sh-elf on the combined tree and sh-unknown-linux-gnu
on trunk. It's tested also with i686-pc-linux-gnu bootstrap.
Ok to commit? Without it, sh-elf fails to build unless disabling
fortran with --enable-languages. I ask this because the PR isn't
a regression in a usual sense.
Regards,
kaz
--
2007-11-19 Kaz Kojima <kkojima@gcc.gnu.org>
* configure.ac (sh-*-*): Add fortran to $unsupported_languages
except for sh-*-linux* and sh-*-netbsd*.
* configure: Regenerate.
diff -uprN ORIG/trunk/configure.ac LOCAL/trunk/configure.ac
--- ORIG/trunk/configure.ac 2007-10-10 09:42:29.000000000 +0900
+++ LOCAL/trunk/configure.ac 2007-11-18 18:15:44.000000000 +0900
@@ -821,6 +821,12 @@ case "${target}" in
i[[3456789]]86-*-msdosdjgpp*) ;; # don't add gprof back in
*) skipdirs=`echo " ${skipdirs} " | sed -e 's/ gprof / /'` ;;
esac
+ case "${target}" in
+ sh-*-linux*) ;;
+ sh-*-netbsd*) ;;
+ sh-*-*)
+ unsupported_languages="$unsupported_languages fortran";;
+ esac
noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
sparclet-*-aout* | sparc86x-*-*)