]> code.ossystems Code Review - openembedded-core.git/commit
arm-tunes: Remove -march option if mcpu is already added
authorKhem Raj <raj.khem@gmail.com>
Sun, 27 Jan 2019 20:56:15 +0000 (12:56 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 28 Jan 2019 13:56:15 +0000 (13:56 +0000)
commitac83d22eb5031f7fdd09d34a1a46d92fd3e39a3c
tree5b9953455bcb64305d201fd8f7858012539fc6e4
parent8df14b678e44cc749b361224af05ccbcfa9ae9b5
arm-tunes: Remove -march option if mcpu is already added

tune files which inherit the arch definitions already define appropriate
-mcpu option, which is equivalent of right -march and -mtune combination
and is preferred since gcc is getting stricter and stricter with option
check semantics and can now find incompatible -march and -mcpu options
better with every release. It does internal feature consistency check
and if it finds out discrepency between what -mcpu would expand to as
compared to -march it will flag the options to be incompatible, for
naked eye it sounds wrong but gcc would translate -mcpu to a given
-march internally and it might not match to what we set in these arch
files.

The effects are quite subtle, where this can result in configure test
failing to compile due to these incompatible options and a feature
option getting disabled for a recipe for no reason.

e.g. with gcc9 which can now detect that -mcpu=cortex-a5 and
-march=armv7-a are incompatible, many features in libstdc++ ends up
disabled due to configure check failures e.g. size_t size, ptrdiff_t
sizes, which inturn results in compiling libstdc++ with unwanted
disabled features.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
14 files changed:
meta/conf/machine/include/tune-arm1136jf-s.inc
meta/conf/machine/include/tune-arm920t.inc
meta/conf/machine/include/tune-arm926ejs.inc
meta/conf/machine/include/tune-arm9tdmi.inc
meta/conf/machine/include/tune-cortexa15.inc
meta/conf/machine/include/tune-cortexa17.inc
meta/conf/machine/include/tune-cortexa5.inc
meta/conf/machine/include/tune-cortexa7.inc
meta/conf/machine/include/tune-cortexa8.inc
meta/conf/machine/include/tune-cortexa9.inc
meta/conf/machine/include/tune-ep9312.inc
meta/conf/machine/include/tune-iwmmxt.inc
meta/conf/machine/include/tune-strongarm1100.inc
meta/conf/machine/include/tune-xscale.inc