From 61ef34c503443dadc0744c5150256b90d138db0a Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Tue, 17 Nov 2020 18:56:15 +0000 Subject: [PATCH] add --with-{cpu,arch,tune}-{32,64} as alias flags for --with-{cpu,arch,tune} gcc/ * config.gcc: add configure flags --with-{cpu,arch,tune}-{32,64} as alias flags for --with-{cpu,arch,tune} on AArch64. * doc/install.texi: Document new flags for aarch64. --- gcc/config.gcc | 20 +++++++++++++++++++- gcc/doc/install.texi | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/gcc/config.gcc b/gcc/config.gcc index 3e8bd76ae13..a328c25238d 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -4083,7 +4083,25 @@ fi supported_defaults= case "${target}" in aarch64*-*-*) - supported_defaults="abi cpu arch tune" + supported_defaults="abi cpu cpu_32 cpu_64 arch arch_32 arch_64 tune tune_32 tune_64" + if test x$with_cpu_64 != x && test x$with_cpu = x; then + with_cpu=$with_cpu_64 + fi + if test x$with_cpu_32 != x && test x$with_cpu = x; then + with_cpu=$with_cpu_32 + fi + if test x$with_arch_64 != x && test x$with_arch = x; then + with_arch=$with_arch_64 + fi + if test x$with_arch_32 != x && test x$with_arch = x; then + with_arch=$with_arch_32 + fi + if test x$with_tune_64 != x && test x$with_tune = x; then + with_tune=$with_tune_64 + fi + if test x$with_tune_32 != x && test x$with_tune = x; then + with_tune=$with_tune_32 + fi for which in cpu arch tune; do eval "val=\$with_$which" base_val=`echo $val | sed -e 's/\+.*//'` diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index ed737d18162..e8fd34c6494 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1371,7 +1371,7 @@ Specify which cpu variant the compiler should generate code for by default. This option is only supported on some targets, including ARC, ARM, i386, M68k, PowerPC, and SPARC@. It is mandatory for ARC@. The @option{--with-cpu-32} and @option{--with-cpu-64} options specify separate default CPUs for -32-bit and 64-bit modes; these options are only supported for i386, +32-bit and 64-bit modes; these options are only supported for aarch64, i386, x86-64, PowerPC, and SPARC@. @item --with-schedule=@var{cpu} -- 2.30.2