OSDN Git Service

* config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 16:27:05 +0000 (16:27 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Sep 2004 16:27:05 +0000 (16:27 +0000)
for use in configargs.h.  Put the cname in a separate variable.  Use
that to set target_cpu_default2.

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

gcc/ChangeLog
gcc/config.gcc

index 606a214..1218332 100644 (file)
@@ -1,3 +1,9 @@
+2004-09-01  Richard Earnshaw  <rearnsha@arm.com>
+
+       * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
+       for use in configargs.h.  Put the cname in a separate variable.  Use
+       that to set target_cpu_default2.
+
 2004-09-01  J"orn Rennecke <joern.rennecke@superh.com>
            Nick Clifton  <nickc@redhat.com>
 
index aee8325..dd07eea 100644 (file)
@@ -2274,7 +2274,7 @@ fi
                                ${srcdir}/config/arm/arm-cores.def | \
                                sed -e 's/^[^,]*,[      ]*//' | \
                                sed -e 's/,.*$//'`
-                         eval "with_$which=$new_val"
+                         eval "target_${which}_cname=$new_val"
                        echo "For $val real value is $new_val"
                          true
                        else
@@ -2557,16 +2557,12 @@ fi
                ;;
 
        arm*-*-*)
-               case "x$with_cpu" in
-               x)
-                       # The most generic
-                       target_cpu_default2="TARGET_CPU_generic"
-                       ;;
-
-               *)
-                       target_cpu_default2="TARGET_CPU_$with_cpu"
-                       ;;
-               esac
+               if test x$target_cpu_cname = x
+               then
+                       target_cpu_default2=TARGET_CPU_generic
+               else
+                       target_cpu_default2=TARGET_CPU_$target_cpu_cname
+               fi
                ;;
 
        m68k*-linux*)