From patchwork Tue Jun 23 18:27:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 487761 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5AC8514012C for ; Wed, 24 Jun 2015 04:27:27 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=GJe4PeHc; dkim-atps=neutral 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=owwAjqHHoNLLTQYLOEQK9LYwJS5DSMFDtxiqXf6LZ1FszE+8NAIAe /R3dBsCklNdp4mJ+hOw3MW2Dek85pVNZBEW2yIV73Lt5wd05Gk5v/K3Bb8mFovPH UPNOQMgQJUL6m0/5j6vjbhhq9i2a7Lgvc+5yi3XY87KpaByCF+db2I= 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=lxzT4FTpIe4no5B54Tzsnwgu8/s=; b=GJe4PeHcdH3JkJoFYIyC Lmhx6EGpwm8QkHfu/4PqvWh3bPTP4w3sFEcpZXsHLx6wjXVRO60doopWNGK+pxKJ EPdJekPE4egcZefKHD+lsDGPxMh5LuoHWFQAz7jGnF1LEY4JVOb8XpyDJqrdVlAp 8nOVQMvQi0LtNxhEOIIkgCc= Received: (qmail 20446 invoked by alias); 23 Jun 2015 18:27:18 -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 20430 invoked by uid 89); 23 Jun 2015 18:27:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL, BAYES_50, FREEMAIL_FROM, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-wi0-f178.google.com Received: from mail-wi0-f178.google.com (HELO mail-wi0-f178.google.com) (209.85.212.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 23 Jun 2015 18:27:15 +0000 Received: by wibdq8 with SMTP id dq8so25123562wib.1 for ; Tue, 23 Jun 2015 11:27:12 -0700 (PDT) X-Received: by 10.194.59.212 with SMTP id b20mr21333301wjr.31.1435084032838; Tue, 23 Jun 2015 11:27:12 -0700 (PDT) Received: from localhost ([95.144.14.193]) by mx.google.com with ESMTPSA id a9sm502983wiv.13.2015.06.23.11.27.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Jun 2015 11:27:12 -0700 (PDT) From: Richard Sandiford To: gcc-patches@gcc.gnu.org Mail-Followup-To: gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Subject: [committed] Remove bogus target-def.h includes Date: Tue, 23 Jun 2015 19:27:11 +0100 Message-ID: <87r3p2gu0w.fsf@googlemail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 target-def.h should only be included by files that want to initialise targetm. This patch removes unnecessary includes for other files. Bootstrapped & regression-tested on x86_64-linux-gnu. Also tested with config-list.mk. Applied as obvious. Thanks, Richard gcc/c-family/ * c-common.c: Don't include target-def.h. gcc/ * df-scan.c: Don't include target-def.h. * targhooks.c: Likewise. * config/arm/arm-c.c: Likewise. * config/i386/i386-c.c: Likewise. * config/nds32/nds32-cost.c: Likewise. * config/nds32/nds32-fp-as-gp.c: Likewise. * config/nds32/nds32-intrinsic.c: Likewise. * config/nds32/nds32-isr.c: Likewise. * config/nds32/nds32-md-auxiliary.c: Likewise. * config/nds32/nds32-memory-manipulation.c: Likewise. * config/nds32/nds32-pipelines-auxiliary.c: Likewise. * config/nds32/nds32-predicates.c: Likewise. Index: gcc/c-family/c-common.c =================================================================== --- gcc/c-family/c-common.c 2015-06-22 14:04:01.749581305 +0100 +++ gcc/c-family/c-common.c 2015-06-22 14:04:25.488049064 +0100 @@ -52,7 +52,6 @@ #define GCC_C_COMMON_C #include "function.h" #include "ipa-ref.h" #include "cgraph.h" -#include "target-def.h" #include "gimplify.h" #include "wide-int-print.h" #include "gimple-expr.h" Index: gcc/df-scan.c =================================================================== --- gcc/df-scan.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/df-scan.c 2015-06-22 14:04:25.486049193 +0100 @@ -45,7 +45,6 @@ Software Foundation; either version 3, o #include "dumpfile.h" #include "tree.h" #include "target.h" -#include "target-def.h" #include "df.h" #include "emit-rtl.h" /* FIXME: Can go away once crtl is moved to rtl.h. */ Index: gcc/targhooks.c =================================================================== --- gcc/targhooks.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/targhooks.c 2015-06-22 14:04:25.486049193 +0100 @@ -72,7 +72,6 @@ Software Foundation; either version 3, o #include "diagnostic-core.h" #include "target.h" #include "tm_p.h" -#include "target-def.h" #include "regs.h" #include "reload.h" #include "insn-codes.h" Index: gcc/config/arm/arm-c.c =================================================================== --- gcc/config/arm/arm-c.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/arm/arm-c.c 2015-06-22 14:04:25.488049064 +0100 @@ -27,7 +27,6 @@ #include "tm_p.h" #include "c-family/c-common.h" #include "target.h" -#include "target-def.h" #include "c-family/c-pragma.h" /* Output C specific EABI object attributes. These can not be done in Index: gcc/config/i386/i386-c.c =================================================================== --- gcc/config/i386/i386-c.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/i386/i386-c.c 2015-06-22 14:04:25.489048999 +0100 @@ -29,7 +29,6 @@ the Free Software Foundation; either ver #include "flags.h" #include "c-family/c-common.h" #include "target.h" -#include "target-def.h" #include "cpplib.h" #include "c-family/c-pragma.h" Index: gcc/config/nds32/nds32-cost.c =================================================================== --- gcc/config/nds32/nds32-cost.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-cost.c 2015-06-22 14:04:25.489048999 +0100 @@ -64,7 +64,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-fp-as-gp.c =================================================================== --- gcc/config/nds32/nds32-fp-as-gp.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-fp-as-gp.c 2015-06-22 14:04:25.489048999 +0100 @@ -64,7 +64,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-intrinsic.c =================================================================== --- gcc/config/nds32/nds32-intrinsic.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-intrinsic.c 2015-06-22 14:04:25.489048999 +0100 @@ -64,7 +64,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-isr.c =================================================================== --- gcc/config/nds32/nds32-isr.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-isr.c 2015-06-22 14:04:25.490048935 +0100 @@ -64,7 +64,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-md-auxiliary.c =================================================================== --- gcc/config/nds32/nds32-md-auxiliary.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-md-auxiliary.c 2015-06-22 14:04:25.490048935 +0100 @@ -65,7 +65,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-memory-manipulation.c =================================================================== --- gcc/config/nds32/nds32-memory-manipulation.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-memory-manipulation.c 2015-06-22 14:04:25.490048935 +0100 @@ -65,7 +65,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-pipelines-auxiliary.c =================================================================== --- gcc/config/nds32/nds32-pipelines-auxiliary.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-pipelines-auxiliary.c 2015-06-22 14:04:25.490048935 +0100 @@ -65,7 +65,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h" Index: gcc/config/nds32/nds32-predicates.c =================================================================== --- gcc/config/nds32/nds32-predicates.c 2015-06-22 14:03:11.056500735 +0100 +++ gcc/config/nds32/nds32-predicates.c 2015-06-22 14:04:25.491048870 +0100 @@ -64,7 +64,6 @@ #include "tm-constrs.h" #include "optabs.h" /* For GEN_FCN. */ #include "target.h" -#include "target-def.h" #include "langhooks.h" /* For add_builtin_function(). */ #include "builtins.h"