From ac8dc9f79a94ee82b6d634d0c2c86423c9b0a682 Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Sun, 8 Aug 2010 18:41:39 +0000 Subject: [PATCH] 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 --- gcc/c-family/ChangeLog | 7 ++++++- gcc/c-family/c-pragma.c | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index aad15ac196f..5227a9c3a7a 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,10 +1,15 @@ +2010-08-08 Nathan Froyd + + * 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 * 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 diff --git a/gcc/c-family/c-pragma.c b/gcc/c-family/c-pragma.c index e4ae502a708..81e42be597b 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. */ -- 2.30.2