Patchwork [AArch64] Make -mcpu, -march and -mtune case-insensitive.

login
register
mail settings
Submitter Alan Lawrence
Date Jan. 17, 2014, 11:12 a.m.
Message ID <1389957169.2087.23.camel@e104536-lin.cambridge.arm.com>
Download mbox | patch
Permalink /patch/312004/
State New
Headers show

Comments

Alan Lawrence - Jan. 17, 2014, 11:12 a.m.
Small patch to make the -mcpu, -march and -mtune command-line options
case-insensitive, allowing e.g. -mcpu=CortexA57 -march=ARMv8-A.

Tested on aarch64-none-elf with no regressions; options passed onto e.g.
ld are always lowercase (as before).

OK for trunk?

--Alan

ChangeLog:
2014-01-17  Alan Lawrence  <alan.lawrence@arm.com>
	* config/aarch64/aarch64.opt (mcpu, march, mtune): Make
case-insensitive.
Richard Earnshaw - Jan. 17, 2014, noon
On 17/01/14 11:12, Alan Lawrence wrote:
> Small patch to make the -mcpu, -march and -mtune command-line options
> case-insensitive, allowing e.g. -mcpu=CortexA57 -march=ARMv8-A.
> 
> Tested on aarch64-none-elf with no regressions; options passed onto e.g.
> ld are always lowercase (as before).
> 
> OK for trunk?
> 
> --Alan
> 
> ChangeLog:
> 2014-01-17  Alan Lawrence  <alan.lawrence@arm.com>
> 	* config/aarch64/aarch64.opt (mcpu, march, mtune): Make
> case-insensitive.
> 

OK.

R.
James Greenhalgh - Jan. 20, 2014, 10:59 a.m.
On Fri, Jan 17, 2014 at 12:00:19PM +0000, Richard Earnshaw wrote:
> On 17/01/14 11:12, Alan Lawrence wrote:
> > Small patch to make the -mcpu, -march and -mtune command-line options
> > case-insensitive, allowing e.g. -mcpu=CortexA57 -march=ARMv8-A.
> > 
> > Tested on aarch64-none-elf with no regressions; options passed onto e.g.
> > ld are always lowercase (as before).
> > 
> > OK for trunk?
> > 
> > --Alan
> > 
> > ChangeLog:
> > 2014-01-17  Alan Lawrence  <alan.lawrence@arm.com>
> > 	* config/aarch64/aarch64.opt (mcpu, march, mtune): Make
> > case-insensitive.
> > 
> 
> OK.
> 
> R.

I've committed this on Alan's behalf as revision 206797.

Thanks,
James

Patch

diff --git a/gcc/config/aarch64/aarch64.opt b/gcc/config/aarch64/aarch64.opt
index 163f34b..f5a15b7 100644
--- a/gcc/config/aarch64/aarch64.opt
+++ b/gcc/config/aarch64/aarch64.opt
@@ -88,15 +88,15 @@  Target RejectNegative Joined Enum(tls_type) Var(aarch64_tls_dialect) Init(TLS_DE
 Specify TLS dialect
 
 march=
-Target RejectNegative Joined Var(aarch64_arch_string)
+Target RejectNegative ToLower Joined Var(aarch64_arch_string)
 -march=ARCH	Use features of architecture ARCH
 
 mcpu=
-Target RejectNegative Joined Var(aarch64_cpu_string)
+Target RejectNegative ToLower Joined Var(aarch64_cpu_string)
 -mcpu=CPU	Use features of and optimize for CPU
 
 mtune=
-Target RejectNegative Joined Var(aarch64_tune_string)
+Target RejectNegative ToLower Joined Var(aarch64_tune_string)
 -mtune=CPU	Optimize for CPU
 
 mabi=