From patchwork Fri May 24 00:32:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sandra Loosemore X-Patchwork-Id: 246041 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 CCF112C016F for ; Fri, 24 May 2013 10:32:35 +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 :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=eCjy1ZDabDbKSb6S6aB8DBoa0JraKczHxj4chMzVaa/G+M q9A5JKW7uHysq/j71MBXn+a+adf5LYnH2N0p56F5Ir93VZCY9tPcbkfpPUy9/XQ+ zULHNKE5eGMLzZ39r+GFRRTm02fBA5XqzhOZfF/5Xkusa6MRS60N1CUZ4/Rso= 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 :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=rdXqY9XClqDaaulBw+DH0oNeYz0=; b=uNO+epWQ37s+WJsP9TP3 LpSQ7EYyQdQP+NunDsQqYifO5/B+CV7/VRW8vkSxiQxvkVUzvJGGIG21BxDlv4mu V2BpSi/YUfySFk9/04cc0levyCWJkqL7ryL7JtiMbIZ3Ip4oBz/F/yA97pYWVQGk Mv5Yqo+P+o/2oH4GBJq5CK8= Received: (qmail 26287 invoked by alias); 24 May 2013 00:32:28 -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 26277 invoked by uid 89); 24 May 2013 00:32:27 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 24 May 2013 00:32:27 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1Uffvk-0007DW-Uw from Sandra_Loosemore@mentor.com for gcc-patches@gcc.gnu.org; Thu, 23 May 2013 17:32:24 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 23 May 2013 17:32:24 -0700 Received: from [IPv6:::1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Thu, 23 May 2013 17:32:24 -0700 Message-ID: <519EB512.7020108@codesourcery.com> Date: Thu, 23 May 2013 18:32:18 -0600 From: Sandra Loosemore User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: GCC Patches Subject: [patch, powerpc] allow --with-cpu=native when configuring gcc X-Virus-Found: No This is another orphan PowerPC patch from our backlog. On native PowerPC, GCC supports -mcpu=native, to generate code for the same processor flavor that GCC itself is running on. This patch makes it also possible to configure GCC to default to that option. Tested by building GCC with this configure option and build=i686-pc-linux-gnu, host=target=powerpc-linux-gnu, and verifying that the output of running the resulting gcc with --version --verbose looked sane. OK to commit? -Sandra 2013-05-23 Nathan Sidwell Sandra Loosemore gcc/ * config.gcc (powerpc-*): Allow native for with-cpu. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 199270) +++ gcc/config.gcc (working copy) @@ -3535,7 +3535,7 @@ case "${target}" in tm_defines="${tm_defines} CONFIG_PPC405CR" eval "with_$which=405" ;; - "" | common \ + "" | common | native \ | power | power[2345678] | power6x | powerpc | powerpc64 \ | rios | rios1 | rios2 | rsc | rsc1 | rs64a \ | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \