From patchwork Tue Nov 16 13:49:04 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Froyd X-Patchwork-Id: 71399 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 D4A80B7125 for ; Wed, 17 Nov 2010 00:49:20 +1100 (EST) Received: (qmail 3437 invoked by alias); 16 Nov 2010 13:49:16 -0000 Received: (qmail 3418 invoked by uid 22791); 16 Nov 2010 13:49:14 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 16 Nov 2010 13:49:08 +0000 Received: (qmail 19585 invoked from network); 16 Nov 2010 13:49:06 -0000 Received: from unknown (HELO codesourcery.com) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 16 Nov 2010 13:49:06 -0000 Date: Tue, 16 Nov 2010 08:49:04 -0500 From: Nathan Froyd To: gcc-patches@gcc.gnu.org Subject: [PATCH] delete #include "tm.h" from a few basic datastructures Message-ID: <20101116134903.GC24469@nightcrawler> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes 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 The patch below deletes #includes for tm.h and a few other "huh?" headers from source files for basic GCC datastructures. Tested on x86_64-unknown-linux-gnu. OK to commit? -Nathan * bitmap.c: Delete unnecessary includes. * ebitmap.c: Likewise. * et-forest.c: Likewise. * sreal.c: Likewise. * statistics.c: Likewise. * stringpool.c: Likewise. * double-int.c: Add comment for inclusion of tm.h. diff --git a/gcc/bitmap.c b/gcc/bitmap.c index f2fd2bd..7f533ed 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -21,9 +21,6 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" -#include "rtl.h" -#include "flags.h" #include "obstack.h" #include "ggc.h" #include "bitmap.h" diff --git a/gcc/double-int.c b/gcc/double-int.c index f3501a5..9e32b39 100644 --- a/gcc/double-int.c +++ b/gcc/double-int.c @@ -20,7 +20,7 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" +#include "tm.h" /* For SHIFT_COUNT_TRUNCATED. */ #include "tree.h" #include "toplev.h" diff --git a/gcc/ebitmap.c b/gcc/ebitmap.c index cb52468..c57d141 100644 --- a/gcc/ebitmap.c +++ b/gcc/ebitmap.c @@ -21,10 +21,6 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" -#include "rtl.h" -#include "flags.h" -#include "obstack.h" #include "ebitmap.h" /* The ebitmap data structure is a sparse bitmap structure that works diff --git a/gcc/et-forest.c b/gcc/et-forest.c index 94757c0..b35d063 100644 --- a/gcc/et-forest.c +++ b/gcc/et-forest.c @@ -26,7 +26,6 @@ License along with libiberty; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" #include "et-forest.h" #include "alloc-pool.h" diff --git a/gcc/sreal.c b/gcc/sreal.c index 415a02c..df35ddd 100644 --- a/gcc/sreal.c +++ b/gcc/sreal.c @@ -52,7 +52,6 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" #include "sreal.h" static inline void copy (sreal *, sreal *); diff --git a/gcc/statistics.c b/gcc/statistics.c index b7bfd45..873bbc3 100644 --- a/gcc/statistics.c +++ b/gcc/statistics.c @@ -26,7 +26,6 @@ along with GCC; see the file COPYING3. If not see #include "tree-dump.h" #include "statistics.h" #include "hashtab.h" -#include "tm.h" #include "function.h" static int statistics_dump_nr; diff --git a/gcc/stringpool.c b/gcc/stringpool.c index 8d45a26..747db17 100644 --- a/gcc/stringpool.c +++ b/gcc/stringpool.c @@ -29,7 +29,6 @@ along with GCC; see the file COPYING3. If not see #include "config.h" #include "system.h" #include "coretypes.h" -#include "tm.h" #include "ggc.h" #include "ggc-internal.h" #include "tree.h"