This is the mail archive of the gcc-patches@gcc.gnu.org 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: disable languages that have target libraries in $noconfigdirs


Can't use those languages anyway without the required target
libs and the size of test_summary results will get > 400k from
all FAILs, so currently I can't post testresults without
resorting to explicit configure parameters (--enable-languages),
which is unclean.

I'll lose libffi test-results for cris-axis-linux-gnu and
cris-elf (a fair trade) but that's an unrelated bug: the
configury framework can't tell the difference between target
libs where the language (front-end) is required to build them
and those that may be usable without that language; they're all
lumped together into "target libs for this language",
$target_libs.  So if java and ada shared a target library
(written in C), you couldn't build one if the other was disabled
for some reason, AFAICT.  Again, that fact is not changed by
this patch, I just happened to notice it when losing
target-libffi.

I see cygwin has target-gperf in noconfigdirs and c++ has it in
target_libs.  That's just wrong; there's nothing there that
requires or uses *target*-gperf, or cygwin users would have
noticed, because they wouldn't have C++ or missing vital
features of g++.  Actually this patch will then shut off c++ for
cygwin.  I'm posting it anyway, and my next patch will remove
target-gperf from c++ config-lang.in.

Tested mmix-knuth-mmixware (diasbles f95 and java; no
target-libfortran), cris-axis-elf (disables java, for example no
target-boehm-gc), cris-axis-linux-gnu (disables java, for
example no target-libjava).  I actually built and regtested too.

Ok to commit?

	* configure.in <lang_frag loop>: Disable langugages that have one
	or more target library in $noconfigdirs.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/configure.in,v
retrieving revision 1.352
diff -p -c -r1.352 configure.in
*** configure.in	4 Jun 2005 22:30:56 -0000	1.352
--- configure.in	5 Jun 2005 22:41:36 -0000
*************** if test -d ${srcdir}/gcc; then
*** 1210,1216 ****
              add_this_lang=no
              ;;
          esac
!         
  	case $add_this_lang in
  	  no)
              # Remove language-dependent dirs.
--- 1210,1226 ----
              add_this_lang=no
              ;;
          esac
! 
! 	# Disable languages that have one or more target library
! 	# in $noconfigdirs.
! 	for target_lib in $target_libs .. ; do
! 	  case " $noconfigdirs " in
! 	    *" $target_lib "*)
! 	      add_this_lang=no
! 	      ;;
! 	  esac
! 	done
! 
  	case $add_this_lang in
  	  no)
              # 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]