aboutsummaryrefslogtreecommitdiff
path: root/libiberty
AgeCommit message (Collapse)AuthorFilesLines
1999-06-20configure.in (checkfuncs): Add gettimeofday.Andreas Schwab4-4/+21
* configure.in (checkfuncs): Add gettimeofday. * config.in, configure: Regenerated. From-SVN: r27647
1999-06-20configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan2-45/+61
p * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27642
1999-06-20configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails.Mumit Khan1-0/+6
� * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if the test fails. * configure: Regenerate. From-SVN: r27641
1999-06-10Mike Stump <mrs@wrs.com>Mike Stump2-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
1999-05-28putenv.c: Include ansidecl.h to define `const'.Kaveh R. Ghazi3-1/+10
* putenv.c: Include ansidecl.h to define `const'. * setenv.c: Likewise. From-SVN: r27221
1999-05-26Forgot to commit.Jeff Law1-0/+6
From-SVN: r27172
1999-05-25Makefile.in (CFILES): Add putenv.c and setenv.c.Jeff Law5-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
1999-05-25getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space ↵Melissa O'Neill1-0/+10
using malloc. P * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc. From-SVN: r27161
1999-05-25getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space ↵Melissa O'Neill1-0/+5
using malloc. � * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE bytes of space using malloc. From-SVN: r27160
1999-05-16cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance the *mangled ↵Stu Grossman2-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
1999-05-12* tmpnam.c (L_tmpnam): Fix typo.Michael Hayes2-1/+5
From-SVN: r26921
1999-05-12cplus-dem.c (standard_symbol_characters): Renamed from standard_symbol_alphabet.Marc Espie2-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
1999-05-11*** empty log message ***Jim Blandy1-0/+6
From-SVN: r26888
1999-05-11cplus-dem.c (main): Use table lookup to distinguish identifier characters ↵Jim Blandy1-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
1999-05-06Fred Fish <fnf@be.com>Fred Fish4-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
1999-04-25configure.in (alloca detection): Handle alloca directly for interix.Donn Terry3-40/+87
* configure.in (alloca detection): Handle alloca directly for interix. * configure: Rebuilt. From-SVN: r26635
1999-04-24* choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.Mumit Khan2-1/+5
From-SVN: r26619
1999-04-20*** empty log message ***Jim Blandy1-0/+9
From-SVN: r26563
1999-04-20Fix from Dale Hawkins:Jim Blandy1-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
1999-04-15configure.in (checkfuncs): Check for sbrk.Mumit Khan5-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
1999-04-12*** empty log message ***Jim Blandy1-0/+6
From-SVN: r26374
1999-04-12Fix from Marcus Daniels:Jim Blandy1-1/+1
* cplus-dem.c (demangle_fund_type): Don't run off the end of the identifier looking for another underscore. From-SVN: r26373
1999-04-11pexecute.c: Change all references to __UWIN__ to _UWIN.Mumit Khan3-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
1999-04-11cplus-dem.c (demangle_template_value_parm): Handle pointers-to-members.Mark Mitchell3-31/+55
* cplus-dem.c (demangle_template_value_parm): Handle pointers-to-members. (do_type): Handle template parameters as qualifiers. From-SVN: r26350
1999-04-09Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>Jeff Law1-0/+2
From-SVN: r26322
1999-04-09cplus-dem.c: Attempt to handle overflows in counts with some semblance of grace.Jim Blandy2-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
1999-04-06Changes from official libiberty sources.Jeff Law3-16/+86
* Missing ChangeLog entries. * Some java demangling stuff * More cygwin32->cygwin related changes. From-SVN: r26236
1999-04-05regress-demangle: New file.Tom Tromey7-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
1999-04-02splay-tree.h (splay_tree_compare_pointers): Declare.Mark Mitchell2-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
1999-03-30alias.c (alias_set_compare): Remove.Mark Mitchell2-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
1999-03-30cplus-dem.c (consume_count): If `count' wraps, return 0 and don't advance ↵Tom Tromey2-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
1999-03-10pexecute.c (__CYGWIN32__): Rename toMumit Khan5-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
1999-03-10config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpcFranz Sirl1-4/+8
H * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc From-SVN: r25689
1999-03-10config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpcFranz Sirl1-0/+4
� * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc From-SVN: r25688
1999-02-09Makefile.in: Change mkstemp -> mkstemps.Dave Brolley2-2/+6
Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com> * Makefile.in: Change mkstemp -> mkstemps. From-SVN: r25110
1999-02-08Makefile.in (REQUIRED_OFILES): remove mkstemp.oMarc Espie5-120/+172
* Makefile.in (REQUIRED_OFILES): remove mkstemp.o * configure.in (funcs): Check for and conditionally add mkstemps to the list of functions libiberty will provide. * configure: Rebuilt. From-SVN: r25106
1999-02-02clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on platforms that ↵Mumit Khan3-2/+16
don't have HZ. * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on platforms that don't have HZ. * getruntime.c (HZ): Likewise. From-SVN: r24993
1999-01-30* Makefile.in (xstrdup.o): Depend on config.h.Richard Henderson2-1/+5
From-SVN: r24921
1999-01-14* cplus-dem.c (mop_up): Set work->previous_argument to NULL after freeing it.Ulrich Drepper1-30/+35
From-SVN: r24664
1999-01-14(mop_up): Set work->previous_argument to NULL after freeing it.Ulrich Drepper1-116/+116
From-SVN: r24663
1999-01-13random.c (NULL): Don't redefine NULL if it is already defined.Michael Meissner2-2/+10
1998-12-30 Michael Meissner <meissner@cygnus.com> * random.c (NULL): Don't redefine NULL if it is already defined. From-SVN: r24659
1999-01-13* xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.Kaveh R. Ghazi2-5/+14
From-SVN: r24651
1999-01-12More address fixesJeff Law1-1/+2
From-SVN: r24644
1999-01-11More address fixes.Jeff Law1-13/+13
From-SVN: r24618
1999-01-11Update FSF address in copyright header.Jeff Law2-2/+4
From-SVN: r24617
1998-12-22Warning fixes:Kaveh R. Ghazi7-29/+62
* argv.c (buildargv): Cast the result of alloca in assignment. * choose-temp.c: Include stdlib.h. * cplus-dem.c (demangle_arm_pt): Remove unused prototype. (snarf_numeric_literal): Constify first parameter. (code_for_qualifier): Avoid a gcc extension, make the parameter an int, not a char. (demangle_qualifier): Likewise. (demangle_signature): Cast the argument of a ctype function to unsigned char. (arm_pt): Add parens around assignment used as truth value. (demangle_arm_hp_template): Constify variable `args'. (do_hpacc_template_const_value): Cast the argument of a ctype function to unsigned char. (do_hpacc_template_literal): Remove unused variable `i'. (snarf_numeric_literal): Constify parameter `args'. Cast the argument of a ctype function to unsigned char. * floatformat.c (floatformat_to_double): Add explicit braces to avoid ambiguous `else'. * fnmatch.c (fnmatch): Change type of variables `c', `c1', `cstart' and `cend' to unsigned char. Cast the argument of macro `FOLD', which uses ctype functions, to unsigned char. * objalloc.c (free): Add prototype. From-SVN: r24392
1998-12-20* Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.oHans-Peter Nilsson2-1/+5
From-SVN: r24388
1998-12-18cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the ↵Andrew MacLeod2-3/+10
pointer we read from. Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com> * cplus-dem.c (demangle_fund_type): Process CV and u codes before bumping the pointer we read from. Also prepend these codes, as we do in other places. From-SVN: r24374
1998-12-14choose-temp.c: Don't check IN_GCC anymore.Kaveh R. Ghazi13-44/+39
* choose-temp.c: Don't check IN_GCC anymore. * floatformat.c (floatformat_from_double): Use `const', not `CONST'. * memchr.c (memchr): Likewise. * memcpy.c (memcpy): Likewise. * memmove.c (memmove): Likewise. * mkstemp.c: Don't check IN_GCC anymore. * pexecute.c: Likewise. * splay-tree.c: Likewise. * strchr.c (strchr): Use `const', not `CONST'. * strrchr.c (strrchr): Likewise. * strtol.c (strtol): Likewise. * strtoul.c (strtoul): Likewise. From-SVN: r24307
1998-12-07* HP aCC demangling support.David Taylor2-42/+508
* cplus-dem.c (main): Remove default to HP style demangling, set to EDG demangling correctly when -edg specified; set the demangling style when user specifies 'edg'. Set strip_underscore to prepends_underscore, if not HPUXHPPA. Set current_demangling_style to hp_demangling if HPUXHPPA. Set current demangling style correctly if the switch is hp. Read label correctly also in the HP style case. (work_stuff): add temp_start field; add field for volatile member function. (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP style for this case is the same as ARM. (demangle_args): handle EDG_DEMANGLING style; support HP style. (demangle_arm_hp_template): new function. (It was demangle_arm_pt.); check and set value of temp_start field in multiple places. Also, when ceching for end of template args, check to see if at end of static member of template class. (demangle_class): new local variable : save_class_name_end Don't include template args in string defining class. (demangle_class_name): use demangel_arm_hp_template. (demangle_function_name): handle case where demangling style is HP_DEMANGLING and currently point at an 'X' in the mangled name. Handle EDG_DEMANGLING style. Handle constructor and destructor ops for HP style. (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING styles. global destructor and constructor for HP style are same as for ARM style. Same for local variables. (demangle_qualified): handle EDG_DEMANGLING style. (demangle_signature): add case for volatile member function. For cases '1' - '9' : initialize the temp_start field to -1 and handle the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING and AUTO_DEMANGLING styles. If expecting a function and managed to demangle the funct args, then handle the LUCID_DEMANGLING, ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local class name after "Lnnn_ in HP style case. HP style too needs to forget types. _nnn is OK for HP style, so don't report failure. (do_hpacc_template_const_value): new function. Handle template's value param for HP/aCC. (do_hpacc_template_literal): new function. Handle a template's literal parameter for HP aCC. (recursively_demangle): new function (snarf_numeric_literal): new function. (usage): add 'edg' to the list of demangling styles; add hp switch to message. Co-Authored-By: Andrew MacLeod <amacleod@cygnus.com> Co-Authored-By: Edith Epstein <eepstein@cygnus.com> Co-Authored-By: Elena Zannoni <ezannoni@cygnus.com> Co-Authored-By: Satish Pai <pai@apollo.hp.com> Co-Authored-By: Stan Shebs <shebs@cygnus.com> From-SVN: r24170