OSDN Git Service

* mklibgcc.in: Restrict OLDCC=GCC test to native. Equate
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 May 2000 21:00:49 +0000 (21:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 May 2000 21:00:49 +0000 (21:00 +0000)
        LIBGCC1 empty with libgcc1.null.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33644 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/mklibgcc.in

index d891f18..a652f79 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-03  Richard Henderson  <rth@cygnus.com>
+
+       * mklibgcc.in: Restrict OLDCC=GCC test to native.  Equate
+       LIBGCC1 empty with libgcc1.null.
+
 Wed May  3 12:55:46 2000  Jim Wilson  <wilson@cygnus.com>
 
        * fold-const.c (extract_muldiv, case MAX_EXPR): Don't allow signedness
index be9e875..bcec536 100644 (file)
@@ -33,16 +33,18 @@ echo
 # is not needed.  This is not quite the same as libgcc1.null, even
 # on a target not using libgcc1-asm.a.
 
-tmp="tmp-$$.c"
-cat > $tmp <<EOF
+if [ "@build_canonical@" = "@target@" ]; then
+  tmp="tmp-$$.c"
+  cat > $tmp <<EOF
 #ifdef __GNUC__
   yes;
 #endif
 EOF
-if $OLDCC -E $tmp | grep yes > /dev/null 2>&1; then
-  LIB1FUNCS=""
+  if $OLDCC -E $tmp | grep yes > /dev/null 2>&1; then
+    LIB1FUNCS=""
+  fi
+  rm -f $tmp
 fi
-rm -f $tmp
 
 
 #
@@ -112,15 +114,15 @@ fpbit_c_dep='$(srcdir)/config/fp-bit.c config.status tsystem.h'
 
 libgcc1_objs=""
 
-case "$LIBGCC1" in
-  libgcc1.null)
+case X"$LIBGCC1" in
+  Xlibgcc1.null | X)
     ;;
 
-  libgcc1.cross)
+  Xlibgcc1.cross)
     echo "You must find a way to make libgcc1 components yourself" 1>&2
     ;;
 
-  libgcc1-asm.a)
+  Xlibgcc1-asm.a)
     for name in $LIB1ASMFUNCS; do
       for ml in $MULTILIBS; do
         dir=`echo ${ml} | sed -e 's/;.*$//'`
@@ -135,7 +137,7 @@ case "$LIBGCC1" in
     done
     ;;
 
-  *)
+  Xlibgcc.a)
     for name in $LIB1FUNCS; do
       out="libgcc/${name}${objext}"
 
@@ -157,6 +159,10 @@ case "$LIBGCC1" in
       libgcc1_objs="$libgcc1_objs ${name}${objext}"
     done
     ;;
+  *)
+    echo "I'm confused about libgcc1." 1>&2
+    exit 1
+    ;;
 esac
 
 #