]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* toplev.c (set_float_handler): Make static.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
2bce2a69 12001-06-13 Andrew Cagney <ac131313@redhat.com>
2
3 * lbasename.c (lbasename): Change function definition to return a
4 const char pointer.
5
6539a5d8 62001-08-07 Jason Merrill <jason_merrill@redhat.com>
7
8 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
9 for".
10
2644ae20 112001-08-03 Richard Henderson <rth@redhat.com>
12
13 * Makefile.in (concat.o): Depend on config.h.
14
6c9ffcbc 152001-07-30 Andreas Jaeger <aj@suse.de>
16
17 * concat.c: Include "config.h".
18
9f21bac8 192001-07-30 Andreas Jaeger <aj@suse.de>
20
21 * regex.c: Declare wcs functions only if compiling with
22 MBS_SUPPORT.
23 Don't use #elif for traditional C.
24
252001-07-23 Ulrich Drepper <drepper@redhat.com>
26
27 * regex.c: Revamp memory allocation for WCHAR functions to
28 not use too much stack.
29
302001-07-30 Andreas Jaeger <aj@suse.de>
31
32 * regex.c: Declare wcs functions only if compiling with
33 MBS_SUPPORT.
34 Don't use #elif for traditional C.
35
2bbbdf1a 362001-07-25 Daniel Jacobowitz <drow@mvista.com>
37
38 * Makefile.in (regex.o): Add dependency on config.h.
39
b92e80db 402001-07-18 Andreas Schwab <schwab@suse.de>
41
42 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
43 underscore character.
44
452001-07-18 Ulrich Drepper <drepper@redhat.com>
46
47 * regex.c: Limit string length printed in debug messages to 100
48 chars.
49
502001-07-18 Andreas Jaeger <aj@suse.de>
51
52 * regex.c: Place under LGPL version 2.1.
53
7703a7de 542001-07-10 Jeff Johnston <jjohnstn@redhat.com>
55
56 * Makefile.in: Add support for regex code.
57 * regex.c: New file.
58
8568af22 592001-07-05 Mark Klein <mklein@dis.com>
60
61 * Makefile.in: Add ffs.c dependency.
62 * configure.in: Add ffs.c.
63 * ffs.c: New file.
64
c1a60b7d 652001-06-18 Richard Henderson <rth@redhat.com>
66
67 * concat.c: Include <sys/types.h>.
68
66806be2 692001-06-11 Loren J. Rittle <ljrittle@acm.org>
70
2778f1dc 71 bootstrap/3106
66806be2 72 * strerror.c (sys_nerr): Hide the OS header version.
73 * strsignal.c (sys_nsig): Likewise.
74
222ce6b9 752001-06-10 Richard Henderson <rth@redhat.com>
76
77 * concat.c: Include string.h. Fix int vs size_t usage.
78 Simplify the iteration loops. Use memcpy.
79
cb6758b9 802001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
81
82 * partition.c: Fix misspelling of `implementation'.
83
091eef96 842001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
85
86 * md5.c (md5_init_ctx): Declare constants as unsigned.
87 (md5_process_block): Likewise.
88
e5f55ef4 892001-05-07 Zack Weinberg <zackw@stanford.edu>
90
91 * cp-demangle.c (demangle_v3_with_details,
92 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
93 function definition.
94 * ternary.c: Use K+R style function definitions. Use PTR, not
95 void *. Make arguments constant where possible.
96
c99b4ef9 972001-05-07 Mark Mitchell <mark@codesourcery.com>
98
99 * splay-tree.h (splay_tree_max): New function.
100 (splay_tree_min): Likewise.
101
eec19420 1022001-04-15 Daniel Berlin <dan@cgsoftware.com>
103
104 * ternary.c: New file - Ternary search tree implementation.
105
106 * Makefile.in: Add ternary.o, and ternary.c dependencies.
107
673b6e5a 1082001-04-03 Zack Weinberg <zackw@stanford.edu>
109
110 * make-temp-file.c (try): Inline.
111
b8f02fb2 1122001-02-28 Richard Henderson <rth@redhat.com>
113
114 * Makefile.in (make-temp-file.o): Depend on config.h.
115
b130ede9 1162001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
117
118 * memchr.c (memchr): Adjust condition to avoid infinite loop.
119
5a4fcef0 1202001-03-23 Jakub Jelinek <jakub@redhat.com>
121
122 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
123 `_' not followed by a digit is invalid.
124
c83c8218 1252001-03-22 Jim Blandy <jimb@redhat.com>
126
127 * cp-demangle.c (string_list_delete): Use dyn_string_delete
128 instead of free, to free the contents as well as the string
129 structure.
130
7e660a1b 1312001-03-21 Zack Weinberg <zackw@stanford.edu>
132
133 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
134 Don't default P_tmpdir to anything. Try /var/tmp before
135 /usr/tmp.
136
e6351181 1372001-03-20 Zack Weinberg <zackw@stanford.edu>
138
139 * choose-temp.c: Split off make_temp_file, and the code
140 duplicated between it and choose_temp_base, into...
141 * make-temp-file.c: ... here; new file.
142
143 * Makefile.in (CFILES): Add make-temp-file.c.
144 (REQUIRED_OFILES): Add make-temp-file.o.
145
3a18c9fc 1462001-03-20 Jim Blandy <jimb@redhat.com>
147
148 * cp-demangle.c (struct demangling_def): New fields:
149 is_constructor and is_destructor.
150 (demangling_new): Initialize them.
151 (demangle_ctor_dtor_name): Set them, if we detect a constructor
152 or destructor.
153 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
154 is_gnu_v3_mangled_dtor): New functions.
155
d219f684 1562001-03-20 Jason Merrill <jason@redhat.com>
157
158 * cplus-dem.c (main): Skip initial $.
159
dfc58e62 1602001-03-15 Michael Meissner <meissner@redhat.com>
161
162 * hashtab.c (higher_prime_number): Silence warning that 4294967291
163 might be a signed integer under pre-ISO C systems.
164
0bce9b89 1652001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
166 John David Anglin <dave@hiauly1.hia.nrc.ca>
167
168 * libiberty/lbasename.c: New file.
169 * libiberty/Makefile.in: Update for lbasename.
170
012f1707 1712001-03-06 Zack Weinberg <zackw@stanford.edu>
172
173 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
174 * configure.in: Replace all alloca logic with a simple use of
175 the above new macro.
176 * config.table: Kill *-*-beos* entry.
177 * config/mh-beos: Delete.
178 * configure, config.in: Regenerate.
179
180 * Makefile.in (ALLOCA, HFILES): Kill.
181 (REQUIRED_OFILES): Add alloca.o.
182 (alloca.o): Depend on libiberty.h.
183 (argv.o): Don't depend on alloca-conf.h.
184 * alloca-conf.h: Delete.
185 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
186 blocks. Provide the C alloca unconditionally. Use PTR where
187 appropriate. Make i00afunc static.
188 * argv.c: Don't include alloca-conf.h.
189
163369e7 1902001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
191
192 * cplus-dem.c (main): Cast enum style to int.
193
39fb1bb6 1942001-02-16 Loren J. Rittle <ljrittle@acm.org>
195
196 * cplus-dem.c (main): Initialize style.
197
bace101a 1982001-02-02 Phil Edwards <pme@sources.redhat.com>
199
200 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
201
1c1033dd 2022001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
203
204 Add support for Java demangling under the v3 ABI:
205 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
206 (struct demangling_def): Add `style' field.
207 (demangling_new): New parameter `style'. Set it in demangling_t.
208 (demangle_prefix): Use NAMESPACE_SEPARATOR.
209 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
210 (cp_demangle): New parameter `style'. Pass it to demangling_new().
211 (main): Call cp_demangle with extra parameter.
212 (java_demangle_v3): New function.
213 (java_builtin_type_names): New. Table of primitive type names used
214 for Java demangling.
215 (demangle_builtin_type): Look up in java_builtin_type_names if doing
216 Java output.
012f1707 217 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 218 demangling.
219 (long_options): Remove obsolete `java' option.
220 (main): Remove explicit handling of `java' option. Instead, pass style
221 parameter in cplus_demangle flags as gdb does.
222 * testsuite/demangle.expected: Add some Java test cases.
223
fec9182b 2242000-12-29 DJ Delorie <dj@redhat.com>
225
226 * fnmatch.c: Make the note about the origins of this file more
227 accurate, at least until we can sync with glibc.
228 * getopt.c: Ditto.
229 * getopt1.c: Ditto.
230 * md5.c: Ditto.
231 * obstack.c: Ditto.
232
5b9c32cc 2332000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
234
235 * bsearch.c: New file.
236 * configure.in (funcs): Add bsearch.
237 (AC_CHECK_FUNCS): Likewise.
238 * configure, config.in: Regenerate.
239
a973e2b1 2402000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
241
242 * safe-ctype.c: #include "ansidecl.h".
243 * strtod.c: Likewise.
244
14282c1a 2452000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
246
247 * strtoul.c: Include safe-ctype.h, not ctype.h.
248
93ce8ce4 2492000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
250
251 * safe-ctype.c: New file.
252 * Makefile.in (CFILES): Add safe-ctype.c.
253 (REQUIRED_OFILES): Add safe-ctype.o.
254
255 * argv.c: Define ISBLANK and use it, not isspace.
256 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
257 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
258 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
259 before calling TOLOWER(c)/TOUPPER(c).
260
be6afa8f 2612000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 262
263 * Makefile.in (distclean): When cleaning, remove testsuite.
264
cf0ad6a8 2652000-12-05 Jason Merrill <jason@redhat.com>
266
267 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
268 name before allocating the dyn_string.
269
bb505139 2702000-12-04 Jason Merrill <jason@redhat.com>
271
272 * cp-demangle.c: s/new_abi/v3/.
273 * cplus-dem.c: Likewise.
274 (current_demangling_style): Now auto_demangling.
275 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 276 (main): Use standard symbol chars for auto_demangling.
bb505139 277
54b3a5af 2782000-11-26 Mark Mitchell <mark@codesourcery.com>
279
280 * hashtab.c (higher_prime_number): Use a table, rather than a
281 seive, to find the next prime.
282
9628d706 2832000-11-22 H.J. Lu <hjl@gnu.org>
284
285 * cplus-dem.c (main): Handle gnat_demangling.
286
ec255163 2872000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
288
289 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
290 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
291 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
292 argument form of AC_DEFINE in dummy definitions block. Use
293 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
294 in dummy block. Preload cache variables instead of bypassing
295 tests, where possible.
296 * acconfig.h: Removed.
297
298 * xmalloc.c (xmalloc_failed): New function, does error
299 reporting on failed allocation.
300 (xmalloc, xcalloc, xrealloc): Use it.
301
626946fb 3022000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
303
304 * cplus-dem.c (cplus_demangle): Fix formatting.
305 (grow_vect): Ditto.
306 (ada_demangle): Ditto.
307 (internal_cplus_demangle): Ditto.
308 (mop_up): Ditto.
309
3102000-11-21 H.J. Lu <hjl@gnu.org>
311
312 * cplus-dem.c (main): Handle java_demangling.
313
918a89ef 3142000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
315
316 * cplus-dem.c (grow_vect): Prototype.
317 (ada_demangle): Cast the arg of ctype macros to unsigned char.
318
582f72ad 3192000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
320
321 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
322 parameter `option'.
323
0d6e3c59 3242000-11-15 Kenneth Block <kenneth.block@compaq.com>
325
42ded3a1 326 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 327 be used in GCC.
328
9df8b754 3292000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 330
582f72ad 331 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 332 list.
333
e4c2dc6e 3342000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
335
336 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 337 xcalloc depending on htab->return_allocation_failure. Return zero
338 if calloc fails.
e4c2dc6e 339 (htab_create): Update comment to cover memory allocation.
340 (htab_try_create): New.
341 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 342 Update comment to cover this.
e4c2dc6e 343
696d6593 3442000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
345
346 * hashtab.c: Change void * to PTR where necessary.
347 (htab_create, htab_expand): Correct formatting of comment before
348 function.
349
8f2b45d4 3502000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 351
352 * cp-demangle.c (string_list_def): Add caret_position and comments.
353 (result_caret_pos): New macro.
354 (result_append_string): Rename to...
355 (result_add_string): ... this, and insert at caret position.
ec255163 356 Rename throughout.
f99edf23 357 (result_append): Rename to...
358 (result_add): ... this, and insert at caret position. Rename
ec255163 359 throughout.
f99edf23 360 (result_append_char): Rename to...
361 (result_add_char): ... this, and insert at caret position. Rename
ec255163 362 throughout.
f99edf23 363 (result_append_space): Remove.
364 (string_list_new): Initialize caret position.
365 (result_add_separated_char): Use caret position.
366 (result_get_caret): New funtion.
367 (result_set_caret): Likewise.
368 (result_shift_caret): Likewise.
369 (result_previous_char_is_space): Likewise.
370 (substitution_start): Use caret position.
371 (substitution_add): Likewise.
372 (demangling_new): Initialize caret position.
373 (demangle_encoding): Use caret position.
ec255163 374 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 375 (demangle_type_ptr): Use switch statement. Handle pointers to
376 arrays. Don't use result_append_space. Use caret position.
377 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 378 call to demangle_array_type.
379 (demangle_array_type): Add parameter to handle pointers to arrays.
380
a4e59c31 3812000-10-01 Mark Mitchell <mark@codesourcery.com>
382
383 * splay-tree.c (splay_tree_insert): Fix formatting.
384
e41f0d80 3852000-09-16 Mark Mitchell <mark@codesourcery.com>
386
387 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
388
83d86ada 3892000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
390
391 * splay-tree.c: #include <stdio.h>.
392
78631810 3932000-09-14 Hans-Peter Nilsson <hp@axis.com>
394
395 * testsuite/demangle-expected: Add two tests for anonymous
396 namespaces.
397 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
398
508f18c8 3992000-09-10 Mark Mitchell <mark@codesourcery.com>
400
401 * splay-tree.c (splay_tree_predecessor): New function.
402 (splay_tree_successor): Likewise.
403
1a2d2193 4042000-09-10 Hans-Peter Nilsson <hp@axis.com>
405
406 * testsuite/demangle-expected: Add four tests for type_info
407 mangling.
1a2d2193 408 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
409 for a non-template non-qualified type_info function or node.
410
09656987 4112000-09-08 Alex Samuel <samuel@codesourcery.com>
412
413 * cp-demangle.c: Fix copyright banner.
414
7cc2d24b 4152000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
416
417 * md5.c: #include "ansidecl.h".
418
b83e8722 4192000-09-06 Alex Samuel <samuel@codesourcery.com>
420
421 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
422 (demangle_type): Handle substitution candidates correctly in the
423 face of special substitutions.
424
cf70278e 4252000-09-05 Alex Samuel <samuel@codesourcery.com>
426
427 * cp-demangle.c (demangle_encoding): Rename variable.
428 (demangle_name): Rename parameter. Handle return type
429 suppression.
430 (demangle_nested_name): Rename parameter.
431 (demangle_prefix): Likewise. Change return type suppression.
432 (demangle_unqualified_name): Add parameter. Flag constructors and
433 conversion operators.
434 (demangle_special_name): Fix comment.
435 (demangle_type): Rename variable.
436 (demangle_bare_function_type): Check for missing return type and
ec255163 437 parameter.
cf70278e 438 (demangle_class_enum_type): Rename parameter.
439 (demangle_discriminator): Fix misspelling in comment.
440
4aabc076 4412000-08-31 DJ Delorie <dj@redhat.com>
442
443 * configure.in (Cygwin): special case cygwin only when we're
444 building cygwin, not when we're hosting cygwin.
445
804ddfd1 4462000-09-04 Alex Samuel <samuel@codesourcery.com>
447
448 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 449 <expression>.
450
e015a852 4512000-09-04 Alex Samuel <samuel@codesourcery.com>
452
453 * cp-demangle.c (demangle_type_ptr): Increment position past
454 pointer and reference characters.
455
2b6805b4 4562000-09-04 Alex Samuel <samuel@codesourcery.com>
457
458 * cp-demangle.c (demangle_nv_offset): New function.
459 (demangle_v_offset): Likewise.
460 (demangle_call_offset): Likewise.
461 (demangle_special_name): Update thunk demangling to comply with
462 ABI changes.
ec255163 463
40e00cb0 4642000-09-03 Alex Samuel <samuel@codesourcery.com>
465
466 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
467 (substitution_def): Remove template_parm_number.
468 (NOT_TEMPLATE_PARM): Remove.
469 (result_insert_string): New macro.
470 (result_insert): Likewise.
471 (result_insert_char): Likewise.
472 (substitution_add): Remove last parameter. Don't store template
ec255163 473 parm number.
40e00cb0 474 (BFT_NO_RETURN_TYPE): Define as NULL.
475 (demangle_encoding): Adjust call to demangle_bare_function_type.
476 (demangle_name): Adjust substitution. Adjust call to
ec255163 477 substitution_add.
40e00cb0 478 (demangle_prefix): Adjust call to substitution_add.
479 (demangle_identifier): Handle anonymous namespaces.
480 (demangle_operator_name): Change demangling of vendor-extended
481 operator to match ABI changes.
482 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 483 substitutions here.
40e00cb0 484 (demangle_type): Adjust calls to demangle_template_param,
485 substitution_add, and demangle_type_ptr. Fix substitution of
486 templated types.
487 (demangle_function_type): Change parameter to a pointer.
488 (demangle_bare_function_type): Likewise. Adjust insertion point.
489 (demangle_template_param): Remove last parameter.
490 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 491 demangle_template_param.
40e00cb0 492 (is_mangled_char): Accept `$' and `.'.
493 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
494 * dyn-string.c (dyn_string_insert_char): New function.
495
01f404a2 4962000-08-31 Hans-Peter Nilsson <hp@axis.com>
497
498 * testsuite/demangle-expected: Add nine tests for
499 underscore-after-number followed by five tests for name-signature
500 delimiter.
501
d74245d4 5022000-08-28 Richard Henderson <rth@cygnus.com>
503
504 * Makefile.in (md5.o): Depend on config.h.
505
19f716e5 5062000-08-28 Jason Merrill <jason@redhat.com>
507
508 * Makefile.in (REQUIRED_OFILES): Add md5.o.
509 (CFILES): Add md5.c.
510 * md5.c: New file.
511
f8aeab41 5122000-08-27 Alex Samuel <samuel@codesourcery.com>
513
514 * cp-demangle.c (demangle_name): Initialize template_p in local
515 name case. Don't re-add substitutions as candidates.
516 (demangle_nested_name): Use <unqualified-name>.
517 (demangle_prefix): Likewise. Don't add template names as
518 substitution candidates twice, or re-add a substitution or the
519 last prefix component.
520 (demangle_local_name): Adjust output format.
521
62c2feed 5222000-08-25 Alex Samuel <samuel@codesourcery.com>
523
524 * cp-demangle.c (result_add_separated_char): Change parameter to
525 int.
526 (substitution_add): Don't check for duplicates. Check if
527 previously allocated size is zero.
528 (demangle_name): Remove duplicate check for std substitution.
529 Clear template flag appropriately.
530 (demangle_prefix): Remove argument to demangle_substitution.
531 Don't check that template flag is already set.
532 (demangle_operator_name): Add pt operator.
533 (demangle_type): Don't treat r as built-in type. Remove argument
534 to demangle_substitution. Fix substitution candidate mechanics.
535 Handle <template-template-parm>s. Improve comments.
ec255163 536 (demangle_template_param): Don't handle template arg lists here.
62c2feed 537 (demangle_substitution): Remove parameter.
538 (print_usage): Remove extra fprintf option.
539
ee1d4c3d 5402000-08-24 Greg McGary <greg@mcgary.org>
541
542 * libiberty/random.c (end_ptr): Revert previous change.
543
f0bff53d 5442000-08-24 Greg McGary <greg@mcgary.org>
545
546 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
547 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
548 * libiberty/random.c (end_ptr): Likewise.
549
c1b316c0 5502000-08-23 Alex Samuel <samuel@codesourcery.com>
551
552 * cp-demangle.c (result_close_template_list): Remove function.
553 (result_add_separated_char): New function.
554 (result_open_template_list): New macro.
555 (result_close_template_list): Likewise.
556 (demangle_prefix): Don't set template_p if the
557 prefix ends with a ctor name.
558 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
559 (demangle_type): Check for template args after substitution.
560 (demangle_template_args): Use result_open_template_list.
ec255163 561
385b48fc 5622000-08-02 Zack Weinberg <zack@wolery.cumb.org>
563
564 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
565
ec255163 5662000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 567
568 * config/mh-openedition.h: Added -DLE370 definition.
569
8fc0efd2 5702000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
571
572 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
573 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
574 Cast program to 'char *' in errmsg_arg assignment.
575 (PWAIT_ERROR): Define.
576 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
577 to DJGPP's WIF* macros.
578
a1d4f79a 5792000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
580 Jeff Law <law@cygnus.com>
581
98b4c197 582 * getcwd.c: Include string.h, stdlib.h for prototypes
583
a1d4f79a 584 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 585 * rename.c: Include config.h, unistd.h
586 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 587
01f404a2 5882000-07-24 Hans-Peter Nilsson <hp@axis.com>
589
590 * cplus-dem.c (work_stuff_copy_to_from): New.
591 (delete_non_B_K_work_stuff): New.
592 (delete_work_stuff): New.
593 (mop_up): Break out work_stuff partly destruction to
594 delete_non_B_K_work_stuff.
595 (iterate_demangle_function): New.
596 (demangle_prefix): Call iterate_demangle_function instead of
597 demangle_function_name. Leave handling of name-signature
598 __-delimiters to iterate_demangle_function.
599 (demangle_integral_value): Strip an optional
600 following underscore cautiously. Handle negative numbers.
601
f2e5a608 6022000-07-24 Daniel Berlin <dberlin@redhat.com>
603
ec255163 604 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 605 if (AUTO_DEMANGLING || GNU_DEMANGLING)
606
65bcf503 6072000-07-21 Alex Samuel <samuel@codesourcery.com>
608
609 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
610 allocating ctor mangling.
611 (demangle_array_type): Handle empty and non-constant array length.
612
68e6b6e1 6132000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 614 Jeff Law <law@cygnus.com>
615
1a163ca8 616 * configure.in (AC_CHECK_HEADERS): Add time.h.
617 (AC_HEADER_TIME): Add check.
618 * configure, config.in: Regenerate.
619 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
620
a451eef0 621 * configure.in (AC_CHECK_HEADERS): Add limits.h.
622 * configure, config.in: Regenerate.
623 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
624 * strtol.c, strtoul.c: #include "config.h". Portably #include
625 <limits.h> and/or <sys/param.h>.
626 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 627
fb758229 628 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
629 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
630 * configure, config.in: Regenerate.
631 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
632
68e6b6e1 633 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
634
ad46fec4 6352000-07-21 Mike Stump <mrs@wrs.com>
636
637 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 638 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 639
bb37062f 6402000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
641
642 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
643
644 * setenv.c (setenv): Initialize variable `ep'.
645
646 * sigsetmask.c (abort): Prototype.
647
648 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
649 __STDC__ for stdarg.h include.
650 (int_vasprintf): Prototype.
651 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
652 definition. Cast `global_total_width' in comparison.
653 (main): Prototype. Return a value.
654
655 * vfork.c (fork): Prototype.
656
657 * xexit.c: Include config.h.
658
6cb730c2 6592000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
660
661 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
662 and print it with %u.
663
e42d7fe1 6642000-07-17 Hans-Peter Nilsson <hp@axis.com>
665
666 * testsuite/regress-demangle (failed test): Show result and
667 expected output.
668
04ef60ef 6692000-07-07 Andrew Haley <aph@cygnus.com>
670
671 * cplus-dem.c (main): fflush() after emitting last char before
672 waiting for input.
673
b7f68aff 6742000-06-28 Alex Samuel <samuel@codesourcery.com>
675
676 * cp-demangle.c (demangle_encoding): Accept no substitutions.
677 (demangle_name): Handle <substitution> followed by
678 <unqualified-template-name>.
679 (demangle_type): Follow special substitutions with
680 <class-enum-type>
681 (demangle_subtitution): Set template_p for special substitutions.
682 (main): Fix typos.
ec255163 683
597f928d 6842000-06-27 Alex Samuel <samuel@codesourcery.com>
685
686 * cp-demangle.c (demangle_special_name): Swap base and derived
687 class when demangling construction vtables.
688
140d75d7 6892000-06-21 Alex Samuel <samuel@codesourcery.com>
690
691 * cp-demangle.c: Don't include ctype.h.
692 (IS_DIGIT): New macro.
693 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
694 instead of isdigit and isalpanum.
695 (demangling_def): Make name and next const pointers.
696 (STATUS_ALLOCATION_FAILED): New status code.
697 (dyn_string_append_space): Handle failure in
698 dyn_string_append_char.
699 (int_to_dyn_string): Likewise. Change return value to status_t.
700 (string_list_new): Handle failure of dyn_string_init.
701 (result_close_template_list): Change return type to status_t.
702 Handle failure in dyn_string_append.
703 (result_push): Change return value to status_t. Handle failure in
704 string_list_new. Handle failure of result_push throughout.
705 (substitution_add): Change return value to status_t. Handle
706 dyn_string failures. Handle failure of substitution_add
707 throughout.
708 (template_arg_list_new): Return NULL on allocation failure.
709 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
710 Handle error result throughout.
711 (result_append): Likewise.
712 (result_append_char): Likewise.
713 (result_append_space): Likewise.
714 (demangling_new): Make argument a const pointer. Handle
715 allocation failures.
716 (demangle_template_args): Handle failure in template_arg_list_new
717 and result_close_template_list.
718 (demangle_discriminator): Return if int_to_dyn_string fails.
719 (cp_demangle): Likewise.
720 (cp_demangle_type): New function.
721 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
722 memory allocation failure.
723 (main): Likewise.
724 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
725 IN_LIBGCC2.
726 (dyn_string_init): Change return value to int. Handle
727 RETURN_ON_ALLOCATION_FAILURE case.
728 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
729 (dyn_string_release): Delete the dyn_string.
730 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
731 (dyn_string_copy): Change return type to int.
732 (dyn_string_copy_cstr): Likewise.
733 (dyn_string_prepend): Likewise.
734 (dyn_string_prepend_cstr): Likewise.
735 (dyn_string_insert): Likewise.
736 (dyn_string_insert_cstr): Likewise.
737 (dyn_string_append): Likewise.
738 (dyn_string_append_cstr): Likewise.
739 (dyn_string_append_char): Likewise.
740 (dyn_string_substring): Likewise.
ec255163 741
210aba33 7422000-06-09 Zack Weinberg <zack@wolery.cumb.org>
743
744 * cp-demangle.c (demangle_operator_name): Add spaces before
745 names beginning with a letter: delete, delete[], new, new[],
746 sizeof.
747 (demangle_special_name): Handle TF <type> and TJ <type>.
748
0b4450c1 749Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
750
751 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
752
e5d6924a 753Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
754
755 * cp-demangle.c (stdio.h): File included unconditionaly.
756 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
757 * dyn-string.c (stdio.h): File included.
758 * partition.c (partition_print): No `&' needed to take the address of
759 a function.
760
da8bd873 7612000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
762
763 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 764
da8bd873 765 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
766
767 * cp-demangle.c (demangle_char): Change parameter from char to int.
768 (demangle_expression, demangle_expr_primary): Remove extra
769 semi-colon in prototype.
770
771 * dyn-string.c (dyn_string_append_char): Change parameter from
772 char to int.
773
774 * memcmp.c (memcmp): Constify.
775
776 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
777 __extension__.
778
779 * partition.c (elem_compare): Prototype. Don't cast away
780 const-ness.
781
782 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 783
4b7bc488 7842000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
785
786 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
787
788 * cp-demangle.c: Include demangle.h.
789 (template_arg_list_new): DeANSIfy.
790 (cp_demangle): Make static and add prototype.
791 (operator_code, operators): Constify.
792 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
793
7ae7b54c 7942000-06-05 Alex Samuel <samuel@codesourcery.com>
795
796 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
797 unsigned char.
798 (demangle_unqualified_name): Likewise.
799 (demangle_number_literally): Likewise.
800 (demangle_type): Likewise.
801 (demangle_substitution): Likewise.
802 (is_mangled_char): Likewise, for isalnum.
803
168d63e5 8042000-06-04 Alex Samuel <samuel@codesourcery.com>
805
806 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
807 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
808 (cp-demangle.o): New dependency.
809 (dyn-string.o): Likewise.
810
811 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
812
813 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
814 demangler.
815 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
816 demangling mode.
817 (gnu_new_abi_symbol_characters): New function.
818 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
819 file.
820 * cp-demangle.c: New file.
ec255163 821
b5495c1d 822Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
823
824 * floatformat.c: Add name to each floatformat field.
825
8fab1737 826Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
827
828 * Makefile.in (objalloc.o): Depend on config.h
829
317ab997 8302000-05-29 Zack Weinberg <zack@wolery.cumb.org>
831
832 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
833 if HAVE_STRING_H.
834 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
835 * objalloc.c: Include config.h. Include stdlib.h and don't
836 declare malloc or free if HAVE_STDLIB_H.
837 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
838 else declare malloc without prototype. Include string.h if
839 HAVE_STRING_H, else declare memset without prototype. Don't
840 include stddef.h.
841
874478ba 8422000-05-23 Mike Stump <mrs@wrs.com>
843
844 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 845 -j3.
874478ba 846
55de1520 8472000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
848
849 * xmalloc.c: Include config.h for HAVE_SBRK definition.
850
e51b357b 8512000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
852
ec255163 853 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 854 probably zero, also eliminate a warning on alpha.
855
9e362499 8562000-05-15 David Edelsohn <edelsohn@gnu.org>
857
e390e838 858 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 859 on $(enable_shared).
860
06c6487f 8612000-05-10 Jakub Jelinek <jakub@redhat.com>
862
863 * config.table: Use mh-sparcpic for sparc*-*-*.
864
0baf89fb 8652000-05-08 Nick Clifton <nickc@cygnus.com>
866
867 * Makefile.in (CFILES): Add strncmp.c.
868 (NEEDED): Add strncmp.
869
59f72e4d 8702000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
871
872 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
873 Cast the arguments to `islower' to `unsigned char'.
874 (print_demangler_list): Prototype.
875
fb0c90ed 876Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
877
878 * sort.c (UCHAR_MAX): Provide fallback definition.
879
167a5f18 8802000-04-29 Alexandre Oliva <aoliva@cygnus.com>
881
882 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
883 SUBDIRS.
884
6f572555 8852000-04-28 Kenneth Block <block@zk3.dec.com>
886 Jason Merrill <jason@casey.cygnus.com>
887
ec255163 888 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
889 (cplus_demangle_set_style): New function for setting style.
890 (cplus_demangle_name_to_style): New function to translate name.
6f572555 891
b3524c8f 8922000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
893
894 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
895
896 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
897 (libiberty_AC_FUNC_STRNCMP): Invoke.
898
899 * strncmp.c: New file.
900
a5f725a3 901Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
902
903 * hashtab.c (htab_expand): Add prototype.
904 (find_empty_slot_for_expand): Likewise.
905
8afd4145 9062000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
907
908 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
909 match prototype.
910 (htab_expand): Cast the return value of xcalloc.
911
c9dfb8ae 9122000-04-24 Mark Mitchell <mark@codesourcery.com>
913
914 * hashtab.c (hash_pointer): New function.
915 (eq_pointer): Likewise.
916 (htab_hash_pointer): New variable.
917 (htab_eq_pointer): Likewise.
918
85993fc6 9192000-04-23 Mark Mitchell <mark@codesourcery.com>
920
9517f453 921 * sort.c (sort_pointers): Fix endianness bugs.
922
85993fc6 923 * sort.c: New file.
924 * Makefile.in (CFILES): Add sort.c
925 (REQUIRED_OFILES): Add sort.o.
926 (sort.o): New target.
927
c9b2f47c 9282000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
929
930 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
931 4.3BSD systems.
932
2b3dbc20 933Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
934
935 * hashtab.c: Various minor cleanups.
936 (htab_find_slot_with_hash): INSERT is now enum insert_option.
937 (htab_find_slot): Likewise.
938
6ea8a864 9392000-04-16 Dave Pitts <dpitts@cozx.com>
940
941 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 942
105211e5 9432000-04-05 Richard Henderson <rth@cygnus.com>
944
945 * splay-tree.c (splay_tree_remove): New.
946
7669680f 9472000-03-30 Mark Mitchell <mark@codesourcery.com>
948
949 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
950 codes.
951 (htab_find_with_hash): Likewise.
952 (htab_find_slot_with_hash): Likewise.
ec255163 953
07c797e3 9542000-03-29 Zack Weinberg <zack@wolery.cumb.org>
955
956 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
957 unless it will be used. Rearrange loop for better
958 optimization.
959 (higher_prime_number): Add static prototype.
960
8ef1b8d1 961Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
962
963 * Makefile.in (partition.o): Depend on config.h
964
ed26da85 9652000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
966
967 * hashtab.c (find_empty_slot_for_expand): New function.
968 (htab_expand): Use it instead of htab_find_slot.
969 (htab_find_with_hash): Renamed from htab_find; now accepts extra
970 argument HASH.
971 (htab_find_slot_with_hash): Likewise for htab_find_slot.
972 (htab_find): New wrapper function.
973 (htab_find_slot): Likewise.
974 (htab_traverse): Pass slot, not entry, to called function.
975
dadde703 9762000-03-09 Alex Samuel <samuel@codesourcery.com>
977
978 * Makefile.in (CFILES): Add partition.c.
979 (REQUIRED_OFILES): Add partition.o.
980 (partition.o): New rule.
981 * partition.c: New file.
ec255163 982
3fdd387a 9832000-03-09 Zack Weinberg <zack@wolery.cumb.org>
984
985 * hashtab.c (htab_create): Set del_f.
986 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
987 Use it.
988
07c967f9 9892000-03-08 Zack Weinberg <zack@wolery.cumb.org>
990
991 * hashtab.c: Remove debugging variables (all_searches,
992 all_collisions, all_expansions). Delete
993 all_hash_table_collisions.
994 (create_hash_table, delete_hash_table, empty_hash_table,
995 find_hash_table_entry, remove_element_from_hash_table_entry,
996 clear_hash_table_slot, traverse_hash_table, hash_table_size,
997 hash_table_elements_number, hash_table_collisions): Rename to:
998 htab_create, htab_delete, htab_empty, htab_find_slot,
999 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
1000 htab_elements, htab_collisions.
1001 (htab_find): New function, handles common case where you don't
1002 plan to add or delete an entry.
1003 (htab_expand): Don't create a whole new table, just a new
1004 entry vector.
1005 (htab_find_slot): Simplify logic.
1006
1f33a375 10071999-08-03 Ian Lance Taylor <ian@zembu.com>
1008
1009 * floatformat.c: Add casts to avoid signed/unsigned warnings.
1010 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
1011
1012 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
1013 $(TARGETLIB)n so it works on MSDOS.
1014 (install_to_tooldir): Likewise.
1015
10161999-07-21 Ian Lance Taylor <ian@zembu.com>
1017
1018 From Mark Elbrecht:
1019 * makefile.dos: Remove; obsolete.
1020 * configure.bat: Remove; obsolete.
1021
10221999-07-11 Ian Lance Taylor <ian@zembu.com>
1023
1024 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1025 warning.
1026
b99e5aef 10272000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1028
1029 * pexecute.c: Conditionally include string.h.
07c967f9 1030 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 1031
6d93ad38 10322000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1033
1034 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
1035 we're using gcc.
1036
1037 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
1038
59dfb43e 10391999-12-27 Geoff Keating <geoffk@cygnus.com>
1040
1041 * vasprintf.c (int_vasprintf): Don't re-read the format character
1042 as this mishandles strings like '%%s'.
1043
b04bbebb 10441999-12-05 Mark Mitchell <mark@codesourcery.com>
1045
1046 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
1047 rather than struct splay_tree_node.
1048 (splay_tree_insert): Use struct splay_tree_s rather than struct
1049 splay_tree.
1050
d7f8de75 1051Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
1052
1053 * hashtab.c (sys/types.h): File included.
1054
7202ac7d 10551999-11-22 Jason Merrill <jason@casey.cygnus.com>
1056
1057 * strtoul.c, strtol.c, random.c: Remove advertising clause from
1058 BSD license, pursuant with
1059
1060 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
1061
bd41a79e 1062Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
1063
1064 * hashtab.c: Include stdio.h.
1065
b77d3fd0 1066Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
1067
1068 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
1069
1b4391fe 1070Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
1071
1072 * xstrdup (sys/types.h): Include this file.
1073
4bc57096 10741999-10-28 Nathan Sidwell <nathan@acm.org>
1075
1076 * Makefile.in (SUBDIRS): New macro.
1077 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
1078 avoid multiple subdirectory cleaning.
1079 (*-subdir): Use SUBDIRS.
1080
9087cad2 10811999-10-25 Jim Kingdon <http://developer.redhat.com/>
1082
1083 * cplus-dem.c: Move declarations of standard_symbol_characters and
1084 hp_symbol_characters inside #ifdef MAIN to avoid compiler
1085 warnings.
1086
21a7d507 10871999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
1088
1089 * hashtab.c (find_hash_table_entry): When returning a
1090 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
1091 (clear_hash_table_slot): New function which deletes an entry
1092 by its position in the table, not its value.
1093 (traverse_hash_table): New function which calls a hook
1094 function for every live entry in the table.
1095
42c870f1 10961999-10-19 Mark Mitchell <mark@codesourcery.com>
1097
1098 * cplus-dem.c (INTBUF_SIZE): New macro.
1099 (string_append_template_idx): New function.
1100 (demangle_expression): Likewise.
1101 (demangle_integral_value): Use it.
1102 (demangle_real_value): New function, split out from ...
1103 (demangle_template_value_parm): ... here. Use
1104 string_append_template_idx. Use demangle_real_value.
1105 (demangle_template): Use string_append_template_idx.
1106 (demangle_qualified): Use consume_count_with_underscores.
1107 (get_count): Tweak formatting.
1108 (do_type): Use string_append_template_idx.
07c967f9 1109
33b090eb 11101999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1111
1112 * calloc.c: Add a public domain notice.
1113
9879c2ce 1114Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
1115
1116 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
1117
5da6c26f 1118Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
1119
1120 * Makefile.in (CFILES): Add hashtab.c
1121 (REQUIRED_OFILES): Add hashtab.o
1122 (hashtab.o): Add dependencies.
1123 * hashtab.c: New file
1124
be42b79e 1125Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
1126
1127 * basename.c (DIR_SEPARATOR): New macro.
1128 (DIR_SEPARATOR_2): Likewise.
1129 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
1130 (IS_DIR_SEPARATOR): Likewise.
1131 (main): Handle MSDOS style pathname.
1132
6c65e8d7 11331999-10-11 Mark Mitchell <mark@codesourcery.com>
1134
1135 * cplus-dem.c (do_type): Handle pointer to member types whose
1136 enclosing classes have namespace scope.
1137
278929f3 1138Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
1139
1140 * config.table: Provide a backup shell for executing move-if-change.
1141
a7599ac8 11421999-10-02 Mark Mitchell <mark@codesourcery.com>
1143
1144 * xmalloc.c (xmalloc): Fix spelling error.
1145 (xcalloc, xrealloc): Likewise.
1146
4d84eafd 11471999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1148
1149 * cplus-dem.c (fancy_abort, demangle_integral_value,
1150 demangle_arm_hp_template, recursively_demangle,
1151 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
1152 (program_name, program_version, fatal): Constify a char*.
1153 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
1154 (main): Call return, not exit.
1155
8f376364 11561999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1157
1158 * choose-temp.c: Remove obsolete comment about gcc.
1159 (make_temp_file): Constify a char*.
1160
3a4fff76 1161Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1162
1163 * xmemdup.c: Include sys/types.h.
1164
7570bccb 11651999-09-07 Jeff Garzik <jgarzik@pobox.com>
1166
1167 * xmemdup.c: New xmemdup function.
1168 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
1169
b50c7be3 1170Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
1171
07c967f9 1172 * config.table: Add openedition target.
b50c7be3 1173 * config/mh-openedition: New file.
1174
fd0c1d22 1175Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
1176
1177 * pexecute.c (pexecute): Fill in temp_base when needed.
1178
be342bf0 11791999-08-31 Richard Henderson <rth@cygnus.com>
1180
1181 * getpwd.c: Check HAVE_GETCWD before defining it away.
1182
71774460 11831999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1184
1185 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
1186 (REQUIRED_OFILES): Add getpwd.o.
1187 (getpwd.o): Add target.
1188
1189 * configure.in (AC_PREREQ): Bump to 2.13.
1190 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
1191
1192 * getpwd.c: New file, moved here from gcc.
1193
ac126d82 11941999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1195
1196 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
1197 comparing against a signed quantity.
1198 (arm_special): Likewise.
1199 (demangle_fund_type): Likewise.
1200 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 1201 ATTRIBUTE_UNUSED.
ac126d82 1202 (main): Constify variable `valid_symbols'.
1203
4f3b4661 1204Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
1205
1206 * strtoul.c (strtoul): Add parentheses around && within ||.
1207
f92ff492 1208Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
1209
1210 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
1211 libdir, libsubdir and tooldir.
1212
a9f46aed 12131999-08-01 Mark Mitchell <mark@codesourcery.com>
1214
1215 * splay-tree.c (splay_tree_insert): Return the new node.
1216
db081298 12171999-07-14 Richard Henderson <rth@cygnus.com>
1218
07c967f9 1219 * argv.c: Include stdlib.h and string.h instead of
db081298 1220 prototyping directly.
1221 * choose-temp.c: Conditionally include string.h.
1222
e5aa3a54 12231999-07-12 Jason Merrill <jason@yorick.cygnus.com>
1224
1225 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
1226
4ef402f7 12271999-07-11 Ian Lance Taylor <ian@zembu.com>
1228
1229 * splay-tree.c (splay_tree_insert): Add initialization to avoid
1230 warning.
1231
d65034bd 12321999-07-07 Jason Merrill <jason@yorick.cygnus.com>
1233
1234 * Makefile.in (needed-list): Only include stuff we actually need
1235 for libstdc++.
1236
18912799 12371999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1238
1239 * configure.in (checkfuncs): Add gettimeofday.
1240 * config.in, configure: Regenerated.
1241
d96f58b6 1242Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
1243
1244 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
1245 the test fails.
1246 * configure: Regenerate.
1247
4248b202 12481999-06-10 Mike Stump <mrs@wrs.com>
1249
1250 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
1251 parallel builds.
1252
3c243ded 12531999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1254
1255 * putenv.c: Include ansidecl.h to define `const'.
1256 * setenv.c: Likewise.
1257
654c70ae 1258Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1259
34f75864 1260 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1261 * configure.in (funcs): Add putenv and setenv.
1262 (AC_CHECK_FUNCS): Check for putenv and setenv.
1263 * configure: Rebuilt.
1264 * putenv.c setenv.c: New files.
1265
654c70ae 1266 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1267 bytes of space using malloc.
1268
41980611 1269Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1270
1271 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1272 the *mangled pointer beyond the end of the string. Clean up code to
1273 match prevailing coding style.
1274
08b8ada9 12751999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1276
1277 * tmpnam.c (L_tmpnam): Fix typo.
1278
2fb1c6e9 1279Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1280
1281 * cplus-dem.c (standard_symbol_characters): Renamed from
1282 standard_symbol_alphabet. No longer modify TABLE.
1283 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1284 modify TABLE.
1285 (main): Corresponding changes. Use strchr to determine if a
1286 character is valid.
1287
25398e41 12881999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1289
1290 * cplus-dem.c (main): Use table lookup to distinguish identifier
1291 characters from non-identifier characters.
1292 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1293
29723d26 1294Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1295
1296 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1297 * getruntime.c: Only attempt to include sys/resource.h and
1298 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1299 are defined.
1300
dde96550 1301Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1302
1303 * configure.in (alloca detection): Handle alloca directly for interix.
1304 * configure: Rebuilt.
1305
e98ba651 1306Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1307
1308 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1309
3460a017 13101999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1311
1312 Fix from Dale Hawkins:
07c967f9 1313 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 1314 reallocated properly if we use it again.
1315
1316 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1317 stricter about syntax. Always null-terminate string.
1318
b01c0955 1319Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1320
1321 * configure.in (checkfuncs): Check for sbrk.
1322 * config.in: Rebuilt.
1323 * configure: Likewise.
1324 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1325
87c2e884 13261999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1327
1328 Fix from Marcus Daniels:
1329 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1330 identifier looking for another underscore.
1331
16b8e80f 1332Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1333
1334 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1335 * xmalloc.c: Likewise.
1336 (xcalloc): UWIN has sbrk.
1337 (xrealloc): Fix guard macro.
1338
4d0cfb7e 13391999-04-11 Richard Henderson <rth@cygnus.com>
1340
1341 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1342 or <alloca.h>.
1343 * clock.c (GNU_HZ): New definition.
1344 (clock): Use it.
1345 * getruntime.c: Likewise.
1346
1347 * config.table: Use mh-beos.
1348 * config/mh-beos: New file.
1349
0dc64970 13501999-04-11 Mark Mitchell <mark@codesourcery.com>
1351
1352 * cplus-dem.c (demangle_template_value_parm): Handle
1353 pointers-to-members.
1354 (do_type): Handle template parameters as qualifiers.
1355
9fec6063 13561999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1357
1358 * cplus-dem.c: Attempt to handle overflows in counts with some
1359 semblance of grace.
1360 (consume_count): Detect overflows. Return -1 to indicate errors,
1361 instead of zero.
1362 (demangle_template_value_parm, demangle_template): Handle change
1363 to consume_count's return convention.
1364
715f424c 13651999-04-05 Tom Tromey <tromey@cygnus.com>
1366
1367 * testsuite/regress-demangle: New file.
1368 * testsuite/demangle-expected: New file.
1369
1370 * Makefile.in (all, check, installcheck, info, install-info,
1371 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1372 distclean, maintainer-clean, realclean): Depend on corresponding
1373 `-subdir' target.
1374 (all-subdir check-subdir installcheck-subdir info-subdir
1375 install-info-subdir clean-info-subdir dvi-subdir
1376 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1377 distclean-subdir maintainer-clean-subdir): New target.
1378 * testsuite/Makefile.in: New file.
1379 * configure: Rebuilt.
1380 * configure.in: Create testsuite/Makefile.
1381
71c5948c 13821999-04-02 Mark Mitchell <mark@codesourcery.com>
1383
1384 * splay-tree.h (splay_tree_compare_pointers): Define.
1385
d1264606 13861999-03-30 Mark Mitchell <mark@codesourcery.com>
1387
1388 * splay-tree.c (splay_tree_compare_ints): Define.
1389
6fd618e7 13901999-03-30 Tom Tromey <tromey@cygnus.com>
1391
1392 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1393 don't advance input pointer.
1394 (demangle_class_name): If consume_count didn't find a count, do
1395 nothing. Don't bother with `strlen' sanity check; consume_count
1396 does it for us.
1397
bdaa26ad 13981999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1399
1400 From Art Haas <ahaas@neosoft.com>:
1401 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1402 when doing arm or hp style.
1403 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 1404
d267f778 1405Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1406
1407 * pexecute.c (__CYGWIN32__): Rename to
1408 (__CYGWIN__): this.
1409 * xmalloc.c: Likewise.
1410
1411 Changes to support i386-pc-uwin.
1412 * configure.in (*-*-uwin*): Workaround for vfork bug.
1413 * configure: Regenerate.
1414 * pexecute.c (pexecute): Be like standard Unix.
1415 (pwait): Likewise.
1416 * xmalloc.c (first_break): Define.
1417 (xmalloc_set_program_name): Use.
1418 (xmalloc): Use.
1419
90405950 1420Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1421
1422 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1423
bdaa26ad 1424Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1425
1426 * config.table: Check cygwin*, not cygwin32*.
1427
e6ed8194 1428Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1429
1430 * Makefile.in: Change mkstemp -> mkstemps.
1431
301e59c9 1432Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1433
1434 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1435 * configure.in (funcs): Check for and conditionally add mkstemps to
1436 the list of functions libiberty will provide.
1437 * configure: Rebuilt.
07c967f9 1438
89e305f9 1439Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1440
07c967f9 1441 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 1442 platforms that don't have HZ.
1443 * getruntime.c (HZ): Likewise.
1444
ecfe64e7 1445Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1446
1447 * Makefile.in (xstrdup.o): Depend on config.h.
1448
2e5e2114 1449Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1450
1451 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1452 freeing it.
1453
6aa62a59 1454Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1455
1456 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1457
bdaa26ad 1458Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1459
1460 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1461 splay-tree.o.
1462
14631999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1464
1465 * configure.in: Require autoconf 2.12.1 or higher.
1466
9e1ed734 14671998-12-30 Michael Meissner <meissner@cygnus.com>
1468
1469 * random.c (NULL): Don't redefine NULL if it is already defined.
1470
7c8c70e9 1471Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1472
1473 * argv.c (buildargv): Cast the result of alloca in assignment.
1474
1475 * choose-temp.c: Include stdlib.h.
2e5e2114 1476
7c8c70e9 1477 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 1478 (snarf_numeric_literal): Constify first parameter.
1479 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1480 int, not a char.
7c8c70e9 1481 (demangle_qualifier): Likewise.
1482 (demangle_signature): Cast the argument of a ctype function to
1483 unsigned char.
1484 (arm_pt): Add parens around assignment used as truth value.
1485 (demangle_arm_hp_template): Constify variable `args'.
1486 (do_hpacc_template_const_value): Cast the argument of a ctype
1487 function to unsigned char.
1488 (do_hpacc_template_literal): Remove unused variable `i'.
1489 (snarf_numeric_literal): Constify parameter `args'.
1490 Cast the argument of a ctype function to unsigned char.
1491
1492 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 1493 avoid ambiguous `else'.
2e5e2114 1494
7c8c70e9 1495 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 1496 `cstart' and `cend' to unsigned char. Cast the argument of macro
1497 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 1498
1499 * objalloc.c (free): Add prototype.
1500
9070a37e 1501Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1502
1503 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1504
bdaa26ad 1505Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1506
1507 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 1508 doesn't exist.
bdaa26ad 1509 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 1510
0a5a5994 1511Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1512
1513 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1514 bumping the pointer we read from. Also prepend these codes,
1515 as we do in other places.
1516
bdaa26ad 15171998-12-18 Nick Clifton <nickc@cygnus.com>
1518
1519 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1520 'const char *' in order to match its usage when calling siblings.
1521 (snarf_numeric_literal): Make first arg 'const char **' in order
1522 to match usage.
4ed77eec 1523
50cbddd6 1524Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1525
4ed77eec 1526 * choose-temp.c: Don't check IN_GCC anymore.
1527
1528 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1529 * memchr.c (memchr): Likewise.
1530 * memcpy.c (memcpy): Likewise.
1531 * memmove.c (memmove): Likewise.
2e5e2114 1532
4ed77eec 1533 * mkstemp.c: Don't check IN_GCC anymore.
1534 * pexecute.c: Likewise.
1535 * splay-tree.c: Likewise.
2e5e2114 1536
4ed77eec 1537 * strchr.c (strchr): Use `const', not `CONST'.
1538 * strrchr.c (strrchr): Likewise.
1539 * strtol.c (strtol): Likewise.
1540 * strtoul.c (strtoul): Likewise.
1541
f75dc4de 1542Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1543 Elena Zannoni <ezannoni@cygnus.com>
1544 Stan Shebs <shebs@cygnus.com>
1545 Edith Epstein <eepstein@cygnus.com>
1546 Andres MacLeod <amacleod@cygnus.com>
1547 Satish Pai <pai@apollo.hp.com>
1548
1549 * HP aCC demangling support.
1550 * cplus-dem.c
1551 (main): Remove default to HP style demangling, set to EDG
9f21bac8 1552 demangling correctly when -edg specified; set the demangling style
1553 when user specifies 'edg'. Set strip_underscore to
1554 prepends_underscore, if not HPUXHPPA. Set
1555 current_demangling_style to hp_demangling if HPUXHPPA. Set
1556 current demangling style correctly if the switch is hp. Read
1557 label correctly also in the HP style case.
f75dc4de 1558 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 1559 function.
f75dc4de 1560 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 1561 style for this case is the same as ARM.
f75dc4de 1562 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1563 (demangle_arm_hp_template): new function. (It was
9f21bac8 1564 demangle_arm_pt.); check and set value of temp_start field in
1565 multiple places. Also, when ceching for end of template args,
1566 check to see if at end of static member of template class.
f75dc4de 1567 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 1568 include template args in string defining class.
f75dc4de 1569 (demangle_class_name): use demangel_arm_hp_template.
1570 (demangle_function_name): handle case where demangling style is
9f21bac8 1571 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1572 Handle EDG_DEMANGLING style. Handle constructor and destructor
1573 ops for HP style.
f75dc4de 1574 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 1575 styles. global destructor and constructor for HP style are same
1576 as for ARM style. Same for local variables.
f75dc4de 1577 (demangle_qualified): handle EDG_DEMANGLING style.
1578 (demangle_signature): add case for volatile member function. For
9f21bac8 1579 cases '1' - '9' : initialize the temp_start field to -1 and handle
1580 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1581 and AUTO_DEMANGLING styles. If expecting a function and managed
1582 to demangle the funct args, then handle the LUCID_DEMANGLING,
1583 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1584 class name after "Lnnn_ in HP style case. HP style too needs to
1585 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 1586 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 1587 value param for HP/aCC.
f75dc4de 1588 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 1589 literal parameter for HP aCC.
f75dc4de 1590 (recursively_demangle): new function
1591 (snarf_numeric_literal): new function.
1592 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 1593 to message.
f75dc4de 1594
a5c56042 1595Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1596
1597 * pexecute.c: Remove obsolete ifdefed cygwin code.
1598
4ae63959 1599Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1600
1601 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1602 * cplus-dem.c: Likewise. Conform to libiberty.h.
1603 * pexecute.c: Likewise.
1604 * splay-tree.c: Likewise.
1605
b41b6b67 16061998-11-25 Mike Stump <mrs@wrs.com>
1607
1608 * Makefile.in (splay-tree.o): Add config.h dependency.
1609
a1dd5bff 1610Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1611
1612 * configure.in: Use AC_PREREQ(2.12.1).
1613
d54546fb 16141998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1615
07c967f9 1616 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 1617
9fdb1080 1618Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1619
1620 * mpw.c (mpw_access): Add missing parens.
1621
1ed7db2f 1622Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1623
1624 * configure.in: Call AC_HEADER_SYS_WAIT.
1625
1626 * pexecute.c: Include sys/wait.h when !IN_GCC.
1627
bdaa26ad 1628Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1629
1630 * pexecute.c: revert back to checking old Cygwin
1631 preprocessor symbol until some time has passed.
1632
1633Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1634
1635 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1636 since it will now support similar constructs.
1637
34fa8831 1638Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1639
1640 * configure.in: Check for calloc.
1641
1642 * calloc.c: New file.
1643
1644 * xmalloc.c (xcalloc): New function.
1645
75ebb412 1646Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1647
1648 *cplus-dem.c (demangle_prefix): Use the last "__"
1649 in the mangled name when looking for the signature. This allows
1650 template names to begin with "__".
1651
5b546829 16521998-11-08 Mark Mitchell <mark@markmitchell.com>
1653
73bea962 1654 * cplus-dem.c (type_kind_t): Add tk_reference.
1655 (demangle_template_value_parm): Handle it.
1656 (do_type): Use it for references, instead of tk_pointer.
1657
5b546829 1658 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1659 not internal_cplus_demangle.
1660
0e4558d2 1661Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1662
1663 * choose-temp.c: Don't include gansidecl.h.
1664 * mkstemp.c: Likewise.
1665 * pexecute.c: Likewise.
1666
7b8b8d43 1667Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1668
07c967f9 1669 * configure.in: detect cygwin* instead of cygwin32*
1670 * configure: regenerate
7b8b8d43 1671
f9a39df1 1672Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1673
1674 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 1675 whether to include config.h. Possibly include unistd.h in the
1676 !IN_GCC case. Define VFORK_STRING as a printable function call
1677 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1678 defined, include vfork.h. If VMS is defined, define vfork()
1679 appropriately. Remove vfork check on USG, we're using autoconf.
1680 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1681 locally what string to use.
f9a39df1 1682
797ba725 16831998-10-26 Mark Mitchell <mark@markmitchell.com>
1684
1685 * splay-tree.c: Tweak include directives to make sure declarations of
1686 xmalloc and free are available.
1687
3662c79b 16881998-10-25 Mark Mitchell <mark@markmitchell.com>
1689
1690 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1691 anonymous namespaces.
2e5e2114 1692
af5199c0 16931998-10-23 Mark Mitchell <mark@markmitchell.com>
1694
1695 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1696 with type_quals.
1697 (TYPE_UNQUALIFIED): New macro.
1698 (TYPE_QUAL_CONST): Likewise.
1699 (TYPE_QUAL_VOLATILE): Likewise.
1700 (TYPE_QUAL_RESTRICT): Likewise.
1701 (code_for_qualifier): New function.
1702 (qualifier_string): Likewise.
1703 (demangle_qualifier): Likewise.
1704 (internal_cplus_demangle): Use them.
1705 (demangle_signature): Likewise.
1706 (demangle_template_value_parm): Likewise.
1707 (do_type): Likewise.
1708 (demangle_fund_type)): Likewise.
3662c79b 1709
e61da89d 1710Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1711
1712 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1713 to match prototype.
1714
9a4eb61d 17151998-10-21 Mark Mitchell <mark@markmitchell.com>
1716
1717 * splay-tree.c: New file.
1718 * Makefile.in (CFILES): Add it.
1719 (REQUIRED_OFILES): Likewise.
1720 (splay-tree.o): Add dependencies.
1721
e5d3a45b 1722Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1723
1724 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1725 range of 'K' index.
1726
4350e959 1727Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1728
1729 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1730
1731 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1732 `unsigned char'.
1733 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1734 comparing against one.
1735 (cplus_mangle_opname): Likewise.
1736 (demangle_integral_value): Cast argument of ctype macro to
1737 `unsigned char'.
1738 (demangle_template_value_parm): Likewise.
1739 (demangle_template): Initialize variable `bindex'. Cast the
1740 result of `strlen' to (int) when comparing against one. Remove
1741 unused variable `start_of_value_parm'.
1742 (demangle_class_name): Cast the result of `strlen' to (int) when
1743 comparing against one.
1744 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1745 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1746 when comparing against one.
1747 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1748 (get_count): Likewise.
1749 (do_type): Likewise. Cast the result of `strlen' to (int) when
1750 comparing against one.
1751 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1752 (demangle_function_name): Cast the result of `strlen' to (int)
1753 when comparing against one.
1754
1755 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1756 comparing against one.
1757
5dfe2c03 1758Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1759
07c967f9 1760 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1761 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1762 * config.in, configure: Rebuilt.
0be6f86d 1763
5dfe2c03 1764 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1765 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1766 * config.in, configure: Rebuilt.
1767
7b8b8d43 1768Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1769
07c967f9 1770 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 1771
68b78c88 1772Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1773
1774 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1775
804ec1bf 1776Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1777
1778 * Merge egcs & devo libiberty.
1779
7a1ec54f 1780