From patchwork Mon Jun 3 19:16:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 248390 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 6A20C2C008A for ; Tue, 4 Jun 2013 05:16:57 +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:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=Qv9AHiZwlM5WrKoRvQ6F6cKeMCQWdy2Hmjac+/zp5E1FPq+Q2DRcX d+hfo+ojO/tCRtyj32EzR+Li+9ew95p33dq5fzU7vH539mbGvGUCtvayv+ocfPYZ qgVRYqeeyZoMx0BDEVOFoxeAOHgep9BwV0jrHSkq/pXA5bYcbL+F/8= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=fGJWE2Qi93qZJ7MdX+DTGDiWcnc=; b=f6XBH7NJvpszVFo7UQtV H5SpQxzQ9GNM24lnbVVXcG5edENAPvtTuNmLJA4EkbLSIdNvH7QOlxX0j8irct0P ELX6X9V4INcQf4oVKsgxmi0KhTUkcvODn5Jq/41X/e79KM035WNZR6owusWcXTMh 6fUlujpwoXK1Oy2VEwfun3M= Received: (qmail 23088 invoked by alias); 3 Jun 2013 19:16:51 -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 23077 invoked by uid 89); 3 Jun 2013 19:16:51 -0000 X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Mon, 03 Jun 2013 19:16:50 +0000 Received: by mail-wg0-f51.google.com with SMTP id b13so3591562wgh.30 for ; Mon, 03 Jun 2013 12:16:48 -0700 (PDT) X-Received: by 10.180.105.231 with SMTP id gp7mr14369339wib.23.1370287008498; Mon, 03 Jun 2013 12:16:48 -0700 (PDT) Received: from localhost ([2.26.203.247]) by mx.google.com with ESMTPSA id fz8sm25563005wib.2.2013.06.03.12.16.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Jun 2013 12:16:47 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: Remove redundant target_cpu_default settings Date: Mon, 03 Jun 2013 20:16:46 +0100 Message-ID: <874ndf9f8h.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Some (but not all) 64-bit MIPS configurations were setting target_cpu_default to MASK_64BIT|MASK_FLOAT64. This has been redundant for a long time. The masks are now derived from the ABI and ISA settings, and also aren't tested directly in preprocessor conditions (such as those used when setting up the default multilibs). This patch removes them. Tested on mips64-elf and applied. Richard gcc/ * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*) (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*) (mips64orion-*-elf*, mips64orionel-*-elf*): Remove target_cpu_default setting. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc 2013-06-03 20:11:08.037638775 +0100 +++ gcc/config.gcc 2013-06-03 20:11:09.766655898 +0100 @@ -1928,13 +1928,11 @@ mipsisa64r2-*-elf* | mipsisa64r2el-*-elf mipsisa64sr71k-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" tmake_file=mips/t-sr71k - target_cpu_default="MASK_64BIT|MASK_FLOAT64" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sr71000\\\" MIPS_ABI_DEFAULT=ABI_EABI" ;; mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" tmake_file="mips/t-elf mips/t-sb1" - target_cpu_default="MASK_64BIT|MASK_FLOAT64" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64 MIPS_CPU_STRING_DEFAULT=\\\"sb1\\\" MIPS_ABI_DEFAULT=ABI_O64" ;; mips-*-elf* | mipsel-*-elf*) @@ -1944,7 +1942,6 @@ mips-*-elf* | mipsel-*-elf*) mips64-*-elf* | mips64el-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elf.h" tmake_file="mips/t-elf" - target_cpu_default="MASK_64BIT|MASK_FLOAT64" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" ;; mips64vr-*-elf* | mips64vrel-*-elf*) @@ -1955,7 +1952,6 @@ mips64vr-*-elf* | mips64vrel-*-elf*) mips64orion-*-elf* | mips64orionel-*-elf*) tm_file="elfos.h newlib-stdint.h ${tm_file} mips/elforion.h mips/elf.h" tmake_file="mips/t-elf" - target_cpu_default="MASK_64BIT|MASK_FLOAT64" tm_defines="${tm_defines} MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64" ;; mips*-*-rtems*)