]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
authorNathan Froyd <froydnj@codesourcery.com>
Sun, 8 Aug 2010 18:41:39 +0000 (18:41 +0000)
committerNathan Froyd <froydnj@gcc.gnu.org>
Sun, 8 Aug 2010 18:41:39 +0000 (18:41 +0000)
* c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
(maybe_apply_renaming_pragma): Delete unneeded declarations.

From-SVN: r163015

gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c

index aad15ac196fc4398793496f5b76d7edd2dc2c769..5227a9c3a7a1cbe35acefa541826562a5dc412c3 100644 (file)
@@ -1,10 +1,15 @@
+2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
+       (maybe_apply_renaming_pragma): Delete unneeded declarations.
+
 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
 
        * c-pragma.c (pending_redefinition): Declare.  Declare a VEC of it.
        (pending_redefine_extname): Change type to a VEC.
        (add_to_renaming_pragma_list): Update for new type of
        pending_redefine_extname.
-       (maybe_apply_pending_pragma): Likewise.
+       (maybe_apply_renaming_pragma): Likewise.
 
 2010-08-04  Arnaud Charlet  <charlet@adacore.com>
 
index e4ae502a708780636a6d06c214aa4013ba42aab5..81e42be597bea7e7a52c9e5133e4ef2cbe075a02 100644 (file)
@@ -497,7 +497,7 @@ add_to_renaming_pragma_list (tree oldname, tree newname)
        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, tree asmname)
 {
   unsigned ix;
   pending_redefinition *p;
-  tree *p, t;
 
   /* The renaming pragmas are only applied to declarations with
      external linkage.  */