re PR driver/54210 (gcc unable to detect -mprfchw flag in bulldozer machines)
authorGanesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
Mon, 13 Aug 2012 13:21:41 +0000 (13:21 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 13 Aug 2012 13:21:41 +0000 (15:21 +0200)
commit9006f7f325461dff15a5adaa577b36b789eab2a0
treee2b80c28b51aa8266a3d2f545b8a111500fe955c
parent755a1ca535ebd8f999ef9197254343dde3668e2f
re PR driver/54210 (gcc unable to detect -mprfchw flag in bulldozer machines)

PR driver/54210
* config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
* config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
0x80000001 %ecx flags.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r190345
gcc/ChangeLog
gcc/config/i386/cpuid.h
gcc/config/i386/driver-i386.c