Commit ac8dc9f7 by Nathan Froyd Committed by Nathan Froyd

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
parent b3399d18
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>
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment