diff mbox

[obv] fix bootstrap compilation errors with c-pragma.c

Message ID 20100808184143.GB4130@codesourcery.com
State New
Headers show

Commit Message

Nathan Froyd Aug. 8, 2010, 6:41 p.m. UTC
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.
diff mbox

Patch

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.  */