DJ Delorie
f080c76dc0
merge from gcc
2001-08-22 22:55:38 +00:00
DJ Delorie
f01b59ed06
merge from gcc
2001-08-22 02:12:15 +00:00
DJ Delorie
8e777d6aa9
merge from gcc
2001-08-21 15:19:19 +00:00
Andrew Cagney
eb82859947
* 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.
2001-08-21 00:20:07 +00:00
DJ Delorie
68a41de77d
merge from gcc
2001-08-17 21:14:20 +00:00
DJ Delorie
8fc3479902
merge from gcc
2001-08-17 06:33:05 +00:00
DJ Delorie
8aefe91ac7
sync with gcc - whitespace differences, one missing entry, and one
...
rearrangement.
2001-08-14 14:08:12 +00:00
Andrew Cagney
16bad250ba
* floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
...
name.
2001-08-14 01:34:00 +00:00
DJ Delorie
a9022147a2
merge from gcc
2001-08-13 02:25:01 +00:00
Andrew Cagney
3ea71002e4
(lbasename): Change function declaration to return a const char pointer.
2001-08-10 23:46:17 +00:00
DJ Delorie
e7e9b06936
merge from gcc
2001-08-09 00:05:37 +00:00
DJ Delorie
cc5144f8c0
merge from gcc
2001-08-04 01:07:57 +00:00
DJ Delorie
65a4f13c67
merge from gcc
2001-07-30 20:02:22 +00:00
DJ Delorie
86710ce268
merge from gcc
2001-07-30 17:39:28 +00:00
DJ Delorie
a5d8f731bf
merge from gcc
2001-07-26 14:14:49 +00:00
DJ Delorie
6ad8a379a0
merge from gcc
2001-07-19 00:04:29 +00:00
DJ Delorie
2a6ef46975
merge from gcc
2001-07-11 00:15:54 +00:00
DJ Delorie
7b78baae9b
merge from gcc
2001-07-05 17:29:17 +00:00
DJ Delorie
926150e277
merge from gcc
2001-06-18 21:16:33 +00:00
DJ Delorie
11f6f21d46
merge from gcc
2001-06-12 13:16:43 +00:00
DJ Delorie
d42dae6cb2
merge from gcc
2001-06-11 00:07:54 +00:00
DJ Delorie
e05c6d27bf
merge from gcc
2001-05-16 21:04:30 +00:00
DJ Delorie
b50c407366
merge from gcc
2001-05-09 20:08:48 +00:00
DJ Delorie
457161bf17
merge from gcc
2001-05-08 14:35:18 +00:00
DJ Delorie
e00bc6a7ba
merge from gcc
2001-05-07 16:21:15 +00:00
DJ Delorie
0279cc646c
sync with egcs
2001-04-16 18:42:41 +00:00
Daniel Berlin
a5dd804ef9
Forgot the makefile portion
2001-04-16 14:11:24 +00:00
Daniel Berlin
400ee7e1e2
2001-04-15 Daniel Berlin <dan@cgsoftware.com>
...
* ternary.c: New file - Ternary search tree implementation.
2001-04-15 Daniel Berlin <dan@cgsoftware.com>
* ternary.h: New file - Ternary search tree header.
2001-04-16 14:10:14 +00:00
DJ Delorie
d969735448
merge from gcc
2001-04-04 01:16:27 +00:00
DJ Delorie
a7bf099bb7
merge from gcc
2001-03-28 17:38:43 +00:00
DJ Delorie
30a1def20d
merge from gcc
2001-03-28 05:02:47 +00:00
DJ Delorie
079c672a7a
merge from gcc
2001-03-23 23:57:50 +00:00
Jim Blandy
a88e356aab
* cp-demangle.c (string_list_delete): Don't forget to free the
...
actual contents of the string.
2001-03-22 15:16:04 +00:00
DJ Delorie
1dffcc6638
merge from gcc
2001-03-21 20:12:30 +00:00
Jim Blandy
e61231f114
* libiberty/cp-demangle.c (struct demangling_def): New fields:
...
is_constructor and is_destructor.
(demangling_new): Initialize them.
(demangle_ctor_dtor_name): Set them, if we detect a constructor
or destructor.
(demangle_v3_with_details, is_gnu_v3_mangled_ctor,
is_gnu_v3_mangled_dtor): New functions.
* include/demangle.h (enum gnu_v3_constructor_kinds,
is_gnu_v3_mangled_ctor, enum gnu_v3_destructor_kinds,
is_gnu_v3_mangled_dtor): New declarations.
2001-03-20 18:22:38 +00:00
DJ Delorie
a9cbbe6d3e
merge from gcc
2001-03-20 17:09:17 +00:00
DJ Delorie
06b0287c20
merge from gcc
2001-03-15 22:02:06 +00:00
DJ Delorie
b1e51b3cd9
merge from gcc
2001-03-15 21:07:01 +00:00
DJ Delorie
fa03f0a706
Fix minor formatting bugs.
2001-03-14 20:46:12 +00:00
DJ Delorie
8aa30e60ce
merge from gcc
2001-03-10 22:23:50 +00:00
DJ Delorie
abde120385
merge from gcc
2001-03-06 19:03:36 +00:00
DJ Delorie
30673bf511
merge from gcc
2001-03-06 18:27:14 +00:00
DJ Delorie
5810f3948f
merge from gcc
2001-03-05 19:42:04 +00:00
DJ Delorie
a9db032a7a
merge from gcc
2001-02-17 00:11:29 +00:00
DJ Delorie
c91db3ccc1
merge from gcc
2001-02-02 20:08:59 +00:00
DJ Delorie
bc9bf2596e
merge from gcc
2001-02-02 18:58:51 +00:00
Michael Sokolov
9d969b59b8
Remove extraneous tab from the blank line after the most recent entry
2001-01-27 17:28:11 +00:00
DJ Delorie
f65288376e
* fnmatch.c: Make the note about the origins of this file more
...
accurate, at least until we can sync with glibc.
* getopt.c: Ditto.
* getopt1.c: Ditto.
* md5.c: Ditto.
* obstack.c: Ditto.
2000-12-29 20:16:02 +00:00
DJ Delorie
c6da642e79
* bsearch.c: New file.
...
* configure.in (funcs): Add bsearch.
(AC_CHECK_FUNCS): Likewise.
* configure, config.in: Regenerate.
2000-12-26 22:19:44 +00:00
Nick Clifton
ae7d06ad04
Synchronise with master FSF GCC sources
2000-12-26 18:17:51 +00:00
DJ Delorie
f021637a75
* safe-ctype.c: #include "ansidecl.h".
...
* strtod.c: Likewise.
* strtoul.c: Include safe-ctype.h, not ctype.h.
2000-12-17 03:07:49 +00:00
DJ Delorie
c00c39edd4
Add - before rms to be more portable.
2000-12-09 16:10:41 +00:00
DJ Delorie
ac424eb32c
* safe-ctype.c: New file.
...
* Makefile.in (CFILES): Add safe-ctype.c.
(REQUIRED_OFILES): Add safe-ctype.o.
* argv.c: Define ISBLANK and use it, not isspace.
* basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
before calling TOLOWER(c)/TOUPPER(c).
2000-12-08 16:37:01 +00:00
DJ Delorie
4415a860ff
* Makefile.in (distclean): When cleaning, remove testsuite.
2000-12-07 23:14:29 +00:00
DJ Delorie
849ee22471
* cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
...
name before allocating the dyn_string.
2000-12-05 19:08:13 +00:00
DJ Delorie
e49a569c10
* cp-demangle.c: s/new_abi/v3/.
...
* cplus-dem.c: Likewise.
(current_demangling_style): Now auto_demangling.
(cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
(main): Use standard symbol chars for auto_demangling.
2000-12-05 16:51:29 +00:00
DJ Delorie
92655e1933
* aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
...
(AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
* configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
argument form of AC_DEFINE in dummy definitions block. Use
AC_DEFINE_NOAUTOHEADER for real definitions of things defined
in dummy block. Preload cache variables instead of bypassing
tests, where possible.
* acconfig.h: Removed.
* xmalloc.c (xmalloc_failed): New function, does error
reporting on failed allocation.
(xmalloc, xcalloc, xrealloc): Use it.
2000-11-29 20:07:08 +00:00
DJ Delorie
5ca0f83d75
* hashtab.c (higher_prime_number): Use a table, rather than a
...
seive, to find the next prime.
2000-11-29 19:19:10 +00:00
DJ Delorie
2ea7befd8e
* aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
...
(AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
* configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
argument form of AC_DEFINE in dummy definitions block. Use
AC_DEFINE_NOAUTOHEADER for real definitions of things defined
in dummy block. Preload cache variables instead of bypassing
tests, where possible.
* acconfig.h: Removed.
* xmalloc.c (xmalloc_failed): New function, does error
reporting on failed allocation.
(xmalloc, xcalloc, xrealloc): Use it.
2000-11-29 19:17:37 +00:00
Hans-Peter Nilsson
9c26dc82b6
* cplus-dem.c (main): Handle gnat_demangling.
2000-11-23 00:08:38 +00:00
Hans-Peter Nilsson
f17755262c
* cplus-dem.c (cplus_demangle): Fix formatting.
...
(grow_vect): Ditto.
(ada_demangle): Ditto.
(internal_cplus_demangle): Ditto.
(mop_up): Ditto.
* cplus-dem.c (main): Handle java_demangling.
* cplus-dem.c (grow_vect): Prototype.
(ada_demangle): Cast the arg of ctype macros to unsigned char.
2000-11-21 10:54:08 +00:00
Hans-Peter Nilsson
5dd42ef455
* cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
...
parameter `option'.
Do s/cplus_dem.c/cplus-dem.c/g on ChangeLog.
2000-11-16 09:07:59 +00:00
DJ Delorie
8944fb9d12
Fix ChangeLog entry: cplus-dem.c instead of cplus_dem.c
2000-11-16 01:10:16 +00:00
DJ Delorie
296731c177
[merge]
...
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot
be used in GCC.
2000-11-15 19:10:20 +00:00
Hans-Peter Nilsson
6e53a71409
Correct date and style of last entry
2000-11-15 12:01:15 +00:00
Hans-Peter Nilsson
16e857458e
* cplus_dem.c: Add gnat demangler. Add java to demangle style
...
list.
2000-11-15 11:50:21 +00:00
Hans-Peter Nilsson
99a4c1bd6b
* hashtab.c (htab_expand): Change to return int. Use calloc or
...
xcalloc depending on htab->return_allocation_failure. Return zero
if calloc fails.
(htab_create): Update comment to cover memory allocation.
(htab_try_create): New.
(htab_find_slot_with_hash): Return NULL if htab_expand fails.
Update comment to cover this.
2000-11-04 07:54:27 +00:00
Hans-Peter Nilsson
e0f3df8f1e
* hashtab.c: Change void * to PTR where necessary.
...
(htab_create, htab_expand): Correct formatting of comment before
function.
2000-11-03 20:55:25 +00:00
DJ Delorie
59666b35a8
[merge from gcc]
...
* cp-demangle.c (string_list_def): Add caret_position and comments.
(result_caret_pos): New macro.
(result_append_string): Rename to...
(result_add_string): ... this, and insert at caret position.
Rename throughout.
(result_append): Rename to...
(result_add): ... this, and insert at caret position. Rename
throughout.
(result_append_char): Rename to...
(result_add_char): ... this, and insert at caret position. Rename
throughout.
(result_append_space): Remove.
(string_list_new): Initialize caret position.
(result_add_separated_char): Use caret position.
(result_get_caret): New funtion.
(result_set_caret): Likewise.
(result_shift_caret): Likewise.
(result_previous_char_is_space): Likewise.
(substitution_start): Use caret position.
(substitution_add): Likewise.
(demangling_new): Initialize caret position.
(demangle_encoding): Use caret position.
(demanglin_nested_name): Put CV qualifiers after name.
(demangle_type_ptr): Use switch statement. Handle pointers to
arrays. Don't use result_append_space. Use caret position.
(demangle_type): Emit CV qualifiers after underlying type. Adjust
call to demangle_array_type.
(demangle_array_type): Add parameter to handle pointers to arrays.
2000-10-23 15:30:54 +00:00
DJ Delorie
74bcd5294f
merge from gcc repository
2000-10-12 02:16:48 +00:00
DJ Delorie
87263c36d1
* md5.c: #include "ansidecl.h".
2000-09-26 01:39:17 +00:00
Jason Merrill
050823ca47
* Makefile.in (REQUIRED_OFILES): Add md5.o.
...
(CFILES): Add md5.c.
* md5.c: New file.
2000-09-22 18:31:23 +00:00
DJ Delorie
60c6451942
* splay-tree.c: #include <stdio.h>.
2000-09-15 15:16:11 +00:00
Hans-Peter Nilsson
d3e8500506
* testsuite/demangle-expected: Add two tests for anonymous
...
namespaces.
* cplus-dem.c (gnu_special): Handle anonymous namespaces.
2000-09-13 22:59:40 +00:00
Hans-Peter Nilsson
1dc349e58c
* testsuite/demangle-expected: Add four tests for type_info
...
mangling.
* cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
for a non-template non-qualified type_info function or node.
2000-09-10 19:43:30 +00:00
DJ Delorie
64e3a6598a
* configure.in (Cygwin): special case cygwin only when we're
...
building cygwin, not when we're hosting cygwin.
2000-09-05 18:44:54 +00:00
Hans-Peter Nilsson
6ef554e3f6
(From GCC:) Add testcases and missing changelogs:
...
2000-08-31 Hans-Peter Nilsson <hp@axis.com>
* testsuite/demangle-expected: Add nine tests for
underscore-after-number followed by five tests for name-signature
delimiter.
2000-07-24 Hans-Peter Nilsson <hp@axis.com>
* cplus-dem.c (work_stuff_copy_to_from): New.
(delete_non_B_K_work_stuff): New.
(delete_work_stuff): New.
(mop_up): Break out work_stuff destruction to delete_work_stuff.
(iterate_demangle_function): New.
(demangle_prefix): Call iterate_demangle_function instead of
demangle_function_name. Leave handling of name-signature
__-delimiters to iterate_demangle_function.
* cplus-dem.c (demangle_integral_value): Strip an optional
following underscore cautiously. Handle negative numbers.
2000-08-31 22:16:08 +00:00
Jeff Law
3929b9d28a
Fix typo.
2000-07-27 18:50:48 +00:00
Jeff Law
d6e83f5f72
* config/mh-openedition.h: Added -DLE370 definition.
2000-07-27 02:01:17 +00:00
Jeff Law
a9f34fb652
* pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
...
__DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
Cast program to 'char *' in errmsg_arg assignment.
(PWAIT_ERROR): Define.
(pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
to DJGPP's WIF* macros.
2000-07-27 01:49:21 +00:00
Jeff Law
443519c1ec
* getcwd.c: Include string.h, stdlib.h for prototypes
2000-07-26 23:30:27 +00:00
Jeff Law
90aaccd1f2
* Makefile.in (rename.o, waitpid.o): Depend on config.h
...
* rename.c: include config.h, unistd.h
* waitpid.c: include config.h, sys/wait.h
2000-07-26 23:24:05 +00:00
Daniel Berlin
e8865c2811
Demangling fixes
2000-07-24 19:14:18 +00:00
Jeff Law
62df206565
* configure.in (AC_CHECK_HEADERS): Add time.h.
...
(AC_HEADER_TIME): Add check.
* configure, config.in: Regenerate.
* getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2000-07-23 19:20:18 +00:00
Jeff Law
7d3ffcaf85
* aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
...
* configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
* configure, config.in: Regenerate.
* pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2000-07-23 16:05:33 +00:00
Jeff Law
b123325783
* cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2000-07-23 15:58:11 +00:00
Jeff Law
9adf30b218
* cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
...
and print it with %u.
2000-07-20 20:22:28 +00:00
Jason Merrill
03d5f569de
merge with gcc
2000-07-20 18:56:16 +00:00
Hans-Peter Nilsson
2ed78d1b89
* testsuite/regress-demangle (failed test): Show result and
...
expected output.
(From GCC.)
2000-07-17 10:45:54 +00:00
Andrew Haley
0473bdf750
2000-07-07 Andrew Haley <aph@cygnus.com>
...
* cplus-dem.c (main): fflush() after emitting last char before
waiting for input.
2000-07-07 13:52:53 +00:00
H.J. Lu
eb383413c2
Synced with libiberty in the gcc repository.
2000-06-15 20:56:25 +00:00
DJ Delorie
9cc28cc8a9
* Makefile.in: add EXTRA_INCS
...
* configure.in: if with-newlib, point to it for includes
rather than using the installed includes, for target builds.
If cygwin, override function list only for target builds.
* configure: regenerate
Note from DJ: I waited a week for gcc approval and got none, but
we need this patch for cygwin builds *now*. I'll fix it later if
need be.
2000-06-06 17:52:20 +00:00
Andrew Cagney
f03aa80df2
Add field ``name'' to floatformat.
2000-05-31 10:55:00 +00:00
Jeff Law
77bfb69416
* Makefile.in (objalloc.o): Depend on config.h
2000-05-30 21:08:32 +00:00
Zack Weinberg
5c82d20a26
* hashtab.c, partition.c, xmemdup.c: Include string.h
...
if HAVE_STRING_H.
* pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
* objalloc.c: Include config.h. Include stdlib.h and don't
declare malloc or free if HAVE_STDLIB_H.
* strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
else declare malloc without prototype. Include string.h if
HAVE_STRING_H, else declare memset without prototype. Don't
include stddef.h.
* sort.c: Bring over from GCC.
2000-05-29 20:45:32 +00:00
Alexandre Oliva
010c70e10f
* Makefile.in (maintainer-clean-subdir): Fix handling of empty
...
SUBDIRS.
2000-05-26 12:50:58 +00:00
Jeff Law
19be430370
2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
...
* Makefile.in (*-subdir): Revamp slightly to avoid losing on
4.3BSD systems.
2000-04-21 22:19:43 +00:00
Richard Henderson
afe36a788b
* splay-tree.c (splay_tree_remove): New.
2000-04-06 00:16:01 +00:00
Christopher Faylor
57c987aa10
* partition.c: New file.
2000-03-25 02:14:57 +00:00
Jason Merrill
b4fe268363
merge from gcc
2000-03-24 21:31:22 +00:00
Ian Lance Taylor
0c0a36a403
merge with libiberty from egcs 2000-02-22
2000-02-22 16:14:35 +00:00
Ian Lance Taylor
abd8680d6e
This commit was generated by cvs2svn to track changes on a CVS vendor
...
branch.
2000-02-22 15:59:20 +00:00
Ian Lance Taylor
e2eaf47799
import libiberty from egcs
2000-02-22 15:59:20 +00:00
Geoffrey Keating
df840b63dc
* vasprintf.c (int_vasprintf): Don't re-read the format character
...
as this mishandles strings like '%%s'.
1999-12-28 03:10:39 +00:00
Ian Lance Taylor
c1687039eb
Revert last patch to xmalloc.c, and instead bring over this patch from
...
egcs:
Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
* configure.in (checkfuncs): Check for sbrk.
* config.in: Rebuilt.
* configure: Likewise.
* xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1999-08-05 21:15:29 +00:00
Ian Lance Taylor
1198f921ae
* xmalloc.c: Control all uses of SBRK with a single define,
...
USE_SBRK. Don't define it if __INTERIX.
1999-08-05 16:22:42 +00:00
Ian Lance Taylor
08372f1427
* floatformat.c: Add casts to avoid signed/unsigned warnings.
...
* pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1999-08-03 16:00:39 +00:00
Ian Lance Taylor
19c33eebb1
* Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
...
$(TARGETLIB)n so it works on MSDOS.
(install_to_tooldir): Likewise.
1999-08-03 16:00:16 +00:00
Ian Lance Taylor
8f36e47c10
From Mark Elbrecht:
...
* configure.bat: Remove; obsolete.
1999-07-22 01:16:49 +00:00
Ian Lance Taylor
9c8ac5a997
From Mark Elbrecht:
...
* makefile.dos: Remove; obsolete.
1999-07-22 00:55:12 +00:00
Richard Henderson
35ca97eacf
* argv.c: Include stdlib.h and string.h instead of
...
prototyping directly.
* choose-temp.c: Conditionally include string.h.
1999-07-14 17:32:02 +00:00
Ian Lance Taylor
af32ff6969
* splay-tree.c (splay_tree_insert): Add initialization to avoid
...
warning.
1999-07-11 19:13:51 +00:00
Jim Blandy
e9868447b4
*** empty log message ***
1999-05-11 12:42:30 +00:00
Jim Blandy
7d0e3be3b1
* cplus-dem.c (main): Use table lookup to distinguish identifier
...
characters from non-identifier characters.
(standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1999-05-11 12:42:12 +00:00
Richard Henderson
33fbbfbc00
* 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.
1999-05-06 20:59:17 +00:00
Richard Henderson
252b5132c7
19990502 sourceware import
1999-05-03 07:29:11 +00:00