aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2004-09-01 16:27:05 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2004-09-01 16:27:05 +0000
commit320785323832777de9ad6161462dbcf3ab27e67f (patch)
tree440e31716559532a2d376dd25f932d9ab25130eb /gcc
parent5f6e6a1c4124fbb8fcd5bb015023432fe5f919d8 (diff)
downloadgcc-320785323832777de9ad6161462dbcf3ab27e67f.zip
gcc-320785323832777de9ad6161462dbcf3ab27e67f.tar.gz
gcc-320785323832777de9ad6161462dbcf3ab27e67f.tar.bz2
config.gcc (--with-cpu on ARM): Preserve the canonical cpu name for use in configargs.h.
* 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. From-SVN: r86903
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config.gcc18
2 files changed, 13 insertions, 11 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 606a214..1218332 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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>
diff --git a/gcc/config.gcc b/gcc/config.gcc
index aee8325..dd07eea 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -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*)