diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-09-14 18:19:09 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-09-14 18:19:09 +0000 |
commit | 341a243eaf86f5e0e1534698240cf215794f4771 (patch) | |
tree | 1e9afbcb55cdfa686ce8918bf81ce92b95aee8fd /gcc/tree.c | |
parent | da09e3172ddd820e2115b5c3eb72b5bc023c983b (diff) | |
download | gcc-341a243eaf86f5e0e1534698240cf215794f4771.zip gcc-341a243eaf86f5e0e1534698240cf215794f4771.tar.gz gcc-341a243eaf86f5e0e1534698240cf215794f4771.tar.bz2 |
c-pragma.c (handle_pragma_token): Wrap variables `name' and `value' in HANDLE_PRAGMA_WEAK.
* c-pragma.c (handle_pragma_token): Wrap variables `name' and
`value' in HANDLE_PRAGMA_WEAK. Wrap variable `align' in
HANDLE_PRAGMA_PACK||HANDLE_PRAGMA_PACK_PUSH_POP.
* genrecog.c (make_insn_sequence): Call memset, not bzero.
* jump.c (find_insert_position): Don't declare or define unless
!HAVE_conditional_arithmetic.
(returnjump_p_1, delete_prior_computation): Add static prototypes.
* mips-tdump.c (fatal, fancy_abort, main): Add extern prototypes.
* recog.c (offsettable_address_p): Prototype function pointer.
(preprocess_constraints): Call memset, not bzero.
* tree.c (tree_node_kind_names): Constify a char*. Make static.
(gcc_obstack_init): Don't declare.
(fix_sizetype): Add static prototype.
(gcc_obstack_init): Use prototype casts in call to _obstack_begin.
(tree_cons): Call memset, not bzero.
* varasm.c (remove_from_pending_weak_list): Wrap declaration and
definition in macro ASM_WEAKEN_LABEL.
(mark_const_hash_entry): Add static prototype.
From-SVN: r29410
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -209,7 +209,7 @@ int tree_node_counts[(int)all_kinds]; int tree_node_sizes[(int)all_kinds]; int id_string_size = 0; -const char *tree_node_kind_names[] = { +static const char * const tree_node_kind_names[] = { "decls", "types", "blocks", @@ -272,8 +272,7 @@ static void set_type_quals PROTO((tree, int)); static void append_random_chars PROTO((char *)); static void build_real_from_int_cst_1 PROTO((PTR)); static void mark_type_hash PROTO ((void *)); - -void gcc_obstack_init (); +static void fix_sizetype PROTO ((tree)); /* If non-null, a language specific helper for unsave_expr_now. */ @@ -332,8 +331,8 @@ gcc_obstack_init (obstack) #define OBSTACK_CHUNK_FREE free #endif _obstack_begin (obstack, OBSTACK_CHUNK_SIZE, 0, - (void *(*) ()) OBSTACK_CHUNK_ALLOC, - (void (*) ()) OBSTACK_CHUNK_FREE); + (void *(*) PROTO ((long))) OBSTACK_CHUNK_ALLOC, + (void (*) PROTO ((void *))) OBSTACK_CHUNK_FREE); } /* Save all variables describing the current status into the structure @@ -2046,7 +2045,7 @@ tree_cons (purpose, value, chain) else { node = (tree) obstack_alloc (current_obstack, sizeof (struct tree_list)); - bzero (node, sizeof (struct tree_common)); + memset (node, 0, sizeof (struct tree_common)); } #ifdef GATHER_STATISTICS |