aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-07-25 18:57:31 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-07-25 18:57:31 +0000
commit77bbd421e074811ff98af9fcd2efa7ceba21ca89 (patch)
treec83f5ab5772ba18212fb37d7295dab9472fab541
parent7bad45b05ce6532a1d3114feb66a9257cf170de2 (diff)
downloadgcc-77bbd421e074811ff98af9fcd2efa7ceba21ca89.zip
gcc-77bbd421e074811ff98af9fcd2efa7ceba21ca89.tar.gz
gcc-77bbd421e074811ff98af9fcd2efa7ceba21ca89.tar.bz2
collect2.c (SYMBOL__MAIN): Remove.
* collect2.c (SYMBOL__MAIN): Remove. * gcse.c (obstack_chunk_alloc): Remove. (gcse_alloc): Fix to count allocated bytes. From-SVN: r55755
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/collect2.c4
-rw-r--r--gcc/gcse.c9
3 files changed, 9 insertions, 10 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a83f632..3665609 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2002-07-25 Neil Booth <neil@daikokuya.co.uk>
+ * gcse.c (obstack_chunk_alloc): Remove.
+ (gcse_alloc): Fix to count allocated bytes.
+ * collect2.c (SYMBOL__MAIN): Remove.
+
+2002-07-25 Neil Booth <neil@daikokuya.co.uk>
+
* gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
HAVE_TARGET_EXECUTABLE_SUFFIX.
diff --git a/gcc/collect2.c b/gcc/collect2.c
index ea888e4..0bf1608 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -140,11 +140,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
/* Some systems use __main in a way incompatible with its use in gcc, in these
cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
- give the same symbol without quotes for an alternative entry point. You
- must define both, or neither. */
+ give the same symbol without quotes for an alternative entry point. */
#ifndef NAME__MAIN
#define NAME__MAIN "__main"
-#define SYMBOL__MAIN __main
#endif
/* This must match tree.h. */
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 69ca31f..8791cb2 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);
}