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