From patchwork Sat Jun 19 01:58:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Herron X-Patchwork-Id: 56234 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 BBFC91007D4 for ; Sat, 19 Jun 2010 11:58:35 +1000 (EST) Received: (qmail 23667 invoked by alias); 19 Jun 2010 01:58:31 -0000 Received: (qmail 23632 invoked by uid 22791); 19 Jun 2010 01:58:30 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-wy0-f175.google.com (HELO mail-wy0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 19 Jun 2010 01:58:27 +0000 Received: by wyb39 with SMTP id 39so1380161wyb.20 for ; Fri, 18 Jun 2010 18:58:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.90.211 with SMTP id e61mr714920wef.91.1276912704721; Fri, 18 Jun 2010 18:58:24 -0700 (PDT) Received: by 10.216.72.143 with HTTP; Fri, 18 Jun 2010 18:58:24 -0700 (PDT) Date: Sat, 19 Jun 2010 02:58:24 +0100 Message-ID: Subject: [PATCH] Remove Flag syntax only in c-decl.c write_globals From: Philip Herron To: gcc-patches@gcc.gnu.org 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 Hey Just a simple trivial patch in c-decl.c in c_write_global_declarations since toplev.c now checks for this just before calling the langhook write_globals(). So it should be un-necessary to check for it again. --Phil From df34437bbe399c2bf6739154f3feaa7adc9a3ee1 Mon Sep 17 00:00:00 2001 From: redbrain Date: Sat, 19 Jun 2010 02:50:08 +0100 Subject: [PATCH] flag_syntax_only check un-needed as toplev.c checks this just before calling langhooks.write_globals() --- gcc/c-decl.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 740ca35..2033a3b 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -9658,11 +9658,6 @@ c_write_global_declarations (void) if (pch_file) return; - /* Don't waste time on further processing if -fsyntax-only. - Continue for warning and errors issued during lowering though. */ - if (flag_syntax_only) - return; - /* Close the external scope. */ ext_block = pop_scope (); external_scope = 0; -- 1.7.0.4