add --with-{cpu,arch,tune}-{32,64} as alias flags for --with-{cpu,arch,tune}
authorSebastian Pop <spop@amazon.com>
Tue, 17 Nov 2020 18:56:15 +0000 (18:56 +0000)
committerSebastian Pop <spop@amazon.com>
Tue, 17 Nov 2020 22:16:04 +0000 (22:16 +0000)
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
gcc/doc/install.texi

index 3e8bd76..a328c25 100644 (file)
@@ -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/\+.*//'`
index ed737d1..e8fd34c 100644 (file)
@@ -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}