> -----Original Message-----
> From: Tamar Christina <tamar.christ...@arm.com>
> Sent: 09 July 2020 10:55
> To: gcc-patches@gcc.gnu.org
> Cc: nd <n...@arm.com>; Richard Earnshaw <richard.earns...@arm.com>;
> Marcus Shawcroft <marcus.shawcr...@arm.com>; Kyrylo Tkachov
> <kyrylo.tkac...@arm.com>; Richard Sandiford
> <richard.sandif...@arm.com>
> Subject: [PATCH 2/6] AArch64: Add GCC_CPUINFO override
> 
> Hi All,
> 
> This adds an in intentionally undocumented environment variable
> GCC_CPUINFO which can be used to test -mcpu=native.
> 
> Tests using this are added later on.
> 
> Bootstrapped Regtested on aarch64-none-linux-gnu and no issues.
> 
> Ok for master, GCC 10, 9 and 8?
> 

I like the idea. I'm a bit wary of using a non-aarch64-namespaced name for the 
variable, but it looks like it could be useful for other targets testing if 
they wished to. In any case, as it's internal-only and non-documented we won't 
make any promises on its compatibility.

So ok if the testsuite parts are approved.
Thanks,
Kyrill

> Thanks,
> Tamar
> 
> gcc/ChangeLog:
> 
>       * config/aarch64/driver-aarch64.c (host_detect_local_cpu):
>       Add GCC_CPUINFO.
> 
> --

Reply via email to