]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
tune-corei7.inc: update TUNE_CCARGS -march CPU type corei7 -> nehalem
authorAndre McCurdy <armccurdy@gmail.com>
Thu, 26 Apr 2018 17:57:27 +0000 (10:57 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 4 May 2018 12:28:05 +0000 (13:28 +0100)
commit101c65d59ed9c85ab2cdc8d5ca44a3afb8f00e98
tree3df45901c8ba42f7cbf9712b3e8a24dbb218a34a
parent5c526c37ff54117eaaa0fecc3ac973312e724f1c
tune-corei7.inc: update TUNE_CCARGS -march CPU type corei7 -> nehalem

The gcc "corei7" CPU type was last documented in gcc 4.8.x and has
been undocumented from gcc 4.9.x onwards:

  https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/i386-and-x86-64-Options.html
  https://gcc.gnu.org/onlinedocs/gcc-4.9.4/gcc/i386-and-x86-64-Options.html

Although it still seems to be accepted by gcc 7.x, it's likely to be
deprecated and removed at some point. To preempt that, switch the
corei7 TUNE_CCARGS -march CPU type to "nehalem", which is the closest
replacement (and matches the CPU type already being passed to qemu).

Since the tune-corei7.inc include file is intended to cover a range
of CPUs from Nehalem onwards, switch the TUNE_CCARGS -mtune option
from "corei7" to "generic", which instructs gcc to produce code
optimized for the most common IA32/AMD64/EM64T processors.

(From OE-Core rev: 8d2f51e9b8d5b27fc61d148a6dd5f6ef5715d6e6)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/tune-corei7.inc