1. 22 Jul, 2005 1 commit
  2. 07 Jul, 2005 1 commit
  3. 28 May, 2005 1 commit
  4. 24 May, 2005 1 commit
    • libiberty.h (ACONCAT): Properly cast value of alloca(). · d7cf8390
      include/
      2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	* libiberty.h (ACONCAT): Properly cast value of alloca().
      
      	* ansidecl.h (ATTRIBUTE_UNUSED_LABEL): Don't define if
      	__cplusplus.
      
      libiberty/
      2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
      
      	* configure.ac: Check declarations for calloc(), getenv(),
      	malloc(), realloc() and sbrk().
      	* config.in: Regenerate.
      	* configure: Likewise.
      
      	* alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
      	instead of xmalloc.
      	* choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
      	* concat.c (liiberty_concat_ptr): Surround definition with an
      	extern "C" block, if __cplusplus.
      	(concat): Use XNEWVEC instead of xmalloc.
      	(reconcat): Likewise.
      	* cp-demangle.c (struct d_print_template): Rename member
      	"template" to "template_decl".  Adjust use throughout the file.
      	(d_print_resize): Properly cast return value of realloc().
      	(cplus_demangle_print): Same for malloc().
      	(d_demangle): Likewise.
      	* cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
      	"typename" to "type_name".
      	* cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
      	(work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
      	(demangle_template_value_parm): Likewise.
      	(demangle_template): Likewise.
      	(recursively_demangle): Likewise.
      	(do_hpacc_template_literal): Likewise.
      	(do_arg): Likewise.
      	(remember_type): Likewise.
      	(remember_Ktype): Likewise.
      	(register_Btype): Likewise.
      	(string_need): Use XRESIZEVEC instead of xrealloc().
      	* dyn-string.c (dyn_string_init): Use XNEWVEC.
      	(dyn_string_new): Use XNEW.
      	(dyn_string_resize): Use XRESIZEVEC.
      	* fnmatch.c (fnmatch): Rename local variable "not" to "negate".
      	* getopt.c (getenv): Declare only if !__cplusplus and !getenv.
      	Otherwise include <stdlib.h>.
      	(exchange): Cast return value of malloc().
      	* hashtab.c (htab_size): Define as both macro and non-inline
      	function.
      	(htab_elements): Likewise.
      	* getpwd.c (getpwd): Use XNEWVEC.
      	(htab_create_alloc_ex): Use C90 prototype-style.
      	* lrealpath.c (lrealpath): Appropriately cast return value of
      	malloc().
      	* make-relative-prefix.c (save_string): Likewise.
      	* make-temp-file.c (try_dir): Rename from "try".  Adjust use in
      	the file.
      	(choose_tmpdir): Use XNEWVEC.
      	* mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
      	* pex-common.c (pex_init_common): Use XNEW.
      	(pex_add_remove): Use XRESIZEVEC.
      	(pex_run): Likewise.
      	(pex_get_status_and_time): Likewise.
      	* pex-djgpp.c (pex_djgpp_exec_child): Likewise.
      	* pex-msdos.c (pex_init): Use XNEW.
      	(pex_msdos_exec_child): Likewise.
      	(pex_msdos_exec_child): Use XRESIZEVEC.
      	* pex-unix.c (pex_wait): Use XNEW.
      	* pex-win32.c (fix_argv): Use XNEWVEC.
      	* pexecute.c (pwait): Likewise.
      	* setenv.c (setenv): Properly cast return value of malloc().
      	* sigsetmask.c (sigsetmask): Rename local variables "old" and
      	"new" to "old_sig" and "new_sig".
      	* sort.c (main): Use XNEWVEC.
      	* spaces.c (spaces): Cast return value of malloc().
      	* strndup.c (strndup): Likewise.
      	* ternary.c (ternary_insert): Use XNEW.
      	* xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
      	with an extern "C" block if __cplusplus.
      	* xstrdup.c (xstrdup): Cast return value of memcpy().
      	* xstrerror.c (strerror): Enclose declaration in an extern "C"
      	block if __cplusplus.
      	* xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
      
      From-SVN: r100115
      Gabriel Dos Reis committed
  5. 07 May, 2005 1 commit
  6. 12 Apr, 2005 1 commit
  7. 11 Apr, 2005 1 commit
    • libiberty.h (fopen_unlocked, [...]): Provide prototypes for new functions. · 78a7dc90
      include:
      	* libiberty.h (fopen_unlocked, fdopen_unlocked, freopen_unlocked):
      	Provide prototypes for new functions.
      
      libiberty:
      	* Makefile.in (CFILES): Add fopen_unlocked.c.
      	(REQUIRED_OFILES): Add ./fopen_unlocked.o.
      	Regenerate dependencies.
      
      	* configure.ac: Check for stdio_ext.h and __fsetlocking.
      
      	* fopen_unlocked.c: New file.
      
      	* functions.texi, configure, config.in: Regenerate.
      
      From-SVN: r97977
      Kaveh R. Ghazi committed
  8. 02 Apr, 2005 1 commit
  9. 25 Mar, 2005 1 commit
    • libiberty.h (xstrndup): Declare. · 17998b22
      include:
      	* libiberty.h (xstrndup): Declare.
      
      libiberty:
      	* Makefile.in (CFILES): Add strndup.c and xstrndup.c.
      	(REQUIRED_OFILES): Add xstrndup.o.
      	(CONFIGURED_OFILES): Add strndup.o.
      	Regenerate dependencies.
      
      	* configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
      
      	* strndup.c, xstrndup.c: New.
      
      	* config.in, configure, functions.texi: Regenerate.
      
      From-SVN: r97034
      Kaveh R. Ghazi committed
  10. 10 Dec, 2004 1 commit
  11. 22 Apr, 2004 1 commit
    • hashtab.c: Include limits.h, stdint.h, ansidecl.h. · 9bf3c9cc
              * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
              (CHAR_BIT): Provide default.
              (struct prime_ent, prime_tab): New.
              (higher_prime_index): Rename from higher_prime_number, return index.
              (htab_mod_1): New.
              (htab_mod, htab_mod_m2): Use it.
              (htab_create_alloc, htab_create_alloc_ex): Store prime index.
              (htab_expand): Likewise.
              * configure.ac: Check for stdint.h.
              (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
              * config.in, configure: Rebuild.
      
      From-SVN: r81029
      Richard Henderson committed
  12. 09 Mar, 2004 1 commit
  13. 10 Jan, 2004 1 commit
    • configure.in: Rename file to ... · c31d56ed
      2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
      
      	* configure.in:  Rename file to ...
      	* configure.ac:  ... this.
      	* Makefile.in: Update a comment for above change.
      	* README: Likewise.
      	* config.in: Regenerate.
      
      From-SVN: r75623
      Kelley Cook committed
  14. 19 Jun, 2003 1 commit
  15. 09 Jun, 2003 1 commit
  16. 07 May, 2003 1 commit
    • hashtab.c (burtle_hash): New fn. · 5cc5a0d0
      libiberty/
              * hashtab.c (burtle_hash): New fn.
              * configure.in: Add AC_C_BIGENDIAN_CROSS.
              * aclocal.m4: Include accross.m4.
              * configure, config.in: Regenerate.
      include/
              * hashtab.h (burtle_hash): Prototype.
              (burtle_hash_object): New macro.
      
      From-SVN: r66565
      Jason Merrill committed
  17. 16 Apr, 2003 2 commits
    • configure.in (funcs, [...]): Add snprintf and vsnprintf. · bd3fbc6b
      	* configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
      	vsnprintf.
      	* snprintf.c, vsnprintf.c: New files.
      	* Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
      	(CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
      	Regenerate dependencies.
      
      	* functions.texi, configure, config.in: Regenerated.
      
      From-SVN: r65704
      Kaveh R. Ghazi committed
    • mempcpy.c, [...]: New files. · 029bcc09
      	* mempcpy.c, stpcpy.c, stpncpy.c: New files.
      	* configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
      	and stpncpy.
      	* Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
      	(CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
      	Regenerate dependencies.
      
      	* functions.texi, configure, config.in: Regenerated.
      
      From-SVN: r65674
      Kaveh R. Ghazi committed
  18. 22 Feb, 2003 2 commits
  19. 21 Feb, 2003 4 commits
  20. 20 Feb, 2003 1 commit
    • Makefile.in (CFILES): Add lrealpath.c. · 4876b2b4
      	* Makefile.in (CFILES): Add lrealpath.c.
      	(REQUIRED_OFILES): Add lrealpath.o.
      	(lrealpath.o): Add rule.
      	* aclocal.m4 (libiberty_NEED_DECLARATION): Add.
      	* configure.in: Add realpath and canonicalize_file_name to
      	checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
      	for canonicalize_file_name.
      	* lrealpath.c: New file.
      	* make-relative-prefix.c: Update documentation.
      	(make_relative_prefix): Simplify.  Use lbasename and lrealpath.
      	* config.in: Regenerated.
      	* configure: Regenerated.
      	* functions.texi: Regenerated.
      
      From-SVN: r63186
      Daniel Jacobowitz committed
  21. 13 Feb, 2003 1 commit
  22. 28 Nov, 2001 1 commit
    • top level: · e490616e
      2001-11-27  DJ Delorie <dj@redhat.com>
      	    Zack Weinberg  <zack@codesourcery.com>
      
      	When build != host, create libiberty for the build machine.
      
      	* Makefile.in (TARGET_CONFIGARGS, BUILD_CONFIGARGS): Replace
      	CONFIG_ARGUMENTS.
      	(ALL_BUILD_MODULES_LIST, BUILD_CONFIGDIRS, BUILD_SUBDIR):
      	New variables.
      	(ALL_BUILD_MODULES, CONFIGURE_BUILD_MODULES): New variables
      	and rules.
      	(all.normal): Depend on ALL_BUILD_MODULES.
      	(CONFIGURE_TARGET_MODULES rule): Use TARGET_CONFIGARGS.
      	(all-build-libiberty): Depend on configure-build-libiberty.
      
      	* configure: Calculate and substitute proper value for
      	ALL_BUILD_MODULES.
      	* configure.in: Create the build subdirectory.
      	Calculate and substitute TARGET_CONFIGARGS (formerly
      	CONFIG_ARGUMENTS); also BUILD_SUBDIR and BUILD_CONFIGARGS (new).
      
      libiberty:
      2001-11-27  Zack Weinberg  <zack@codesourcery.com>
      
      	* _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
      	in libiberty context.  Fix typo in leading comment.
      	* configure.in: Fix various AC_DEFINEs so autoheader works.
      	If any of vprintf, vsprintf, vfprintf is missing from libc,
      	then AC_REPLACE_FUNCS(_doprnt).
      
      From-SVN: r47393
      Zack Weinberg committed
  23. 26 Nov, 2001 1 commit
  24. 15 Nov, 2001 1 commit
  25. 06 Mar, 2001 1 commit
    • aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New. · b548dffb
      libiberty:
      	* aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
      	* configure.in: Replace all alloca logic with a simple use of
      	the above new macro.
      	* config.table: Kill *-*-beos* entry.
      	* config/mh-beos: Delete.
      	* configure, config.in: Regenerate.
      
      	* Makefile.in (ALLOCA, HFILES): Kill.
      	(REQUIRED_OFILES): Add alloca.o.
      	(alloca.o): Depend on libiberty.h.
      	(argv.o): Don't depend on alloca-conf.h.
      	* alloca-conf.h: Delete.
      	* alloca.c: Include libiberty.h.  Kill all #ifdef emacs
      	blocks.  Provide the C alloca unconditionally.  Use PTR where
      	appropriate.  Make i00afunc static.
      	* argv.c: Don't include alloca-conf.h.
      
      include:
      	* libiberty.h: Prototype C_alloca; define alloca to either
      	__builtin_alloca or C_alloca as appropriate.
      
      gcc:
      	* aclocal.m4 (AM_GNU_GETTEXT): Don't AC_REQUIRE
      	AC_FUNC_ALLOCA.
      	* configure, config.in: Regenerate.
      	* config.gcc: Remove references to deleted files.
      
      	* genattr.c, genattrtab.c, genextract.c, genoutput.c,
      	genrecog.c, rtl.c: Do not use alloca anywhere.
      
      	* Makefile.in, build-make, system.h, config/x-interix,
      	config/x-svr4, config/xm-interix.h, config/xm-openbsd.h,
      	config/alpha/xm-alpha.h, config/alpha/xm-vms.h,
      	config/arc/xm-arc.h, config/arm/xm-arm.h,
      	config/d30v/xm-d30v.h, config/dsp16xx/xm-dsp16xx.h,
      	config/h8300/xm-h8300.h, config/i370/x-oe,
      	config/i370/xm-linux.h, config/i386/x-aix, config/i386/x-beos,
      	config/i386/x-ncr3000, config/i386/x-sco5,
      	config/i386/xm-dgux.h, config/i860/x-sysv4,
      	config/i960/xm-i960.h, config/m32r/xm-m32r.h,
      	config/m68k/x-crds, config/m68k/x-dpx2, config/m68k/x-hp320,
      	config/m68k/x-hp320g, config/m69k/x-mot3300,
      	config/m68k/x-mot3300-gas, config/m68k/xm-amix.h,
      	config/m68k/xm-hp320.h, config/m68k/xm-m68kv.h,
      	config/m68k/xm-mot3300.h, config/m88k/x-dolph,
      	config/m88k/x-sysv4, config/m88k/x-tekXD88,
      	config/m88k/xm-m88k.h, config/mcore/xm-mcore.h,
      	config/mips/x-iris, config/mips/x-iris3,
      	config/mips/x-sni-svr4, config/mips/x-sysv,
      	config/mips/xm-iris6.h, config/mips/xm-mips.h,
      	config/mips/xm-nws3250v4.h, config/pa/x-hpux,
      	config/pa/x-pa-mpeix, config/pa/xm-pa.h,
      	config/pa/xm-pa64hpux.h, config/pa/xm-pahpux.h,
      	config/pa/xm-papro.h, config/romp/xm-romp.h,
      	config/rs6000/x-aix31, config/rs6000/x-aix41,
      	config/rs6000/x-beos, config/rs6000/x-lynx,
      	config/rs6000/x-mach, config/rs6000/x-rs6000,
      	config/rs6000/x-sysv4, config/rs6000/xm-rs6000.h,
      	config/rs6000/xm-sysv4.h, config/sh/xm-sh.h,
      	config/sparc/x-sysv4, config/sparc/xm-linux.h,
      	config/sparc/xm-pbd.h, config/sparc/xm-sparc.h,
      	config/vax/xm-vms.h: Eradicate all references to alloca and
      	related stuff.
      
      	* config/xm-alloca.h, config/clipper/x-clix,
      	config/i386/xm-sysv4.h, config/i860/x-fx2800,
      	config/i860/x-sysv3, config/m88k/x-sysv3,
      	config/sparc/xm-sol2.h, config/we32k/x-we32k: Delete
      	(contained only alloca related hacks).
      
      	* config/i386/xm-beos.h, config/rs6000/xm-beos.h: Just define
      	USE_C_ALLOCA.
      
      From-SVN: r40259
      Zack Weinberg committed
  26. 26 Dec, 2000 1 commit
  27. 22 Nov, 2000 1 commit
    • Makefile.in, [...]: Expunge remaining traces of facility for running MD files… · d1209685
      Makefile.in, [...]: Expunge remaining traces of facility for running MD files through C preprocessor.
      
      gcc:
              * 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.
      
      From-SVN: r37650
      Zack Weinberg committed
  28. 23 Jul, 2000 3 commits
  29. 28 Apr, 2000 1 commit
  30. 31 Aug, 1999 1 commit
  31. 21 Jun, 1999 1 commit
  32. 15 Apr, 1999 1 commit
  33. 19 Nov, 1998 1 commit