From patchwork Wed Aug 29 20:42:57 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Gray X-Patchwork-Id: 180767 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 1E1F92C0136 for ; Thu, 30 Aug 2012 06:43:36 +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=1346877817; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: MIME-Version:Received:From:Date:Message-ID:Subject:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=uucbdOc B7qbDyWunfq6z8cpSkvo=; b=b+LuXRBQlbZzX4TJfqNPugHZTSkTZ2lX62ojFhB qNrC3T59QDTsS52wNcdeBsbklq7k/0+sI6NI7T6+YzOrTskV0cHIk+4D+kpFaMNj xZxyJTkvRDOH2MZZl2qNHCUq2FcKedbSlNwypXqXfvKR/vNITNH9IFQw01lUe2Hy m0mg= 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:MIME-Version:Received:From:Date:Message-ID:Subject:To:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=b5xyAomf8fHRmXiFv0e7wWaB6GBD7856HLPNX2XLKOB8eWZg9LYJ0+H2wsJJiL +EJkGW3bElY/S6nAHV38eaBbqCoNsI6ZojfgJTnMItqhE/ADx85oMrnE+UwDwLB+ 5SThfKIxXBwkL9kKE4+g8cpTwN0PDpXZsRGmJrPFoS6ZY=; Received: (qmail 12310 invoked by alias); 29 Aug 2012 20:43:32 -0000 Received: (qmail 12299 invoked by uid 22791); 29 Aug 2012 20:43:31 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL, BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_BJ, TW_JC X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Aug 2012 20:43:18 +0000 Received: by pbcwy7 with SMTP id wy7so1833696pbc.20 for ; Wed, 29 Aug 2012 13:43:17 -0700 (PDT) Received: by 10.68.116.17 with SMTP id js17mr7074502pbb.109.1346272997839; Wed, 29 Aug 2012 13:43:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.85.233 with HTTP; Wed, 29 Aug 2012 13:42:57 -0700 (PDT) From: Aaron Gray Date: Wed, 29 Aug 2012 21:42:57 +0100 Message-ID: Subject: [PATCH] Remove dependency of cp/cp-lang.c on cp/parser.h To: gcc-patches 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 Patch removing the dependency of cp/cp-lang.c on cp/parser.c. This as been tested on Linux. [gcc/cp] 2012-08-29 Aaron Gray * cp/cp-lang.c: removed #include "parser.h" * cp/Make-lang.in: removed dependency of cp/cp-lang.c on cp/parser.h diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c index da7f1e1..5ca0b0a 100644 --- a/gcc/cp/cp-lang.c +++ b/gcc/cp/cp-lang.c @@ -32,7 +32,6 @@ along with GCC; see the file COPYING3. If not see #include "cp-objcp-common.h" #include "hashtab.h" #include "target.h" -#include "parser.h" enum c_language_kind c_language = clk_cxx; static void cp_init_ts (void); diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 6233f06..78296ae 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -270,7 +270,7 @@ cp/lex.o: cp/lex.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) \ c-family/c-objc.h cp/cp-lang.o: cp/cp-lang.c $(CXX_TREE_H) $(TM_H) debug.h langhooks.h \ $(LANGHOOKS_DEF_H) $(C_COMMON_H) gtype-cp.h gt-cp-cp-lang.h \ - cp/cp-objcp-common.h $(EXPR_H) $(TARGET_H) $(CXX_PARSER_H) + cp/cp-objcp-common.h $(EXPR_H) $(TARGET_H) tree.h c-family/c-pragma.h cp/decl.o: cp/decl.c $(CXX_TREE_H) $(TM_H) $(FLAGS_H) cp/decl.h \ output.h toplev.h $(HASHTAB_H) $(RTL_H) \ cp/operators.def $(TM_P_H) $(TREE_INLINE_H) $(DIAGNOSTIC_H) $(C_PRAGMA_H) \