diff options
author | Kyrylo Tkachov <kyrylo.tkachov@arm.com> | 2014-03-12 10:13:07 +0000 |
---|---|---|
committer | Kyrylo Tkachov <ktkachov@gcc.gnu.org> | 2014-03-12 10:13:07 +0000 |
commit | a3cd024676cbf385396d57b6b1f752040a902779 (patch) | |
tree | bbb49b22c63dea0728e5a211db412d6bea21aba5 /gcc/config.gcc | |
parent | c888139c9aee51699484bf7e442b208a962773c8 (diff) | |
download | gcc-a3cd024676cbf385396d57b6b1f752040a902779.zip gcc-a3cd024676cbf385396d57b6b1f752040a902779.tar.gz gcc-a3cd024676cbf385396d57b6b1f752040a902779.tar.bz2 |
[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.
From-SVN: r208508
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 2a3deae..3c55c88 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 ;; |