summaryrefslogtreecommitdiff
path: root/libiberty/configure.ac
Commit message (Collapse)AuthorAgeFilesLines
* * strnlen.c: New file.ian2012-09-181-3/+5
| | | | | | | | | | | | | | * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not present. * Makefile.in: Rebuild dependencies. (CFILES): Add strnlen.c. (CONFIGURED_OFILES): Add ./strnlen.$(objext). * configure, config.in, functions.texi: Rebuild. * maint-tool: Accept .def files in the include directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@191432 138bc75d-0d04-0410-961f-82ee72b054a4
* Centralize PICFLAG configurationro2011-08-221-21/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | config: * picflag.m4: New file. gcc: * configure.ac (GCC_PICFLAG_FOR_TARGET): Call it. (PICFLAG_FOR_TARGET): Substitute. * aclocal.m4: Regenerate. * configure: Regenerate. gcc/ada: * gcc-interface/Makefile.in (PICFLAG_FOR_TARGET): New. (GNATLIBCFLAGS_FOR_C): Replace TARGET_LIBGCC2_CFLAGS by PICFLAG_FOR_TARGET. (gnatlib-shared-default, gnatlib-shared-dual-win32) (gnatlib-shared-win32, gnatlib-shared-darwin, gnatlib-shared) (gnatlib-sjlj, gnatlib-zcx): Likewise. libada: * configure.ac: Include ../config/picflag.m4. (GCC_PICFLAG): Call it. Substitute. * configure: Regenerate. * Makefile.in (TARGET_LIBGCC2_CFLAGS): Replace by PICFLAG. (GNATLIBCFLAGS_FOR_C): Replace TARGET_LIBGCC2_CFLAGS by PICFLAG. (LIBADA_FLAGS_TO_PASS): Pass PICFLAG as PICFLAG_FOR_TARGET. Don't include $(GCC_DIR)/libgcc.mvars. libiberty: * aclocal.m4: Include ../config/picflag.m4. * configure.ac (GCC_PICFLAG): Call it. (enable_shared): Clear PICFLAG unless shared. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177967 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49756jakub2011-07-221-6/+6
| | | | | | | | | | | | | | | | | | | * libiberty.h (stack_limit_increase): New prototype. * stack-limit.c: New file. * Makefile.in: Regenerate deps. (CFILES): Add stack-limit.c. (REQUIRED_OFILES): Add ./stack-limit.$(objext). * configure.ac (checkfuncs): Add getrlimit and setrlimit. (AC_CHECK_FUNCS): Likewise. * configure: Regenerated. * config.in: Regenerated. * gcc.c (main): Call stack_limit_increase (64MB). * toplev.c (toplev_main): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176617 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix build regressiongreen2010-11-211-11/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166996 138bc75d-0d04-0410-961f-82ee72b054a4
* Use spawnve on cygwin.rth2010-11-041-6/+8
| | | | | | | | | | | * configure.ac (AC_CHECK_HEADERS): Add process.h. (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list. (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe. * configure, config.in: Rebuild. * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function. [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166339 138bc75d-0d04-0410-961f-82ee72b054a4
* include/:ian2010-11-021-0/+1
| | | | | | | | | | | | | | | | | | | | | | * simple-object.h: New file. libiberty/: * simple-object.c: New file. * simple-object-common.h: New file. * simple-object-elf.c: New file. * simple-object-mach-o.c: New file. * simple-object-coff.c: New file. * simple-object.txh: New file. * configure.ac: Add AC_TYPE_SSIZE_T. * Makefile.in: Rebuild dependencies. (CFILES): Add simple-object.c, simple-object-coff, simple-object-elf.c, and simple-object-mach-o.c. (REQUIRED_OFILES): Add corresponding object files. * configure: Rebuild. * config.in: Rebuild. * functions.texi: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166185 138bc75d-0d04-0410-961f-82ee72b054a4
* Turn PR_SET_NAME check into link checkak2010-10-071-1/+1
| | | | | | | | | | | | | Fixes cross compilation for libiberty after my change libiberty/ 2010-10-07 Andi Kleen <ak@linux.intel.com> * configure: Regenerate. * configure.ac: Turn PR_SET_NAME check into link check. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165086 138bc75d-0d04-0410-961f-82ee72b054a4
* [PATCH] Report LTO phase in lto1 process name v2ak2010-10-061-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On larger parallel WHOPR builds I find it useful to see in top which phase a given lto1 is in. Set the process name to lto1-wpa, lto1-ltrans, lto1-lto depending on the current mode. This is currently only implemented for Linux and only using the "comm" process name, which is reported in top. v2: Moved function to libiberty, renamed setproctitle to match BSD. In theory it should pick up BSD's libc function for this on a BSD system, but I haven't tested this. gcc/lto/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * lto.c (lto_process_name): Add. (lto_main): Call lto_process_name. include/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * libiberty.h (setproctitle): Add prototype. libiberty/ 2010-10-06 Andi Kleen <ak@linux.intel.com> * Makefile.in (CFILES): Add setproctitle. (CONFIGURED_OFILES): Add setproctitle. (setproctitle): Add rule. * config.in: Regenerate. * configure: Regenerate. * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle. * setproctitle.c: Add file. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165066 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-09-08 Tristan Gingold <gingold@adacore.com>gingold2010-09-081-4/+4
| | | | | | | | | | | | | | | PR 44001 * maint-tool (missing): Fix pattern for object file. (deps): Use $(objext) for object extension. * Makefile.in (objext): New variable. Replace all occurences of .o with .$(objext) Regenerate with maint-deps * configure.ac (pexecute): Set to the basename. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163989 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix PR bootstrap/42798.rwild2010-06-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | libiberty/: PR bootstrap/42798 * configure.ac: Check for declaration of 'basename(char *)'. * configure: Regenerate. libcpp/: PR bootstrap/42798 * configure.ac: Check for declaration of 'basename(char *)'. * configure: Regenerate. * config.in: Regenerate. libjava/: * configure: Regenerate. libjava/classpath/: * configure: Regenerate. fixincludes/: PR bootstrap/42798 * configure.ac: Check for declaration of 'basename(char *)'. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160211 138bc75d-0d04-0410-961f-82ee72b054a4
* PR target/42316kkojima2010-01-041-0/+1
| | | | | | | | | * configure.ac (PICFLAG): Use -fPIC on SH hosts. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155634 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (AC_CHECK_FUNCS): Sort into alphabetical order.bje2009-11-251-9/+16
| | | | | | | * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154660 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-09-04 Ozkan Sezer <sezeroz@gmail.com>hjl2009-09-041-3/+3
| | | | | | | | | | | PR target/39065 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T. * config.in: Regenerated. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151423 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-09-03 Ozkan Sezer <sezeroz@gmail.com>hjl2009-09-031-0/+1
| | | | | | | | | | | | PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151386 138bc75d-0d04-0410-961f-82ee72b054a4
* Update AC_PREREQ entries to 2.64rwild2009-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /: * configure.ac (AC_PREREQ): Bump to 2.64. intl/: * configure.ac (AC_PREREQ): Bump to 2.64. libdecnumber/: * configure.ac (AC_PREREQ): Bump to 2.64. libiberty/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/classpath/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/: * configure.ac (AC_PREREQ): Bump to 2.64. libjava/libltdl/: * configure.ac (AC_PREREQ): Bump to 2.64. Remove FIXME. libssp/: * configure.ac (AC_PREREQ): Bump to 2.64. libobjc/: * configure.ac (AC_PREREQ): Bump to 2.64. libstdc++-v3/: * configure.ac (AC_PREREQ): Bump to 2.64. libada/: * configure.ac (AC_PREREQ): Bump to 2.64. libgcc/: * configure.ac (AC_PREREQ): Bump to 2.64. libgfortran/: * configure.ac (AC_PREREQ): Bump to 2.64. boehm-gc/: * configure.ac (AC_PREREQ): Bump to 2.64. gnattools/: * configure.ac (AC_PREREQ): Bump to 2.64. gcc/: * configure.ac (AC_PREREQ): Bump to 2.64. fixincludes/: * configure.ac (AC_PREREQ): Bump to 2.64. libmudflap/: * configure.ac (AC_PREREQ): Bump to 2.64. zlib/: * configure.ac (AC_PREREQ): Bump to 2.64. libffi/: * configure.ac (AC_PREREQ): Bump to 2.64. libcpp/: * configure.ac (AC_PREREQ): Bump to 2.64. libgomp/: * configure.ac (AC_PREREQ): Bump to 2.64. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151059 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (setobjs, msdosdjgpp): Move a-priori setting ofdj2009-04-141-17/+22
| | | | | | | | | | existing and required library functions to with_target_subdir section, so that the native build does detect them at configure time. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146056 138bc75d-0d04-0410-961f-82ee72b054a4
* 2009-04-07 Arnaud Patard <apatard@mandriva.com>bonzini2009-04-081-1/+1
| | | | | | | | | * libiberty/configure.ac: Fix Linux/MIPS matching rule. * libiberty/configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145726 138bc75d-0d04-0410-961f-82ee72b054a4
* * memmem.c: New file, from gnulib.ian2009-03-271-1/+2
| | | | | | | | | | | | * configure.ac: Add memmem to list of functions provided if they are not available on the host. * Makefile.in: Rebuild dependencies. (CFILES): Add memmem.c. (CONFIGURED_OFILES): Add memmem.o. * configure, config.in, functions.texi: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@145139 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,davek2009-01-181-23/+0
| | | | | | | | | as it no longer shares libiberty object files. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143487 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>hjl2008-10-071-0/+1
| | | | | | | | | * configure.ac: Call AC_SYS_LARGEFILE. * config.in: Regenerated. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140940 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-04-21 Aurelien Jarno <aurelien@aurel32.net>doko2008-04-211-0/+1
| | | | | | | | * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts. * libiberty/configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@134534 138bc75d-0d04-0410-961f-82ee72b054a4
* 2008-03-27 Paolo Bonzini <bonzini@gnu.org>bonzini2008-03-271-22/+20
| | | | | | | | | | * configure.ac (frags): Don't set, use frag instead. (PICFLAG): Set here and substitute. * Makefile.in (PICFLAG): Substitute from autoconf. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@133639 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (target_header_dir, msdosdjgpp): Remove duplicatedj2007-07-171-1/+1
| | | | | | | | gettimeofday entry. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126704 138bc75d-0d04-0410-961f-82ee72b054a4
* 2007-06-14 Paolo Bonzini <bonzini@gnu.org>bonzini2007-06-141-1/+2
| | | | | | | | | * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125716 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:bonzini2007-06-141-20/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acinclude.m4 (gcc_AC_CHECK_PROG_VER): Remove. * aclocal.m4: Regenerate. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS, ACX_PROG_CC_WARNINGS_ARE_ERRORS, ACX_PROG_CC_WARNING_ALMOST_PEDANTIC, ACX_CHECK_PROG_VER. * configure: Regenerate. * Makefile.in (LOOSE_WARN): Subst loose_warn. * Makefile.in (quickstrap): Build libgcc too. libiberty: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * aclocal.m4: Include config/warnings.m4. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS. * configure: Regenerate. config: 2007-06-14 Paolo Bonzini <bonzini@gnu.org> * acx.m4 (ACX_CHECK_PROG_VER): Remove duplicate lines. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125700 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Non-default multilibs can be cross compilations.geoffk2007-06-071-0/+19
| | | | | | | * configure: Regenerate git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125536 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: add djgpp-specific results, so we don't have todj2007-02-261-0/+17
| | | | | | | | link during a cross compilation. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122343 138bc75d-0d04-0410-961f-82ee72b054a4
* 2006-08-30 Corinna Vinschen <corinna@vinschen.de>dj2006-08-301-0/+49
| | | | | | | | * configure.ac: Add case for Mingw as host. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116586 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty/carlos2006-04-061-0/+5
| | | | | | | | | | | | | | | 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> * Makefile.in: Add install-html, install-html-am, and install-html-recursive targets. Define mkdir_p and NORMAL_INSTALL. * configure.ac: AC_SUBST datarootdir, docdir, htmldir. * configure: Regenerate. * testsuite/Makefile.in: Add install-html and html targets. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112741 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflagsgdr2006-01-291-0/+16
| | | | | | | | where supported. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110375 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Check for a getopt(3) declaration.bje2005-07-221-1/+1
| | | | | | | * configure, config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102267 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>kcook2005-07-071-1/+69
| | | | | | | | | | * config.table: Delete file. Move former contents into ... * configure.ac: ... here and escape any brackets for m4. * Makefile.in (config.status): Remove dependency on config.table. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101684 138bc75d-0d04-0410-961f-82ee72b054a4
* Index: include/ChangeLoggeoffk2005-06-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | 2005-06-20 Geoffrey Keating <geoffk@apple.com> * libiberty.h (strverscmp): Prototype. Index: libiberty/ChangeLog 2005-06-20 Geoffrey Keating <geoffk@apple.com> * strverscmp.c: New. * Makefile.in (CFILES): Add strverscmp.c. (CONFIGURED_OFILES): Add strverscmp.o. (strverscmp.o): New rule. (stamp-functions): Add $(srcdir) to files in source directory. * configure.ac (funcs): Add strverscmp. (AC_CHECK_FUNCS): Add strverscmp. * configure: Regenerate. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101226 138bc75d-0d04-0410-961f-82ee72b054a4
* include:aj2005-05-281-2/+2
| | | | | | | | | | | | | | | | | 2005-05-28 Eli Zaretskii <eliz@gnu.org> * libiberty.h: (snprintf) [!HAVE_DECL_SNPRINTF]: Declare if needed. (vsnprintf) [!HAVE_DECL_VSNPRINTF]: Declare if needed. libiberty: 2005-05-28 Eli Zaretskii <eliz@gnu.org> * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS. * config.in, configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100292 138bc75d-0d04-0410-961f-82ee72b054a4
* include/gdr2005-05-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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(). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100115 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>kcook2005-05-071-4/+4
| | | | | | | | | * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove. * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99344 138bc75d-0d04-0410-961f-82ee72b054a4
* 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>kcook2005-05-071-1/+1
| | | | | | | | | | * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS. Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF. * aclocal.m4: Don't include accross.m4. * configure, config.in: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99343 138bc75d-0d04-0410-961f-82ee72b054a4
* * asprintf.c: Include config.h.gdr2005-04-161-0/+1
| | | | | | | | | | | | | | | * basename.c: Likewise. * fdmatch.c: Likewise. * hex.c: Likewise. * lbasename.c: Likewise. * spaces.c: Likewise. * xatexit.c:Likewise. * configure.ac: Do check declarations for basename, ffs, asprintf and vasprintf for real. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98218 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac: Check declarations for basename, ffs,gdr2005-04-121-0/+1
| | | | | | | | | asprintf, vasprintf. * configure: Regenerate. * config.in: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@98022 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2005-04-111-3/+3
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97977 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-stringsghazi2005-04-021-1/+1
| | | | | | | | | | | -Wstrict-prototypes. * configure, config.in: Regenerate. * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix warnings and reconcile interfaces with relevant standards. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97456 138bc75d-0d04-0410-961f-82ee72b054a4
* libiberty:ian2005-03-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * pex-common.c: New file. * pex-one.c: New file. * pexecute.c: New file. * pex-common.h: Include <stdio.h>. (struct pex_obj): Define. (struct pex_funcs): Define. (pex_init_common): Declare. * pex-unix.c: Rewrite. * pex-win32.c: Rewrite. * pex-djgpp.c: Rewrite. * pex-msdos.c: Rewrite. * testsuite/text-pexecute.c: New file. * pexecute.txh: Rewrite. * configure.ac: Check for wait3 and wait4. Set CHECK to really-check rather than check-cplus-dem. * functions.texi: Rebuild. * Makefile.in: Rebuild dependencies. (CFILES): Add pexecute.c, pex-common.c, pex-one.c. (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o. * testsuite/Makefile.in (really-check): New target. (check-pexecute, test-pexecute): New targets. * configure: Rebuild. include: * libiberty.h: Include <stdio.h>. (PEX_RECORD_TIMES, PEX_USE_PIPES, PEX_SAVE_TEMPS): Define. (PEX_LAST, PEX_SEARCH, PEX_SUFFIX, PEX_STDERR_TO_STDOUT): Define. (PEX_BINARY_INPUT, PEX_BINARY_OUTPUT): Define. (pex_init, pex_run, pex_read_output): Declare. (pex_get_status, pex_get_times, pex_free, pex_one): Declare. (struct pex_time): Define. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97148 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditionalaj2005-03-271-1/+1
| | | | | | | | flags. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97116 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2005-03-251-1/+2
| | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97034 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty.h (gettimeofday): Declare.mmitchel2005-03-101-1/+2
| | | | | | | | | | | | * configure.ac (funcs): Add gettimeofday. * configure: Regenerated. * gettimeofday.c: New file. * Makefile.in (CFILES): Add gettimeofday. (CONFIGURED_OFILES): Add gettimeofday.o. (./gettimeofday.o): New rule. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96230 138bc75d-0d04-0410-961f-82ee72b054a4
* * pex-os2.c: Remove.ian2005-03-091-1/+0
| | | | | | | | | | | * configure.ac: Remove *-*-os2-emx* case when setting pexecute. * Makefile.in (CFILES): Remove pex-os2.c. (CONFIGURED_OFILES): Remove pex-os2.o. (pex-os2.o): Remove target. * configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96211 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (target_header_dir): vfork is a stub under djgpp.dj2005-03-061-1/+1
| | | | | | | * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95980 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.ac (target_header_dir): vfork is a stub under djgpp.dj2005-03-061-0/+5
| | | | | | | * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95979 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>hjl2004-12-271-27/+19
| | | | | | | | | | | | * Makefile.in: Undo to 2004-12-17. * aclocal.m4: Likewise. * config.table: Likewise. * configure.ac: Likewise. * maint-tool: Likewise. * configure: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92651 138bc75d-0d04-0410-961f-82ee72b054a4
* 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>hjl2004-12-201-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR bootstrap/19072 * Makefile.in (enable_shared): New substitute. (LTTARGETLIB): New. (PREFIXTARGETLIB): New. (LTTESTLIB): New. (PREFIXTESTLIB): New. (CCLD): New. (LINK): New. ($(TARGETLIB)): Use $(LINK) to create libraries and create targets by hand. ($(TESTLIB)): Likewise. (mostlyclean): Don't remove .libs. Remove the libtool object directory. * config.table (enable_shared): Removed. * configure.ac (enable_static): Set to yes. (AC_PROG_LIBTOOL): Removed. (AM_DISABLE_SHARED): Uncommented. (AM_PROG_LIBTOOL): Likewise. (LIBOBJS): Add `./' to avoid VPATH. (LTLIBOBJS): Likewise. (enable_shared): Substitute. * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92406 138bc75d-0d04-0410-961f-82ee72b054a4