diff options
author | Richard Henderson <rth@cygnus.com> | 1998-05-16 14:42:45 +0000 |
---|---|---|
committer | Richard Henderson <rth@cygnus.com> | 1998-05-16 14:42:45 +0000 |
commit | fe2a44a7e89513bc261204a3e56c7c285c127be9 (patch) | |
tree | 98640c8d07385ed9b3cb43adbb13377982ef0617 /gcc/flow.c | |
parent | 714b6e407fbb87d3222a8e95c5221b2a201833a6 (diff) |
* c-common.c (c_expand_start_cond): Trust xrealloc to function
correctly with first parameter NULL.
* c-typeck.c (PUSH_SPELLING): Likewise.
(get_spelling): Likewise.
* scan.c (make_sstring_space): Likewise.
* dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
* dwarf2out.c (dwarf2out_frame_init): Likewise.
* except.c (find_exception_handler_labels): Likewise.
* final.c (shorten_branches): Likewise.
* flow.c (find_basic_blocks): Likewise.
* global.c (global_alloc): Likewise.
* haifa-sched.c (build_control_flow): Likewise.
* stmt.c (check_for_full_enumeration_handling): Likewise.
(estimate_case_costs): Likewise.
* local-alloc.c (local_alloc): Likewise.
* rtl.h, tree.h: Prototype xcalloc.
* toplev.c (xcalloc): New function.
* c-common.c (combine_strings): Use ggc_alloc_string.
* emit-rtl.c (gen_rtx): Likewise.
* gengenrtl.c (gendef): Likewise.
* tree.c (build_string): Likewise.
* c-common.c (combine_strings): Clean up wchar_t manipulation.
* ggc-simple.c (strings, ggc_alloc_string, ggc_free_string): New.
(ggc_mark_string): New.
(ggc_mark_rtx, ggc_mark_tree): Call it.
(ggc_collect): Collect the strings.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/egcs_gc_branch@19806 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/flow.c')
-rw-r--r-- | gcc/flow.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/flow.c b/gcc/flow.c index 0c545d4bab9..cb3c2e6d61c 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -363,8 +363,7 @@ find_basic_blocks (f, nregs, file, live_reachable_p) basic_block_loop_depth = (short *) xmalloc (n_basic_blocks * sizeof (short)); uid_block_number = (int *) xmalloc ((max_uid_for_flow + 1) * sizeof (int)); - uid_volatile = (char *) xmalloc (max_uid_for_flow + 1); - bzero (uid_volatile, max_uid_for_flow + 1); + uid_volatile = (char *) xcalloc (max_uid_for_flow + 1, 1); find_basic_blocks_1 (f, nonlocal_label_list, live_reachable_p); } |