Skip to contentSkip to conversation

ARM: OMAP: armv7a Makefile: change -march flag to "armv7-a" so gcc 4.3.x works

PATCH In review Koen Kooi 3 participants 3 messages Jun 13, 2008 – Jun 16, 2008 Arm (32-bit)

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/1 ARM: OMAP: armv7a Makefile: change -march flag to "armv7-a" so gcc 4.3.x works

armv7a Makefile: change -march flag to "armv7-a" so gcc 4.3.x works, "armv7a" is a CSL-ism. CSL compilers accept both variants.

Tested with: gcc 4.2.4, 4.3.0, 4.3.1 and csl 2007q3, 2008q1

---
 arch/arm/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/Makefile +1 -1
index 40a0b44..a3befbd 100644
@@ -47,7 +47,7 @@ comma = ,
 # Note that GCC does not numerically define an architecture version
 # macro, but instead defines a whole series of macros which makes
 # testing for a specific architecture or later rather impossible.
-arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7a,-march=armv5t -Wa$(comma)-march=armv7a)
+arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
 arch-$(CONFIG_CPU_32v6)		:=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
 # Only override the compiler option if ARMv6. The ARMv6K extensions are
 # always available in ARMv7
Signature · 1 line
1.5.4.3
#1 lore raw
Quoted 3 lines · Koen Kooi

armv7a Makefile: change -march flag to "armv7-a" so gcc 4.3.x works, "armv7a" is a CSL-ism. CSL compilers accept both variants.

Tested with: gcc 4.2.4, 4.3.0, 4.3.1 and csl 2007q3, 2008q1

Can you please post this to [email protected] mailing list?

Thanks,

Tony

Quoted 26 lines
---
 arch/arm/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/Makefile +1 -1
index 40a0b44..a3befbd 100644
@@ -47,7 +47,7 @@ comma = ,
 # Note that GCC does not numerically define an architecture version
 # macro, but instead defines a whole series of macros which makes
 # testing for a specific architecture or later rather impossible.
-arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7a,-march=armv5t -Wa$(comma)-march=armv7a)
+arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc-option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
 arch-$(CONFIG_CPU_32v6)		:=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)
 # Only override the compiler option if ARMv6. The ARMv6K extensions are
 # always available in ARMv7
Signature · 6 lines
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 16 jun 2008, om 15:25 heeft Tony Lindgren het volgende geschreven:

Quoted 7 lines · Koen Kooi
Quoted 3 lines

armv7a Makefile: change -march flag to "armv7-a" so gcc 4.3.x works, "armv7a" is a CSL-ism. CSL compilers accept both variants.

Tested with: gcc 4.2.4, 4.3.0, 4.3.1 and csl 2007q3, 2008q1

Can you please post this to [email protected] mailing list?

Done

Quoted 30 lines

Thanks,

Tony

Quoted 24 lines

---
arch/arm/Makefile | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/Makefile +1 -1
index 40a0b44..a3befbd 100644
@@ -47,7 +47,7 @@ comma = ,
 # Note that GCC does not numerically define an architecture version
 # macro, but instead defines a whole series of macros which makes
 # testing for a specific architecture or later rather impossible.
-arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc- 
 option,-march=armv7a,-march=armv5t -Wa$(comma)-march=armv7a)
+arch-$(CONFIG_CPU_32v7)		:=-D__LINUX_ARM_ARCH__=7 $(call cc- 
 option,-march=armv7-a,-march=armv5t -Wa$(comma)-march=armv7-a)
 arch-$(CONFIG_CPU_32v6)		:=-D__LINUX_ARM_ARCH__=6 $(call cc-option,-march=armv6,-march=armv5t -Wa$(comma)-march=armv6)

# Only override the compiler option if ARMv6. The ARMv6K extensions are

# always available in ARMv7
Signature · 1 line
1.5.4.3
Quoted 5 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFIVm+vMkyGM64RGpERAt1mAJ400FDTLIzjWaWiZv2dWT168gdL9QCdGoBB u8JiNBxzKHzeOZ6NgkKFRMw=
=iy5d
-----END PGP SIGNATURE-----