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]

[RFA:] toplevel/ (unsupported_languages): New macro.

The CRIS and MMIX config bits serve as an example.  There is no
documentation on noconfigdirs, so I'm not adding any for
unsupported_languages either; there is no apparent location for
documentation of the toplevel macros (as opposed to
gcc/doc/sourcebuild.texi for the lang fragments.)

Tested by configuring for cris-axis-elf, cris-axis-aout,
cris-axis-linux-gnu, mmix-knuth-mmixware, i686-pc-cygwin, (native)
i686-pc-linux-gnu and observing the matching informational lib and
lang messages from the configure script.

	* (unsupported_languages): New macro.
	<cris-*, crisv32-*, mmix-knuth-mmixware>: Set
	<lang_frag loop>: Set add_this_lang=no in the language is in
	* configure: Regenerate.

RCS file: /cvs/gcc/gcc/,v
retrieving revision 1.352
diff -p -c -u -p -r1.352
cvs diff: conflicting specifications of output style
---	4 Jun 2005 22:30:56 -0000	1.352
+++	6 Jun 2005 21:47:12 -0000
@@ -257,6 +257,10 @@ case "${host}" in
     configdirs="$configdirs libtermcap" ;;
+# A target can indicate whether a language isn't supported for some reason.
+# Only spaces may be used in this macro; not newlines or tabs.
 # Remove more programs from consideration, based on the host or 
 # target this usually means that a port of the program doesn't
 # exist yet.
@@ -481,15 +485,18 @@ case "${target}" in
     noconfigdirs="$noconfigdirs target-libstdc++-v3 target-libgloss ${libgcj} gcc gdb newlib"
   cris-*-* | crisv32-*-*)
-    libgcj_ex_libffi=`echo ${libgcj} | sed -e 's/target-libffi//'`
+    unsupported_languages="$unsupported_languages java"
     case "${target}" in
-	noconfigdirs="$noconfigdirs ${libgcj}";;
+	unsupported_languages="$unsupported_languages f95"
+	noconfigdirs="$noconfigdirs ${libgcj} target-libgfortran";;
-	noconfigdirs="$noconfigdirs ${libgcj_ex_libffi}";;
+	unsupported_languages="$unsupported_languages f95"
+	noconfigdirs="$noconfigdirs target-libjava target-boehm-gc target-libgfortran";;
-	noconfigdirs="$noconfigdirs ${libgcj_ex_libffi} target-newlib target-libgloss";;
+	noconfigdirs="$noconfigdirs target-libjava target-newlib target-libgloss";;
+	unsupported_languages="$unsupported_languages f95"
 	noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss";;
@@ -640,6 +647,7 @@ case "${target}" in
     noconfigdirs="$noconfigdirs ${libgcj} gdb libgloss target-libgfortran"
+    unsupported_languages="$unsupported_languages f95 java"
     noconfigdirs="$noconfigdirs ${libgcj}"
@@ -1210,7 +1218,14 @@ if test -d ${srcdir}/gcc; then
+	# Disable a language that is unsupported by the target.
+	case " $unsupported_languages " in
+	  *" $language "*)
+	    add_this_lang=no
+	    ;;
+	esac
 	case $add_this_lang in
             # Remove language-dependent dirs.

brgds, H-P

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