From patchwork Wed Aug 29 11:54:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Gray X-Patchwork-Id: 180697 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 B06C62C0282 for ; Wed, 29 Aug 2012 21:55:02 +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=1346846104; 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=QZsi5F0 iHgbF6kOhSdoGWPYqT/A=; b=SlAcqc7Nwx7tiRXeRiKZ0l3rZD5zqbJV74xOsWP r8Z7WuSmBSBj91GvQEfCFuQfw7g7ECeSjuRuTku/yfdXszJfGKeuy1BWMnXSm39G GFmOkyIw1fOT6NFW5ZZwg8N5hrSYiPNF+qzu429ycNEiBrhgMT2D8WaLMbGWWz/3 OvnQ= 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=bLsZWhkSTbyTWB2Le97Xa1DXxJUyIw2fEtSC/Ra7HvcZkWmhWoa162qyRJtNQb ETpWE6nyY8gxasS3DmUdKEJbYoG6x4nh+W1/GKfDojCFEGRj2tW2uxWDrWu3sw8C 7Lh09hS6GOn4f9zUeM9VCwCNhUpd9HHk/Kyl3bl14dhP4=; Received: (qmail 18162 invoked by alias); 29 Aug 2012 11:54:58 -0000 Received: (qmail 18149 invoked by uid 22791); 29 Aug 2012 11:54:57 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL, BAYES_05, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, KHOP_RCVD_UNTRUST, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_BJ, TW_JC, T_DKIM_INVALID X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Aug 2012 11:54:44 +0000 Received: by daks35 with SMTP id s35so341957dak.20 for ; Wed, 29 Aug 2012 04:54:43 -0700 (PDT) Received: by 10.66.86.201 with SMTP id r9mr3192573paz.16.1346241283281; Wed, 29 Aug 2012 04:54:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.85.233 with HTTP; Wed, 29 Aug 2012 04:54:21 -0700 (PDT) From: Aaron Gray Date: Wed, 29 Aug 2012 12:54:21 +0100 Message-ID: Subject: remove dependency on cp/parser.h from cp/lang.c 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 Just got my copyright assignment through, so here's my first GCC patch, This is a one liner removing the unneeded dependency of cp-lang.c on cp/parser.h. This has been tested on Linux. Aaron 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);