aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2010-08-08 18:41:39 +0000
committerNathan Froyd <froydnj@gcc.gnu.org>2010-08-08 18:41:39 +0000
commitac8dc9f79a94ee82b6d634d0c2c86423c9b0a682 (patch)
treec83ad0ad1373a1fece161351a21d6d307e21c892
parentb3399d18c204d59f95146f44074c4f1639dad479 (diff)
downloadgcc-ac8dc9f79a94ee82b6d634d0c2c86423c9b0a682.zip
gcc-ac8dc9f79a94ee82b6d634d0c2c86423c9b0a682.tar.gz
gcc-ac8dc9f79a94ee82b6d634d0c2c86423c9b0a682.tar.bz2
c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push.
* c-pragma.c (add_to_renaming_pragma_list): Fix call to VEC_safe_push. (maybe_apply_renaming_pragma): Delete unneeded declarations. From-SVN: r163015
-rw-r--r--gcc/c-family/ChangeLog7
-rw-r--r--gcc/c-family/c-pragma.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog
index aad15ac..5227a9c 100644
--- a/gcc/c-family/ChangeLog
+++ b/gcc/c-family/ChangeLog
@@ -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>
diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c
index e4ae502..81e42be 100644
--- a/gcc/c-family/c-pragma.c
+++ b/gcc/c-family/c-pragma.c
@@ -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. */