* tc_mips.c (load_address): Reflect change to MAX_GPREL_OFFSET.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
dc676635
DD
12001-08-23 Ulrich Drepper <drepper@redhat.com>
2
3 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
4
52001-08-23 Ulrich Drepper <drepper@redhat.com>
6
7 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
8 instead of mbrtowc.
9 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
10 wcslen, and __wcscoll instead of wcscoll.
11
f080c76d
DD
122001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
13
14 * fibheap.c (fibheap_init, fibnode_init): Remove.
15 (fibheap_new, fibnode_new): Use xcalloc to allocate and
16 initialize memory.
17 (fibheap_insert): Remove check for node allocation failure.
18
f01b59ed
DD
192001-08-21 Richard Henderson <rth@redhat.com>
20
21 * Makefile.in (fibheap.o): Depend on config.h.
22 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
23 functions for inlining.
24
25Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
26
27 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
28 hosting on cygwin.
29 * configure: Regenerate.
30
8e777d6a
DD
312001-08-20 Daniel Berlin <dan@cgsoftware.com>
32
33 * fibheap.c: New file. Fibonacci heap.
34
35 * Makefile.in (CFILES): Add fibheap.c.
36 (REQUIRED_OFILES): Add fibheap.o.
37 (fibheap.o): Add dependencies for fibheap.o.
38
eb828599
AC
392001-08-20 Andrew Cagney <ac131313@redhat.com>
40
41 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
42 HARRIS_FLOAT_FORMAT.
43 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
44 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
45 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
46 (floatformat_m88110_harris_ext): New float formats.
47
68a41de7
DD
482001-08-17 Christopher Faylor <cgf@cygnus.com>
49
50 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
51 * configure: Regenerate.
52
8fc34799
DD
532001-08-16 Richard Henderson <rth@redhat.com>
54
55 * hashtab.c (htab_hash_string): New.
56
16bad250
AC
572001-08-13 Andrew Cagney <ac131313@redhat.com>
58
59 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
60 name.
61
a9022147
DD
622001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
63
64 * regex.c (wcs_regex_compile): Use appropriate string
65 to compare with collating element.
66 Fix the padding for the alignment.
67
8aefe91a 682001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
69
70 * lbasename.c (lbasename): Change function definition to return a
71 const char pointer.
72
e7e9b069
DD
732001-08-07 Jason Merrill <jason_merrill@redhat.com>
74
75 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
76 for".
77
cc5144f8
DD
782001-08-03 Richard Henderson <rth@redhat.com>
79
80 * Makefile.in (concat.o): Depend on config.h.
81
8aefe91a
DD
822001-07-30 Andreas Jaeger <aj@suse.de>
83
84 * concat.c: Include "config.h".
85
86710ce2
DD
862001-07-30 Andreas Jaeger <aj@suse.de>
87
88 * regex.c: Declare wcs functions only if compiling with
89 MBS_SUPPORT.
90 Don't use #elif for traditional C.
91
922001-07-23 Ulrich Drepper <drepper@redhat.com>
93
94 * regex.c: Revamp memory allocation for WCHAR functions to
95 not use too much stack.
96
972001-07-30 Andreas Jaeger <aj@suse.de>
98
99 * regex.c: Declare wcs functions only if compiling with
100 MBS_SUPPORT.
101 Don't use #elif for traditional C.
102
a5d8f731
DD
1032001-07-25 Daniel Jacobowitz <drow@mvista.com>
104
105 * Makefile.in (regex.o): Add dependency on config.h.
106
6ad8a379
DD
1072001-07-18 Andreas Schwab <schwab@suse.de>
108
109 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
110 underscore character.
111
1122001-07-18 Ulrich Drepper <drepper@redhat.com>
113
114 * regex.c: Limit string length printed in debug messages to 100
115 chars.
116
1172001-07-18 Andreas Jaeger <aj@suse.de>
118
119 * regex.c: Place under LGPL version 2.1.
120
2a6ef469
DD
1212001-07-10 Jeff Johnston <jjohnstn@redhat.com>
122
123 * Makefile.in: Add support for regex code.
124 * regex.c: New file.
125
7b78baae
DD
1262001-07-05 Mark Klein <mklein@dis.com>
127
128 * Makefile.in: Add ffs.c dependency.
129 * configure.in: Add ffs.c.
130 * ffs.c: New file.
131
926150e2
DD
1322001-06-18 Richard Henderson <rth@redhat.com>
133
134 * concat.c: Include <sys/types.h>.
135
11f6f21d
DD
1362001-06-11 Loren J. Rittle <ljrittle@acm.org>
137
138 bootstrap/3106
139 * strerror.c (sys_nerr): Hide the OS header version.
140 * strsignal.c (sys_nsig): Likewise.
141
d42dae6c
DD
1422001-06-10 Richard Henderson <rth@redhat.com>
143
144 * concat.c: Include string.h. Fix int vs size_t usage.
145 Simplify the iteration loops. Use memcpy.
146
e05c6d27
DD
1472001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
148
149 * partition.c: Fix misspelling of `implementation'.
150
b50c4073
DD
1512001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
152
153 * md5.c (md5_init_ctx): Declare constants as unsigned.
154 (md5_process_block): Likewise.
155
457161bf
DD
1562001-05-07 Zack Weinberg <zackw@stanford.edu>
157
158 * cp-demangle.c (demangle_v3_with_details,
159 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
160 function definition.
161 * ternary.c: Use K+R style function definitions. Use PTR, not
162 void *. Make arguments constant where possible.
163
e00bc6a7
DD
1642001-05-07 Mark Mitchell <mark@codesourcery.com>
165
166 * splay-tree.h (splay_tree_max): New function.
167 (splay_tree_min): Likewise.
168
400ee7e1
DB
1692001-04-15 Daniel Berlin <dan@cgsoftware.com>
170
171 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
172
173 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 174
d9697354
DD
1752001-04-03 Zack Weinberg <zackw@stanford.edu>
176
177 * make-temp-file.c (try): Inline.
178
a7bf099b
DD
1792001-02-28 Richard Henderson <rth@redhat.com>
180
181 * Makefile.in (make-temp-file.o): Depend on config.h.
182
30a1def2
DD
1832001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
184
185 * memchr.c (memchr): Adjust condition to avoid infinite loop.
186
079c672a
DD
1872001-03-23 Jakub Jelinek <jakub@redhat.com>
188
189 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
190 `_' not followed by a digit is invalid.
191
a88e356a
JB
1922001-03-22 Jim Blandy <jimb@redhat.com>
193
194 * cp-demangle.c (string_list_delete): Use dyn_string_delete
195 instead of free, to free the contents as well as the string
196 structure.
197
1dffcc66
DD
1982001-03-21 Zack Weinberg <zackw@stanford.edu>
199
200 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
201 Don't default P_tmpdir to anything. Try /var/tmp before
202 /usr/tmp.
203
2042001-03-20 Zack Weinberg <zackw@stanford.edu>
205
206 * choose-temp.c: Split off make_temp_file, and the code
207 duplicated between it and choose_temp_base, into...
208 * make-temp-file.c: ... here; new file.
209
210 * Makefile.in (CFILES): Add make-temp-file.c.
211 (REQUIRED_OFILES): Add make-temp-file.o.
212
e61231f1
JB
2132001-03-20 Jim Blandy <jimb@redhat.com>
214
215 * cp-demangle.c (struct demangling_def): New fields:
216 is_constructor and is_destructor.
217 (demangling_new): Initialize them.
218 (demangle_ctor_dtor_name): Set them, if we detect a constructor
219 or destructor.
220 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
221 is_gnu_v3_mangled_dtor): New functions.
222
a9cbbe6d
DD
2232001-03-20 Jason Merrill <jason@redhat.com>
224
225 * cplus-dem.c (main): Skip initial $.
226
b1e51b3c
DD
2272001-03-15 Michael Meissner <meissner@redhat.com>
228
229 * hashtab.c (higher_prime_number): Silence warning that 4294967291
230 might be a signed integer under pre-ISO C systems.
231
8aa30e60 2322001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 233 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 234
8aa30e60
DD
235 * libiberty/lbasename.c: New file.
236 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 237
30673bf5
DD
2382001-03-06 Zack Weinberg <zackw@stanford.edu>
239
240 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
241 * configure.in: Replace all alloca logic with a simple use of
242 the above new macro.
243 * config.table: Kill *-*-beos* entry.
244 * config/mh-beos: Delete.
245 * configure, config.in: Regenerate.
fa03f0a7 246
30673bf5
DD
247 * Makefile.in (ALLOCA, HFILES): Kill.
248 (REQUIRED_OFILES): Add alloca.o.
249 (alloca.o): Depend on libiberty.h.
250 (argv.o): Don't depend on alloca-conf.h.
251 * alloca-conf.h: Delete.
252 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
253 blocks. Provide the C alloca unconditionally. Use PTR where
254 appropriate. Make i00afunc static.
255 * argv.c: Don't include alloca-conf.h.
fa03f0a7 256
5810f394
DD
2572001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
258
259 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 260
a9db032a
DD
2612001-02-16 Loren J. Rittle <ljrittle@acm.org>
262
263 * cplus-dem.c (main): Initialize style.
fa03f0a7 264
8aefe91a
DD
2652001-02-02 Phil Edwards <pme@sources.redhat.com>
266
267 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
268
bc9bf259
DD
2692001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
270
271 Add support for Java demangling under the v3 ABI:
272 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
273 (struct demangling_def): Add `style' field.
274 (demangling_new): New parameter `style'. Set it in demangling_t.
275 (demangle_prefix): Use NAMESPACE_SEPARATOR.
276 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
277 (cp_demangle): New parameter `style'. Pass it to demangling_new().
278 (main): Call cp_demangle with extra parameter.
279 (java_demangle_v3): New function.
280 (java_builtin_type_names): New. Table of primitive type names used
281 for Java demangling.
282 (demangle_builtin_type): Look up in java_builtin_type_names if doing
283 Java output.
284 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
285 demangling.
286 (long_options): Remove obsolete `java' option.
287 (main): Remove explicit handling of `java' option. Instead, pass style
288 parameter in cplus_demangle flags as gdb does.
289 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 290
f6528837
DD
2912000-12-29 DJ Delorie <dj@redhat.com>
292
293 * fnmatch.c: Make the note about the origins of this file more
294 accurate, at least until we can sync with glibc.
295 * getopt.c: Ditto.
296 * getopt1.c: Ditto.
297 * md5.c: Ditto.
298 * obstack.c: Ditto.
9d969b59 299
c6da642e
DD
3002000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
301
302 * bsearch.c: New file.
303 * configure.in (funcs): Add bsearch.
304 (AC_CHECK_FUNCS): Likewise.
305 * configure, config.in: Regenerate.
306
ae7d06ad 3072000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
308
309 * safe-ctype.c: #include "ansidecl.h".
310 * strtod.c: Likewise.
311
ae7d06ad 3122000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
313
314 * strtoul.c: Include safe-ctype.h, not ctype.h.
315
ac424eb3
DD
3162000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
317
318 * safe-ctype.c: New file.
319 * Makefile.in (CFILES): Add safe-ctype.c.
320 (REQUIRED_OFILES): Add safe-ctype.o.
321
322 * argv.c: Define ISBLANK and use it, not isspace.
323 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
324 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
325 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
326 before calling TOLOWER(c)/TOUPPER(c).
327
4415a860
DD
3282000-12-07 Mike Stump <mrs@wrs.com>
329
330 * Makefile.in (distclean): When cleaning, remove testsuite.
331
849ee224
DD
3322000-12-05 Jason Merrill <jason@redhat.com>
333
334 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
335 name before allocating the dyn_string.
336
ae7d06ad 3372000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
338
339 * cp-demangle.c: s/new_abi/v3/.
340 * cplus-dem.c: Likewise.
341 (current_demangling_style): Now auto_demangling.
342 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 343 (main): Use standard symbol chars for auto_demangling.
e49a569c 344
ae7d06ad 3452000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
346
347 * hashtab.c (higher_prime_number): Use a table, rather than a
348 seive, to find the next prime.
ae7d06ad
NC
349
3502000-11-22 H.J. Lu <hjl@gnu.org>
351
352 * cplus-dem.c (main): Handle gnat_demangling.
353
3542000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
355
356 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
357 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
358 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
359 argument form of AC_DEFINE in dummy definitions block. Use
360 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
361 in dummy block. Preload cache variables instead of bypassing
362 tests, where possible.
363 * acconfig.h: Removed.
ae7d06ad 364
2ea7befd
DD
365 * xmalloc.c (xmalloc_failed): New function, does error
366 reporting on failed allocation.
367 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 368
f1775526
HPN
3692000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
370
371 * cplus-dem.c (cplus_demangle): Fix formatting.
372 (grow_vect): Ditto.
373 (ada_demangle): Ditto.
374 (internal_cplus_demangle): Ditto.
375 (mop_up): Ditto.
376
3772000-11-21 H.J. Lu <hjl@gnu.org>
378
379 * cplus-dem.c (main): Handle java_demangling.
380
ae7d06ad 3812000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
382
383 * cplus-dem.c (grow_vect): Prototype.
384 (ada_demangle): Cast the arg of ctype macros to unsigned char.
385
5dd42ef4
HPN
3862000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
387
388 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
389 parameter `option'.
390
296731c1
DD
3912000-11-15 Kenneth Block <kenneth.block@compaq.com>
392
8944fb9d 393 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
394 be used in GCC.
395
6e53a714 3962000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 397
5dd42ef4 398 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
399 list.
400
99a4c1bd
HPN
4012000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
402
403 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
404 xcalloc depending on htab->return_allocation_failure. Return zero
405 if calloc fails.
99a4c1bd
HPN
406 (htab_create): Update comment to cover memory allocation.
407 (htab_try_create): New.
408 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 409 Update comment to cover this.
99a4c1bd 410
e0f3df8f
HPN
4112000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
412
413 * hashtab.c: Change void * to PTR where necessary.
414 (htab_create, htab_expand): Correct formatting of comment before
415 function.
416
ae7d06ad 4172000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
418
419 * cp-demangle.c (string_list_def): Add caret_position and comments.
420 (result_caret_pos): New macro.
421 (result_append_string): Rename to...
422 (result_add_string): ... this, and insert at caret position.
ae7d06ad 423 Rename throughout.
59666b35
DD
424 (result_append): Rename to...
425 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 426 throughout.
59666b35
DD
427 (result_append_char): Rename to...
428 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 429 throughout.
59666b35
DD
430 (result_append_space): Remove.
431 (string_list_new): Initialize caret position.
432 (result_add_separated_char): Use caret position.
433 (result_get_caret): New funtion.
434 (result_set_caret): Likewise.
435 (result_shift_caret): Likewise.
436 (result_previous_char_is_space): Likewise.
437 (substitution_start): Use caret position.
438 (substitution_add): Likewise.
439 (demangling_new): Initialize caret position.
440 (demangle_encoding): Use caret position.
ae7d06ad 441 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
442 (demangle_type_ptr): Use switch statement. Handle pointers to
443 arrays. Don't use result_append_space. Use caret position.
444 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
445 call to demangle_array_type.
446 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 447
ae7d06ad 4482000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
449
450 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
451
4522000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
453
454 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
455
4562000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
457
458 * splay-tree.c: #include <stdio.h>.
459
4602000-09-14 Hans-Peter Nilsson <hp@axis.com>
461
462 * testsuite/demangle-expected: Add two tests for anonymous
463 namespaces.
464 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
465
4662000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
467
468 * splay-tree.c (splay_tree_predecessor): New function.
469 (splay_tree_successor): Likewise.
ae7d06ad
NC
470
4712000-09-10 Hans-Peter Nilsson <hp@axis.com>
472
473 * testsuite/demangle-expected: Add four tests for type_info
474 mangling.
475 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
476 for a non-template non-qualified type_info function or node.
477
4782000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
479
480 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
481
4822000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
483
484 * md5.c: #include "ansidecl.h".
485
4862000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
487
488 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
489 (demangle_type): Handle substitution candidates correctly in the
490 face of special substitutions.
ae7d06ad
NC
491
4922000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
493
494 * cp-demangle.c (demangle_encoding): Rename variable.
495 (demangle_name): Rename parameter. Handle return type
496 suppression.
497 (demangle_nested_name): Rename parameter.
498 (demangle_prefix): Likewise. Change return type suppression.
499 (demangle_unqualified_name): Add parameter. Flag constructors and
500 conversion operators.
501 (demangle_special_name): Fix comment.
502 (demangle_type): Rename variable.
503 (demangle_bare_function_type): Check for missing return type and
504 parameter.
505 (demangle_class_enum_type): Rename parameter.
506 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
507
5082000-08-31 DJ Delorie <dj@redhat.com>
509
510 * configure.in (Cygwin): special case cygwin only when we're
511 building cygwin, not when we're hosting cygwin.
512
5132000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
514
515 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
516 <expression>.
ae7d06ad
NC
517
5182000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
519
520 * cp-demangle.c (demangle_type_ptr): Increment position past
521 pointer and reference characters.
ae7d06ad
NC
522
5232000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
524
525 * cp-demangle.c (demangle_nv_offset): New function.
526 (demangle_v_offset): Likewise.
527 (demangle_call_offset): Likewise.
528 (demangle_special_name): Update thunk demangling to comply with
529 ABI changes.
ae7d06ad
NC
530
5312000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
532
533 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
534 (substitution_def): Remove template_parm_number.
535 (NOT_TEMPLATE_PARM): Remove.
536 (result_insert_string): New macro.
537 (result_insert): Likewise.
538 (result_insert_char): Likewise.
539 (substitution_add): Remove last parameter. Don't store template
540 parm number.
541 (BFT_NO_RETURN_TYPE): Define as NULL.
542 (demangle_encoding): Adjust call to demangle_bare_function_type.
543 (demangle_name): Adjust substitution. Adjust call to
544 substitution_add.
545 (demangle_prefix): Adjust call to substitution_add.
546 (demangle_identifier): Handle anonymous namespaces.
547 (demangle_operator_name): Change demangling of vendor-extended
548 operator to match ABI changes.
549 (demangle_type_ptr): Change parameters. Make recursive. Handle
550 substitutions here.
551 (demangle_type): Adjust calls to demangle_template_param,
552 substitution_add, and demangle_type_ptr. Fix substitution of
553 templated types.
554 (demangle_function_type): Change parameter to a pointer.
555 (demangle_bare_function_type): Likewise. Adjust insertion point.
556 (demangle_template_param): Remove last parameter.
557 (demangle_expr_primary): Remove unused variable. Adjust call to
558 demangle_template_param.
559 (is_mangled_char): Accept `$' and `.'.
560 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
561 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
562
5632000-08-31 Hans-Peter Nilsson <hp@axis.com>
564
565 * testsuite/demangle-expected: Add nine tests for
566 underscore-after-number followed by five tests for name-signature
567 delimiter.
568
5692000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
570
571 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
572
5732000-08-28 Jason Merrill <jason@redhat.com>
574
575 * Makefile.in (REQUIRED_OFILES): Add md5.o.
576 (CFILES): Add md5.c.
577 * md5.c: New file.
578
5792000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
580
581 * cp-demangle.c (demangle_name): Initialize template_p in local
582 name case. Don't re-add substitutions as candidates.
583 (demangle_nested_name): Use <unqualified-name>.
584 (demangle_prefix): Likewise. Don't add template names as
585 substitution candidates twice, or re-add a substitution or the
586 last prefix component.
587 (demangle_local_name): Adjust output format.
ae7d06ad
NC
588
5892000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
590
591 * cp-demangle.c (result_add_separated_char): Change parameter to
592 int.
593 (substitution_add): Don't check for duplicates. Check if
594 previously allocated size is zero.
595 (demangle_name): Remove duplicate check for std substitution.
596 Clear template flag appropriately.
597 (demangle_prefix): Remove argument to demangle_substitution.
598 Don't check that template flag is already set.
599 (demangle_operator_name): Add pt operator.
600 (demangle_type): Don't treat r as built-in type. Remove argument
601 to demangle_substitution. Fix substitution candidate mechanics.
602 Handle <template-template-parm>s. Improve comments.
603 (demangle_template_param): Don't handle template arg lists here.
604 (demangle_substitution): Remove parameter.
605 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
606
6072000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
608
609 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
610
6112000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
612
613 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
614 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
615 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
616
6172000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
618
619 * cp-demangle.c (result_close_template_list): Remove function.
620 (result_add_separated_char): New function.
621 (result_open_template_list): New macro.
622 (result_close_template_list): Likewise.
623 (demangle_prefix): Don't set template_p if the
624 prefix ends with a ctor name.
625 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
626 (demangle_type): Check for template args after substitution.
627 (demangle_template_args): Use result_open_template_list.
d3e85005 628
ae7d06ad 6292000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 630
ae7d06ad 631 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 632
ae7d06ad 6332000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
634
635 * config/mh-openedition.h: Added -DLE370 definition.
636
a9f34fb6
JL
6372000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
638
639 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
640 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
641 Cast program to 'char *' in errmsg_arg assignment.
642 (PWAIT_ERROR): Define.
643 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
644 to DJGPP's WIF* macros.
645
90aaccd1 6462000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 647 Jeff Law <law@cygnus.com>
90aaccd1 648
ae7d06ad 649 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 650
90aaccd1 651 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
652 * rename.c: Include config.h, unistd.h
653 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 654
6ef554e3
HPN
6552000-07-24 Hans-Peter Nilsson <hp@axis.com>
656
657 * cplus-dem.c (work_stuff_copy_to_from): New.
658 (delete_non_B_K_work_stuff): New.
659 (delete_work_stuff): New.
660 (mop_up): Break out work_stuff partly destruction to
661 delete_non_B_K_work_stuff.
662 (iterate_demangle_function): New.
663 (demangle_prefix): Call iterate_demangle_function instead of
664 demangle_function_name. Leave handling of name-signature
665 __-delimiters to iterate_demangle_function.
666 (demangle_integral_value): Strip an optional
667 following underscore cautiously. Handle negative numbers.
668
ae7d06ad 6692000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 670
ae7d06ad 671 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
672 if (AUTO_DEMANGLING || GNU_DEMANGLING)
673
ae7d06ad
NC
6742000-07-21 Alex Samuel <samuel@codesourcery.com>
675
676 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
677 allocating ctor mangling.
678 (demangle_array_type): Handle empty and non-constant array length.
679
b1233257 6802000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
681 Jeff Law <law@cygnus.com>
682
683 * configure.in (AC_CHECK_HEADERS): Add time.h.
684 (AC_HEADER_TIME): Add check.
685 * configure, config.in: Regenerate.
686 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
687
688 * configure.in (AC_CHECK_HEADERS): Add limits.h.
689 * configure, config.in: Regenerate.
690 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
691 * strtol.c, strtoul.c: #include "config.h". Portably #include
692 <limits.h> and/or <sys/param.h>.
693 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 694
7d3ffcaf
JL
695 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
696 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
697 * configure, config.in: Regenerate.
698 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
699
b1233257
JL
700 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
701
ae7d06ad
NC
7022000-07-21 Mike Stump <mrs@wrs.com>
703
704 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
705 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
706
7072000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
708
709 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
710
711 * setenv.c (setenv): Initialize variable `ep'.
712
713 * sigsetmask.c (abort): Prototype.
714
715 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
716 __STDC__ for stdarg.h include.
717 (int_vasprintf): Prototype.
718 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
719 definition. Cast `global_total_width' in comparison.
720 (main): Prototype. Return a value.
721
722 * vfork.c (fork): Prototype.
723
724 * xexit.c: Include config.h.
725
9adf30b2
JL
7262000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
727
728 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
729 and print it with %u.
730
2ed78d1b
HPN
7312000-07-17 Hans-Peter Nilsson <hp@axis.com>
732
733 * testsuite/regress-demangle (failed test): Show result and
734 expected output.
735
0473bdf7
AH
7362000-07-07 Andrew Haley <aph@cygnus.com>
737
738 * cplus-dem.c (main): fflush() after emitting last char before
739 waiting for input.
740
03d5f569
JM
7412000-06-28 Alex Samuel <samuel@codesourcery.com>
742
743 * cp-demangle.c (demangle_encoding): Accept no substitutions.
744 (demangle_name): Handle <substitution> followed by
745 <unqualified-template-name>.
746 (demangle_type): Follow special substitutions with
747 <class-enum-type>
748 (demangle_subtitution): Set template_p for special substitutions.
749 (main): Fix typos.
ae7d06ad 750
03d5f569
JM
7512000-06-27 Alex Samuel <samuel@codesourcery.com>
752
753 * cp-demangle.c (demangle_special_name): Swap base and derived
754 class when demangling construction vtables.
755
7562000-06-21 Alex Samuel <samuel@codesourcery.com>
757
758 * cp-demangle.c: Don't include ctype.h.
759 (IS_DIGIT): New macro.
760 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
761 instead of isdigit and isalpanum.
762 (demangling_def): Make name and next const pointers.
763 (STATUS_ALLOCATION_FAILED): New status code.
764 (dyn_string_append_space): Handle failure in
765 dyn_string_append_char.
766 (int_to_dyn_string): Likewise. Change return value to status_t.
767 (string_list_new): Handle failure of dyn_string_init.
768 (result_close_template_list): Change return type to status_t.
769 Handle failure in dyn_string_append.
770 (result_push): Change return value to status_t. Handle failure in
771 string_list_new. Handle failure of result_push throughout.
772 (substitution_add): Change return value to status_t. Handle
773 dyn_string failures. Handle failure of substitution_add
774 throughout.
775 (template_arg_list_new): Return NULL on allocation failure.
776 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
777 Handle error result throughout.
778 (result_append): Likewise.
779 (result_append_char): Likewise.
780 (result_append_space): Likewise.
781 (demangling_new): Make argument a const pointer. Handle
782 allocation failures.
783 (demangle_template_args): Handle failure in template_arg_list_new
784 and result_close_template_list.
785 (demangle_discriminator): Return if int_to_dyn_string fails.
786 (cp_demangle): Likewise.
787 (cp_demangle_type): New function.
788 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
789 memory allocation failure.
790 (main): Likewise.
791 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
792 IN_LIBGCC2.
793 (dyn_string_init): Change return value to int. Handle
794 RETURN_ON_ALLOCATION_FAILURE case.
795 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
796 (dyn_string_release): Delete the dyn_string.
797 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
798 (dyn_string_copy): Change return type to int.
799 (dyn_string_copy_cstr): Likewise.
800 (dyn_string_prepend): Likewise.
801 (dyn_string_prepend_cstr): Likewise.
802 (dyn_string_insert): Likewise.
803 (dyn_string_insert_cstr): Likewise.
804 (dyn_string_append): Likewise.
805 (dyn_string_append_cstr): Likewise.
806 (dyn_string_append_char): Likewise.
807 (dyn_string_substring): Likewise.
ae7d06ad 808
eb383413 8092000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 810
eb383413
L
811 * cp-demangle.c (demangle_operator_name): Add spaces before
812 names beginning with a letter: delete, delete[], new, new[],
813 sizeof.
814 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 815
eb383413
L
816Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
817
818 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
819
820Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
821
822 * cp-demangle.c (stdio.h): File included unconditionaly.
823 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
824 * dyn-string.c (stdio.h): File included.
825 * partition.c (partition_print): No `&' needed to take the address of
826 a function.
827
8282000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
829
830 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 831
eb383413
L
832 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
833
834 * cp-demangle.c (demangle_char): Change parameter from char to int.
835 (demangle_expression, demangle_expr_primary): Remove extra
836 semi-colon in prototype.
837
838 * dyn-string.c (dyn_string_append_char): Change parameter from
839 char to int.
840
841 * memcmp.c (memcmp): Constify.
842
843 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
844 __extension__.
845
846 * partition.c (elem_compare): Prototype. Don't cast away
847 const-ness.
848
849 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 850
eb383413
L
8512000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
852
853 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
854
855 * cp-demangle.c: Include demangle.h.
856 (template_arg_list_new): DeANSIfy.
857 (cp_demangle): Make static and add prototype.
858 (operator_code, operators): Constify.
859 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
860
8612000-06-05 Alex Samuel <samuel@codesourcery.com>
862
863 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
864 unsigned char.
865 (demangle_unqualified_name): Likewise.
866 (demangle_number_literally): Likewise.
867 (demangle_type): Likewise.
868 (demangle_substitution): Likewise.
869 (is_mangled_char): Likewise, for isalnum.
870
8712000-06-04 Alex Samuel <samuel@codesourcery.com>
872
873 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
874 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
875 (cp-demangle.o): New dependency.
876 (dyn-string.o): Likewise.
877
878 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
879
880 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
881 demangler.
882 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
883 demangling mode.
884 (gnu_new_abi_symbol_characters): New function.
885 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
886 file.
887 * cp-demangle.c: New file.
ae7d06ad 888
f03aa80d
AC
889Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
890
891 * floatformat.c: Add name to each floatformat field.
892
77bfb694
JL
893Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
894
895 * Makefile.in (objalloc.o): Depend on config.h
896
5c82d20a
ZW
8972000-05-29 Zack Weinberg <zack@wolery.cumb.org>
898
eb383413 899 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
900 if HAVE_STRING_H.
901 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
902 * objalloc.c: Include config.h. Include stdlib.h and don't
903 declare malloc or free if HAVE_STDLIB_H.
904 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
905 else declare malloc without prototype. Include string.h if
906 HAVE_STRING_H, else declare memset without prototype. Don't
907 include stddef.h.
908
eb383413
L
9092000-05-23 Mike Stump <mrs@wrs.com>
910
911 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 912 -j3.
eb383413
L
913
9142000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
915
916 * xmalloc.c: Include config.h for HAVE_SBRK definition.
917
9182000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
919
ae7d06ad 920 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
921 probably zero, also eliminate a warning on alpha.
922
9232000-05-15 David Edelsohn <edelsohn@gnu.org>
924
925 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
926 on $(enable_shared).
927
9282000-05-10 Jakub Jelinek <jakub@redhat.com>
929
930 * config.table: Use mh-sparcpic for sparc*-*-*.
931
9322000-05-08 Nick Clifton <nickc@cygnus.com>
933
934 * Makefile.in (CFILES): Add strncmp.c.
935 (NEEDED): Add strncmp.
936
9372000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 938
eb383413
L
939 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
940 Cast the arguments to `islower' to `unsigned char'.
941 (print_demangler_list): Prototype.
942
943Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
944
945 * sort.c (UCHAR_MAX): Provide fallback definition.
946
9472000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
948
949 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
950 SUBDIRS.
951
eb383413
L
9522000-04-28 Kenneth Block <block@zk3.dec.com>
953 Jason Merrill <jason@casey.cygnus.com>
954
ae7d06ad
NC
955 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
956 (cplus_demangle_set_style): New function for setting style.
957 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
958
9592000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
960
961 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
962
963 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
964 (libiberty_AC_FUNC_STRNCMP): Invoke.
965
966 * strncmp.c: New file.
967
968Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
969
970 * hashtab.c (htab_expand): Add prototype.
971 (find_empty_slot_for_expand): Likewise.
972
9732000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
974
975 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
976 match prototype.
977 (htab_expand): Cast the return value of xcalloc.
978
9792000-04-24 Mark Mitchell <mark@codesourcery.com>
980
981 * hashtab.c (hash_pointer): New function.
982 (eq_pointer): Likewise.
983 (htab_hash_pointer): New variable.
984 (htab_eq_pointer): Likewise.
985
9862000-04-23 Mark Mitchell <mark@codesourcery.com>
987
988 * sort.c (sort_pointers): Fix endianness bugs.
989
990 * sort.c: New file.
991 * Makefile.in (CFILES): Add sort.c
992 (REQUIRED_OFILES): Add sort.o.
993 (sort.o): New target.
994
19be4303
JL
9952000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
996
997 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
998 4.3BSD systems.
999
eb383413
L
1000Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1001
1002 * hashtab.c: Various minor cleanups.
1003 (htab_find_slot_with_hash): INSERT is now enum insert_option.
1004 (htab_find_slot): Likewise.
1005
10062000-04-16 Dave Pitts <dpitts@cozx.com>
1007
1008 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 1009
afe36a78
RH
10102000-04-05 Richard Henderson <rth@cygnus.com>
1011
1012 * splay-tree.c (splay_tree_remove): New.
1013
eb383413
L
10142000-03-30 Mark Mitchell <mark@codesourcery.com>
1015
1016 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
1017 codes.
1018 (htab_find_with_hash): Likewise.
1019 (htab_find_slot_with_hash): Likewise.
ae7d06ad 1020
eb383413
L
10212000-03-29 Zack Weinberg <zack@wolery.cumb.org>
1022
1023 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
1024 unless it will be used. Rearrange loop for better
1025 optimization.
1026 (higher_prime_number): Add static prototype.
1027
b4fe2683
JM
1028Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
1029
1030 * Makefile.in (partition.o): Depend on config.h
1031
10322000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
1033
1034 * hashtab.c (find_empty_slot_for_expand): New function.
1035 (htab_expand): Use it instead of htab_find_slot.
1036 (htab_find_with_hash): Renamed from htab_find; now accepts extra
1037 argument HASH.
1038 (htab_find_slot_with_hash): Likewise for htab_find_slot.
1039 (htab_find): New wrapper function.
1040 (htab_find_slot): Likewise.
1041 (htab_traverse): Pass slot, not entry, to called function.
1042
10432000-03-09 Alex Samuel <samuel@codesourcery.com>
1044
1045 * Makefile.in (CFILES): Add partition.c.
1046 (REQUIRED_OFILES): Add partition.o.
1047 (partition.o): New rule.
1048 * partition.c: New file.
ae7d06ad 1049
b4fe2683
JM
10502000-03-09 Zack Weinberg <zack@wolery.cumb.org>
1051
1052 * hashtab.c (htab_create): Set del_f.
1053 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
1054 Use it.
1055
10562000-03-08 Zack Weinberg <zack@wolery.cumb.org>
1057
1058 * hashtab.c: Remove debugging variables (all_searches,
1059 all_collisions, all_expansions). Delete
1060 all_hash_table_collisions.
1061 (create_hash_table, delete_hash_table, empty_hash_table,
1062 find_hash_table_entry, remove_element_from_hash_table_entry,
1063 clear_hash_table_slot, traverse_hash_table, hash_table_size,
1064 hash_table_elements_number, hash_table_collisions): Rename to:
1065 htab_create, htab_delete, htab_empty, htab_find_slot,
1066 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1067 htab_elements, htab_collisions.
1068 (htab_find): New function, handles common case where you don't
1069 plan to add or delete an entry.
1070 (htab_expand): Don't create a whole new table, just a new
1071 entry vector.
1072 (htab_find_slot): Simplify logic.
1073
08372f14
ILT
10741999-08-03 Ian Lance Taylor <ian@zembu.com>
1075
1076 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1077 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1078
1079 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1080 $(TARGETLIB)n so it works on MSDOS.
1081 (install_to_tooldir): Likewise.
1082
9c8ac5a9
ILT
10831999-07-21 Ian Lance Taylor <ian@zembu.com>
1084
1085 From Mark Elbrecht:
1086 * makefile.dos: Remove; obsolete.
8f36e47c 1087 * configure.bat: Remove; obsolete.
9c8ac5a9 1088
0c0a36a4
ILT
10891999-07-11 Ian Lance Taylor <ian@zembu.com>
1090
1091 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1092 warning.
1093
10942000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1095
1096 * pexecute.c: Conditionally include string.h.
b4fe2683 1097 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
1098
10992000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1100
1101 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1102 we're using gcc.
1103
1104 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1105
11061999-12-27 Geoff Keating <geoffk@cygnus.com>
1107
1108 * vasprintf.c (int_vasprintf): Don't re-read the format character
1109 as this mishandles strings like '%%s'.
1110
11111999-12-05 Mark Mitchell <mark@codesourcery.com>
1112
1113 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1114 rather than struct splay_tree_node.
1115 (splay_tree_insert): Use struct splay_tree_s rather than struct
1116 splay_tree.
1117
1118Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1119
1120 * hashtab.c (sys/types.h): File included.
1121
11221999-11-22 Jason Merrill <jason@casey.cygnus.com>
1123
1124 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1125 BSD license, pursuant with
1126
1127 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1128
1129Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1130
1131 * hashtab.c: Include stdio.h.
1132
1133Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1134
1135 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1136
1137Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1138
1139 * xstrdup (sys/types.h): Include this file.
1140
11411999-10-28 Nathan Sidwell <nathan@acm.org>
1142
1143 * Makefile.in (SUBDIRS): New macro.
1144 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1145 avoid multiple subdirectory cleaning.
1146 (*-subdir): Use SUBDIRS.
1147
11481999-10-25 Jim Kingdon <http://developer.redhat.com/>
1149
1150 * cplus-dem.c: Move declarations of standard_symbol_characters and
1151 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1152 warnings.
1153
11541999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1155
1156 * hashtab.c (find_hash_table_entry): When returning a
1157 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1158 (clear_hash_table_slot): New function which deletes an entry
1159 by its position in the table, not its value.
1160 (traverse_hash_table): New function which calls a hook
1161 function for every live entry in the table.
1162
11631999-10-19 Mark Mitchell <mark@codesourcery.com>
1164
1165 * cplus-dem.c (INTBUF_SIZE): New macro.
1166 (string_append_template_idx): New function.
1167 (demangle_expression): Likewise.
1168 (demangle_integral_value): Use it.
1169 (demangle_real_value): New function, split out from ...
1170 (demangle_template_value_parm): ... here. Use
1171 string_append_template_idx. Use demangle_real_value.
1172 (demangle_template): Use string_append_template_idx.
1173 (demangle_qualified): Use consume_count_with_underscores.
1174 (get_count): Tweak formatting.
1175 (do_type): Use string_append_template_idx.
b4fe2683 1176
0c0a36a4
ILT
11771999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1178
1179 * calloc.c: Add a public domain notice.
1180
1181Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1182
1183 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1184
1185Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1186
1187 * Makefile.in (CFILES): Add hashtab.c
1188 (REQUIRED_OFILES): Add hashtab.o
1189 (hashtab.o): Add dependencies.
1190 * hashtab.c: New file
1191
1192Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1193
1194 * basename.c (DIR_SEPARATOR): New macro.
1195 (DIR_SEPARATOR_2): Likewise.
1196 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1197 (IS_DIR_SEPARATOR): Likewise.
1198 (main): Handle MSDOS style pathname.
1199
12001999-10-11 Mark Mitchell <mark@codesourcery.com>
1201
1202 * cplus-dem.c (do_type): Handle pointer to member types whose
1203 enclosing classes have namespace scope.
1204
1205Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1206
1207 * config.table: Provide a backup shell for executing move-if-change.
1208
12091999-10-02 Mark Mitchell <mark@codesourcery.com>
1210
1211 * xmalloc.c (xmalloc): Fix spelling error.
1212 (xcalloc, xrealloc): Likewise.
1213
12141999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1215
1216 * cplus-dem.c (fancy_abort, demangle_integral_value,
1217 demangle_arm_hp_template, recursively_demangle,
1218 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1219 (program_name, program_version, fatal): Constify a char*.
1220 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1221 (main): Call return, not exit.
1222
12231999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1224
1225 * choose-temp.c: Remove obsolete comment about gcc.
1226 (make_temp_file): Constify a char*.
1227
1228Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1229
1230 * xmemdup.c: Include sys/types.h.
1231
12321999-09-07 Jeff Garzik <jgarzik@pobox.com>
1233
1234 * xmemdup.c: New xmemdup function.
1235 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1236
1237Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1238
b4fe2683 1239 * config.table: Add openedition target.
0c0a36a4
ILT
1240 * config/mh-openedition: New file.
1241
1242Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1243
1244 * pexecute.c (pexecute): Fill in temp_base when needed.
1245
12461999-08-31 Richard Henderson <rth@cygnus.com>
1247
1248 * getpwd.c: Check HAVE_GETCWD before defining it away.
1249
12501999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1251
1252 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1253 (REQUIRED_OFILES): Add getpwd.o.
1254 (getpwd.o): Add target.
1255
1256 * configure.in (AC_PREREQ): Bump to 2.13.
1257 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1258
1259 * getpwd.c: New file, moved here from gcc.
1260
12611999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1262
1263 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1264 comparing against a signed quantity.
1265 (arm_special): Likewise.
1266 (demangle_fund_type): Likewise.
1267 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 1268 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
1269 (main): Constify variable `valid_symbols'.
1270
1271Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1272
1273 * strtoul.c (strtoul): Add parentheses around && within ||.
1274
1275Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1276
1277 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1278 libdir, libsubdir and tooldir.
1279
12801999-08-01 Mark Mitchell <mark@codesourcery.com>
1281
1282 * splay-tree.c (splay_tree_insert): Return the new node.
1283
35ca97ea
RH
12841999-07-14 Richard Henderson <rth@cygnus.com>
1285
b4fe2683 1286 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
1287 prototyping directly.
1288 * choose-temp.c: Conditionally include string.h.
1289
0c0a36a4
ILT
12901999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1291
1292 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1293
af32ff69
ILT
12941999-07-11 Ian Lance Taylor <ian@zembu.com>
1295
1296 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1297 warning.
1298
0c0a36a4
ILT
12991999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1300
1301 * Makefile.in (needed-list): Only include stuff we actually need
1302 for libstdc++.
1303
13041999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1305
1306 * configure.in (checkfuncs): Add gettimeofday.
1307 * config.in, configure: Regenerated.
1308
1309Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1310
1311 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1312 the test fails.
1313 * configure: Regenerate.
1314
13151999-06-10 Mike Stump <mrs@wrs.com>
1316
1317 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1318 parallel builds.
1319
13201999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1321
1322 * putenv.c: Include ansidecl.h to define `const'.
1323 * setenv.c: Likewise.
1324
1325Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1326
1327 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1328 * configure.in (funcs): Add putenv and setenv.
1329 (AC_CHECK_FUNCS): Check for putenv and setenv.
1330 * configure: Rebuilt.
1331 * putenv.c setenv.c: New files.
1332
1333 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1334 bytes of space using malloc.
1335
1336Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1337
1338 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1339 the *mangled pointer beyond the end of the string. Clean up code to
1340 match prevailing coding style.
1341
13421999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1343
1344 * tmpnam.c (L_tmpnam): Fix typo.
1345
1346Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1347
1348 * cplus-dem.c (standard_symbol_characters): Renamed from
1349 standard_symbol_alphabet. No longer modify TABLE.
1350 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1351 modify TABLE.
1352 (main): Corresponding changes. Use strchr to determine if a
1353 character is valid.
1354
e9868447
JB
13551999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1356
1357 * cplus-dem.c (main): Use table lookup to distinguish identifier
1358 characters from non-identifier characters.
1359 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1360
33fbbfbc
RH
1361Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1362
1363 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1364 * getruntime.c: Only attempt to include sys/resource.h and
1365 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1366 are defined.
1367
0c0a36a4
ILT
1368Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1369
1370 * configure.in (alloca detection): Handle alloca directly for interix.
1371 * configure: Rebuilt.
1372
1373Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1374
1375 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1376
252b5132
RH
13771999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1378
1379 Fix from Dale Hawkins:
b4fe2683 1380 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1381 reallocated properly if we use it again.
1382
1383 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1384 stricter about syntax. Always null-terminate string.
1385
c1687039
ILT
1386Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1387
1388 * configure.in (checkfuncs): Check for sbrk.
1389 * config.in: Rebuilt.
1390 * configure: Likewise.
1391 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1392
0c0a36a4
ILT
13931999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1394
1395 Fix from Marcus Daniels:
1396 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1397 identifier looking for another underscore.
1398
1399Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1400
1401 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1402 * xmalloc.c: Likewise.
1403 (xcalloc): UWIN has sbrk.
1404 (xrealloc): Fix guard macro.
1405
252b5132
RH
14061999-04-11 Richard Henderson <rth@cygnus.com>
1407
1408 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1409 or <alloca.h>.
1410 * clock.c (GNU_HZ): New definition.
1411 (clock): Use it.
1412 * getruntime.c: Likewise.
1413
1414 * config.table: Use mh-beos.
1415 * config/mh-beos: New file.
1416
0c0a36a4
ILT
14171999-04-11 Mark Mitchell <mark@codesourcery.com>
1418
1419 * cplus-dem.c (demangle_template_value_parm): Handle
1420 pointers-to-members.
1421 (do_type): Handle template parameters as qualifiers.
1422
252b5132
RH
14231999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1424
1425 * cplus-dem.c: Attempt to handle overflows in counts with some
1426 semblance of grace.
1427 (consume_count): Detect overflows. Return -1 to indicate errors,
1428 instead of zero.
1429 (demangle_template_value_parm, demangle_template): Handle change
1430 to consume_count's return convention.
1431
0c0a36a4
ILT
14321999-04-05 Tom Tromey <tromey@cygnus.com>
1433
1434 * testsuite/regress-demangle: New file.
1435 * testsuite/demangle-expected: New file.
252b5132 1436
0c0a36a4
ILT
1437 * Makefile.in (all, check, installcheck, info, install-info,
1438 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1439 distclean, maintainer-clean, realclean): Depend on corresponding
1440 `-subdir' target.
1441 (all-subdir check-subdir installcheck-subdir info-subdir
1442 install-info-subdir clean-info-subdir dvi-subdir
1443 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1444 distclean-subdir maintainer-clean-subdir): New target.
1445 * testsuite/Makefile.in: New file.
1446 * configure: Rebuilt.
1447 * configure.in: Create testsuite/Makefile.
252b5132
RH
1448
14491999-04-02 Mark Mitchell <mark@codesourcery.com>
1450
1451 * splay-tree.h (splay_tree_compare_pointers): Define.
1452
14531999-03-30 Mark Mitchell <mark@codesourcery.com>
1454
1455 * splay-tree.c (splay_tree_compare_ints): Define.
1456
14571999-03-30 Tom Tromey <tromey@cygnus.com>
1458
1459 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1460 don't advance input pointer.
1461 (demangle_class_name): If consume_count didn't find a count, do
1462 nothing. Don't bother with `strlen' sanity check; consume_count
1463 does it for us.
1464
14651999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1466
1467 From Art Haas <ahaas@neosoft.com>:
1468 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1469 when doing arm or hp style.
1470 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1471
252b5132
RH
1472Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1473
1474 * pexecute.c (__CYGWIN32__): Rename to
1475 (__CYGWIN__): this.
1476 * xmalloc.c: Likewise.
1477
1478 Changes to support i386-pc-uwin.
1479 * configure.in (*-*-uwin*): Workaround for vfork bug.
1480 * configure: Regenerate.
1481 * pexecute.c (pexecute): Be like standard Unix.
1482 (pwait): Likewise.
1483 * xmalloc.c (first_break): Define.
1484 (xmalloc_set_program_name): Use.
1485 (xmalloc): Use.
1486
1487Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1488
1489 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1490
1491Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1492
1493 * config.table: Check cygwin*, not cygwin32*.
1494
1495Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1496
1497 * Makefile.in: Change mkstemp -> mkstemps.
1498
1499Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1500
1501 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1502 * configure.in (funcs): Check for and conditionally add mkstemps to
1503 the list of functions libiberty will provide.
1504 * configure: Rebuilt.
b4fe2683 1505
252b5132
RH
1506Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1507
b4fe2683 1508 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1509 platforms that don't have HZ.
1510 * getruntime.c (HZ): Likewise.
1511
1512Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1513
1514 * Makefile.in (xstrdup.o): Depend on config.h.
1515
1516Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1517
1518 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1519 freeing it.
1520
1521Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1522
1523 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1524
1525Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1526
1527 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1528 splay-tree.o.
1529
15301999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1531
1532 * configure.in: Require autoconf 2.12.1 or higher.
1533
15341998-12-30 Michael Meissner <meissner@cygnus.com>
1535
1536 * random.c (NULL): Don't redefine NULL if it is already defined.
1537
1538Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1539
1540 * argv.c (buildargv): Cast the result of alloca in assignment.
1541
1542 * choose-temp.c: Include stdlib.h.
1543
1544 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
1545 (snarf_numeric_literal): Constify first parameter.
1546 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1547 int, not a char.
252b5132
RH
1548 (demangle_qualifier): Likewise.
1549 (demangle_signature): Cast the argument of a ctype function to
1550 unsigned char.
1551 (arm_pt): Add parens around assignment used as truth value.
1552 (demangle_arm_hp_template): Constify variable `args'.
1553 (do_hpacc_template_const_value): Cast the argument of a ctype
1554 function to unsigned char.
1555 (do_hpacc_template_literal): Remove unused variable `i'.
1556 (snarf_numeric_literal): Constify parameter `args'.
1557 Cast the argument of a ctype function to unsigned char.
1558
1559 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 1560 avoid ambiguous `else'.
252b5132
RH
1561
1562 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
1563 `cstart' and `cend' to unsigned char. Cast the argument of macro
1564 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
1565
1566 * objalloc.c (free): Add prototype.
1567
1568Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1569
1570 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1571
1572Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1573
1574 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 1575 doesn't exist.
252b5132 1576 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1577
252b5132
RH
1578Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1579
1580 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1581 bumping the pointer we read from. Also prepend these codes,
1582 as we do in other places.
1583
15841998-12-18 Nick Clifton <nickc@cygnus.com>
1585
1586 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1587 'const char *' in order to match its usage when calling siblings.
1588 (snarf_numeric_literal): Make first arg 'const char **' in order
1589 to match usage.
1590
1591Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1592
1593 * choose-temp.c: Don't check IN_GCC anymore.
1594
1595 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1596 * memchr.c (memchr): Likewise.
1597 * memcpy.c (memcpy): Likewise.
1598 * memmove.c (memmove): Likewise.
1599
1600 * mkstemp.c: Don't check IN_GCC anymore.
1601 * pexecute.c: Likewise.
1602 * splay-tree.c: Likewise.
1603
1604 * strchr.c (strchr): Use `const', not `CONST'.
1605 * strrchr.c (strrchr): Likewise.
1606 * strtol.c (strtol): Likewise.
1607 * strtoul.c (strtoul): Likewise.
1608
1609Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1610 Elena Zannoni <ezannoni@cygnus.com>
1611 Stan Shebs <shebs@cygnus.com>
1612 Edith Epstein <eepstein@cygnus.com>
1613 Andres MacLeod <amacleod@cygnus.com>
1614 Satish Pai <pai@apollo.hp.com>
1615
1616 * HP aCC demangling support.
1617 * cplus-dem.c
1618 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
1619 demangling correctly when -edg specified; set the demangling style
1620 when user specifies 'edg'. Set strip_underscore to
1621 prepends_underscore, if not HPUXHPPA. Set
1622 current_demangling_style to hp_demangling if HPUXHPPA. Set
1623 current demangling style correctly if the switch is hp. Read
1624 label correctly also in the HP style case.
252b5132 1625 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 1626 function.
252b5132 1627 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 1628 style for this case is the same as ARM.
252b5132
RH
1629 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1630 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
1631 demangle_arm_pt.); check and set value of temp_start field in
1632 multiple places. Also, when ceching for end of template args,
1633 check to see if at end of static member of template class.
252b5132 1634 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 1635 include template args in string defining class.
252b5132
RH
1636 (demangle_class_name): use demangel_arm_hp_template.
1637 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
1638 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1639 Handle EDG_DEMANGLING style. Handle constructor and destructor
1640 ops for HP style.
252b5132 1641 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
1642 styles. global destructor and constructor for HP style are same
1643 as for ARM style. Same for local variables.
252b5132
RH
1644 (demangle_qualified): handle EDG_DEMANGLING style.
1645 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
1646 cases '1' - '9' : initialize the temp_start field to -1 and handle
1647 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1648 and AUTO_DEMANGLING styles. If expecting a function and managed
1649 to demangle the funct args, then handle the LUCID_DEMANGLING,
1650 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1651 class name after "Lnnn_ in HP style case. HP style too needs to
1652 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 1653 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 1654 value param for HP/aCC.
252b5132 1655 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 1656 literal parameter for HP aCC.
252b5132
RH
1657 (recursively_demangle): new function
1658 (snarf_numeric_literal): new function.
1659 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 1660 to message.
252b5132
RH
1661
1662Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1663
1664 * pexecute.c: Remove obsolete ifdefed cygwin code.
1665
1666Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1667
1668 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1669 * cplus-dem.c: Likewise. Conform to libiberty.h.
1670 * pexecute.c: Likewise.
1671 * splay-tree.c: Likewise.
1672
16731998-11-25 Mike Stump <mrs@wrs.com>
1674
1675 * Makefile.in (splay-tree.o): Add config.h dependency.
1676
1677Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1678
1679 * configure.in: Use AC_PREREQ(2.12.1).
1680
16811998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1682
b4fe2683 1683 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1684
1685Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1686
1687 * mpw.c (mpw_access): Add missing parens.
1688
1689Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1690
1691 * configure.in: Call AC_HEADER_SYS_WAIT.
1692
1693 * pexecute.c: Include sys/wait.h when !IN_GCC.
1694
1695Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1696
1697 * pexecute.c: revert back to checking old Cygwin
1698 preprocessor symbol until some time has passed.
1699
1700Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1701
1702 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1703 since it will now support similar constructs.
1704
1705Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1706
1707 * configure.in: Check for calloc.
1708
1709 * calloc.c: New file.
1710
1711 * xmalloc.c (xcalloc): New function.
1712
1713Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1714
1715 *cplus-dem.c (demangle_prefix): Use the last "__"
1716 in the mangled name when looking for the signature. This allows
1717 template names to begin with "__".
1718
17191998-11-08 Mark Mitchell <mark@markmitchell.com>
1720
1721 * cplus-dem.c (type_kind_t): Add tk_reference.
1722 (demangle_template_value_parm): Handle it.
1723 (do_type): Use it for references, instead of tk_pointer.
1724
1725 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1726 not internal_cplus_demangle.
1727
1728Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1729
1730 * choose-temp.c: Don't include gansidecl.h.
1731 * mkstemp.c: Likewise.
1732 * pexecute.c: Likewise.
1733
1734Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1735
b4fe2683
JM
1736 * configure.in: detect cygwin* instead of cygwin32*
1737 * configure: regenerate
252b5132
RH
1738
1739Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1740
1741 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
1742 whether to include config.h. Possibly include unistd.h in the
1743 !IN_GCC case. Define VFORK_STRING as a printable function call
1744 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1745 defined, include vfork.h. If VMS is defined, define vfork()
1746 appropriately. Remove vfork check on USG, we're using autoconf.
1747 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1748 locally what string to use.
252b5132
RH
1749
17501998-10-26 Mark Mitchell <mark@markmitchell.com>
1751
1752 * splay-tree.c: Tweak include directives to make sure declarations of
1753 xmalloc and free are available.
1754
17551998-10-25 Mark Mitchell <mark@markmitchell.com>
1756
1757 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1758 anonymous namespaces.
1759
17601998-10-23 Mark Mitchell <mark@markmitchell.com>
1761
1762 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1763 with type_quals.
1764 (TYPE_UNQUALIFIED): New macro.
1765 (TYPE_QUAL_CONST): Likewise.
1766 (TYPE_QUAL_VOLATILE): Likewise.
1767 (TYPE_QUAL_RESTRICT): Likewise.
1768 (code_for_qualifier): New function.
1769 (qualifier_string): Likewise.
1770 (demangle_qualifier): Likewise.
1771 (internal_cplus_demangle): Use them.
1772 (demangle_signature): Likewise.
1773 (demangle_template_value_parm): Likewise.
1774 (do_type): Likewise.
1775 (demangle_fund_type)): Likewise.
1776
1777Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1778
1779 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1780 to match prototype.
1781
17821998-10-21 Mark Mitchell <mark@markmitchell.com>
1783
1784 * splay-tree.c: New file.
1785 * Makefile.in (CFILES): Add it.
1786 (REQUIRED_OFILES): Likewise.
1787 (splay-tree.o): Add dependencies.
1788
1789Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1790
1791 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1792 range of 'K' index.
1793
1794Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1795
1796 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1797
1798 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1799 `unsigned char'.
1800 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1801 comparing against one.
1802 (cplus_mangle_opname): Likewise.
1803 (demangle_integral_value): Cast argument of ctype macro to
1804 `unsigned char'.
1805 (demangle_template_value_parm): Likewise.
1806 (demangle_template): Initialize variable `bindex'. Cast the
1807 result of `strlen' to (int) when comparing against one. Remove
1808 unused variable `start_of_value_parm'.
1809 (demangle_class_name): Cast the result of `strlen' to (int) when
1810 comparing against one.
1811 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1812 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1813 when comparing against one.
1814 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1815 (get_count): Likewise.
1816 (do_type): Likewise. Cast the result of `strlen' to (int) when
1817 comparing against one.
1818 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1819 (demangle_function_name): Cast the result of `strlen' to (int)
1820 when comparing against one.
1821
1822 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1823 comparing against one.
1824
1825Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1826
b4fe2683
JM
1827 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1828 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1829 * config.in, configure: Rebuilt.
252b5132
RH
1830
1831 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1832 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1833 * config.in, configure: Rebuilt.
1834
1835Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1836
b4fe2683 1837 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1838
1839Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1840
1841 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1842
1843Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1844
1845 * Merge egcs & devo libiberty.
1846