tune-core2: Replace -mtune=generic with -mtune=core2
authorDarren Hart <dvhart@linux.intel.com>
Fri, 17 Jan 2014 22:25:49 +0000 (22:25 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 Jan 2014 00:50:53 +0000 (00:50 +0000)
commit705794c22fcbad1012381f8816b4f0278adf3057
treeaee7f71126937f8718a3ff02ba3382e9b8394631
parentfc4c949d8d125bc75f54cb9016440016bad96a13
tune-core2: Replace -mtune=generic with -mtune=core2

-march specifies which ISA to use. -mtune specifies which cpu-type to
optimize instruction ordering for, but not which ISA to use. There are
times when it may make sense to specify mtune=generic and use a more
specific march, such as core2, but the opposite makes little sense at
all: use cpu-type specific ISA, but order the instructions
generically. While the -mtune is implied by -march, gcc does not verify
it is using -mtune=core2 with:

    gcc -Q -march=core2 --help=target

Explicitly specify -mtune=core2 to be sure.

Add a comment header describing the CPUs targeted by this tune file.

(From OE-Core rev: 4cd33193b2db6c281275db2fb5cc169181955217)

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/tune-core2.inc