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

Nathan Froyd froydnj@codesourcery.com
Sun Aug 8 18:46:00 GMT 2010


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



More information about the Gcc-patches mailing list