DJ Delorie
11f6f21d46
merge from gcc
26 years ago
DJ Delorie
d42dae6cb2
merge from gcc
26 years ago
DJ Delorie
e05c6d27bf
merge from gcc
26 years ago
DJ Delorie
b50c407366
merge from gcc
26 years ago
DJ Delorie
457161bf17
merge from gcc
26 years ago
DJ Delorie
e00bc6a7ba
merge from gcc
26 years ago
Daniel Berlin
a5dd804ef9
Forgot the makefile portion
26 years ago
Daniel Berlin
400ee7e1e2
2001-04-15 Daniel Berlin <dan@cgsoftware.com>
26 years ago
DJ Delorie
d969735448
merge from gcc
26 years ago
DJ Delorie
a7bf099bb7
merge from gcc
26 years ago
DJ Delorie
30a1def20d
merge from gcc
26 years ago
DJ Delorie
079c672a7a
merge from gcc
26 years ago
Jim Blandy
a88e356aab
* cp-demangle.c (string_list_delete): Don't forget to free the
actual contents of the string.
26 years ago
DJ Delorie
1dffcc6638
merge from gcc
26 years ago
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.
26 years ago
DJ Delorie
a9cbbe6d3e
merge from gcc
26 years ago
DJ Delorie
b1e51b3cd9
merge from gcc
26 years ago
DJ Delorie
fa03f0a706
Fix minor formatting bugs.
26 years ago
DJ Delorie
8aa30e60ce
merge from gcc
26 years ago
DJ Delorie
30673bf511
merge from gcc
26 years ago
DJ Delorie
5810f3948f
merge from gcc
26 years ago
DJ Delorie
a9db032a7a
merge from gcc
26 years ago
DJ Delorie
bc9bf2596e
merge from gcc
26 years ago
Michael Sokolov
9d969b59b8
Remove extraneous tab from the blank line after the most recent entry
26 years ago
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.
26 years ago
DJ Delorie
c6da642e79
* bsearch.c: New file.
* configure.in (funcs): Add bsearch.
(AC_CHECK_FUNCS): Likewise.
* configure, config.in: Regenerate.
26 years ago
Nick Clifton
ae7d06ad04
Synchronise with master FSF GCC sources
26 years ago
DJ Delorie
f021637a75
* safe-ctype.c: #include "ansidecl.h".
* strtod.c: Likewise.
* strtoul.c: Include safe-ctype.h, not ctype.h.
26 years ago
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).
26 years ago
DJ Delorie
4415a860ff
* Makefile.in (distclean): When cleaning, remove testsuite.
26 years ago
DJ Delorie
849ee22471
* cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
name before allocating the dyn_string.
26 years ago
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.
26 years ago
DJ Delorie
5ca0f83d75
* hashtab.c (higher_prime_number): Use a table, rather than a
seive, to find the next prime.
26 years ago
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.
26 years ago
Hans-Peter Nilsson
9c26dc82b6
* cplus-dem.c (main): Handle gnat_demangling.
26 years ago
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.
26 years ago
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.
26 years ago
DJ Delorie
8944fb9d12
Fix ChangeLog entry: cplus-dem.c instead of cplus_dem.c
26 years ago
DJ Delorie
296731c177
[merge]
* cplus_dem.c: Eliminate use of DEFUN, it is obsolete and cannot
be used in GCC.
26 years ago
Hans-Peter Nilsson
6e53a71409
Correct date and style of last entry
26 years ago
Hans-Peter Nilsson
16e857458e
* cplus_dem.c: Add gnat demangler. Add java to demangle style
list.
26 years ago
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.
26 years ago
Hans-Peter Nilsson
e0f3df8f1e
* hashtab.c: Change void * to PTR where necessary.
(htab_create, htab_expand): Correct formatting of comment before
function.
26 years ago
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.
26 years ago
DJ Delorie
74bcd5294f
merge from gcc repository
26 years ago
DJ Delorie
87263c36d1
* md5.c: #include "ansidecl.h".
26 years ago
Jason Merrill
050823ca47
* Makefile.in (REQUIRED_OFILES): Add md5.o.
(CFILES): Add md5.c.
* md5.c: New file.
26 years ago
DJ Delorie
60c6451942
* splay-tree.c: #include <stdio.h>.
26 years ago
Hans-Peter Nilsson
d3e8500506
* testsuite/demangle-expected: Add two tests for anonymous
namespaces.
* cplus-dem.c (gnu_special): Handle anonymous namespaces.
26 years ago
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.
26 years ago