This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch RFA] Disable fortran on some SH targets


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.

2007-11-19  Kaz Kojima  <>

	* (sh-*-*): Add fortran to $unsupported_languages
	except for sh-*-linux* and sh-*-netbsd*.
	* configure: Regenerate.

diff -uprN ORIG/trunk/ LOCAL/trunk/
--- ORIG/trunk/	2007-10-10 09:42:29.000000000 +0900
+++ LOCAL/trunk/	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 / /'` ;;
+    case "${target}" in
+      sh-*-linux*) ;;
+      sh-*-netbsd*) ;;
+      sh-*-*)
+	unsupported_languages="$unsupported_languages fortran";;
+    esac
     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
   sparclet-*-aout* | sparc86x-*-*)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]