From patchwork Sun Aug 8 18:41:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Froyd X-Patchwork-Id: 61226 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 D77ABB6EF2 for ; Mon, 9 Aug 2010 04:41:51 +1000 (EST) Received: (qmail 22344 invoked by alias); 8 Aug 2010 18:41:50 -0000 Received: (qmail 22334 invoked by uid 22791); 8 Aug 2010 18:41:50 -0000 X-SWARE-Spam-Status: No, hits=-1.7 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; Sun, 08 Aug 2010 18:41:45 +0000 Received: (qmail 24729 invoked from network); 8 Aug 2010 18:41:43 -0000 Received: from unknown (HELO localhost) (froydnj@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Aug 2010 18:41:43 -0000 Date: Sun, 8 Aug 2010 11:41:43 -0700 From: Nathan Froyd To: gcc-patches@gcc.gnu.org Subject: [obv] fix bootstrap compilation errors with c-pragma.c Message-ID: <20100808184143.GB4130@codesourcery.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-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 I committed a bogus version of one of my patches. The patch below corrects the errors that broke bootstrap. Sorry about the breakage. -Nathan * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. (maybe_apply_renaming_pragma): Delete unneeded declarations. Index: c-pragma.c =================================================================== --- c-pragma.c (revision 163012) +++ c-pragma.c (working copy) @@ -497,7 +497,7 @@ add_to_renaming_pragma_list (tree oldnam return; } - p = VEC_safe_push (pending_redefinition, pending_redefine_extname, NULL); + p = VEC_safe_push (pending_redefinition, gc, pending_redefine_extname, NULL); p->oldname = oldname; p->newname = newname; } @@ -533,7 +533,6 @@ maybe_apply_renaming_pragma (tree decl, { unsigned ix; pending_redefinition *p; - tree *p, t; /* The renaming pragmas are only applied to declarations with external linkage. */