PATCH: PR target/44046: Intel Core i5 M520 CPU detected as atom with -march=native
H.J. Lu
hjl.tools@gmail.com
Sun May 9 14:47:00 GMT 2010
On Sun, May 9, 2010 at 7:45 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
>> Hi,
>>
>> This patch detects Atom, Core 2 and Core i7, based on CPU family and
>> model. Tested on Atom, Core 2 and Core i7. OK for trunk and 4.5?
>>
>> Thanks.
>>
>>
>> H.J.
>> ---
>> 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
>>
>> PR target/44046
>> * config/i386/driver-i386.c (host_detect_local_cpu): Properly
>> support Atom, Core 2 and Core i7.
>>
>> + case 0x17:
>> + case 0x1d:
>> + /* Penryn. FIXME: -mtune=core2 is slower than -mtune=generic */
>> + cpu = "core2";
>> + break;
>> + case 0x0f:
>> + /* Merom. FIXME: -mtune=core2 is slower than -mtune=generic */
>> + cpu = "core2";
>> + break;
>
> Can you just look through the core2 settings and fix those? It is definitly a bug.
The main problem is there is no scheduler for Core 2. Hopefully, it
will be fixed soon.
> OK.
> Honza
>
--
H.J.
More information about the Gcc-patches
mailing list