"Pop, Sebastian" <s...@amazon.com> writes: > On 11/19/20, 10:52 AM, "Richard Earnshaw (lists)" <richard.earns...@arm.com> > wrote: >> Having the same option have a completely different meaning would be even >> worse than not having the option at all. So no, that's a non-starter. > > The attached patch 0001 removes --with-{cpu,arch,tune}-32. > Bootstrap and regression testing pass on aarch64-linux. > Ok to commit to trunk and active branches? > > I would like to ping the two patches from Wilco Dijkstra that fix issues in > configure --with-mtune flag: > https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553865.html > https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553866.html > > Please see patches 0002 and 0003 attached, rebased on trunk as of today and > tested with bootstrap and regression testing. > Ok to commit to trunk and all active branches? > > Thanks, > Sebastian > > From f1aa5f45dde8df5eee41ae166176775f5c5f1acc Mon Sep 17 00:00:00 2001 > From: Sebastian Pop <s...@amazon.com> > Date: Thu, 3 Dec 2020 17:35:18 +0000 > Subject: [PATCH 1/3] [AArch64] disable --with-{cpu,arch,tune}-32 > > gcc/ > * config.gcc (aarch64*-*-*): Remove --with-{cpu,arch,tune}-32 flags.
OK, thanks. > ChangeLog: > 2020-09-03 Wilco Dijkstra <wdijk...@arm.com> > > * config.gcc (aarch64*-*-*): Simplify --with-cpu and --with-arch > processing. Add support for architectural extensions. > * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Remove > AARCH64_CPU_DEFAULT_FLAGS. > * config/aarch64/aarch64.c (AARCH64_CPU_DEFAULT_FLAGS): Remove define. > (get_tune_cpu): Assert CPU is always valid. > (get_arch): Assert architecture is always valid. > (aarch64_override_options): Cleanup CPU selection code and simplify > logic. I share Richard E's concern about the effect of this on people who run ./cc1 directly. (And I'm being selfish here, because I regularly run ./cc1 directly on toolchains configured with --with-arch=armv8.2-a+sve.) So TBH my preference would be to keep the TARGET_CPU_DEFAULT_FLAGS stuff. However, if one of the other maintainers strongly thinks this is the right way to go, I'm happy to defer to them. > Add support for --with-tune. Like --with-cpu and --with-arch, the argument is > validated and transformed into a -mtune option to be processed like any other > command-line option. --with-tune has no effect if a -mcpu or -mtune option > is used. The validating code didn't allow --with-cpu=native, so explicitly > allow that. > > Co-authored-by: Delia Burduv <delia.bur...@arm.com> > > Bootstrap OK, regress pass, OK to commit? > > ChangeLog > 2020-09-03 Wilco Dijkstra <wdijk...@arm.com> > > * config.gcc > (aarch64*-*-*): Add --with-tune. Support --with-cpu=native. > * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Add --with-tune. > > 2020-09-03 Wilco Dijkstra <wdijk...@arm.com> > > * gcc/testsuite/lib/target-supports.exp: > (check_effective_target_tune_cortex_a76): New effective target test. > * gcc.target/aarch64/with-tune-config.c: New test. > * gcc.target/aarch64/with-tune-march.c: Likewise. > * gcc.target/aarch64/with-tune-mcpu.c: Likewise. > * gcc.target/aarch64/with-tune-mtune.c: Likewise. OK for this one, thanks. Richard