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]

Re: sh-elf build failure on mainline]


Andrew Haley schrieb:
> David Ayers writes:
> 
>  > 
>  > Is this a useful configuration?  i.e. should try to:
>  > a) disable the 'java' front-end for sh-elf
>  > b) change the logic of my case statement to evaluate libgcj instead of
>  > enabled_languages
> 
> I don't believe that anyone has ever managed to use the gcj front-end
> without libgcj.  However, it is in theory possible to build them
> separately, so I'm reluctant to disallow building the compiler on its
> own.
> 
> libffi and target-boehm-gc are required by the libgcj runtime, not by
> the gcj front-end.

OK, I'm running this through a native bootstrap on i686-pc-linux-gnu and
a cross build on sh-elf (sh-unknown-elf) simulator.

Here is the plain code for better readability:

# Make sure we only build Boehm's garbage collector if required.
case ,${enable_language},:${enable_objc_gc} in
  *,objc,*:yes)
    # Keep target-boehm-gc if requested for Objective-C.
    ;;
  *)
    # Otherwise remove target-boehm-gc depending on target-libjava.
    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1;
then
      noconfigdirs="$noconfigdirs target-boehm-gc"
    fi
    ;;
esac


OK for mainline (once the builds and complete)?

Cheers,
David
2006-06-15  David Ayers  <d.ayers@inode.at>

	* configure.in:	Add target-boehm-gc to noconfigdirs depending on 
	whether target-libjava is being configured instead of whether the
	java front end is enabled.
	* configure: Regenerate.
	
Index: configure.in
===================================================================
--- configure.in	(Revision 114673)
+++ configure.in	(Arbeitskopie)
@@ -1324,20 +1324,15 @@
 esac])
 
 # Make sure we only build Boehm's garbage collector if required.
-case ,${enable_languages},:${enable_libgcj}:${enable_objc_gc} in
-  *,objc,*:*:yes)
+case ,${enable_language},:${enable_objc_gc} in
+  *,objc,*:yes)
     # Keep target-boehm-gc if requested for Objective-C.
     ;;
-  *,java,*:no:*)
-    # Remove target-boehm-gc if libgcj has been disabled explicitly.
-    noconfigdirs="$noconfigdirs target-boehm-gc"
-    ;;
-  *,java,*:*:*)
-    # Keep target-boehm-gc by default for Java.
-    ;;
   *)
-    # Otherwise remove target-boehm-gc.
-    noconfigdirs="$noconfigdirs target-boehm-gc"
+    # Otherwise remove target-boehm-gc depending on target-libjava.
+    if echo " ${noconfigdirs} " | grep "target-libjava" >/dev/null 2>&1; then
+      noconfigdirs="$noconfigdirs target-boehm-gc"
+    fi
     ;;
 esac
 

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