]> code.ossystems Code Review - openembedded-core.git/commit
gcc: Add patch to resolve i*86 tune configuration overrides
authorNathan Rossi <nathan@nathanrossi.com>
Tue, 15 Dec 2020 08:34:58 +0000 (08:34 +0000)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 28 Dec 2020 01:53:26 +0000 (09:53 +0800)
commit5ce0102ca75754f0a7c777505678677cdf2a62bc
treea7386f2802c7df7e2c413ae8ed980fbb592cca25
parent7fa9d5719aa02a9baa4f389c2d24f5de8939f46b
gcc: Add patch to resolve i*86 tune configuration overrides

When compiling gcc-runtime for i686 libatomic, libgomp and libitm are
compiled with additional '-march' and '-mtune' overrides. This typically
does not cause build errors (e.g. core2-32 tune), and results in less
optimally tuned outputs. However with specific TUNE_CCARGS (e.g. has
'-mfpmath=sse' but not '-msse*'), the build errors with conflicting
'-mfpmath' options.

This is caused by gcc-runtime specific configure scripts and Makefile
options that override by adding additional '-march'/'-mtune' args. OE
builds gcc-runtime differently to other build systems, and provides
target specific arch/tune options directly. As such, this change adds a
patch for gcc to remove the specific cases where the args are added.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d39b686cc5fcc89405ffeb560ea64b5d305b0608)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-devtools/gcc/gcc-10.2.inc
meta/recipes-devtools/gcc/gcc/0001-lib-Remove-i-86-march-overrides.patch [new file with mode: 0644]