aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2015-09-13 17:10:54 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2015-09-13 17:10:54 +0000
commit175650bccaea12f90925176e48bbf324ebd4dd50 (patch)
tree74a32b9cfbe24c55e72b0f457a818cbf2837e6f0 /gcc/config.gcc
parent61baec412d978857ae8c34e7e41c532fbeb9921a (diff)
downloadgcc-175650bccaea12f90925176e48bbf324ebd4dd50.zip
gcc-175650bccaea12f90925176e48bbf324ebd4dd50.tar.gz
gcc-175650bccaea12f90925176e48bbf324ebd4dd50.tar.bz2
config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and gr6 as possible values, defaulting to gr5.
* config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and gr6 as possible values, defaulting to gr5. Set target_cpu_default2. * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define. (TARGET_CPU_gr5): Likewise. (TARGET_CPU_gr6): Likewise. (MULTILIB_DEFAULTS): Likewise. * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants for mcpu=gr5 and mcpu=gr6. (MULTILIB_DIRNAMES): Adjust accordingly. From-SVN: r227728
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 5712547..75807f5 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -3346,6 +3346,9 @@ if test x$with_cpu = x ; then
;;
esac
;;
+ visium-*-*)
+ with_cpu=gr5
+ ;;
esac
# Avoid overriding --with-cpu-32 and --with-cpu-64 values.
@@ -4295,6 +4298,16 @@ case "${target}" in
;;
esac
;;
+ visium-*-*)
+ supported_defaults="cpu"
+ case $with_cpu in
+ "" | gr5 | gr6)
+ ;;
+ *) echo "Unknown cpu used in --with-cpu=$with_cpu" 1>&2
+ exit 1
+ ;;
+ esac
+ ;;
esac
# Set some miscellaneous flags for particular targets.
@@ -4449,6 +4462,9 @@ case ${target} in
;;
esac
;;
+ visium-*-*)
+ target_cpu_default2="TARGET_CPU_$with_cpu"
+ ;;
esac
t=