From patchwork Sat Jul 21 16:04:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Sandoe X-Patchwork-Id: 172445 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]) by ozlabs.org (Postfix) with SMTP id 3CD182C0210 for ; Sun, 22 Jul 2012 02:05:10 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1343491511; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:Content-Type:Content-Transfer-Encoding:Subject: Date:Message-ID:CC:To:MIME-Version:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=MIEasi6Ln+4WggFzyLo9ottaSlI=; b=hSWcUQneIk4E9Cn wYcd6Og/ChyqxuIYPhPSH8Xx2BD3lr66aCrLk2z6yuDnSfe4T86nlUVEtKJ+uvnR IUDZYkRAsYFZJCMJVR/7Xpkyi4MjL+NQbqRcxILSFXvLSbf22c/MSEp/arHSJtAA dZdMagI77oz7SEmPlnsCBpXJkMwo= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Date:Message-ID:CC:To:MIME-Version:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=p0zFNOnmdbqmNw22zCcMzsEGR9qI7P5h5IyvAwTGC9z3WQnSAeU+74CM7yuk+9 wDW506BH9IO9IUDN1sTbYjH1IuPpEUvxCr4L5zVZUmfOs8+5aX+fCPdo41/ckYt3 yBZe+l3Jvv+rwznPBaYcGx1tCmOznKGGKEgGw6UuJvusI=; Received: (qmail 1358 invoked by alias); 21 Jul 2012 16:05:02 -0000 Received: (qmail 1293 invoked by uid 22791); 21 Jul 2012 16:05:00 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 21 Jul 2012 16:04:45 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SscAd-0005jI-TS from Iain_Sandoe@mentor.com ; Sat, 21 Jul 2012 09:04:43 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Sat, 21 Jul 2012 09:04:43 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Sat, 21 Jul 2012 17:04:41 +0100 From: Iain Sandoe Subject: [Patch, build, ppc] allow ppc config "--with-mcpu=native" Date: Sat, 21 Jul 2012 17:04:39 +0100 Message-ID: <929415B8-06E6-4FED-9305-FEBCF9400312@codesourcery.com> CC: Paolo Bonzini To: GCC Patches MIME-Version: 1.0 (Apple Message framework v1084) 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 Hi, The PPC port can handle -mcpu=native. The patch below enables its use at config time, OK for trunk? thanks, Iain gcc: * config.gcc (powerpc*-*-* | rs6000-*-*): Allow 'native' as a valid configured CPU choice. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 189745) +++ gcc/config.gcc (working copy) @@ -3285,7 +3285,7 @@ tm_defines="${tm_defines} CONFIG_PPC405CR" eval "with_$which=405" ;; - "" | common \ + "" | common | native \ | power | power[234567] | power6x | powerpc | powerpc64 \ | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \