diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2004-11-11 23:13:12 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-11-11 23:13:12 +0000 |
commit | 4e2fb7de2d62d73c3ef7967933af331aa3888f0a (patch) | |
tree | ec0ba20c291af19d0c5c23430ec5353db447b8c3 /gcc | |
parent | 25a6c68bca08d059334543675bd5a6045008ff9b (diff) | |
download | gcc-4e2fb7de2d62d73c3ef7967933af331aa3888f0a.zip gcc-4e2fb7de2d62d73c3ef7967933af331aa3888f0a.tar.gz gcc-4e2fb7de2d62d73c3ef7967933af331aa3888f0a.tar.bz2 |
c-typeck.c (c_size_in_bytes, [...]): Make them static.
* c-typeck.c (c_size_in_bytes, record_maybe_used_decl):
Make them static.
* c-tree.h: Remove the corresponding prototypes.
From-SVN: r90504
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/c-tree.h | 2 | ||||
-rw-r--r-- | gcc/c-typeck.c | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b470cd5..14be8ab 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -14,6 +14,10 @@ unloop): Make them static. * cfgloop.h: Remove the corresponding prototypes. + * c-typeck.c (c_size_in_bytes, record_maybe_used_decl): + Make them static. + * c-tree.h: Remove the corresponding prototypes. + 2004-11-11 Kazu Hirata <kazu@cs.umass.edu> * function.c (expand_function_end): Remove an "if" statement diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 18d200f..5db3c09 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -452,7 +452,6 @@ extern struct c_switch *c_switch_stack; extern tree require_complete_type (tree); extern int same_translation_unit_p (tree, tree); extern int comptypes (tree, tree); -extern tree c_size_in_bytes (tree); extern bool c_mark_addressable (tree); extern void c_incomplete_type_error (tree, tree); extern tree c_type_promotes_to (tree); @@ -461,7 +460,6 @@ extern tree build_component_ref (tree, tree); extern tree build_indirect_ref (tree, const char *); extern tree build_array_ref (tree, tree); extern tree build_external_ref (tree, int); -extern void record_maybe_used_decl (tree); extern void pop_maybe_used (bool); extern struct c_expr c_expr_sizeof_expr (struct c_expr); extern struct c_expr c_expr_sizeof_type (struct c_type_name *); diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index f9481f8..6be4d6b 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -111,6 +111,7 @@ static void set_nonincremental_init_from_string (tree); static tree find_init_member (tree); static int lvalue_or_else (tree, enum lvalue_use); static void readonly_error (tree, enum lvalue_use); +static void record_maybe_used_decl (tree); /* Do `exp = require_complete_type (exp);' to make sure exp does not have an incomplete type. (That includes void types.) */ @@ -1126,7 +1127,7 @@ type_lists_compatible_p (tree args1, tree args2) /* Compute the size to increment a pointer by. */ -tree +static tree c_size_in_bytes (tree type) { enum tree_code code = TREE_CODE (type); @@ -1807,7 +1808,7 @@ static struct maybe_used_decl *maybe_used_decls; a VLA type or the operand of typeof is a variably modified type. */ -void +static void record_maybe_used_decl (tree decl) { struct maybe_used_decl *t = XOBNEW (&parser_obstack, struct maybe_used_decl); |