diff mbox

[i386] : Fix cache detection for -march=native

Message ID CAFULd4Yud5a7iEqD=f9-ZN3A5E5nGeyCo7KrOO7+B9=RsE=qLA@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak July 7, 2013, 7:10 p.m. UTC
Hello!

I didn't notice that TM2 target has the same ebx signature as Intel
target, so detect_caches_amd was also used for Intel processors.
Attached patch fixes this problem by removing Transmeta signature.

2013-07-07  Uros Bizjak  <ubizjak@gmail.com>

        * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
        signature_TM2_ebx, it interferes with signature_INTEL_ebx.

Tested on x86_64-pc-linux-gnu and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: config/i386/driver-i386.c
===================================================================
--- config/i386/driver-i386.c	(revision 200743)
+++ config/i386/driver-i386.c	(working copy)
@@ -520,8 +520,7 @@  const char *host_detect_local_cpu (int argc, const
       if (vendor == signature_AMD_ebx
 	  || vendor == signature_CENTAUR_ebx
 	  || vendor == signature_CYRIX_ebx
-	  || vendor == signature_NSC_ebx
-	  || vendor == signature_TM2_ebx)
+	  || vendor == signature_NSC_ebx)
 	cache = detect_caches_amd (ext_level);
       else if (vendor == signature_INTEL_ebx)
 	{