aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
2002-01-31configure.in: Treat mingw the same as cywin wrt HAVE_SYS_ERRLIST.Adam Megacz3-2/+7
* gcc/libiberty/configure.in: Treat mingw the same as cywin wrt HAVE_SYS_ERRLIST. From-SVN: r49371
2002-01-31cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.Phil Edwards3-9/+19
2002-01-30 Phil Edwards <pme@gcc.gnu.org> * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. (cplus_demangle_v3): Mimic __cxa_demangle and fall back on cp_demangle_type. * testsuite/demangle-expected: New gnu-v3 test. From-SVN: r49353
2002-01-22configure.in (variable detection): Use arrays of unspecified size instead of ↵Momchil Velikov3-2/+7
plain integers. * configure.in (variable detection): Use arrays of unspecified size instead of plain integers. From-SVN: r49103
2002-01-22Makefile.in (TESTLIB): New.DJ Delorie10-99/+396
* Makefile.in (TESTLIB): New. This library is for future testsuites. (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize, break down by letter. (REQUIRED_OFILES): List long-to-compile files first. (maint-deps): New, target for updating dependencies. (dependencies): Update. * maint-tool: Add dependency-generating option. * configure.in: Check for _doprnt even if we're not providing it. * configure: Regenerate. * _doprnt.c: Modifications to allow compiling on any platform. * copysign.c: Likewise. * putenv.c: Likewise. * setenv.c: Likewise. * vsprintf.c: Likewise. From-SVN: r49090
2002-01-15mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to ↵Douglas B Rupp2-0/+9
be deleted when closed. * libiberty/mkstemps.c (mkstemps): On VMS, open temp file with option that causes it to be deleted when closed. * gcc/gcc.c (delete_if_ordinary): Backout previous change. From-SVN: r48872
2002-01-02gcc.c (default_compilers): Const-ify.Kaveh R. Ghazi3-2/+5
* gcc.c (default_compilers): Const-ify. * mips-tdump.c (stab_names): Likewise. * mips-tfile.c (map_coff_types, map_coff_storage, map_coff_sym_type, map_coff_derived_type, stabs_symbol, pseudo_ops_t, pseudo_ops): Likewise. * protoize.c (default_include): Likewise f: * com.c (clear_binding_level): Const-ify. (ffecom_arglist_expr_): Likewise. * info.c (ffeinfo_types_): Don't needlessly zero init. * lex.c (ffelex_hash_kludge): Const-ify. java: * parse.y (src_parse_roots): Don't needlessly zero init. libiberty: * cp-demangle.c (long_options): Const-ify. * cplus-dem.c (long_options): Likewise. From-SVN: r48485
2002-01-02cplus-dem.c (mystrstr): Delete.Kaveh R. Ghazi2-27/+13
* cplus-dem.c (mystrstr): Delete. All callers changed to use strstr instead. From-SVN: r48476
2002-01-01configure.in (uintptr_t): Use AC_CHECK_TYPE.Douglas B Rupp1-0/+5
* configure.in (uintptr_t): Use AC_CHECK_TYPE. * configure: Regenerated. From-SVN: r48442
2001-12-31aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.Ira Ruben3-1/+12
* aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try. * configure: Regenerated. From-SVN: r48436
2001-12-24configure.in (uintptr_t): Use AC_CHECK_TYPE.Douglas B Rupp2-190/+198
* configure.in (uintptr_t): Use AC_CHECK_TYPE. * configure: Regenerated. From-SVN: r48306
2001-12-12re PR other/2719 (demangler crash)Craig Rodrigues3-0/+13
2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org> PR other/2719 * cplus-dem.c (consume_count): Treat negative count as an error. * testsuite/demangle-expected: Added testcase. From-SVN: r47952
2001-12-11configure.in: Hardcode that vfork works on VMS host.Douglas B Rupp3-54/+73
* gcc/configure.in: Hardcode that vfork works on VMS host. * gcc/configure: Regenerated. * libiberty/configure.in: Hardcode that vfork works on VMS host. * libiberty/configure: Regenerated. From-SVN: r47869
2001-12-06demangle.h (no_demangling): New.Richard Henderson2-0/+15
* demangle.h (no_demangling): New. (NO_DEMANGLING_STYLE_STRING): New. * cplus-dem.c (libiberty_demanglers): Add no_demangling case. (cplus_demangle): Support no_demangling. From-SVN: r47733
2001-11-28top level:Zack Weinberg5-47/+414
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
2001-11-26Makefile.in (stamp-h): Depend on Makefile for proper serialization.DJ Delorie2-2/+14
* Makefile.in (stamp-h): Depend on Makefile for proper serialization. (*-subdir): Depend on config.h for proper serialization. Co-Authored-By: Daniel Jacobowitz <drow@mvista.com> From-SVN: r47354
2001-11-26Fix typo.DJ Delorie1-1/+1
From-SVN: r47353
2001-11-26configure.in: Check for alloca.h (for regex.c and putenv.c).DJ Delorie4-2/+11
* configure.in: Check for alloca.h (for regex.c and putenv.c). * configure: Regenerate. * config.h: Add HAVE_ALLOCA_H. From-SVN: r47352
2001-11-16Update test for token pasting to also check "|| defined(ALMOST_STDC)"Kaveh R. Ghazi2-4/+5
From-SVN: r47108
2001-11-16regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE) to determine ↵Kaveh R. Ghazi2-2/+7
whether ISO CPP... * regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting is available. From-SVN: r47107
2001-11-15config.in (HAVE_UINTPTR_T): Provide autoconf stub.Jeffrey A Law5-77/+140
* config.in (HAVE_UINTPTR_T): Provide autoconf stub. * configure.in (HAVE_UINTPTR_T): Test for system defining uintptr_t and define HAVE_UINTPTR_T appropriately. * regex.c (uintptr_t): Do not provide a definition if the system provided one. From-SVN: r47068
2001-11-15regex.c (PREFIX): Provide an alternate definition for non-ANSI/ISO compilers.Jeffrey A Law2-3/+18
* regex.c (PREFIX): Provide an alternate definition for non-ANSI/ISO compilers. (ARG_PREFIX): Likewise. From-SVN: r47067
2001-11-12obstack.c (_): Honor the setting of ENABLE_NLS.Jim Meyering4-3/+11
2001-11-12 Jim Meyering <meyering@lucent.com> * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise, this code would end up calling gettext even in packages built with --disable-nls. * getopt.c (_): Likewise. * regex.c (_): Likewise. From-SVN: r46975
2001-11-04remove trailing whitespaceDJ Delorie1-5/+5
From-SVN: r46779
2001-11-05Add missing entry.Alan Modra1-0/+1
From-SVN: r46778
2001-11-04* configure.in: Cope with missing makeinfo.Alan Modra3-124/+138
From-SVN: r46767
2001-10-23libiberty.h (hex_init): Revert delete.Kaveh R. Ghazi2-0/+8
include: * libiberty.h (hex_init): Revert delete. libiberty: * hex.c (hex_init): Provide empty stub. From-SVN: r46421
2001-10-22libiberty.h (_hex_value): Const-ify.Kaveh R. Ghazi2-11/+88
include: * libiberty.h (_hex_value): Const-ify. (hex_init): Delete. libiberty: * hex.c (hex_init): Delete. (_hex_value): Const-ify and initialize at compile-time. From-SVN: r46417
2001-10-19Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if necessary.H.J. Lu2-1/+13
2001-10-19 H.J. Lu <hjl@gnu.org> * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if necessary. From-SVN: r46369
2001-10-17argv.c, [...]: Improve manual formatting.DJ Delorie16-57/+65
* argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c, ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c, mkstemps.c, pexecute.c, random.c, strsitnal.c, vasprintf.c: Improve manual formatting. * functions.texi: Regenerate. From-SVN: r46323
2001-10-15Makefile.in (TEXIFILES): Add fnmatch.txh.DJ Delorie24-298/+944
* Makefile.in (TEXIFILES): Add fnmatch.txh. (maint-undoc): New. maint-tool: Add "undoc" tool. * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c, fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c, make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c, strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update documentation. * fnmatch.txh: New. * functions.texi: Regenerate. From-SVN: r46274
2001-10-10bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".Joseph Myers5-8/+14
* bcmp.c, setenv.c: Use "nonzero" instead of "non-zero". * strtod.c: Use "ISO C" instead of "ANSI C". * functions.texi: Regenerate. From-SVN: r46136
2001-10-07alloca.c, [...]: Improve manual formatting.Joseph Myers23-60/+70
* alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c, libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c, strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c, xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix spelling. Give names to function arguments in documentation. Use (void) prototypes in documentation. * functions.texi: Regenerate. From-SVN: r46068
2001-10-07demangle.h (demangler_engine): Const-ify.Kaveh R. Ghazi9-29/+43
include: * demangle.h (demangler_engine): Const-ify. * libiberty.h (buildargv): Likewise. libiberty: * argv.c (buildargv, tests, main): Const-ify. * cp-demangle.c (operator_code): Likewise. * cplus-dem.c (optable, libiberty_demanglers, cplus_demangle_set_style, cplus_demangle_name_to_style, print_demangler_list): Likewise. * hashtab.c (higher_prime_number): Likewise. * strcasecmp.c (charmap): Likewise. * strerror.c (error_info, strerror, main): Likewise. * strncasecmp.c (charmap): Likewise. * strsignal.c (signal_info): Likewise. From-SVN: r46060
2001-09-29* configure: Regenerate.DJ Delorie2-123/+128
From-SVN: r45881
2001-09-28* concat.c: Include stdlib.h.Kaveh R. Ghazi2-0/+8
From-SVN: r45861
2001-09-27libiberty.texi: (Top level): Add syncodeindex pg.Eli Zaretskii14-53/+81
* libiberty.texi: (Top level): Add syncodeindex pg. Add @dircategory and @direntry directives. Add @finalout. (many nodes): Lose the next,prev,up pointers on the @nide line. (Using, Supplemental Functions, Replacement Functions): Fix markup. (Functions): Move around, to allow makeinfo to build the manual without next,prev,up pointers in thye node lines. (Licenses): Fix typos. * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c, strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup. * functions.texi: Regenerate. * copying-lib.texi: Lose the next,prev,up pointers on the @node line. From-SVN: r45847
2001-09-27configure.in: Don't use in-tree texinfo, because libiberty must be built ↵DJ Delorie3-14/+21
before it. * configure.in: Don't use in-tree texinfo, because libiberty must be built before it. Check for makeinfo version 4 or higher. * functions.texi: Regenerate. From-SVN: r45846
2001-09-26configure.in (MAKEINFO, PERL): Detect these.DJ Delorie53-352/+3243
* configure.in (MAKEINFO, PERL): Detect these. (--enable-maintainer-mode): Add. * configure: Regenerate. * Makefile.in (MAKEINFO, PERL): Define. (libiberty.info, libiberty.dvi, libiberty.html): New. (CFILES): Add bsearch.c. (CONFIGURED_OFILES): New, list of objects configure might add. (maint-missing, maint-buildall): New, for maintainers only. (clean, mostlyclean): Add info/dvi/html files. * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New. * gather-docs: New, for maintainers. * maint-tool: New, for maintainers. * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c, bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c, getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c, memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c, sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c, strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c, tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c, xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update documentation. Co-Authored-By: Phil Edwards <pedwards@disaster.jaj.com> From-SVN: r45828
2001-09-25* concat.c (reconcat): Fix for traditional C.Kaveh R. Ghazi2-3/+6
From-SVN: r45814
2001-09-24libiberty.h (reconcat): New function.Kaveh R. Ghazi2-0/+29
include: * libiberty.h (reconcat): New function. libiberty: * concat.c (reconcat): New function. gcc: * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC. Avoid leak by passing malloc'ed pointer to reconcat, not concat. From-SVN: r45789
2001-09-17libiberty.h (concat_length, [...]): New.Kaveh R. Ghazi2-19/+83
include: * libiberty.h (concat_length, concat_copy, concat_copy2, libiberty_concat_ptr, ACONCAT): New. libiberty: * concat.c (vconcat_length, vconcat_copy, concat_length, concat_copy, concat_copy2): New functions. (concat): Use vconcat_length/vconcat_copy. gcc: * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat. From-SVN: r45664
2001-09-17libiberty.h (ASTRDUP): New macro.Kaveh R. Ghazi2-0/+11
include: * libiberty.h (ASTRDUP): New macro. libiberty_optr, libiberty_nptr, libiberty_len): Declare. libiberty: * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len): Define. gcc: * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of alloca/strcpy. From-SVN: r45657
2001-09-04asprintf.c: Don't define USE_STDARG.Kaveh R. Ghazi3-37/+25
* asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. * vasprintf.c: Check HAVE_STRING_H when including string.h. (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1. Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string. From-SVN: r45382
2001-08-27ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses.Kaveh R. Ghazi2-27/+12
include: * ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses. libiberty: * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. From-SVN: r45204
2001-08-23merge from glibcUlrich Drepper2-14/+69
From-SVN: r45134
2001-08-22fibheap.c (fibheap_init, [...]): Remove.Matt Kraai2-44/+16
* fibheap.c (fibheap_init, fibnode_init): Remove. (fibheap_new, fibnode_new): Use xcalloc to allocate and initialize memory. (fibheap_insert): Remove check for node allocation failure. From-SVN: r45113
2001-08-21Makefile.in (fibheap.o): Depend on config.h.Richard Henderson3-125/+137
* Makefile.in (fibheap.o): Depend on config.h. * fibheap.c: Tidy formatting. Use config.h.` Rearrange some functions for inlining. From-SVN: r45089
2001-08-21configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever ↵Christopher Faylor3-66/+77
hosting on cygwin. * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever hosting on cygwin. * configure: Regenerate. From-SVN: r45081
2001-08-21floatformat.h (floatformat_arm_ext): Document as deprecated.Andrew Cagney2-7/+54
* floatformat.h (floatformat_arm_ext): Document as deprecated. (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword) (floatformat_ia64_spill_little, floatformat_ia64_quad_little) (floatformat_ia64_spill_big, floatformat_ia64_quad_big) (floatformat_m88110_harris_ext): Declare. From-SVN: r45065
2001-08-20fibheap.h: New file.Daniel Berlin3-2/+563
include/ 2001-08-20 Daniel Berlin <dan@cgsoftware.com> * fibheap.h: New file. Fibonacci heap. libiberty/ 2001-08-20 Daniel Berlin <dan@cgsoftware.com> * fibheap.c: New file. Fibonacci heap. * Makefile.in (CFILES): Add fibheap.c. (REQUIRED_OFILES): Add fibheap.o. (fibheap.o): Add dependencies for fibheap.o. From-SVN: r45062