diff options
author | ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-12 10:13:07 +0000 |
---|---|---|
committer | ktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-03-12 10:13:07 +0000 |
commit | 39543dd443d0298c89fa029cc2d7832d164b2213 (patch) | |
tree | bbb49b22c63dea0728e5a211db412d6bea21aba5 /gcc/config.gcc | |
parent | c2c07119eb5479988b3f1d91f93935894f8b1f7c (diff) | |
download | gcc-39543dd443d0298c89fa029cc2d7832d164b2213.tar.gz |
[AArch64] Fix selection of default CPU options at configure-time
* config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
Do not define target_cpu_default2 to generic.
* config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
* config/aarch64/aarch64.c (aarch64_override_options): Update comment.
* config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208508 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 2a3deaec926..3c55c88af4d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -3396,6 +3396,11 @@ case "${target}" in ${srcdir}/config/aarch64/$def | \ sed -e 's/^[^,]*,[ ]*//' | \ sed -e 's/,.*$//'` + # Extract the architecture flags from aarch64-arches.def + ext_mask=`grep "^$pattern(\"$base_val\"," \ + ${srcdir}/config/aarch64/$def | \ + sed -e 's/)$//' | \ + sed -e 's/^.*,//'` else base_id=`grep "^$pattern(\"$base_val\"," \ ${srcdir}/config/aarch64/$def | \ @@ -4057,10 +4062,8 @@ esac target_cpu_default2= case ${target} in aarch64*-*-*) - if test x$target_cpu_cname = x + if test x"$target_cpu_cname" != x then - target_cpu_default2=TARGET_CPU_generic - else target_cpu_default2=$target_cpu_cname fi ;; |