]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[AArch64] add --with-tune configure flag
authorSebastian Pop <spop@amazon.com>
Tue, 17 Nov 2020 16:00:51 +0000 (16:00 +0000)
committerSebastian Pop <spop@amazon.com>
Tue, 17 Nov 2020 22:23:21 +0000 (22:23 +0000)
fixes a configure error on Arm64 when passing --with-tune=... to configure:
```
This target does not support --with-tune.
Valid --with options are: abi cpu arch
```
The missing flag sets target tuning to a different value than generic tuning.

gcc/
* config.gcc: Add --with-tune to AArch64 configure flags.

(cherry picked from commit 04dedd18141ccf42e59f7f5f0abc3b86dd63bdb9)

gcc/config.gcc

index b42ebc4e5be13b465c5688bd69d3db9981865ed2..25ef648c288baa30f41e99e533be097345a19b20 100644 (file)
@@ -4065,9 +4065,8 @@ fi
 supported_defaults=
 case "${target}" in
        aarch64*-*-*)
-               supported_defaults="abi cpu arch"
-               for which in cpu arch; do
-
+               supported_defaults="abi cpu arch tune"
+               for which in cpu arch tune; do
                        eval "val=\$with_$which"
                        base_val=`echo $val | sed -e 's/\+.*//'`
                        ext_val=`echo $val | sed -e 's/[a-z0-9.-]\+//'`