]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* configure.host: Backport/synchronize from mainline.
authorRoger Sayle <roger@eyesopen.com>
Sun, 21 Dec 2003 16:01:27 +0000 (16:01 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 21 Dec 2003 16:01:27 +0000 (16:01 +0000)
From-SVN: r74909

boehm-gc/ChangeLog
boehm-gc/configure.host

index 9107454e13f07b717ff90629aa6ec3527ce2293a..c409bd20317bac9fd6bf137ddf4deb6bf11d4998 100644 (file)
@@ -1,3 +1,7 @@
+2003-12-21  Roger Sayle  <roger@eyesopen.com>
+
+       * configure.host: Backport/synchronize from mainline.
+
 2003-10-16  Release Manager
 
        * GCC 3.3.2 Released.
index da2b5b31a0e9c1a91d60f94003da3e839dbac233..a98a0a7cb30cc48a0035ac6b2fa4954b6542cf31 100644 (file)
 #   host               The configuration host
 #   host_cpu           The configuration host CPU
 #   target_optspace    --enable-target-optspace ("yes", "no", "")
+#   GCC                 should be "yes" if using gcc
 
 # It sets the following shell variables:
 #   gc_cflags  Special CFLAGS to use when building
 
+gc_cflags=""
+
 # We should set -fexceptions if we are using gcc and might be used
 # inside something like gcj.  This is the zeroth approximation:
-case "$host" in 
-    *-*-linux* )
-    gc_cflags=-fexceptions
-    ;;
-    *-*-hpux* )
-    gc_cflags=+ESdbgasm
-    ;;
-esac
+if test :"$GCC": = :yes: ; then
+    gc_cflags="${gc_cflags} -fexceptions"
+else
+    case "$host" in 
+        hppa*-*-hpux* )
+       if test :$GCC: != :"yes": ; then
+            gc_cflags="${gc_flags} +ESdbgasm"
+       fi
+        # :TODO: actaully we should check using Autoconf if
+        #     the compiler supports this option.
+        ;;
+    esac
+fi
 
 case "${target_optspace}:${host}" in
   yes:*)
@@ -46,7 +54,7 @@ esac
 
 case "${host}" in
   mips-tx39-*|mipstx39-unknown-*)
-       boehm_gc_cflags="${boehm_gc_cflags} -G 0"
+       gc_cflags="${gc_cflags} -G 0"
        ;;
   *)
        ;;