From patchwork Sun Jul 7 19:10:34 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 257383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 9AD882C009D for ; Mon, 8 Jul 2013 05:10:49 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=I04fD/61wAwVUyB9gc48H2rE1FlZb6M5nhhhNYYTH7834C agnS2nRWcAIywvb59YQzGJtFP3p4l2yjDlpmZxqE2Dy/B4eanPEwVr7tc5rJl9gM tsy1kyfMmRDHWBn4i+TfES8h8cwpD57Hr/Yf3Mas/VJ6cTtkX/VZQJUReCeTU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:content-type; s= default; bh=Iv4xsmrih8NZs0lZ/tz3n42LfAQ=; b=cMehyn3ZZI4iL7eahOcJ LqdbpJ/eP8Jrdjc4HKble5z4kJVxD8IjhoOsSO2bLdv30BLJFcLo+nUdAqRjH9B6 Cei1uTRr07r51AObAKyDlczJ9ue6FpNUk0+YerbCg0IF1zOuXiNEFx/fR4dNSm2U +AB/60wBuxarOyanxRvaM9U= Received: (qmail 3961 invoked by alias); 7 Jul 2013 19:10:42 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 3924 invoked by uid 89); 7 Jul 2013 19:10:36 -0000 X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS, TW_EB, TW_ZJ autolearn=ham version=3.3.1 Received: from mail-ob0-f174.google.com (HELO mail-ob0-f174.google.com) (209.85.214.174) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sun, 07 Jul 2013 19:10:36 +0000 Received: by mail-ob0-f174.google.com with SMTP id wd20so4690411obb.19 for ; Sun, 07 Jul 2013 12:10:34 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.62.238 with SMTP id b14mr17963103oes.90.1373224234427; Sun, 07 Jul 2013 12:10:34 -0700 (PDT) Received: by 10.182.92.202 with HTTP; Sun, 7 Jul 2013 12:10:34 -0700 (PDT) Date: Sun, 7 Jul 2013 21:10:34 +0200 Message-ID: Subject: [PATCH, i386]: Fix cache detection for -march=native From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" X-Virus-Found: No 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 * 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. 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) {