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
This commit is contained in:
parent
7bad45b05c
commit
77bbd421e0
|
@ -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>
|
2002-07-25 Neil Booth <neil@daikokuya.co.uk>
|
||||||
|
|
||||||
* gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
|
* gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
|
||||||
|
|
|
@ -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
|
/* 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
|
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
|
give the same symbol without quotes for an alternative entry point. */
|
||||||
must define both, or neither. */
|
|
||||||
#ifndef NAME__MAIN
|
#ifndef NAME__MAIN
|
||||||
#define NAME__MAIN "__main"
|
#define NAME__MAIN "__main"
|
||||||
#define SYMBOL__MAIN __main
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* This must match tree.h. */
|
/* This must match tree.h. */
|
||||||
|
|
|
@ -166,10 +166,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||||
|
|
||||||
#include "obstack.h"
|
#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
|
/* Propagate flow information through back edges and thus enable PRE's
|
||||||
moving loop invariant calculations out of loops.
|
moving loop invariant calculations out of loops.
|
||||||
|
|
||||||
|
@ -972,14 +968,13 @@ grealloc (ptr, size)
|
||||||
return xrealloc (ptr, size);
|
return xrealloc (ptr, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Cover function to obstack_alloc.
|
/* Cover function to obstack_alloc. */
|
||||||
We don't need to record the bytes allocated here since
|
|
||||||
obstack_chunk_alloc is set to gmalloc. */
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
gcse_alloc (size)
|
gcse_alloc (size)
|
||||||
unsigned long size;
|
unsigned long size;
|
||||||
{
|
{
|
||||||
|
bytes_used += size;
|
||||||
return (char *) obstack_alloc (&gcse_obstack, size);
|
return (char *) obstack_alloc (&gcse_obstack, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue