Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/4] Fix march/mcpu conflict on ARM
@ 2014-09-15 21:01 Thomas Petazzoni
  2014-09-15 21:01 ` [Buildroot] [PATCH 1/4] arch: remove BR2_arm920 reference Thomas Petazzoni
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Thomas Petazzoni @ 2014-09-15 21:01 UTC (permalink / raw)
  To: buildroot

Hello,

Here is a set of four patches whose initial aim is to fix the numerous
reports of -mcpu/-march flag conflicts encountered by various users.

The issue is that in arch/Config.in.arm, we specify both a
BR2_GCC_TARGET_CPU value and a BR2_GCC_TARGET_ARCH value for each CPU
core we support. However, not all gcc versions agree on which -march
flag is appropriate for a given -mcpu flag, and then reports annoying
warnings at each file being compiled.

Also, gcc clearly states that passing -mcpu is enough:

  -mcpu=name

  This specifies the name of the target ARM processor. GCC uses this
  name to derive the name of the target ARM architecture (as if
  specified by -march) and the ARM processor type for which to tune
  for performance (as if specified by -mtune).

So there's actually no point in specifying both -mcpu and -march, so
this set of patches removes BR2_GCC_TARGET_ARCH to solve the issue.

Yann, I believe we could revert
2c1dc32647eb308126b0ae80a91988059d39aa7b ("toolchain/external: fix
wrapper by not passing conflicting flags") after merging this patch
series. Do you agree?

Thanks,

Thomas

Thomas Petazzoni (4):
  arch: remove BR2_arm920 reference
  arch: remove BR2_arm10t
  arch: do not distinguish revisions of ARM1136JF-S
  arch: remove BR2_GCC_TARGET_ARCH definitions on ARM

 arch/Config.in.arm | 37 ++-----------------------------------
 1 file changed, 2 insertions(+), 35 deletions(-)

-- 
2.0.0

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2014-09-18 20:12 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-15 21:01 [Buildroot] [PATCH 0/4] Fix march/mcpu conflict on ARM Thomas Petazzoni
2014-09-15 21:01 ` [Buildroot] [PATCH 1/4] arch: remove BR2_arm920 reference Thomas Petazzoni
2014-09-15 21:08   ` Yann E. MORIN
2014-09-18 20:12   ` Peter Korsgaard
2014-09-15 21:01 ` [Buildroot] [PATCH 2/4] arch: remove BR2_arm10t Thomas Petazzoni
2014-09-15 21:13   ` Yann E. MORIN
2014-09-15 21:16     ` Thomas Petazzoni
2014-09-18 20:12   ` Peter Korsgaard
2014-09-15 21:01 ` [Buildroot] [PATCH 3/4] arch: do not distinguish revisions of ARM1136JF-S Thomas Petazzoni
2014-09-15 21:16   ` Benoît Thébaudeau
2014-09-15 21:33   ` Yann E. MORIN
2014-09-15 21:39     ` Thomas Petazzoni
2014-09-15 21:44       ` Benoît Thébaudeau
2014-09-15 21:50         ` Thomas Petazzoni
2014-09-15 22:36           ` Benoît Thébaudeau
2014-09-15 22:02         ` Yann E. MORIN
2014-09-15 22:37           ` Benoît Thébaudeau
2014-09-15 21:48       ` Yann E. MORIN
2014-09-15 21:01 ` [Buildroot] [PATCH 4/4] arch: remove BR2_GCC_TARGET_ARCH definitions on ARM Thomas Petazzoni
2014-09-15 22:09   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox