summaryrefslogtreecommitdiff
path: root/libiberty
Commit message (Collapse)AuthorAgeFilesLines
* libiberty.h (make_temp_file): Add a prototype.Kaveh R. Ghazi1999-09-252-4/+6
| | | | | | | | | | | | | | | | | | | | | include: * libiberty.h (make_temp_file): Add a prototype. libiberty: * choose-temp.c: Remove obsolete comment about gcc. (make_temp_file): Constify a char*. gcc: * collect2.c (make_temp_file): Don't prototype. * gcc.c (make_temp_file): Likewise. * mips.c (mips_make_temp_file): Renamed from `make_temp_file'. From-SVN: r29662
* * xmemdup.c: Include sys/types.h.Kaveh R. Ghazi1999-09-092-0/+6
| | | | From-SVN: r29218
* xmemdup.c: New xmemdup function.Jeff Garzik1999-09-085-4/+30
| | | | | | | * xmemdup.c: New xmemdup function. * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co]. From-SVN: r29199
* config.table: Add openedition target.Linas Vepstas1999-09-073-0/+9
| | | | | | | * config.table: Add openedition target. * config/mh-openedition: New file. From-SVN: r29188
* * pexecute.c (pexecute): Fill in temp_base when needed.Marc Espie1999-09-022-0/+6
| | | | From-SVN: r29053
* * getpwd.c: Check HAVE_GETCWD before defining it away.Richard Henderson1999-08-312-5/+7
| | | | From-SVN: r29013
* Makefile.in (CFILES): Add calloc.c and getpwd.c.Kaveh R. Ghazi1999-08-316-6/+138
| | | | | | | | | | | | | * Makefile.in (CFILES): Add calloc.c and getpwd.c. (REQUIRED_OFILES): Add getpwd.o. (getpwd.o): Add target. * configure.in (AC_PREREQ): Bump to 2.13. (AC_CHECK_HEADERS): Add check for <sys/stat.h>. * getpwd.c: New file, moved here from gcc. From-SVN: r28996
* Warning fixes:Kaveh R. Ghazi1999-08-252-5/+15
| | | | | | | | | | | | * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when comparing against a signed quantity. (arm_special): Likewise. (demangle_fund_type): Likewise. (do_hpacc_template_const_value): Mark parameter `work' with ATTRIBUTE_UNUSED. (main): Constify variable `valid_symbols'. From-SVN: r28859
* * strtoul.c (strtoul): Add parentheses around && within ||.Philippe De Muyter1999-08-242-1/+5
| | | | From-SVN: r28819
* Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, libdir, libsubdir ↵Daniel Jacobowitz1999-08-062-1/+11
| | | | | | | | | | and tooldir. * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix, libdir, libsubdir and tooldir. Applied in libchill, libf2c, libiberty and libobjc From-SVN: r28569
* * splay-tree.h (splay_tree_insert): Return the new node.Mark Mitchell1999-08-022-2/+8
| | | | From-SVN: r28389
* splay-tree.c (splay_tree_insert): Add initialization to avoid warning.Ian Lance Taylor1999-07-262-2/+7
| | | | | | | * splay-tree.c (splay_tree_insert): Add initialization to avoid warning. From-SVN: r28269
* argv.c: Include stdlib.h and string.h instead of prototyping directly.Richard Henderson1999-07-143-6/+11
| | | | | | | | * argv.c: Include stdlib.h and string.h instead of prototyping directly. * choose-temp.c: Conditionally include string.h. From-SVN: r28099
* * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.Jason Merrill1999-07-122-1/+5
| | | | From-SVN: r28071
* tweakJason Merrill1999-07-071-5/+6
| | | | From-SVN: r28003
* Makefile.in (needed-list): Only include stuff we actually need for libstdc++.Jason Merrill1999-07-072-6/+18
| | | | | | | * Makefile.in (needed-list): Only include stuff we actually need for libstdc++. From-SVN: r27999
* Whoops. Revert patch applied to the wrong tre.Jeff Law1999-06-243-9/+0
| | | | From-SVN: r27737
* setenv.c (sys/types.h, stdio.h): Files included.Philippe De Muyter1999-06-243-0/+9
| | | | | | | | | * setenv.c (sys/types.h, stdio.h): Files included. * xstrdup.c (sys/types.h): File included. For the gcc-2.95 branch only. Not to be migrated into the mainline tree because it is incomplete. From-SVN: r27736
* configure.in (checkfuncs): Add gettimeofday.Andreas Schwab1999-06-204-4/+21
| | | | | | | * configure.in (checkfuncs): Add gettimeofday. * config.in, configure: Regenerated. From-SVN: r27647
* configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan1999-06-202-45/+61
| | | | | | | | | p * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27642
* configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan1999-06-201-0/+6
| | | | | | | | | � * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27641
* Mike Stump <mrs@wrs.com>Mike Stump1999-06-102-0/+6
| | | | | | | | Mike Stump <mrs@wrs.com> * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix parallel builds. From-SVN: r27477
* putenv.c: Include ansidecl.h to define `const'.Kaveh R. Ghazi1999-05-283-1/+10
| | | | | | | * putenv.c: Include ansidecl.h to define `const'. * setenv.c: Likewise. From-SVN: r27221
* Forgot to commit.Jeff Law1999-05-261-0/+6
| | | | From-SVN: r27172
* Makefile.in (CFILES): Add putenv.c and setenv.c.Jeff Law1999-05-255-73/+302
| | | | | | | | | | | | * Makefile.in (CFILES): Add putenv.c and setenv.c. * configure.in (funcs): Add putenv and setenv. (AC_CHECK_FUNCS): Check for putenv and setenv. * configure: Rebuilt. * putenv.c setenv.c: New files. [[Split portion of a mixed commit.]] From-SVN: r27162.2
* getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space ↵Melissa O'Neill1999-05-251-0/+10
| | | | | | | | | | using malloc. P * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc. From-SVN: r27161
* getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space ↵Melissa O'Neill1999-05-251-0/+5
| | | | | | | | | | using malloc. � * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc. From-SVN: r27160
* cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance the *mangled ↵Stu Grossman1999-05-162-6/+14
| | | | | | | | | | pointer beyond the end of the string. * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance the *mangled pointer beyond the end of the string. Clean up code to match prevailing coding style. From-SVN: r26959
* * tmpnam.c (L_tmpnam): Fix typo.Michael Hayes1999-05-122-1/+5
| | | | From-SVN: r26921
* cplus-dem.c (standard_symbol_characters): Renamed from standard_symbol_alphabet.Marc Espie1999-05-122-26/+24
| | | | | | | | | | | * cplus-dem.c (standard_symbol_characters): Renamed from standard_symbol_alphabet. No longer modify TABLE. (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer modify TABLE. (main): Corresponding changes. Use strchr to determine if a character is valid. From-SVN: r26912
* *** empty log message ***Jim Blandy1999-05-111-0/+6
| | | | From-SVN: r26888
* cplus-dem.c (main): Use table lookup to distinguish identifier characters ↵Jim Blandy1999-05-111-5/+80
| | | | | | | | | | from non-identifier... * cplus-dem.c (main): Use table lookup to distinguish identifier characters from non-identifier characters. (standard_symbol_alphabet, hp_symbol_alphabet): New functions. From-SVN: r26887
* Fred Fish <fnf@be.com>Fred Fish1999-05-064-4/+11
| | | | | | | | | | Fred Fish <fnf@be.com> * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list. * getruntime.c: Only attempt to include sys/resource.h and use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H are defined. From-SVN: r26808
* configure.in (alloca detection): Handle alloca directly for interix.Donn Terry1999-04-253-40/+87
| | | | | | | * configure.in (alloca detection): Handle alloca directly for interix. * configure: Rebuilt. From-SVN: r26635
* * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.Mumit Khan1999-04-242-1/+5
| | | | From-SVN: r26619
* *** empty log message ***Jim Blandy1999-04-201-0/+9
| | | | From-SVN: r26563
* Fix from Dale Hawkins:Jim Blandy1999-04-201-1/+10
| | | | | | | | | * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be reallocated properly if we use it again. * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be stricter about syntax. Always null-terminate string. From-SVN: r26562
* configure.in (checkfuncs): Check for sbrk.Mumit Khan1999-04-155-60/+129
| | | | | | | | | * configure.in (checkfuncs): Check for sbrk. * config.in: Rebuilt. * configure: Likewise. * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions. From-SVN: r26480
* *** empty log message ***Jim Blandy1999-04-121-0/+6
| | | | From-SVN: r26374
* Fix from Marcus Daniels:Jim Blandy1999-04-121-1/+1
| | | | | | | * cplus-dem.c (demangle_fund_type): Don't run off the end of the identifier looking for another underscore. From-SVN: r26373
* pexecute.c: Change all references to __UWIN__ to _UWIN.Mumit Khan1999-04-113-15/+22
| | | | | | | | | * pexecute.c: Change all references to __UWIN__ to _UWIN. * xmalloc.c: Likewise. (xcalloc): UWIN has sbrk. (xrealloc): Fix guard macro. From-SVN: r26352
* cplus-dem.c (demangle_template_value_parm): Handle pointers-to-members.Mark Mitchell1999-04-113-31/+55
| | | | | | | | * cplus-dem.c (demangle_template_value_parm): Handle pointers-to-members. (do_type): Handle template parameters as qualifiers. From-SVN: r26350
* Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>Jeff Law1999-04-091-0/+2
| | | | From-SVN: r26322
* cplus-dem.c: Attempt to handle overflows in counts with some semblance of grace.Jim Blandy1999-04-092-42/+125
| | | | | | | | | | | | 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com> * cplus-dem.c: Attempt to handle overflows in counts with some semblance of grace. (consume_count): Detect overflows. Return -1 to indicate errors, instead of zero. (demangle_template_value_parm, demangle_template): Handle change to consume_count's return convention. From-SVN: r26309
* Changes from official libiberty sources.Jeff Law1999-04-063-16/+86
| | | | | | | | * Missing ChangeLog entries. * Some java demangling stuff * More cygwin32->cygwin related changes. From-SVN: r26236
* regress-demangle: New file.Tom Tromey1999-04-057-58/+2677
| | | | | | | | | | | | | | | | | | * testsuite/regress-demangle: New file. * testsuite/demangle-expected: New file. * Makefile.in (all, check, installcheck, info, install-info, clean-info, dvi, install, etags, tags, mostlyclean, clean, distclean, maintainer-clean, realclean): Depend on corresponding `-subdir' target. (all-subdir check-subdir installcheck-subdir info-subdir install-info-subdir clean-info-subdir dvi-subdir install-info-subdir etags-subdir mostlyclean-subdir clean-subdir distclean-subdir maintainer-clean-subdir): New target. * testsuite/Makefile.in: New file. * configure: Rebuilt. * configure.in: Create testsuite/Makefile. From-SVN: r26205
* splay-tree.h (splay_tree_compare_pointers): Declare.Mark Mitchell1999-04-022-0/+19
| | | | | | | | | 1999-04-02 Mark Mitchell <mark@codesourcery.com> * splay-tree.h (splay_tree_compare_pointers): Declare. 1999-04-02 Mark Mitchell <mark@codesourcery.com> * splay-tree.h (splay_tree_compare_pointers): Define. From-SVN: r26132
* alias.c (alias_set_compare): Remove.Mark Mitchell1999-03-302-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * alias.c (alias_set_compare): Remove. (record_alias_subset): Use splay_tree_compare_ints instaed of alias_set_compare. (init_alias_once): Likewise. * cse.c: Include splay-tree.h. (reg_qty): Remove. (reg_tick): Likewise. (reg_table): Likewise. (cse_reg_info): New structure. (cse_reg_info_free_list): New variable. (cse_reg_info_tree): Likewise. (cached_regno): Likewise. (cached_cse_reg_info): Likewise. (all_minus_one): Remove. (consec_ints): Likewise. (GET_CSE_REG_INFO): New macro. (REG_TICK): Likewise. Use throughout instead of reg_tick. (REG_IN_TABLE): Likewise. Use throughout instead of reg_in_table. (REG_QTY): Likewise. Use throughout instead of reg_qty. (get_cse_reg_info): New function. (free_cse_reg_info): Likewise. (new_basic_block): Reinitialize cse_reg_info_tree instead of reg_tick, all_minus_one, and consec_ints. * Makefile.in (cse.o): Depend on splay-tree.h * splay-tree.h (splay_tree_compare_ints): Declare. * splay-tree.c (splay_tree_compare_ints): Define. From-SVN: r26069
* cplus-dem.c (consume_count): If `count' wraps, return 0 and don't advance ↵Tom Tromey1999-03-302-2/+20
| | | | | | | | | | | | input pointer. * cplus-dem.c (consume_count): If `count' wraps, return 0 and don't advance input pointer. (demangle_class_name): If consume_count didn't find a count, do nothing. Don't bother with `strlen' sanity check; consume_count does it for us. From-SVN: r26068
* pexecute.c (__CYGWIN32__): Rename toMumit Khan1999-03-105-62/+91
| | | | | | | | | | | | | | | | * pexecute.c (__CYGWIN32__): Rename to (__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. From-SVN: r25694