]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
collect2.c (SYMBOL__MAIN): Remove.
authorNeil Booth <neil@daikokuya.co.uk>
Thu, 25 Jul 2002 18:57:31 +0000 (18:57 +0000)
committerNeil Booth <neil@gcc.gnu.org>
Thu, 25 Jul 2002 18:57:31 +0000 (18:57 +0000)
* collect2.c (SYMBOL__MAIN): Remove.
* gcse.c (obstack_chunk_alloc): Remove.
(gcse_alloc): Fix to count allocated bytes.

From-SVN: r55755

gcc/ChangeLog
gcc/collect2.c
gcc/gcse.c

index a83f6321cb0cee8938f6408dfc0e80ed288a4443..3665609832dd3b42fb820c8c8e53e7e163675770 100644 (file)
@@ -1,3 +1,9 @@
+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
index ea888e48fb6b387f5ee1b90b790b2d373ee2ec6e..0bf1608460bc2ee4a9af9fb11b604f1c85a2a837 100644 (file)
@@ -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.  */
index 69ca31f64e948bfafa58b607cd749fbda7dece45..8791cb24fcf5b307ef1d192f08a649431877ff1b 100644 (file)
@@ -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);
 }