aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMikael Pettersson <mikpe@it.uu.se>2010-09-01 13:52:55 +0200
committerRamana Radhakrishnan <ramana@gcc.gnu.org>2010-09-01 11:52:55 +0000
commit6e0833db45350585bc60abfc891181db8142ca61 (patch)
tree2d06a1d3adfcecb195c7cf4e5d440ef1277929af /gcc/tree.h
parentc961549127e25a146e277c2c4b2c82cf35174fca (diff)
downloadgcc-6e0833db45350585bc60abfc891181db8142ca61.zip
gcc-6e0833db45350585bc60abfc891181db8142ca61.tar.gz
gcc-6e0833db45350585bc60abfc891181db8142ca61.tar.bz2
re PR bootstrap/45321 (ARM bootstrap failure due to stdarg_p change)
2010-09-01 Mikael Pettersson <mikpe@it.uu.se> PR bootstrap/45321 * tree.c (stdarg_p): Make fntype parameter const. * tree.h (stdarg_p): Likewise. (function_args_iterator): Remove unused fntype field. (function_args_iter_init): Do not initialize fntype field. Make fntype parameter const. From-SVN: r163726
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 5d431e6..17eeba7 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -4772,16 +4772,14 @@ extern GTY(()) const char * current_function_func_begin_label;
/* Iterator for going through the function arguments. */
typedef struct {
- tree fntype; /* function type declaration */
tree next; /* TREE_LIST pointing to the next argument */
} function_args_iterator;
/* Initialize the iterator I with arguments from function FNDECL */
static inline void
-function_args_iter_init (function_args_iterator *i, tree fntype)
+function_args_iter_init (function_args_iterator *i, const_tree fntype)
{
- i->fntype = fntype;
i->next = TYPE_ARG_TYPES (fntype);
}
@@ -4853,7 +4851,7 @@ extern tree call_expr_arg (tree, int);
extern tree *call_expr_argp (tree, int);
extern tree create_artificial_label (location_t);
extern const char *get_name (tree);
-extern bool stdarg_p (tree);
+extern bool stdarg_p (const_tree);
extern bool prototype_p (tree);
extern bool is_typedef_decl (tree x);
extern bool typedef_variant_p (tree);