summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-25 18:57:31 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-25 18:57:31 +0000
commit7cdd371650964bc767514349602a97f3d0c63866 (patch)
treec83f5ab5772ba18212fb37d7295dab9472fab541 /gcc/gcse.c
parent0380af667a285a97505410739baf3a894bdc2aeb (diff)
downloadgcc-7cdd371650964bc767514349602a97f3d0c63866.tar.gz
* collect2.c (SYMBOL__MAIN): Remove.
* gcse.c (obstack_chunk_alloc): Remove. (gcse_alloc): Fix to count allocated bytes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55755 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 69ca31f64e9..8791cb24fcf 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -166,10 +166,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "obstack.h"
-/* We don't want to use xmalloc. */
-#undef obstack_chunk_alloc
-#define obstack_chunk_alloc gmalloc
-
/* Propagate flow information through back edges and thus enable PRE's
moving loop invariant calculations out of loops.
@@ -972,14 +968,13 @@ grealloc (ptr, size)
return xrealloc (ptr, size);
}
-/* Cover function to obstack_alloc.
- We don't need to record the bytes allocated here since
- obstack_chunk_alloc is set to gmalloc. */
+/* Cover function to obstack_alloc. */
static char *
gcse_alloc (size)
unsigned long size;
{
+ bytes_used += size;
return (char *) obstack_alloc (&gcse_obstack, size);
}