]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2020 22:52:13 +0000 (22:52 +0000)
commitd39b686cc5fcc89405ffeb560ea64b5d305b0608
tree1d6569b48b02e122b32425ae3f9b4f4ae17bf253
parentebbb732d7707d3e755dd9760fc292f86253f86b4
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>
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]