2001-11-26 Fernando Nasser <fnasser@redhat.com>
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
5527febf
DD
12001-11-26 DJ Delorie <dj@redhat.com>
2
3 * configure.in: Check for alloca.h (for regex.c and putenv.c).
4 * configure: Regenerate.
5 * config.h: Add HAVE_ALLOCA_H.
6
941d74a0
DD
72001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8
9 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
10 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
11 is available.
12
dc579051
DD
13Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
14
15 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
16 * configure.in (HAVE_UINTPTR_T): Test for system defining
17 uintptr_t and define HAVE_UINTPTR_T appropriately.
18 * regex.c (uintptr_t): Do not provide a definition if the
19 system provided one.
20
21 * regex.c (PREFIX): Provide an alternate definition for
22 non-ANSI/ISO compilers.
23 (ARG_PREFIX): Likewise.
24
1a78a35a
DD
252001-11-12 Jim Meyering <meyering@lucent.com>
26
27 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
28 this code would end up calling gettext even in packages built
29 with --disable-nls.
30 * getopt.c (_): Likewise.
31 * regex.c (_): Likewise.
32
4e55c4b6
DD
332001-11-03 Alan Modra <amodra@bigpond.net.au>
34
35 * configure.in: Cope with missing makeinfo.
36 * configure: Regenerate.
37
d311a83a
DD
382001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
39
40 * hex.c (hex_init): Provide empty stub.
41
42 * hex.c (hex_init): Delete.
43 (_hex_value): Const-ify and initialize at compile-time.
44
3bc62f91
DD
452001-10-19 H.J. Lu <hjl@gnu.org>
46
47 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
48 necessary.
49
5d852400
DD
502001-10-17 DJ Delorie <dj@redhat.com>
51
52 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
53 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 54 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
55 Improve manual formatting.
56 * functions.texi: Regenerate.
57
ba19b94f
DD
582001-10-15 DJ Delorie <dj@redhat.com>
59
60 * Makefile.in (TEXIFILES): Add fnmatch.txh.
61 (maint-undoc): New.
62 maint-tool: Add "undoc" tool.
63 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
64 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
65 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
66 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
67 documentation.
68 * fnmatch.txh: New.
69 * functions.texi: Regenerate.
70
56056af5
DD
712001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
72
73 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
74 * strtod.c: Use "ISO C" instead of "ANSI C".
75 * functions.texi: Regenerate.
76
99b58139
DD
772001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
78
79 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
80 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
81 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
82 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
83 spelling. Give names to function arguments in documentation. Use
84 (void) prototypes in documentation.
85 * functions.texi: Regenerate.
86
e6450fe5
DD
872001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
88
89 * argv.c (buildargv, tests, main): Const-ify.
90 * cp-demangle.c (operator_code): Likewise.
91 * cplus-dem.c (optable, libiberty_demanglers,
92 cplus_demangle_set_style, cplus_demangle_name_to_style,
93 print_demangler_list): Likewise.
94 * hashtab.c (higher_prime_number): Likewise.
95 * strcasecmp.c (charmap): Likewise.
96 * strerror.c (error_info, strerror, main): Likewise.
97 * strncasecmp.c (charmap): Likewise.
98 * strsignal.c (signal_info): Likewise.
99
da191b5b
DD
1002001-09-29 DJ Delorie <dj@redhat.com>
101
102 * configure: Regenerate.
103
916aaa12
DD
1042001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
105
106 * concat.c: Include stdlib.h.
107
fa9f0e33
DD
1082001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
109
110 * libiberty.texi: (Top level): Add syncodeindex pg. Add
111 @dircategory and @direntry directives. Add @finalout.
112 (many nodes): Lose the next,prev,up pointers on the @nide line.
113 (Using, Supplemental Functions, Replacement Functions): Fix
114 markup.
115 (Functions): Move around, to allow makeinfo to build the manual
116 without next,prev,up pointers in thye node lines.
117 (Licenses): Fix typos.
118
119 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
120 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
121 * functions.texi: Regenerate.
122
123 * copying-lib.texi: Lose the next,prev,up pointers on the @node
124 line.
125
1262001-09-27 DJ Delorie <dj@redhat.com>
127
128 * configure.in: Don't use in-tree texinfo, because libiberty must
129 be built before it. Check for makeinfo version 4 or higher.
130 * functions.texi: Regenerate.
131
39423523
DD
1322001-09-20 DJ Delorie <dj@redhat.com>
133 Phil Edwards <pedwards@disaster.jaj.com>
134
135 * configure.in (MAKEINFO, PERL): Detect these.
136 (--enable-maintainer-mode): Add.
137 * configure: Regenerate.
138 * Makefile.in (MAKEINFO, PERL): Define.
139 (libiberty.info, libiberty.dvi, libiberty.html): New.
140 (CFILES): Add bsearch.c.
141 (CONFIGURED_OFILES): New, list of objects configure might add.
142 (maint-missing, maint-buildall): New, for maintainers only.
143 (clean, mostlyclean): Add info/dvi/html files.
144 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
145 * gather-docs: New, for maintainers.
146 * maint-tool: New, for maintainers.
147 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
148 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
149 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
150 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
151 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
152 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
153 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
154 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
155 documentation.
156
66c94e19
DD
1572001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
158
159 * concat.c (reconcat): Fix for traditional C.
160
99ee3a8f
DD
1612001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
162
163 * concat.c (reconcat): New function.
164
54c20242
DD
1652001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
166
167 * concat.c (vconcat_length, vconcat_copy, concat_length,
168 concat_copy, concat_copy2): New functions.
169 (concat): Use vconcat_length/vconcat_copy.
170
171 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
172 Define.
173
843f21be
DD
1742001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
175
176 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
177 VA_FIXEDARG & VA_CLOSE.
178
179 * vasprintf.c: Check HAVE_STRING_H when including string.h.
180 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
181 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
182
8a423cb3
DD
1832001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
184
185 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
186
dc676635
DD
1872001-08-23 Ulrich Drepper <drepper@redhat.com>
188
189 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
190
1912001-08-23 Ulrich Drepper <drepper@redhat.com>
192
193 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
194 instead of mbrtowc.
195 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
196 wcslen, and __wcscoll instead of wcscoll.
197
f080c76d
DD
1982001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
199
4e55c4b6
DD
200 * fibheap.c (fibheap_init, fibnode_init): Remove.
201 (fibheap_new, fibnode_new): Use xcalloc to allocate and
202 initialize memory.
203 (fibheap_insert): Remove check for node allocation failure.
f080c76d 204
f01b59ed
DD
2052001-08-21 Richard Henderson <rth@redhat.com>
206
207 * Makefile.in (fibheap.o): Depend on config.h.
208 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
209 functions for inlining.
210
211Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
212
213 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
214 hosting on cygwin.
215 * configure: Regenerate.
216
eb828599
AC
2172001-08-20 Andrew Cagney <ac131313@redhat.com>
218
219 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
220 HARRIS_FLOAT_FORMAT.
221 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
222 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
223 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
224 (floatformat_m88110_harris_ext): New float formats.
225
4e55c4b6
DD
2262001-08-20 Daniel Berlin <dan@cgsoftware.com>
227
228 * fibheap.c: New file. Fibonacci heap.
229
230 * Makefile.in (CFILES): Add fibheap.c.
231 (REQUIRED_OFILES): Add fibheap.o.
232 (fibheap.o): Add dependencies for fibheap.o.
233
68a41de7
DD
2342001-08-17 Christopher Faylor <cgf@cygnus.com>
235
236 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
237 * configure: Regenerate.
238
8fc34799
DD
2392001-08-16 Richard Henderson <rth@redhat.com>
240
241 * hashtab.c (htab_hash_string): New.
242
16bad250
AC
2432001-08-13 Andrew Cagney <ac131313@redhat.com>
244
245 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
246 name.
247
a9022147
DD
2482001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
249
250 * regex.c (wcs_regex_compile): Use appropriate string
251 to compare with collating element.
252 Fix the padding for the alignment.
253
8aefe91a 2542001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
255
256 * lbasename.c (lbasename): Change function definition to return a
257 const char pointer.
258
e7e9b069
DD
2592001-08-07 Jason Merrill <jason_merrill@redhat.com>
260
261 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
262 for".
263
cc5144f8
DD
2642001-08-03 Richard Henderson <rth@redhat.com>
265
266 * Makefile.in (concat.o): Depend on config.h.
267
8aefe91a
DD
2682001-07-30 Andreas Jaeger <aj@suse.de>
269
270 * concat.c: Include "config.h".
271
86710ce2
DD
2722001-07-30 Andreas Jaeger <aj@suse.de>
273
274 * regex.c: Declare wcs functions only if compiling with
275 MBS_SUPPORT.
276 Don't use #elif for traditional C.
277
2782001-07-23 Ulrich Drepper <drepper@redhat.com>
279
280 * regex.c: Revamp memory allocation for WCHAR functions to
281 not use too much stack.
282
2832001-07-30 Andreas Jaeger <aj@suse.de>
284
285 * regex.c: Declare wcs functions only if compiling with
286 MBS_SUPPORT.
287 Don't use #elif for traditional C.
288
a5d8f731
DD
2892001-07-25 Daniel Jacobowitz <drow@mvista.com>
290
291 * Makefile.in (regex.o): Add dependency on config.h.
292
6ad8a379
DD
2932001-07-18 Andreas Schwab <schwab@suse.de>
294
295 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
296 underscore character.
297
2982001-07-18 Ulrich Drepper <drepper@redhat.com>
299
300 * regex.c: Limit string length printed in debug messages to 100
301 chars.
302
3032001-07-18 Andreas Jaeger <aj@suse.de>
304
305 * regex.c: Place under LGPL version 2.1.
306
2a6ef469
DD
3072001-07-10 Jeff Johnston <jjohnstn@redhat.com>
308
309 * Makefile.in: Add support for regex code.
310 * regex.c: New file.
311
7b78baae
DD
3122001-07-05 Mark Klein <mklein@dis.com>
313
314 * Makefile.in: Add ffs.c dependency.
315 * configure.in: Add ffs.c.
316 * ffs.c: New file.
317
926150e2
DD
3182001-06-18 Richard Henderson <rth@redhat.com>
319
320 * concat.c: Include <sys/types.h>.
321
11f6f21d
DD
3222001-06-11 Loren J. Rittle <ljrittle@acm.org>
323
324 bootstrap/3106
325 * strerror.c (sys_nerr): Hide the OS header version.
326 * strsignal.c (sys_nsig): Likewise.
327
d42dae6c
DD
3282001-06-10 Richard Henderson <rth@redhat.com>
329
330 * concat.c: Include string.h. Fix int vs size_t usage.
331 Simplify the iteration loops. Use memcpy.
332
e05c6d27
DD
3332001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
334
335 * partition.c: Fix misspelling of `implementation'.
336
b50c4073
DD
3372001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
338
339 * md5.c (md5_init_ctx): Declare constants as unsigned.
340 (md5_process_block): Likewise.
341
457161bf
DD
3422001-05-07 Zack Weinberg <zackw@stanford.edu>
343
344 * cp-demangle.c (demangle_v3_with_details,
345 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
346 function definition.
347 * ternary.c: Use K+R style function definitions. Use PTR, not
348 void *. Make arguments constant where possible.
349
e00bc6a7
DD
3502001-05-07 Mark Mitchell <mark@codesourcery.com>
351
352 * splay-tree.h (splay_tree_max): New function.
353 (splay_tree_min): Likewise.
354
400ee7e1
DB
3552001-04-15 Daniel Berlin <dan@cgsoftware.com>
356
357 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
358
359 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 360
d9697354
DD
3612001-04-03 Zack Weinberg <zackw@stanford.edu>
362
363 * make-temp-file.c (try): Inline.
364
a7bf099b
DD
3652001-02-28 Richard Henderson <rth@redhat.com>
366
367 * Makefile.in (make-temp-file.o): Depend on config.h.
368
30a1def2
DD
3692001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
370
371 * memchr.c (memchr): Adjust condition to avoid infinite loop.
372
079c672a
DD
3732001-03-23 Jakub Jelinek <jakub@redhat.com>
374
375 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
376 `_' not followed by a digit is invalid.
377
a88e356a
JB
3782001-03-22 Jim Blandy <jimb@redhat.com>
379
380 * cp-demangle.c (string_list_delete): Use dyn_string_delete
381 instead of free, to free the contents as well as the string
382 structure.
383
1dffcc66
DD
3842001-03-21 Zack Weinberg <zackw@stanford.edu>
385
386 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
387 Don't default P_tmpdir to anything. Try /var/tmp before
388 /usr/tmp.
389
3902001-03-20 Zack Weinberg <zackw@stanford.edu>
391
392 * choose-temp.c: Split off make_temp_file, and the code
393 duplicated between it and choose_temp_base, into...
394 * make-temp-file.c: ... here; new file.
395
396 * Makefile.in (CFILES): Add make-temp-file.c.
397 (REQUIRED_OFILES): Add make-temp-file.o.
398
e61231f1
JB
3992001-03-20 Jim Blandy <jimb@redhat.com>
400
401 * cp-demangle.c (struct demangling_def): New fields:
402 is_constructor and is_destructor.
403 (demangling_new): Initialize them.
404 (demangle_ctor_dtor_name): Set them, if we detect a constructor
405 or destructor.
406 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
407 is_gnu_v3_mangled_dtor): New functions.
408
a9cbbe6d
DD
4092001-03-20 Jason Merrill <jason@redhat.com>
410
411 * cplus-dem.c (main): Skip initial $.
412
b1e51b3c
DD
4132001-03-15 Michael Meissner <meissner@redhat.com>
414
415 * hashtab.c (higher_prime_number): Silence warning that 4294967291
416 might be a signed integer under pre-ISO C systems.
417
8aa30e60 4182001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 419 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 420
8aa30e60
DD
421 * libiberty/lbasename.c: New file.
422 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 423
30673bf5
DD
4242001-03-06 Zack Weinberg <zackw@stanford.edu>
425
426 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
427 * configure.in: Replace all alloca logic with a simple use of
428 the above new macro.
429 * config.table: Kill *-*-beos* entry.
430 * config/mh-beos: Delete.
431 * configure, config.in: Regenerate.
fa03f0a7 432
30673bf5
DD
433 * Makefile.in (ALLOCA, HFILES): Kill.
434 (REQUIRED_OFILES): Add alloca.o.
435 (alloca.o): Depend on libiberty.h.
436 (argv.o): Don't depend on alloca-conf.h.
437 * alloca-conf.h: Delete.
438 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
439 blocks. Provide the C alloca unconditionally. Use PTR where
440 appropriate. Make i00afunc static.
441 * argv.c: Don't include alloca-conf.h.
fa03f0a7 442
5810f394
DD
4432001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
444
445 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 446
a9db032a
DD
4472001-02-16 Loren J. Rittle <ljrittle@acm.org>
448
449 * cplus-dem.c (main): Initialize style.
fa03f0a7 450
8aefe91a
DD
4512001-02-02 Phil Edwards <pme@sources.redhat.com>
452
453 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
454
bc9bf259
DD
4552001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
456
457 Add support for Java demangling under the v3 ABI:
458 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
459 (struct demangling_def): Add `style' field.
460 (demangling_new): New parameter `style'. Set it in demangling_t.
461 (demangle_prefix): Use NAMESPACE_SEPARATOR.
462 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
463 (cp_demangle): New parameter `style'. Pass it to demangling_new().
464 (main): Call cp_demangle with extra parameter.
465 (java_demangle_v3): New function.
466 (java_builtin_type_names): New. Table of primitive type names used
467 for Java demangling.
468 (demangle_builtin_type): Look up in java_builtin_type_names if doing
469 Java output.
470 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
471 demangling.
472 (long_options): Remove obsolete `java' option.
473 (main): Remove explicit handling of `java' option. Instead, pass style
474 parameter in cplus_demangle flags as gdb does.
475 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 476
f6528837
DD
4772000-12-29 DJ Delorie <dj@redhat.com>
478
479 * fnmatch.c: Make the note about the origins of this file more
480 accurate, at least until we can sync with glibc.
481 * getopt.c: Ditto.
482 * getopt1.c: Ditto.
483 * md5.c: Ditto.
484 * obstack.c: Ditto.
9d969b59 485
c6da642e
DD
4862000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
487
488 * bsearch.c: New file.
489 * configure.in (funcs): Add bsearch.
490 (AC_CHECK_FUNCS): Likewise.
491 * configure, config.in: Regenerate.
492
ae7d06ad 4932000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
494
495 * safe-ctype.c: #include "ansidecl.h".
496 * strtod.c: Likewise.
497
ae7d06ad 4982000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
499
500 * strtoul.c: Include safe-ctype.h, not ctype.h.
501
ac424eb3
DD
5022000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
503
504 * safe-ctype.c: New file.
505 * Makefile.in (CFILES): Add safe-ctype.c.
506 (REQUIRED_OFILES): Add safe-ctype.o.
507
508 * argv.c: Define ISBLANK and use it, not isspace.
509 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
510 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
511 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
512 before calling TOLOWER(c)/TOUPPER(c).
513
4415a860
DD
5142000-12-07 Mike Stump <mrs@wrs.com>
515
516 * Makefile.in (distclean): When cleaning, remove testsuite.
517
849ee224
DD
5182000-12-05 Jason Merrill <jason@redhat.com>
519
520 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
521 name before allocating the dyn_string.
522
ae7d06ad 5232000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
524
525 * cp-demangle.c: s/new_abi/v3/.
526 * cplus-dem.c: Likewise.
527 (current_demangling_style): Now auto_demangling.
528 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 529 (main): Use standard symbol chars for auto_demangling.
e49a569c 530
ae7d06ad 5312000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
532
533 * hashtab.c (higher_prime_number): Use a table, rather than a
534 seive, to find the next prime.
ae7d06ad
NC
535
5362000-11-22 H.J. Lu <hjl@gnu.org>
537
538 * cplus-dem.c (main): Handle gnat_demangling.
539
5402000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
541
542 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
543 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
544 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
545 argument form of AC_DEFINE in dummy definitions block. Use
546 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
547 in dummy block. Preload cache variables instead of bypassing
548 tests, where possible.
549 * acconfig.h: Removed.
ae7d06ad 550
2ea7befd
DD
551 * xmalloc.c (xmalloc_failed): New function, does error
552 reporting on failed allocation.
553 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 554
f1775526
HPN
5552000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
556
557 * cplus-dem.c (cplus_demangle): Fix formatting.
558 (grow_vect): Ditto.
559 (ada_demangle): Ditto.
560 (internal_cplus_demangle): Ditto.
561 (mop_up): Ditto.
562
5632000-11-21 H.J. Lu <hjl@gnu.org>
564
565 * cplus-dem.c (main): Handle java_demangling.
566
ae7d06ad 5672000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
568
569 * cplus-dem.c (grow_vect): Prototype.
570 (ada_demangle): Cast the arg of ctype macros to unsigned char.
571
5dd42ef4
HPN
5722000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
573
574 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
575 parameter `option'.
576
296731c1
DD
5772000-11-15 Kenneth Block <kenneth.block@compaq.com>
578
8944fb9d 579 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
580 be used in GCC.
581
6e53a714 5822000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 583
5dd42ef4 584 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
585 list.
586
99a4c1bd
HPN
5872000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
588
589 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
590 xcalloc depending on htab->return_allocation_failure. Return zero
591 if calloc fails.
99a4c1bd
HPN
592 (htab_create): Update comment to cover memory allocation.
593 (htab_try_create): New.
594 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 595 Update comment to cover this.
99a4c1bd 596
e0f3df8f
HPN
5972000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
598
599 * hashtab.c: Change void * to PTR where necessary.
600 (htab_create, htab_expand): Correct formatting of comment before
601 function.
602
ae7d06ad 6032000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
604
605 * cp-demangle.c (string_list_def): Add caret_position and comments.
606 (result_caret_pos): New macro.
607 (result_append_string): Rename to...
608 (result_add_string): ... this, and insert at caret position.
ae7d06ad 609 Rename throughout.
59666b35
DD
610 (result_append): Rename to...
611 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 612 throughout.
59666b35
DD
613 (result_append_char): Rename to...
614 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 615 throughout.
59666b35
DD
616 (result_append_space): Remove.
617 (string_list_new): Initialize caret position.
618 (result_add_separated_char): Use caret position.
619 (result_get_caret): New funtion.
620 (result_set_caret): Likewise.
621 (result_shift_caret): Likewise.
622 (result_previous_char_is_space): Likewise.
623 (substitution_start): Use caret position.
624 (substitution_add): Likewise.
625 (demangling_new): Initialize caret position.
626 (demangle_encoding): Use caret position.
ae7d06ad 627 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
628 (demangle_type_ptr): Use switch statement. Handle pointers to
629 arrays. Don't use result_append_space. Use caret position.
630 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
631 call to demangle_array_type.
632 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 633
ae7d06ad 6342000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
635
636 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
637
6382000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
639
640 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
641
6422000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
643
644 * splay-tree.c: #include <stdio.h>.
645
6462000-09-14 Hans-Peter Nilsson <hp@axis.com>
647
648 * testsuite/demangle-expected: Add two tests for anonymous
649 namespaces.
650 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
651
6522000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
653
654 * splay-tree.c (splay_tree_predecessor): New function.
655 (splay_tree_successor): Likewise.
ae7d06ad
NC
656
6572000-09-10 Hans-Peter Nilsson <hp@axis.com>
658
659 * testsuite/demangle-expected: Add four tests for type_info
660 mangling.
661 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
662 for a non-template non-qualified type_info function or node.
663
6642000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
665
666 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
667
6682000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
669
670 * md5.c: #include "ansidecl.h".
671
6722000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
673
674 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
675 (demangle_type): Handle substitution candidates correctly in the
676 face of special substitutions.
ae7d06ad
NC
677
6782000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
679
680 * cp-demangle.c (demangle_encoding): Rename variable.
681 (demangle_name): Rename parameter. Handle return type
682 suppression.
683 (demangle_nested_name): Rename parameter.
684 (demangle_prefix): Likewise. Change return type suppression.
685 (demangle_unqualified_name): Add parameter. Flag constructors and
686 conversion operators.
687 (demangle_special_name): Fix comment.
688 (demangle_type): Rename variable.
689 (demangle_bare_function_type): Check for missing return type and
690 parameter.
691 (demangle_class_enum_type): Rename parameter.
692 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
693
6942000-08-31 DJ Delorie <dj@redhat.com>
695
696 * configure.in (Cygwin): special case cygwin only when we're
697 building cygwin, not when we're hosting cygwin.
698
6992000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
700
701 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
702 <expression>.
ae7d06ad
NC
703
7042000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
705
706 * cp-demangle.c (demangle_type_ptr): Increment position past
707 pointer and reference characters.
ae7d06ad
NC
708
7092000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
710
711 * cp-demangle.c (demangle_nv_offset): New function.
712 (demangle_v_offset): Likewise.
713 (demangle_call_offset): Likewise.
714 (demangle_special_name): Update thunk demangling to comply with
715 ABI changes.
ae7d06ad
NC
716
7172000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
718
719 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
720 (substitution_def): Remove template_parm_number.
721 (NOT_TEMPLATE_PARM): Remove.
722 (result_insert_string): New macro.
723 (result_insert): Likewise.
724 (result_insert_char): Likewise.
725 (substitution_add): Remove last parameter. Don't store template
726 parm number.
727 (BFT_NO_RETURN_TYPE): Define as NULL.
728 (demangle_encoding): Adjust call to demangle_bare_function_type.
729 (demangle_name): Adjust substitution. Adjust call to
730 substitution_add.
731 (demangle_prefix): Adjust call to substitution_add.
732 (demangle_identifier): Handle anonymous namespaces.
733 (demangle_operator_name): Change demangling of vendor-extended
734 operator to match ABI changes.
735 (demangle_type_ptr): Change parameters. Make recursive. Handle
736 substitutions here.
737 (demangle_type): Adjust calls to demangle_template_param,
738 substitution_add, and demangle_type_ptr. Fix substitution of
739 templated types.
740 (demangle_function_type): Change parameter to a pointer.
741 (demangle_bare_function_type): Likewise. Adjust insertion point.
742 (demangle_template_param): Remove last parameter.
743 (demangle_expr_primary): Remove unused variable. Adjust call to
744 demangle_template_param.
745 (is_mangled_char): Accept `$' and `.'.
746 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
747 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
748
7492000-08-31 Hans-Peter Nilsson <hp@axis.com>
750
751 * testsuite/demangle-expected: Add nine tests for
752 underscore-after-number followed by five tests for name-signature
753 delimiter.
754
7552000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
756
757 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
758
7592000-08-28 Jason Merrill <jason@redhat.com>
760
761 * Makefile.in (REQUIRED_OFILES): Add md5.o.
762 (CFILES): Add md5.c.
763 * md5.c: New file.
764
7652000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
766
767 * cp-demangle.c (demangle_name): Initialize template_p in local
768 name case. Don't re-add substitutions as candidates.
769 (demangle_nested_name): Use <unqualified-name>.
770 (demangle_prefix): Likewise. Don't add template names as
771 substitution candidates twice, or re-add a substitution or the
772 last prefix component.
773 (demangle_local_name): Adjust output format.
ae7d06ad
NC
774
7752000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
776
777 * cp-demangle.c (result_add_separated_char): Change parameter to
778 int.
779 (substitution_add): Don't check for duplicates. Check if
780 previously allocated size is zero.
781 (demangle_name): Remove duplicate check for std substitution.
782 Clear template flag appropriately.
783 (demangle_prefix): Remove argument to demangle_substitution.
784 Don't check that template flag is already set.
785 (demangle_operator_name): Add pt operator.
786 (demangle_type): Don't treat r as built-in type. Remove argument
787 to demangle_substitution. Fix substitution candidate mechanics.
788 Handle <template-template-parm>s. Improve comments.
789 (demangle_template_param): Don't handle template arg lists here.
790 (demangle_substitution): Remove parameter.
791 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
792
7932000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
794
795 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
796
7972000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
798
799 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
800 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
801 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
802
8032000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
804
805 * cp-demangle.c (result_close_template_list): Remove function.
806 (result_add_separated_char): New function.
807 (result_open_template_list): New macro.
808 (result_close_template_list): Likewise.
809 (demangle_prefix): Don't set template_p if the
810 prefix ends with a ctor name.
811 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
812 (demangle_type): Check for template args after substitution.
813 (demangle_template_args): Use result_open_template_list.
d3e85005 814
ae7d06ad 8152000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 816
ae7d06ad 817 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 818
ae7d06ad 8192000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
820
821 * config/mh-openedition.h: Added -DLE370 definition.
822
a9f34fb6
JL
8232000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
824
825 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
826 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
827 Cast program to 'char *' in errmsg_arg assignment.
828 (PWAIT_ERROR): Define.
829 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
830 to DJGPP's WIF* macros.
831
90aaccd1 8322000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 833 Jeff Law <law@cygnus.com>
90aaccd1 834
ae7d06ad 835 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 836
90aaccd1 837 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
838 * rename.c: Include config.h, unistd.h
839 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 840
6ef554e3
HPN
8412000-07-24 Hans-Peter Nilsson <hp@axis.com>
842
843 * cplus-dem.c (work_stuff_copy_to_from): New.
844 (delete_non_B_K_work_stuff): New.
845 (delete_work_stuff): New.
846 (mop_up): Break out work_stuff partly destruction to
847 delete_non_B_K_work_stuff.
848 (iterate_demangle_function): New.
849 (demangle_prefix): Call iterate_demangle_function instead of
850 demangle_function_name. Leave handling of name-signature
851 __-delimiters to iterate_demangle_function.
852 (demangle_integral_value): Strip an optional
853 following underscore cautiously. Handle negative numbers.
854
ae7d06ad 8552000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 856
ae7d06ad 857 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
858 if (AUTO_DEMANGLING || GNU_DEMANGLING)
859
ae7d06ad
NC
8602000-07-21 Alex Samuel <samuel@codesourcery.com>
861
862 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
863 allocating ctor mangling.
864 (demangle_array_type): Handle empty and non-constant array length.
865
b1233257 8662000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
867 Jeff Law <law@cygnus.com>
868
869 * configure.in (AC_CHECK_HEADERS): Add time.h.
870 (AC_HEADER_TIME): Add check.
871 * configure, config.in: Regenerate.
872 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
873
874 * configure.in (AC_CHECK_HEADERS): Add limits.h.
875 * configure, config.in: Regenerate.
876 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
877 * strtol.c, strtoul.c: #include "config.h". Portably #include
878 <limits.h> and/or <sys/param.h>.
879 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 880
7d3ffcaf
JL
881 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
882 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
883 * configure, config.in: Regenerate.
884 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
885
b1233257
JL
886 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
887
ae7d06ad
NC
8882000-07-21 Mike Stump <mrs@wrs.com>
889
890 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
891 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
892
8932000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
894
895 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
896
897 * setenv.c (setenv): Initialize variable `ep'.
898
899 * sigsetmask.c (abort): Prototype.
900
901 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
902 __STDC__ for stdarg.h include.
903 (int_vasprintf): Prototype.
904 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
905 definition. Cast `global_total_width' in comparison.
906 (main): Prototype. Return a value.
907
908 * vfork.c (fork): Prototype.
909
910 * xexit.c: Include config.h.
911
9adf30b2
JL
9122000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
913
914 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
915 and print it with %u.
916
2ed78d1b
HPN
9172000-07-17 Hans-Peter Nilsson <hp@axis.com>
918
919 * testsuite/regress-demangle (failed test): Show result and
920 expected output.
921
0473bdf7
AH
9222000-07-07 Andrew Haley <aph@cygnus.com>
923
924 * cplus-dem.c (main): fflush() after emitting last char before
925 waiting for input.
926
03d5f569
JM
9272000-06-28 Alex Samuel <samuel@codesourcery.com>
928
929 * cp-demangle.c (demangle_encoding): Accept no substitutions.
930 (demangle_name): Handle <substitution> followed by
931 <unqualified-template-name>.
932 (demangle_type): Follow special substitutions with
933 <class-enum-type>
934 (demangle_subtitution): Set template_p for special substitutions.
935 (main): Fix typos.
ae7d06ad 936
03d5f569
JM
9372000-06-27 Alex Samuel <samuel@codesourcery.com>
938
939 * cp-demangle.c (demangle_special_name): Swap base and derived
940 class when demangling construction vtables.
941
9422000-06-21 Alex Samuel <samuel@codesourcery.com>
943
944 * cp-demangle.c: Don't include ctype.h.
945 (IS_DIGIT): New macro.
946 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
947 instead of isdigit and isalpanum.
948 (demangling_def): Make name and next const pointers.
949 (STATUS_ALLOCATION_FAILED): New status code.
950 (dyn_string_append_space): Handle failure in
951 dyn_string_append_char.
952 (int_to_dyn_string): Likewise. Change return value to status_t.
953 (string_list_new): Handle failure of dyn_string_init.
954 (result_close_template_list): Change return type to status_t.
955 Handle failure in dyn_string_append.
956 (result_push): Change return value to status_t. Handle failure in
957 string_list_new. Handle failure of result_push throughout.
958 (substitution_add): Change return value to status_t. Handle
959 dyn_string failures. Handle failure of substitution_add
960 throughout.
961 (template_arg_list_new): Return NULL on allocation failure.
962 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
963 Handle error result throughout.
964 (result_append): Likewise.
965 (result_append_char): Likewise.
966 (result_append_space): Likewise.
967 (demangling_new): Make argument a const pointer. Handle
968 allocation failures.
969 (demangle_template_args): Handle failure in template_arg_list_new
970 and result_close_template_list.
971 (demangle_discriminator): Return if int_to_dyn_string fails.
972 (cp_demangle): Likewise.
973 (cp_demangle_type): New function.
974 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
975 memory allocation failure.
976 (main): Likewise.
977 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
978 IN_LIBGCC2.
979 (dyn_string_init): Change return value to int. Handle
980 RETURN_ON_ALLOCATION_FAILURE case.
981 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
982 (dyn_string_release): Delete the dyn_string.
983 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
984 (dyn_string_copy): Change return type to int.
985 (dyn_string_copy_cstr): Likewise.
986 (dyn_string_prepend): Likewise.
987 (dyn_string_prepend_cstr): Likewise.
988 (dyn_string_insert): Likewise.
989 (dyn_string_insert_cstr): Likewise.
990 (dyn_string_append): Likewise.
991 (dyn_string_append_cstr): Likewise.
992 (dyn_string_append_char): Likewise.
993 (dyn_string_substring): Likewise.
ae7d06ad 994
eb383413 9952000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 996
eb383413
L
997 * cp-demangle.c (demangle_operator_name): Add spaces before
998 names beginning with a letter: delete, delete[], new, new[],
999 sizeof.
1000 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 1001
eb383413
L
1002Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
1003
1004 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
1005
1006Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
1007
1008 * cp-demangle.c (stdio.h): File included unconditionaly.
1009 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
1010 * dyn-string.c (stdio.h): File included.
1011 * partition.c (partition_print): No `&' needed to take the address of
1012 a function.
1013
10142000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1015
1016 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 1017
eb383413
L
1018 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
1019
1020 * cp-demangle.c (demangle_char): Change parameter from char to int.
1021 (demangle_expression, demangle_expr_primary): Remove extra
1022 semi-colon in prototype.
1023
1024 * dyn-string.c (dyn_string_append_char): Change parameter from
1025 char to int.
1026
1027 * memcmp.c (memcmp): Constify.
1028
1029 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
1030 __extension__.
1031
1032 * partition.c (elem_compare): Prototype. Don't cast away
1033 const-ness.
1034
1035 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 1036
eb383413
L
10372000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1038
1039 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
1040
1041 * cp-demangle.c: Include demangle.h.
1042 (template_arg_list_new): DeANSIfy.
1043 (cp_demangle): Make static and add prototype.
1044 (operator_code, operators): Constify.
1045 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
1046
10472000-06-05 Alex Samuel <samuel@codesourcery.com>
1048
1049 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
1050 unsigned char.
1051 (demangle_unqualified_name): Likewise.
1052 (demangle_number_literally): Likewise.
1053 (demangle_type): Likewise.
1054 (demangle_substitution): Likewise.
1055 (is_mangled_char): Likewise, for isalnum.
1056
10572000-06-04 Alex Samuel <samuel@codesourcery.com>
1058
1059 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
1060 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
1061 (cp-demangle.o): New dependency.
1062 (dyn-string.o): Likewise.
1063
1064 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
1065
1066 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
1067 demangler.
1068 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
1069 demangling mode.
1070 (gnu_new_abi_symbol_characters): New function.
1071 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
1072 file.
1073 * cp-demangle.c: New file.
ae7d06ad 1074
f03aa80d
AC
1075Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
1076
1077 * floatformat.c: Add name to each floatformat field.
1078
77bfb694
JL
1079Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
1080
1081 * Makefile.in (objalloc.o): Depend on config.h
1082
5c82d20a
ZW
10832000-05-29 Zack Weinberg <zack@wolery.cumb.org>
1084
eb383413 1085 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
1086 if HAVE_STRING_H.
1087 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
1088 * objalloc.c: Include config.h. Include stdlib.h and don't
1089 declare malloc or free if HAVE_STDLIB_H.
1090 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
1091 else declare malloc without prototype. Include string.h if
1092 HAVE_STRING_H, else declare memset without prototype. Don't
1093 include stddef.h.
1094
eb383413
L
10952000-05-23 Mike Stump <mrs@wrs.com>
1096
1097 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 1098 -j3.
eb383413
L
1099
11002000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
1101
1102 * xmalloc.c: Include config.h for HAVE_SBRK definition.
1103
11042000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
1105
ae7d06ad 1106 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
1107 probably zero, also eliminate a warning on alpha.
1108
11092000-05-15 David Edelsohn <edelsohn@gnu.org>
1110
1111 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
1112 on $(enable_shared).
1113
11142000-05-10 Jakub Jelinek <jakub@redhat.com>
1115
1116 * config.table: Use mh-sparcpic for sparc*-*-*.
1117
11182000-05-08 Nick Clifton <nickc@cygnus.com>
1119
1120 * Makefile.in (CFILES): Add strncmp.c.
1121 (NEEDED): Add strncmp.
1122
11232000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 1124
eb383413
L
1125 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
1126 Cast the arguments to `islower' to `unsigned char'.
1127 (print_demangler_list): Prototype.
1128
1129Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
1130
1131 * sort.c (UCHAR_MAX): Provide fallback definition.
1132
11332000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
1134
1135 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
1136 SUBDIRS.
1137
eb383413
L
11382000-04-28 Kenneth Block <block@zk3.dec.com>
1139 Jason Merrill <jason@casey.cygnus.com>
1140
ae7d06ad
NC
1141 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
1142 (cplus_demangle_set_style): New function for setting style.
1143 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
1144
11452000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1146
1147 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
1148
1149 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
1150 (libiberty_AC_FUNC_STRNCMP): Invoke.
1151
1152 * strncmp.c: New file.
1153
1154Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
1155
1156 * hashtab.c (htab_expand): Add prototype.
1157 (find_empty_slot_for_expand): Likewise.
1158
11592000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1160
1161 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
1162 match prototype.
1163 (htab_expand): Cast the return value of xcalloc.
1164
11652000-04-24 Mark Mitchell <mark@codesourcery.com>
1166
1167 * hashtab.c (hash_pointer): New function.
1168 (eq_pointer): Likewise.
1169 (htab_hash_pointer): New variable.
1170 (htab_eq_pointer): Likewise.
1171
11722000-04-23 Mark Mitchell <mark@codesourcery.com>
1173
1174 * sort.c (sort_pointers): Fix endianness bugs.
1175
1176 * sort.c: New file.
1177 * Makefile.in (CFILES): Add sort.c
1178 (REQUIRED_OFILES): Add sort.o.
1179 (sort.o): New target.
1180
19be4303
JL
11812000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1182
1183 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
1184 4.3BSD systems.
1185
eb383413
L
1186Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1187
1188 * hashtab.c: Various minor cleanups.
1189 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1190 (htab_find_slot): Likewise.
1191
11922000-04-16 Dave Pitts <dpitts@cozx.com>
1193
1194 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1195
afe36a78
RH
11962000-04-05 Richard Henderson <rth@cygnus.com>
1197
1198 * splay-tree.c (splay_tree_remove): New.
1199
eb383413
L
12002000-03-30 Mark Mitchell <mark@codesourcery.com>
1201
1202 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1203 codes.
1204 (htab_find_with_hash): Likewise.
1205 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1206
eb383413
L
12072000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1208
1209 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1210 unless it will be used. Rearrange loop for better
1211 optimization.
1212 (higher_prime_number): Add static prototype.
1213
b4fe2683
JM
1214Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1215
1216 * Makefile.in (partition.o): Depend on config.h
1217
12182000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1219
1220 * hashtab.c (find_empty_slot_for_expand): New function.
1221 (htab_expand): Use it instead of htab_find_slot.
1222 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1223 argument HASH.
1224 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1225 (htab_find): New wrapper function.
1226 (htab_find_slot): Likewise.
1227 (htab_traverse): Pass slot, not entry, to called function.
1228
12292000-03-09 Alex Samuel <samuel@codesourcery.com>
1230
1231 * Makefile.in (CFILES): Add partition.c.
1232 (REQUIRED_OFILES): Add partition.o.
1233 (partition.o): New rule.
1234 * partition.c: New file.
ae7d06ad 1235
b4fe2683
JM
12362000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1237
1238 * hashtab.c (htab_create): Set del_f.
1239 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1240 Use it.
1241
12422000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1243
1244 * hashtab.c: Remove debugging variables (all_searches,
1245 all_collisions, all_expansions). Delete
1246 all_hash_table_collisions.
1247 (create_hash_table, delete_hash_table, empty_hash_table,
1248 find_hash_table_entry, remove_element_from_hash_table_entry,
1249 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1250 hash_table_elements_number, hash_table_collisions): Rename to:
1251 htab_create, htab_delete, htab_empty, htab_find_slot,
1252 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1253 htab_elements, htab_collisions.
1254 (htab_find): New function, handles common case where you don't
1255 plan to add or delete an entry.
1256 (htab_expand): Don't create a whole new table, just a new
1257 entry vector.
1258 (htab_find_slot): Simplify logic.
1259
08372f14
ILT
12601999-08-03 Ian Lance Taylor <ian@zembu.com>
1261
1262 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1263 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1264
1265 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1266 $(TARGETLIB)n so it works on MSDOS.
1267 (install_to_tooldir): Likewise.
1268
9c8ac5a9
ILT
12691999-07-21 Ian Lance Taylor <ian@zembu.com>
1270
1271 From Mark Elbrecht:
1272 * makefile.dos: Remove; obsolete.
8f36e47c 1273 * configure.bat: Remove; obsolete.
9c8ac5a9 1274
0c0a36a4
ILT
12751999-07-11 Ian Lance Taylor <ian@zembu.com>
1276
1277 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1278 warning.
1279
12802000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1281
1282 * pexecute.c: Conditionally include string.h.
b4fe2683 1283 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1284
12852000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1286
1287 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1288 we're using gcc.
1289
1290 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1291
12921999-12-27 Geoff Keating <geoffk@cygnus.com>
1293
1294 * vasprintf.c (int_vasprintf): Don't re-read the format character
1295 as this mishandles strings like '%%s'.
1296
12971999-12-05 Mark Mitchell <mark@codesourcery.com>
1298
1299 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1300 rather than struct splay_tree_node.
1301 (splay_tree_insert): Use struct splay_tree_s rather than struct
1302 splay_tree.
1303
1304Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1305
1306 * hashtab.c (sys/types.h): File included.
1307
13081999-11-22 Jason Merrill <jason@casey.cygnus.com>
1309
1310 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1311 BSD license, pursuant with
1312
1313 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1314
1315Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1316
1317 * hashtab.c: Include stdio.h.
1318
1319Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1320
1321 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1322
1323Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1324
1325 * xstrdup (sys/types.h): Include this file.
1326
13271999-10-28 Nathan Sidwell <nathan@acm.org>
1328
1329 * Makefile.in (SUBDIRS): New macro.
1330 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1331 avoid multiple subdirectory cleaning.
1332 (*-subdir): Use SUBDIRS.
1333
13341999-10-25 Jim Kingdon <http://developer.redhat.com/>
1335
1336 * cplus-dem.c: Move declarations of standard_symbol_characters and
1337 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1338 warnings.
1339
13401999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1341
1342 * hashtab.c (find_hash_table_entry): When returning a
1343 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1344 (clear_hash_table_slot): New function which deletes an entry
1345 by its position in the table, not its value.
1346 (traverse_hash_table): New function which calls a hook
1347 function for every live entry in the table.
1348
13491999-10-19 Mark Mitchell <mark@codesourcery.com>
1350
1351 * cplus-dem.c (INTBUF_SIZE): New macro.
1352 (string_append_template_idx): New function.
1353 (demangle_expression): Likewise.
1354 (demangle_integral_value): Use it.
1355 (demangle_real_value): New function, split out from ...
1356 (demangle_template_value_parm): ... here. Use
1357 string_append_template_idx. Use demangle_real_value.
1358 (demangle_template): Use string_append_template_idx.
1359 (demangle_qualified): Use consume_count_with_underscores.
1360 (get_count): Tweak formatting.
1361 (do_type): Use string_append_template_idx.
b4fe2683 1362
0c0a36a4
ILT
13631999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1364
1365 * calloc.c: Add a public domain notice.
1366
1367Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1368
1369 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1370
1371Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1372
1373 * Makefile.in (CFILES): Add hashtab.c
1374 (REQUIRED_OFILES): Add hashtab.o
1375 (hashtab.o): Add dependencies.
1376 * hashtab.c: New file
1377
1378Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1379
1380 * basename.c (DIR_SEPARATOR): New macro.
1381 (DIR_SEPARATOR_2): Likewise.
1382 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1383 (IS_DIR_SEPARATOR): Likewise.
1384 (main): Handle MSDOS style pathname.
1385
13861999-10-11 Mark Mitchell <mark@codesourcery.com>
1387
1388 * cplus-dem.c (do_type): Handle pointer to member types whose
1389 enclosing classes have namespace scope.
1390
1391Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1392
1393 * config.table: Provide a backup shell for executing move-if-change.
1394
13951999-10-02 Mark Mitchell <mark@codesourcery.com>
1396
1397 * xmalloc.c (xmalloc): Fix spelling error.
1398 (xcalloc, xrealloc): Likewise.
1399
14001999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1401
1402 * cplus-dem.c (fancy_abort, demangle_integral_value,
1403 demangle_arm_hp_template, recursively_demangle,
1404 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1405 (program_name, program_version, fatal): Constify a char*.
1406 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1407 (main): Call return, not exit.
1408
14091999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1410
1411 * choose-temp.c: Remove obsolete comment about gcc.
1412 (make_temp_file): Constify a char*.
1413
1414Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1415
1416 * xmemdup.c: Include sys/types.h.
1417
14181999-09-07 Jeff Garzik <jgarzik@pobox.com>
1419
1420 * xmemdup.c: New xmemdup function.
1421 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1422
1423Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1424
b4fe2683 1425 * config.table: Add openedition target.
0c0a36a4
ILT
1426 * config/mh-openedition: New file.
1427
1428Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1429
1430 * pexecute.c (pexecute): Fill in temp_base when needed.
1431
14321999-08-31 Richard Henderson <rth@cygnus.com>
1433
1434 * getpwd.c: Check HAVE_GETCWD before defining it away.
1435
14361999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1437
1438 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1439 (REQUIRED_OFILES): Add getpwd.o.
1440 (getpwd.o): Add target.
1441
1442 * configure.in (AC_PREREQ): Bump to 2.13.
1443 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1444
1445 * getpwd.c: New file, moved here from gcc.
1446
14471999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1448
1449 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1450 comparing against a signed quantity.
1451 (arm_special): Likewise.
1452 (demangle_fund_type): Likewise.
1453 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1454 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1455 (main): Constify variable `valid_symbols'.
1456
1457Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1458
1459 * strtoul.c (strtoul): Add parentheses around && within ||.
1460
1461Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1462
1463 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1464 libdir, libsubdir and tooldir.
1465
14661999-08-01 Mark Mitchell <mark@codesourcery.com>
1467
1468 * splay-tree.c (splay_tree_insert): Return the new node.
1469
35ca97ea
RH
14701999-07-14 Richard Henderson <rth@cygnus.com>
1471
b4fe2683 1472 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1473 prototyping directly.
1474 * choose-temp.c: Conditionally include string.h.
1475
0c0a36a4
ILT
14761999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1477
1478 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1479
af32ff69
ILT
14801999-07-11 Ian Lance Taylor <ian@zembu.com>
1481
1482 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1483 warning.
1484
0c0a36a4
ILT
14851999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1486
1487 * Makefile.in (needed-list): Only include stuff we actually need
1488 for libstdc++.
1489
14901999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1491
1492 * configure.in (checkfuncs): Add gettimeofday.
1493 * config.in, configure: Regenerated.
1494
1495Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1496
1497 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1498 the test fails.
1499 * configure: Regenerate.
1500
15011999-06-10 Mike Stump <mrs@wrs.com>
1502
1503 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1504 parallel builds.
1505
15061999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1507
1508 * putenv.c: Include ansidecl.h to define `const'.
1509 * setenv.c: Likewise.
1510
1511Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1512
1513 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1514 * configure.in (funcs): Add putenv and setenv.
1515 (AC_CHECK_FUNCS): Check for putenv and setenv.
1516 * configure: Rebuilt.
1517 * putenv.c setenv.c: New files.
1518
1519 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1520 bytes of space using malloc.
1521
1522Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1523
1524 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1525 the *mangled pointer beyond the end of the string. Clean up code to
1526 match prevailing coding style.
1527
15281999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1529
1530 * tmpnam.c (L_tmpnam): Fix typo.
1531
1532Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1533
1534 * cplus-dem.c (standard_symbol_characters): Renamed from
1535 standard_symbol_alphabet. No longer modify TABLE.
1536 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1537 modify TABLE.
1538 (main): Corresponding changes. Use strchr to determine if a
1539 character is valid.
1540
e9868447
JB
15411999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1542
1543 * cplus-dem.c (main): Use table lookup to distinguish identifier
1544 characters from non-identifier characters.
1545 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1546
33fbbfbc
RH
1547Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1548
1549 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1550 * getruntime.c: Only attempt to include sys/resource.h and
1551 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1552 are defined.
1553
0c0a36a4
ILT
1554Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1555
1556 * configure.in (alloca detection): Handle alloca directly for interix.
1557 * configure: Rebuilt.
1558
1559Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1560
1561 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1562
252b5132
RH
15631999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1564
1565 Fix from Dale Hawkins:
b4fe2683 1566 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1567 reallocated properly if we use it again.
1568
1569 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1570 stricter about syntax. Always null-terminate string.
1571
c1687039
ILT
1572Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1573
1574 * configure.in (checkfuncs): Check for sbrk.
1575 * config.in: Rebuilt.
1576 * configure: Likewise.
1577 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1578
0c0a36a4
ILT
15791999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1580
1581 Fix from Marcus Daniels:
1582 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1583 identifier looking for another underscore.
1584
1585Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1586
1587 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1588 * xmalloc.c: Likewise.
1589 (xcalloc): UWIN has sbrk.
1590 (xrealloc): Fix guard macro.
1591
252b5132
RH
15921999-04-11 Richard Henderson <rth@cygnus.com>
1593
1594 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1595 or <alloca.h>.
1596 * clock.c (GNU_HZ): New definition.
1597 (clock): Use it.
1598 * getruntime.c: Likewise.
1599
1600 * config.table: Use mh-beos.
1601 * config/mh-beos: New file.
1602
0c0a36a4
ILT
16031999-04-11 Mark Mitchell <mark@codesourcery.com>
1604
1605 * cplus-dem.c (demangle_template_value_parm): Handle
1606 pointers-to-members.
1607 (do_type): Handle template parameters as qualifiers.
1608
252b5132
RH
16091999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1610
1611 * cplus-dem.c: Attempt to handle overflows in counts with some
1612 semblance of grace.
1613 (consume_count): Detect overflows. Return -1 to indicate errors,
1614 instead of zero.
1615 (demangle_template_value_parm, demangle_template): Handle change
1616 to consume_count's return convention.
1617
0c0a36a4
ILT
16181999-04-05 Tom Tromey <tromey@cygnus.com>
1619
1620 * testsuite/regress-demangle: New file.
1621 * testsuite/demangle-expected: New file.
252b5132 1622
0c0a36a4
ILT
1623 * Makefile.in (all, check, installcheck, info, install-info,
1624 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1625 distclean, maintainer-clean, realclean): Depend on corresponding
1626 `-subdir' target.
1627 (all-subdir check-subdir installcheck-subdir info-subdir
1628 install-info-subdir clean-info-subdir dvi-subdir
1629 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1630 distclean-subdir maintainer-clean-subdir): New target.
1631 * testsuite/Makefile.in: New file.
1632 * configure: Rebuilt.
1633 * configure.in: Create testsuite/Makefile.
252b5132
RH
1634
16351999-04-02 Mark Mitchell <mark@codesourcery.com>
1636
1637 * splay-tree.h (splay_tree_compare_pointers): Define.
1638
16391999-03-30 Mark Mitchell <mark@codesourcery.com>
1640
1641 * splay-tree.c (splay_tree_compare_ints): Define.
1642
16431999-03-30 Tom Tromey <tromey@cygnus.com>
1644
1645 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1646 don't advance input pointer.
1647 (demangle_class_name): If consume_count didn't find a count, do
1648 nothing. Don't bother with `strlen' sanity check; consume_count
1649 does it for us.
1650
16511999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1652
1653 From Art Haas <ahaas@neosoft.com>:
1654 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1655 when doing arm or hp style.
1656 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1657
252b5132
RH
1658Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1659
1660 * pexecute.c (__CYGWIN32__): Rename to
1661 (__CYGWIN__): this.
1662 * xmalloc.c: Likewise.
1663
1664 Changes to support i386-pc-uwin.
1665 * configure.in (*-*-uwin*): Workaround for vfork bug.
1666 * configure: Regenerate.
1667 * pexecute.c (pexecute): Be like standard Unix.
1668 (pwait): Likewise.
1669 * xmalloc.c (first_break): Define.
1670 (xmalloc_set_program_name): Use.
1671 (xmalloc): Use.
1672
1673Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1674
1675 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1676
1677Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1678
1679 * config.table: Check cygwin*, not cygwin32*.
1680
1681Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1682
1683 * Makefile.in: Change mkstemp -> mkstemps.
1684
1685Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1686
1687 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1688 * configure.in (funcs): Check for and conditionally add mkstemps to
1689 the list of functions libiberty will provide.
1690 * configure: Rebuilt.
b4fe2683 1691
252b5132
RH
1692Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1693
b4fe2683 1694 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1695 platforms that don't have HZ.
1696 * getruntime.c (HZ): Likewise.
1697
1698Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1699
1700 * Makefile.in (xstrdup.o): Depend on config.h.
1701
1702Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1703
1704 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1705 freeing it.
1706
1707Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1708
1709 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1710
1711Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1712
1713 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1714 splay-tree.o.
1715
17161999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1717
1718 * configure.in: Require autoconf 2.12.1 or higher.
1719
17201998-12-30 Michael Meissner <meissner@cygnus.com>
1721
1722 * random.c (NULL): Don't redefine NULL if it is already defined.
1723
1724Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1725
1726 * argv.c (buildargv): Cast the result of alloca in assignment.
1727
1728 * choose-temp.c: Include stdlib.h.
1729
1730 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1731 (snarf_numeric_literal): Constify first parameter.
1732 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1733 int, not a char.
252b5132
RH
1734 (demangle_qualifier): Likewise.
1735 (demangle_signature): Cast the argument of a ctype function to
1736 unsigned char.
1737 (arm_pt): Add parens around assignment used as truth value.
1738 (demangle_arm_hp_template): Constify variable `args'.
1739 (do_hpacc_template_const_value): Cast the argument of a ctype
1740 function to unsigned char.
1741 (do_hpacc_template_literal): Remove unused variable `i'.
1742 (snarf_numeric_literal): Constify parameter `args'.
1743 Cast the argument of a ctype function to unsigned char.
1744
1745 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1746 avoid ambiguous `else'.
252b5132
RH
1747
1748 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1749 `cstart' and `cend' to unsigned char. Cast the argument of macro
1750 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1751
1752 * objalloc.c (free): Add prototype.
1753
1754Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1755
1756 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1757
1758Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1759
1760 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1761 doesn't exist.
252b5132 1762 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1763
252b5132
RH
1764Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1765
1766 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1767 bumping the pointer we read from. Also prepend these codes,
1768 as we do in other places.
1769
17701998-12-18 Nick Clifton <nickc@cygnus.com>
1771
1772 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1773 'const char *' in order to match its usage when calling siblings.
1774 (snarf_numeric_literal): Make first arg 'const char **' in order
1775 to match usage.
1776
1777Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1778
1779 * choose-temp.c: Don't check IN_GCC anymore.
1780
1781 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1782 * memchr.c (memchr): Likewise.
1783 * memcpy.c (memcpy): Likewise.
1784 * memmove.c (memmove): Likewise.
1785
1786 * mkstemp.c: Don't check IN_GCC anymore.
1787 * pexecute.c: Likewise.
1788 * splay-tree.c: Likewise.
1789
1790 * strchr.c (strchr): Use `const', not `CONST'.
1791 * strrchr.c (strrchr): Likewise.
1792 * strtol.c (strtol): Likewise.
1793 * strtoul.c (strtoul): Likewise.
1794
1795Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1796 Elena Zannoni <ezannoni@cygnus.com>
1797 Stan Shebs <shebs@cygnus.com>
1798 Edith Epstein <eepstein@cygnus.com>
1799 Andres MacLeod <amacleod@cygnus.com>
1800 Satish Pai <pai@apollo.hp.com>
1801
1802 * HP aCC demangling support.
1803 * cplus-dem.c
1804 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1805 demangling correctly when -edg specified; set the demangling style
1806 when user specifies 'edg'. Set strip_underscore to
1807 prepends_underscore, if not HPUXHPPA. Set
1808 current_demangling_style to hp_demangling if HPUXHPPA. Set
1809 current demangling style correctly if the switch is hp. Read
1810 label correctly also in the HP style case.
252b5132 1811 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1812 function.
252b5132 1813 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1814 style for this case is the same as ARM.
252b5132
RH
1815 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1816 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1817 demangle_arm_pt.); check and set value of temp_start field in
1818 multiple places. Also, when ceching for end of template args,
1819 check to see if at end of static member of template class.
252b5132 1820 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1821 include template args in string defining class.
252b5132
RH
1822 (demangle_class_name): use demangel_arm_hp_template.
1823 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1824 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1825 Handle EDG_DEMANGLING style. Handle constructor and destructor
1826 ops for HP style.
252b5132 1827 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1828 styles. global destructor and constructor for HP style are same
1829 as for ARM style. Same for local variables.
252b5132
RH
1830 (demangle_qualified): handle EDG_DEMANGLING style.
1831 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1832 cases '1' - '9' : initialize the temp_start field to -1 and handle
1833 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1834 and AUTO_DEMANGLING styles. If expecting a function and managed
1835 to demangle the funct args, then handle the LUCID_DEMANGLING,
1836 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1837 class name after "Lnnn_ in HP style case. HP style too needs to
1838 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1839 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1840 value param for HP/aCC.
252b5132 1841 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1842 literal parameter for HP aCC.
252b5132
RH
1843 (recursively_demangle): new function
1844 (snarf_numeric_literal): new function.
1845 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1846 to message.
252b5132
RH
1847
1848Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1849
1850 * pexecute.c: Remove obsolete ifdefed cygwin code.
1851
1852Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1853
1854 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1855 * cplus-dem.c: Likewise. Conform to libiberty.h.
1856 * pexecute.c: Likewise.
1857 * splay-tree.c: Likewise.
1858
18591998-11-25 Mike Stump <mrs@wrs.com>
1860
1861 * Makefile.in (splay-tree.o): Add config.h dependency.
1862
1863Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1864
1865 * configure.in: Use AC_PREREQ(2.12.1).
1866
18671998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1868
b4fe2683 1869 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1870
1871Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1872
1873 * mpw.c (mpw_access): Add missing parens.
1874
1875Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1876
1877 * configure.in: Call AC_HEADER_SYS_WAIT.
1878
1879 * pexecute.c: Include sys/wait.h when !IN_GCC.
1880
1881Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1882
1883 * pexecute.c: revert back to checking old Cygwin
1884 preprocessor symbol until some time has passed.
1885
1886Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1887
1888 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1889 since it will now support similar constructs.
1890
1891Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1892
1893 * configure.in: Check for calloc.
1894
1895 * calloc.c: New file.
1896
1897 * xmalloc.c (xcalloc): New function.
1898
1899Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1900
1901 *cplus-dem.c (demangle_prefix): Use the last "__"
1902 in the mangled name when looking for the signature. This allows
1903 template names to begin with "__".
1904
19051998-11-08 Mark Mitchell <mark@markmitchell.com>
1906
1907 * cplus-dem.c (type_kind_t): Add tk_reference.
1908 (demangle_template_value_parm): Handle it.
1909 (do_type): Use it for references, instead of tk_pointer.
1910
1911 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1912 not internal_cplus_demangle.
1913
1914Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1915
1916 * choose-temp.c: Don't include gansidecl.h.
1917 * mkstemp.c: Likewise.
1918 * pexecute.c: Likewise.
1919
1920Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1921
b4fe2683
JM
1922 * configure.in: detect cygwin* instead of cygwin32*
1923 * configure: regenerate
252b5132
RH
1924
1925Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1926
1927 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1928 whether to include config.h. Possibly include unistd.h in the
1929 !IN_GCC case. Define VFORK_STRING as a printable function call
1930 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1931 defined, include vfork.h. If VMS is defined, define vfork()
1932 appropriately. Remove vfork check on USG, we're using autoconf.
1933 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1934 locally what string to use.
252b5132
RH
1935
19361998-10-26 Mark Mitchell <mark@markmitchell.com>
1937
1938 * splay-tree.c: Tweak include directives to make sure declarations of
1939 xmalloc and free are available.
1940
19411998-10-25 Mark Mitchell <mark@markmitchell.com>
1942
1943 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1944 anonymous namespaces.
1945
19461998-10-23 Mark Mitchell <mark@markmitchell.com>
1947
1948 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1949 with type_quals.
1950 (TYPE_UNQUALIFIED): New macro.
1951 (TYPE_QUAL_CONST): Likewise.
1952 (TYPE_QUAL_VOLATILE): Likewise.
1953 (TYPE_QUAL_RESTRICT): Likewise.
1954 (code_for_qualifier): New function.
1955 (qualifier_string): Likewise.
1956 (demangle_qualifier): Likewise.
1957 (internal_cplus_demangle): Use them.
1958 (demangle_signature): Likewise.
1959 (demangle_template_value_parm): Likewise.
1960 (do_type): Likewise.
1961 (demangle_fund_type)): Likewise.
1962
1963Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1964
1965 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1966 to match prototype.
1967
19681998-10-21 Mark Mitchell <mark@markmitchell.com>
1969
1970 * splay-tree.c: New file.
1971 * Makefile.in (CFILES): Add it.
1972 (REQUIRED_OFILES): Likewise.
1973 (splay-tree.o): Add dependencies.
1974
1975Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1976
1977 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1978 range of 'K' index.
1979
1980Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1981
1982 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1983
1984 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1985 `unsigned char'.
1986 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1987 comparing against one.
1988 (cplus_mangle_opname): Likewise.
1989 (demangle_integral_value): Cast argument of ctype macro to
1990 `unsigned char'.
1991 (demangle_template_value_parm): Likewise.
1992 (demangle_template): Initialize variable `bindex'. Cast the
1993 result of `strlen' to (int) when comparing against one. Remove
1994 unused variable `start_of_value_parm'.
1995 (demangle_class_name): Cast the result of `strlen' to (int) when
1996 comparing against one.
1997 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1998 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1999 when comparing against one.
2000 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
2001 (get_count): Likewise.
2002 (do_type): Likewise. Cast the result of `strlen' to (int) when
2003 comparing against one.
2004 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
2005 (demangle_function_name): Cast the result of `strlen' to (int)
2006 when comparing against one.
2007
2008 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
2009 comparing against one.
2010
2011Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
2012
b4fe2683
JM
2013 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
2014 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
2015 * config.in, configure: Rebuilt.
252b5132
RH
2016
2017 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
2018 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
2019 * config.in, configure: Rebuilt.
2020
2021Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
2022
b4fe2683 2023 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
2024
2025Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
2026
2027 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
2028
2029Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
2030
2031 * Merge egcs & devo libiberty.
2032