aboutsummaryrefslogtreecommitdiff
path: root/gcc/dbxout.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-09-03 16:22:50 -0700
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-03 23:22:50 +0000
commit3de900268edfcbeb0b286cc0119b778e1050a028 (patch)
tree3eb337eba34d2d4c91a5e74dbcce64f57595bd4b /gcc/dbxout.c
parent818a3b1591f335fe4d781637297246d7e9cda583 (diff)
downloadgcc-3de900268edfcbeb0b286cc0119b778e1050a028.zip
gcc-3de900268edfcbeb0b286cc0119b778e1050a028.tar.gz
gcc-3de900268edfcbeb0b286cc0119b778e1050a028.tar.bz2
dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero.
* dbxout.c (dbxout_init): Use xcalloc instead of xmalloc+bzero. * dwarf2out.c (dwarf2out_frame_init): Likewise. * final.c (shorten_branches): 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. From-SVN: r29091
Diffstat (limited to 'gcc/dbxout.c')
-rw-r--r--gcc/dbxout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 8536818..6dd2f30 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -381,8 +381,7 @@ dbxout_init (asm_file, input_file_name, syms)
asmfile = asm_file;
typevec_len = 100;
- typevec = (struct typeinfo *) xmalloc (typevec_len * sizeof typevec[0]);
- bzero ((char *) typevec, typevec_len * sizeof typevec[0]);
+ typevec = (struct typeinfo *) xcalloc (typevec_len, sizeof typevec[0]);
/* Convert Ltext into the appropriate format for local labels in case
the system doesn't insert underscores in front of user generated