summaryrefslogtreecommitdiff
path: root/libiberty/xmalloc.c
Commit message (Collapse)AuthorAgeFilesLines
* gcc:zack2000-11-221-63/+31
| | | | | | | | | | | | | | | | | | | | | | | * Makefile.in, config.gcc, configure.in: Expunge remaining traces of facility for running MD files through C preprocessor. libiberty: * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in. (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader. * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three argument form of AC_DEFINE in dummy definitions block. Use AC_DEFINE_NOAUTOHEADER for real definitions of things defined in dummy block. Preload cache variables instead of bypassing tests, where possible. * acconfig.h: Removed. * xmalloc.c (xmalloc_failed): New function, does error reporting on failed allocation. (xmalloc, xcalloc, xrealloc): Use it. * libiberty.h: Move #includes to top. Prototype xmalloc_failed. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37650 138bc75d-0d04-0410-961f-82ee72b054a4
* * xmalloc.c: Include config.h for HAVE_SBRK definition.law2000-05-181-0/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34003 138bc75d-0d04-0410-961f-82ee72b054a4
* * xmalloc.c (xmalloc): Fix spelling error.mmitchel1999-10-031-6/+6
| | | | | | | (xcalloc, xrealloc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29779 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (checkfuncs): Check for sbrk.law1999-04-151-13/+13
| | | | | | | | | * config.in: Rebuilt. * configure: Likewise. * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26480 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c: Change all references to __UWIN__ to _UWIN.law1999-04-111-11/+11
| | | | | | | | | * xmalloc.c: Likewise. (xcalloc): UWIN has sbrk. (xrealloc): Fix guard macro. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26352 138bc75d-0d04-0410-961f-82ee72b054a4
* * pexecute.c (__CYGWIN32__): Rename tolaw1999-03-111-8/+8
| | | | | | | | | | | | | | | | (__CYGWIN__): this. * xmalloc.c: Likewise. Changes to support i386-pc-uwin. * configure.in (*-*-uwin*): Workaround for vfork bug. * configure: Regenerate. * pexecute.c (pexecute): Be like standard Unix. (pwait): Likewise. * xmalloc.c (first_break): Define. (xmalloc_set_program_name): Use. (xmalloc): Use. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25694 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Check for calloc.ghazi1998-11-131-0/+36
| | | | | | | | * calloc.c: New file. * xmalloc.c (xcalloc): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23642 138bc75d-0d04-0410-961f-82ee72b054a4
* Add mingw32 support.law1998-01-171-1/+21
| | | | | | | | | | | | | | * pexecute.c (pexecute): New function for mingw32. Supports pipes. (pwait): New function for mingw32. * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32. * config/mt-mingw32: New file. * xmalloc.c (first_break): Not used for mingw32. (xmalloc_set_program_name): Don't use sbrk on mingw32. (xmalloc): Likewise. (xrealloc): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17395 138bc75d-0d04-0410-961f-82ee72b054a4
* Initial revisionjason1997-08-211-0/+113
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14877 138bc75d-0d04-0410-961f-82ee72b054a4