summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* 2002-02-18 Carlo Wood <carlo@gnu.org>rodrigc2002-02-183-11/+33
| | | | | | | | | | | | | | PR c++/5390 * cplus-dem.c (demangle_integral_value): Accept multi-digit numbers that do not start with an underscore; This is needed for integer template parameters. This doesn't break anything because multi-digit numbers are never followed by a digit. * testsuite/demangle-expected: Corrected all mangled test cases with multi-digit template parameters: g++ 2.95.x does not generate underscores around these parameters. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49851 138bc75d-0d04-0410-961f-82ee72b054a4
* * demangle.h (cplus_demangle_v3): Add "options" parm.jason2002-02-053-25/+18
| | | | | | | | | | | | | | | | | | (cplus_demangle_v3_type): Remove prototype. (DMGL_VERBOSE): New macro. (DMGL_TYPES): New macro. * cplus-dem.c (flags): Add DMGL_VERBOSE (cplus_demangle_v3_p): Remove. (demangle_it): Add DMGL_TYPES to passed flags. * cp-demangle.c (cplus_demangle_v3_all): Remove. (cplus_demangle_v3_type): Remove. (cplus_demangle_v3): Add options parm. * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49525 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-02 H.J. Lu (hjl@gnu.org)hjl2002-02-034-9/+57
| | | | | | | | | | | | | | | | | | | | | * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2. (cplus_demangle_v3_all): New. (cplus_demangle_v3): Call cplus_demangle_v3_all. (cplus_demangle_v3_type): Call cplus_demangle_v3_all. * cplus-dem.c (cplus_demangle_v3_p): New function pointer. Initialized to cplus_demangle_v3. (cplus_demangle_with_style): Call cplus_demangle_v3_p instead of cplus_demangle_v3. (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for command line symbol. * testsuite/regress-demangle: Pass the mangled name at the command line. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49456 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-02-01 H.J. Lu <hjl@gnu.org>hjl2002-02-012-1/+6
| | | | | | | | * cp-demangle.c (cp_demangle_type): Call demangling_new with DMGL_GNU_V3. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49409 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-31 Phil Edwards <pme@gcc.gnu.org>pme2002-02-012-8/+13
| | | | | | | * cp-demangle.c: Revert yesterday's change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49386 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc/libiberty/configure.in: Treat mingw the same as cywindj2002-01-313-2/+7
| | | | | | | wrt HAVE_SYS_ERRLIST. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49371 138bc75d-0d04-0410-961f-82ee72b054a4
* 2002-01-30 Phil Edwards <pme@gcc.gnu.org>pme2002-01-313-9/+19
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49353 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (variable detection): Use arrays of unspecifiedrth2002-01-223-2/+7
| | | | | | | size instead of plain integers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49103 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (TESTLIB): New. This library is for futuredj2002-01-2210-99/+396
| | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49090 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty/mkstemps.c (mkstemps): On VMS, open temp file with optionkenner2002-01-152-0/+9
| | | | | | | | that causes it to be deleted when closed. * gcc/gcc.c (delete_if_ordinary): Backout previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48872 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.c (default_compilers): Const-ify.ghazi2002-01-023-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48485 138bc75d-0d04-0410-961f-82ee72b054a4
* * cplus-dem.c (mystrstr): Delete. All callers changed to useghazi2002-01-022-27/+13
| | | | | | | strstr instead. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48476 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (uintptr_t): Use AC_CHECK_TYPE.kenner2002-01-011-0/+5
| | | | | | | * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48442 138bc75d-0d04-0410-961f-82ee72b054a4
* * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.dj2001-12-313-1/+12
| | | | | | | * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48436 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (uintptr_t): Use AC_CHECK_TYPE.kenner2001-12-242-190/+198
| | | | | | | * configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48306 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>rodrigc2001-12-123-0/+13
| | | | | | | | | PR other/2719 * cplus-dem.c (consume_count): Treat negative count as an error. * testsuite/demangle-expected: Added testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47952 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc/configure.in: Hardcode that vfork works on VMS host.kenner2001-12-113-54/+73
| | | | | | | | | * gcc/configure: Regenerated. * libiberty/configure.in: Hardcode that vfork works on VMS host. * libiberty/configure: Regenerated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47869 138bc75d-0d04-0410-961f-82ee72b054a4
* * demangle.h (no_demangling): New.rth2001-12-062-0/+15
| | | | | | | | | | (NO_DEMANGLING_STYLE_STRING): New. * cplus-dem.c (libiberty_demanglers): Add no_demangling case. (cplus_demangle): Support no_demangling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47733 138bc75d-0d04-0410-961f-82ee72b054a4
* top level:zack2001-11-285-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). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47393 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (stamp-h): Depend on Makefile for properdj2001-11-262-2/+14
| | | | | | | | serialization. (*-subdir): Depend on config.h for proper serialization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47354 138bc75d-0d04-0410-961f-82ee72b054a4
* Fix typo.dj2001-11-261-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47353 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Check for alloca.h (for regex.c and putenv.c).dj2001-11-264-2/+11
| | | | | | | | * configure: Regenerate. * config.h: Add HAVE_ALLOCA_H. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47352 138bc75d-0d04-0410-961f-82ee72b054a4
* Update test for token pasting to also check "|| defined(ALMOST_STDC)"ghazi2001-11-162-4/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47108 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c: Check defined(__STDC__) || defined(HAVE_STRINGIZE)ghazi2001-11-162-2/+7
| | | | | | | to determine whether ISO CPP token pasting is available. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47107 138bc75d-0d04-0410-961f-82ee72b054a4
* * config.in (HAVE_UINTPTR_T): Provide autoconf stub.law2001-11-155-77/+140
| | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47068 138bc75d-0d04-0410-961f-82ee72b054a4
* * regex.c (PREFIX): Provide an alternate definition forlaw2001-11-152-3/+18
| | | | | | | | non-ANSI/ISO compilers. (ARG_PREFIX): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47067 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-11-12 Jim Meyering <meyering@lucent.com>dj2001-11-134-3/+11
| | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46975 138bc75d-0d04-0410-961f-82ee72b054a4
* remove trailing whitespacedj2001-11-051-5/+5
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46779 138bc75d-0d04-0410-961f-82ee72b054a4
* Add missing entry.amodra2001-11-051-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46778 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Cope with missing makeinfo.amodra2001-11-043-124/+138
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46767 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-10-232-0/+8
| | | | | | | | | | * libiberty.h (hex_init): Revert delete. libiberty: * hex.c (hex_init): Provide empty stub. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46421 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-10-222-11/+88
| | | | | | | | | | | | * libiberty.h (_hex_value): Const-ify. (hex_init): Delete. libiberty: * hex.c (hex_init): Delete. (_hex_value): Const-ify and initialize at compile-time. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46417 138bc75d-0d04-0410-961f-82ee72b054a4
* 2001-10-19 H.J. Lu <hjl@gnu.org>hjl2001-10-202-1/+13
| | | | | | | | * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if necessary. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46369 138bc75d-0d04-0410-961f-82ee72b054a4
* * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,dj2001-10-1716-57/+65
| | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46323 138bc75d-0d04-0410-961f-82ee72b054a4
* * Makefile.in (TEXIFILES): Add fnmatch.txh.dj2001-10-1624-298/+944
| | | | | | | | | | | | | | | (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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46274 138bc75d-0d04-0410-961f-82ee72b054a4
* * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".jsm282001-10-095-8/+14
| | | | | | | | * strtod.c: Use "ISO C" instead of "ANSI C". * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46136 138bc75d-0d04-0410-961f-82ee72b054a4
* * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,jsm282001-10-0723-60/+70
| | | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46068 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-10-079-29/+43
| | | | | | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46060 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure: Regenerate.dj2001-09-292-123/+128
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45881 138bc75d-0d04-0410-961f-82ee72b054a4
* * concat.c: Include stdlib.h.ghazi2001-09-282-0/+8
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45861 138bc75d-0d04-0410-961f-82ee72b054a4
* * libiberty.texi: (Top level): Add syncodeindex pg. Adddj2001-09-2714-53/+81
| | | | | | | | | | | | | | | | | | | | @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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45847 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in: Don't use in-tree texinfo, because libiberty mustdj2001-09-273-14/+21
| | | | | | | | be built before it. Check for makeinfo version 4 or higher. * functions.texi: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45846 138bc75d-0d04-0410-961f-82ee72b054a4
* * configure.in (MAKEINFO, PERL): Detect these.dj2001-09-2653-352/+3243
| | | | | | | | | | | | | | | | | | | | | | | | | | (--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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45828 138bc75d-0d04-0410-961f-82ee72b054a4
* * concat.c (reconcat): Fix for traditional C.ghazi2001-09-252-3/+6
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45814 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-09-242-0/+29
| | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45789 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-09-172-19/+83
| | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45664 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-09-172-0/+11
| | | | | | | | | | | | | | | | * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45657 138bc75d-0d04-0410-961f-82ee72b054a4
* * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,ghazi2001-09-043-37/+25
| | | | | | | | | | | 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45382 138bc75d-0d04-0410-961f-82ee72b054a4
* include:ghazi2001-08-272-27/+12
| | | | | | | | | | * ansidecl.h (VA_OPEN, VA_CLOSE): Allow multiple uses. libiberty: * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45204 138bc75d-0d04-0410-961f-82ee72b054a4
* merge from glibcdj2001-08-232-14/+69
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45134 138bc75d-0d04-0410-961f-82ee72b054a4