From patchwork Sun Aug 8 18:41:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [obv] fix bootstrap compilation errors with c-pragma.c Date: Sun, 08 Aug 2010 08:41:43 -0000 From: Nathan Froyd X-Patchwork-Id: 61226 Message-Id: <20100808184143.GB4130@codesourcery.com> To: 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. */