aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilipp Thomas <kthomas@lxi165.gwdg.de>1997-08-29 15:33:54 +0000
committerJeff Law <law@gcc.gnu.org>1997-08-29 09:33:54 -0600
commitc760091a0ce5ff1a2f40506813bdf0fe09b14dfc (patch)
tree06e6ee83c1d4be2644e971355f9f4ca4d04d6dd4 /gcc
parent575833386fa593c86f362bc385b89ee410895328 (diff)
downloadgcc-c760091a0ce5ff1a2f40506813bdf0fe09b14dfc.zip
gcc-c760091a0ce5ff1a2f40506813bdf0fe09b14dfc.tar.gz
gcc-c760091a0ce5ff1a2f40506813bdf0fe09b14dfc.tar.bz2
dwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc to reallocate abbrev_die_table.
* dwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc to reallocate abbrev_die_table. From-SVN: r14997
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d7c2e50..d3078a5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 29 09:33:20 1997 Philipp Thomas (kthomas@lxi165.gwdg.de)
+
+ * dwarfout2.c (build_abbrev_table): Use xrealloc, not xmalloc
+ to reallocate abbrev_die_table.
+
Thu Aug 28 15:14:46 1997 Jim Wilson <wilson@cygnus.com>
* m68k/m68k.md (iorsi_zexthi_ashl16): Disable.
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index f777f1f..ff682e4 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -3955,7 +3955,7 @@ build_abbrev_table (die)
{
n_alloc = abbrev_die_table_allocated + ABBREV_DIE_TABLE_INCREMENT;
abbrev_die_table
- = (dw_die_ref *) xmalloc (abbrev_die_table,
+ = (dw_die_ref *) xrealloc (abbrev_die_table,
sizeof (dw_die_ref) * n_alloc);
bzero ((char *) &abbrev_die_table[abbrev_die_table_allocated],