* Makefile.in (distclean): When cleaning, remove testsuite.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
4415a860
DD
12000-12-07 Mike Stump <mrs@wrs.com>
2
3 * Makefile.in (distclean): When cleaning, remove testsuite.
4
849ee224
DD
52000-12-05 Jason Merrill <jason@redhat.com>
6
7 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
8 name before allocating the dyn_string.
9
e49a569c
DD
102000-12-05 Jason Merrill <jason@redhat.com>
11
12 * cp-demangle.c: s/new_abi/v3/.
13 * cplus-dem.c: Likewise.
14 (current_demangling_style): Now auto_demangling.
15 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
16 (main): Use standard symbol chars for auto_demangling.
17
5ca0f83d
DD
182000-11-29 Mark Mitchell <mark@codesourcery.com>
19
20 * hashtab.c (higher_prime_number): Use a table, rather than a
21 seive, to find the next prime.
22
2ea7befd
DD
232000-11-29 Zack Weinberg <zack@wolery.stanford.edu>
24
25 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
26 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
27 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
28 argument form of AC_DEFINE in dummy definitions block. Use
29 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
30 in dummy block. Preload cache variables instead of bypassing
31 tests, where possible.
32 * acconfig.h: Removed.
33 * xmalloc.c (xmalloc_failed): New function, does error
34 reporting on failed allocation.
35 (xmalloc, xcalloc, xrealloc): Use it.
36
9c26dc82
HPN
372000-11-22 H.J. Lu <hjl@gnu.org>
38
39 * cplus-dem.c (main): Handle gnat_demangling.
40
f1775526
HPN
412000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
42
43 * cplus-dem.c (cplus_demangle): Fix formatting.
44 (grow_vect): Ditto.
45 (ada_demangle): Ditto.
46 (internal_cplus_demangle): Ditto.
47 (mop_up): Ditto.
48
492000-11-21 H.J. Lu <hjl@gnu.org>
50
51 * cplus-dem.c (main): Handle java_demangling.
52
532000-11-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
54
55 * cplus-dem.c (grow_vect): Prototype.
56 (ada_demangle): Cast the arg of ctype macros to unsigned char.
57
5dd42ef4
HPN
582000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
59
60 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
61 parameter `option'.
62
296731c1
DD
632000-11-15 Kenneth Block <kenneth.block@compaq.com>
64
8944fb9d 65 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
66 be used in GCC.
67
6e53a714 682000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 69
5dd42ef4 70 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
71 list.
72
99a4c1bd
HPN
732000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
74
75 * hashtab.c (htab_expand): Change to return int. Use calloc or
76 xcalloc depending on htab->return_allocation_failure. Return zero
77 if calloc fails.
78 (htab_create): Update comment to cover memory allocation.
79 (htab_try_create): New.
80 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
81 Update comment to cover this.
82
e0f3df8f
HPN
832000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
84
85 * hashtab.c: Change void * to PTR where necessary.
86 (htab_create, htab_expand): Correct formatting of comment before
87 function.
88
59666b35
DD
892000-10-23 Alex Samuel <samuel@codesourcery.com>
90
91 * cp-demangle.c (string_list_def): Add caret_position and comments.
92 (result_caret_pos): New macro.
93 (result_append_string): Rename to...
94 (result_add_string): ... this, and insert at caret position.
95 Rename throughout.
96 (result_append): Rename to...
97 (result_add): ... this, and insert at caret position. Rename
98 throughout.
99 (result_append_char): Rename to...
100 (result_add_char): ... this, and insert at caret position. Rename
101 throughout.
102 (result_append_space): Remove.
103 (string_list_new): Initialize caret position.
104 (result_add_separated_char): Use caret position.
105 (result_get_caret): New funtion.
106 (result_set_caret): Likewise.
107 (result_shift_caret): Likewise.
108 (result_previous_char_is_space): Likewise.
109 (substitution_start): Use caret position.
110 (substitution_add): Likewise.
111 (demangling_new): Initialize caret position.
112 (demangle_encoding): Use caret position.
113 (demanglin_nested_name): Put CV qualifiers after name.
114 (demangle_type_ptr): Use switch statement. Handle pointers to
115 arrays. Don't use result_append_space. Use caret position.
116 (demangle_type): Emit CV qualifiers after underlying type. Adjust
117 call to demangle_array_type.
118 (demangle_array_type): Add parameter to handle pointers to arrays.
119
74bcd529
DD
1202000-10-11 DJ Delorie <dj@redhat.com>
121
122 Merge from gcc, all 2000-10-11 entries below
123
1242000-10-11 Mark Mitchell <mark@codesourcery.com>
125
126 * splay-tree.c (splay_tree_insert): Fix formatting.
127
1282000-10-11 Mark Mitchell <mark@codesourcery.com>
129
130 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
131
1322000-10-11 Mark Mitchell <mark@codesourcery.com>
133
134 * splay-tree.c (splay_tree_predecessor): New function.
135 (splay_tree_successor): Likewise.
136
1372000-10-11 Alex Samuel <samuel@codesourcery.com>
138
139 * cp-demangle.c: Fix copyright banner.
140
1412000-10-11 Alex Samuel <samuel@codesourcery.com>
142
143 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
144 (demangle_type): Handle substitution candidates correctly in the
145 face of special substitutions.
146
1472000-10-11 Alex Samuel <samuel@codesourcery.com>
148
149 * cp-demangle.c (demangle_encoding): Rename variable.
150 (demangle_name): Rename parameter. Handle return type
151 suppression.
152 (demangle_nested_name): Rename parameter.
153 (demangle_prefix): Likewise. Change return type suppression.
154 (demangle_unqualified_name): Add parameter. Flag constructors and
155 conversion operators.
156 (demangle_special_name): Fix comment.
157 (demangle_type): Rename variable.
158 (demangle_bare_function_type): Check for missing return type and
159 parameter.
160 (demangle_class_enum_type): Rename parameter.
161 (demangle_discriminator): Fix misspelling in comment.
162
1632000-10-11 Alex Samuel <samuel@codesourcery.com>
164
165 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
166 <expression>.
167
1682000-10-11 Alex Samuel <samuel@codesourcery.com>
169
170 * cp-demangle.c (demangle_type_ptr): Increment position past
171 pointer and reference characters.
172
1732000-10-11 Alex Samuel <samuel@codesourcery.com>
174
175 * cp-demangle.c (demangle_nv_offset): New function.
176 (demangle_v_offset): Likewise.
177 (demangle_call_offset): Likewise.
178 (demangle_special_name): Update thunk demangling to comply with
179 ABI changes.
180
1812000-10-11 Alex Samuel <samuel@codesourcery.com>
182
183 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
184 (substitution_def): Remove template_parm_number.
185 (NOT_TEMPLATE_PARM): Remove.
186 (result_insert_string): New macro.
187 (result_insert): Likewise.
188 (result_insert_char): Likewise.
189 (substitution_add): Remove last parameter. Don't store template
190 parm number.
191 (BFT_NO_RETURN_TYPE): Define as NULL.
192 (demangle_encoding): Adjust call to demangle_bare_function_type.
193 (demangle_name): Adjust substitution. Adjust call to
194 substitution_add.
195 (demangle_prefix): Adjust call to substitution_add.
196 (demangle_identifier): Handle anonymous namespaces.
197 (demangle_operator_name): Change demangling of vendor-extended
198 operator to match ABI changes.
199 (demangle_type_ptr): Change parameters. Make recursive. Handle
200 substitutions here.
201 (demangle_type): Adjust calls to demangle_template_param,
202 substitution_add, and demangle_type_ptr. Fix substitution of
203 templated types.
204 (demangle_function_type): Change parameter to a pointer.
205 (demangle_bare_function_type): Likewise. Adjust insertion point.
206 (demangle_template_param): Remove last parameter.
207 (demangle_expr_primary): Remove unused variable. Adjust call to
208 demangle_template_param.
209 (is_mangled_char): Accept `$' and `.'.
210 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
211 * dyn-string.c (dyn_string_insert_char): New function.
212
2132000-10-11 Richard Henderson <rth@cygnus.com>
214
215 * Makefile.in (md5.o): Depend on config.h.
216
2172000-10-11 Alex Samuel <samuel@codesourcery.com>
218
219 * cp-demangle.c (demangle_name): Initialize template_p in local
220 name case. Don't re-add substitutions as candidates.
221 (demangle_nested_name): Use <unqualified-name>.
222 (demangle_prefix): Likewise. Don't add template names as
223 substitution candidates twice, or re-add a substitution or the
224 last prefix component.
225 (demangle_local_name): Adjust output format.
226
2272000-10-11 Alex Samuel <samuel@codesourcery.com>
228
229 * cp-demangle.c (result_add_separated_char): Change parameter to
230 int.
231 (substitution_add): Don't check for duplicates. Check if
232 previously allocated size is zero.
233 (demangle_name): Remove duplicate check for std substitution.
234 Clear template flag appropriately.
235 (demangle_prefix): Remove argument to demangle_substitution.
236 Don't check that template flag is already set.
237 (demangle_operator_name): Add pt operator.
238 (demangle_type): Don't treat r as built-in type. Remove argument
239 to demangle_substitution. Fix substitution candidate mechanics.
240 Handle <template-template-parm>s. Improve comments.
241 (demangle_template_param): Don't handle template arg lists here.
242 (demangle_substitution): Remove parameter.
243 (print_usage): Remove extra fprintf option.
244
2452000-10-11 Greg McGary <greg@mcgary.org>
246
247 * libiberty/random.c (end_ptr): Revert previous change.
248
2492000-10-11 Greg McGary <greg@mcgary.org>
250
251 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
252 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
253 * libiberty/random.c (end_ptr): Likewise.
254
2552000-10-11 Alex Samuel <samuel@codesourcery.com>
256
257 * cp-demangle.c (result_close_template_list): Remove function.
258 (result_add_separated_char): New function.
259 (result_open_template_list): New macro.
260 (result_close_template_list): Likewise.
261 (demangle_prefix): Don't set template_p if the
262 prefix ends with a ctor name.
263 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
264 (demangle_type): Check for template args after substitution.
265 (demangle_template_args): Use result_open_template_list.
266
2672000-10-11 Zack Weinberg <zack@wolery.cumb.org>
268
269 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
270
2712000-10-11 RodneyBrown <RodneyBrown@pmsc.com>
272
273 Jeff Law <law@cygnus.com>
274 * getcwd.c: Include string.h, stdlib.h for prototypes
275 * Makefile.in (rename.o, waitpid.o): Depend on config.h
276 * rename.c: Include config.h, unistd.h
277 * waitpid.c: Include config.h, sys/wait.h
278
2792000-10-11 Alex Samuel <samuel@codesourcery.com>
280
281 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
282 allocating ctor mangling.
283 (demangle_array_type): Handle empty and non-constant array length.
284
2852000-10-11 Mike Stump <mrs@wrs.com>
286
287 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
288 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
289
2902000-10-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
291
292 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
293 * setenv.c (setenv): Initialize variable `ep'.
294 * sigsetmask.c (abort): Prototype.
295 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
296 __STDC__ for stdarg.h include.
297 (int_vasprintf): Prototype.
298 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
299 definition. Cast `global_total_width' in comparison.
300 (main): Prototype. Return a value.
301 * vfork.c (fork): Prototype.
302 * xexit.c: Include config.h.
303
87263c36
DD
3042000-09-25 Michael Sokolov <msokolov@ivan.Harhan.ORG>
305
306 * md5.c: #include "ansidecl.h".
307
60c64519
DD
3082000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
309
310 * splay-tree.c: #include <stdio.h>.
311
d3e85005
HPN
3122000-09-14 Hans-Peter Nilsson <hp@axis.com>
313
314 * testsuite/demangle-expected: Add two tests for anonymous
315 namespaces.
316 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
317
1dc349e5
HPN
3182000-09-10 Hans-Peter Nilsson <hp@axis.com>
319
320 * testsuite/demangle-expected: Add four tests for type_info
321 mangling.
1dc349e5
HPN
322 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
323 for a non-template non-qualified type_info function or node.
324
64e3a659
DD
3252000-08-31 DJ Delorie <dj@redhat.com>
326
327 * configure.in (Cygwin): special case cygwin only when we're
328 building cygwin, not when we're hosting cygwin.
329
6ef554e3
HPN
3302000-08-31 Hans-Peter Nilsson <hp@axis.com>
331
332 * testsuite/demangle-expected: Add nine tests for
333 underscore-after-number followed by five tests for name-signature
334 delimiter.
335
050823ca
JM
3362000-08-28 Jason Merrill <jason@redhat.com>
337
338 * Makefile.in (REQUIRED_OFILES): Add md5.o.
339 (CFILES): Add md5.c.
340 * md5.c: New file.
341
3929b9d2 3422000-07-27 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
343
344 * config/mh-openedition.h: Added -DLE370 definition.
345
a9f34fb6
JL
3462000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
347
348 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
349 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
350 Cast program to 'char *' in errmsg_arg assignment.
351 (PWAIT_ERROR): Define.
352 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
353 to DJGPP's WIF* macros.
354
90aaccd1
JL
3552000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
356 Jeff Law <law@cygnus.com>
357
443519c1
JL
358 * getcwd.c: Include string.h, stdlib.h for prototypes
359
90aaccd1
JL
360 * Makefile.in (rename.o, waitpid.o): Depend on config.h
361 * rename.c: include config.h, unistd.h
362 * waitpid.c: include config.h, sys/wait.h
363
6ef554e3
HPN
3642000-07-24 Hans-Peter Nilsson <hp@axis.com>
365
366 * cplus-dem.c (work_stuff_copy_to_from): New.
367 (delete_non_B_K_work_stuff): New.
368 (delete_work_stuff): New.
369 (mop_up): Break out work_stuff partly destruction to
370 delete_non_B_K_work_stuff.
371 (iterate_demangle_function): New.
372 (demangle_prefix): Call iterate_demangle_function instead of
373 demangle_function_name. Leave handling of name-signature
374 __-delimiters to iterate_demangle_function.
375 (demangle_integral_value): Strip an optional
376 following underscore cautiously. Handle negative numbers.
377
e8865c28
DB
3782000-07-24 Daniel Berlin <dberlin@redhat.com>
379
380 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
381 if (AUTO_DEMANGLING || GNU_DEMANGLING)
382
b1233257 3832000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
384 Jeff Law <law@cygnus.com>
385
386 * configure.in (AC_CHECK_HEADERS): Add time.h.
387 (AC_HEADER_TIME): Add check.
388 * configure, config.in: Regenerate.
389 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
390
391 * configure.in (AC_CHECK_HEADERS): Add limits.h.
392 * configure, config.in: Regenerate.
393 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
394 * strtol.c, strtoul.c: #include "config.h". Portably #include
395 <limits.h> and/or <sys/param.h>.
396 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 397
7d3ffcaf
JL
398 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
399 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
400 * configure, config.in: Regenerate.
401 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
402
b1233257
JL
403 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
404
9adf30b2
JL
4052000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
406
407 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
408 and print it with %u.
409
2ed78d1b
HPN
4102000-07-17 Hans-Peter Nilsson <hp@axis.com>
411
412 * testsuite/regress-demangle (failed test): Show result and
413 expected output.
414
0473bdf7
AH
4152000-07-07 Andrew Haley <aph@cygnus.com>
416
417 * cplus-dem.c (main): fflush() after emitting last char before
418 waiting for input.
419
03d5f569
JM
4202000-06-28 Alex Samuel <samuel@codesourcery.com>
421
422 * cp-demangle.c (demangle_encoding): Accept no substitutions.
423 (demangle_name): Handle <substitution> followed by
424 <unqualified-template-name>.
425 (demangle_type): Follow special substitutions with
426 <class-enum-type>
427 (demangle_subtitution): Set template_p for special substitutions.
428 (main): Fix typos.
429
4302000-06-27 Alex Samuel <samuel@codesourcery.com>
431
432 * cp-demangle.c (demangle_special_name): Swap base and derived
433 class when demangling construction vtables.
434
4352000-06-21 Alex Samuel <samuel@codesourcery.com>
436
437 * cp-demangle.c: Don't include ctype.h.
438 (IS_DIGIT): New macro.
439 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
440 instead of isdigit and isalpanum.
441 (demangling_def): Make name and next const pointers.
442 (STATUS_ALLOCATION_FAILED): New status code.
443 (dyn_string_append_space): Handle failure in
444 dyn_string_append_char.
445 (int_to_dyn_string): Likewise. Change return value to status_t.
446 (string_list_new): Handle failure of dyn_string_init.
447 (result_close_template_list): Change return type to status_t.
448 Handle failure in dyn_string_append.
449 (result_push): Change return value to status_t. Handle failure in
450 string_list_new. Handle failure of result_push throughout.
451 (substitution_add): Change return value to status_t. Handle
452 dyn_string failures. Handle failure of substitution_add
453 throughout.
454 (template_arg_list_new): Return NULL on allocation failure.
455 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
456 Handle error result throughout.
457 (result_append): Likewise.
458 (result_append_char): Likewise.
459 (result_append_space): Likewise.
460 (demangling_new): Make argument a const pointer. Handle
461 allocation failures.
462 (demangle_template_args): Handle failure in template_arg_list_new
463 and result_close_template_list.
464 (demangle_discriminator): Return if int_to_dyn_string fails.
465 (cp_demangle): Likewise.
466 (cp_demangle_type): New function.
467 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
468 memory allocation failure.
469 (main): Likewise.
470 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
471 IN_LIBGCC2.
472 (dyn_string_init): Change return value to int. Handle
473 RETURN_ON_ALLOCATION_FAILURE case.
474 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
475 (dyn_string_release): Delete the dyn_string.
476 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
477 (dyn_string_copy): Change return type to int.
478 (dyn_string_copy_cstr): Likewise.
479 (dyn_string_prepend): Likewise.
480 (dyn_string_prepend_cstr): Likewise.
481 (dyn_string_insert): Likewise.
482 (dyn_string_insert_cstr): Likewise.
483 (dyn_string_append): Likewise.
484 (dyn_string_append_cstr): Likewise.
485 (dyn_string_append_char): Likewise.
486 (dyn_string_substring): Likewise.
487
eb383413 4882000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 489
eb383413
L
490 * cp-demangle.c (demangle_operator_name): Add spaces before
491 names beginning with a letter: delete, delete[], new, new[],
492 sizeof.
493 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 494
eb383413
L
495Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
496
497 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
498
499Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
500
501 * cp-demangle.c (stdio.h): File included unconditionaly.
502 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
503 * dyn-string.c (stdio.h): File included.
504 * partition.c (partition_print): No `&' needed to take the address of
505 a function.
506
5072000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
508
509 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
510
511 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
512
513 * cp-demangle.c (demangle_char): Change parameter from char to int.
514 (demangle_expression, demangle_expr_primary): Remove extra
515 semi-colon in prototype.
516
517 * dyn-string.c (dyn_string_append_char): Change parameter from
518 char to int.
519
520 * memcmp.c (memcmp): Constify.
521
522 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
523 __extension__.
524
525 * partition.c (elem_compare): Prototype. Don't cast away
526 const-ness.
527
528 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
529
5302000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
531
532 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
533
534 * cp-demangle.c: Include demangle.h.
535 (template_arg_list_new): DeANSIfy.
536 (cp_demangle): Make static and add prototype.
537 (operator_code, operators): Constify.
538 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
539
5402000-06-05 Alex Samuel <samuel@codesourcery.com>
541
542 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
543 unsigned char.
544 (demangle_unqualified_name): Likewise.
545 (demangle_number_literally): Likewise.
546 (demangle_type): Likewise.
547 (demangle_substitution): Likewise.
548 (is_mangled_char): Likewise, for isalnum.
549
5502000-06-04 Alex Samuel <samuel@codesourcery.com>
551
552 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
553 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
554 (cp-demangle.o): New dependency.
555 (dyn-string.o): Likewise.
556
557 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
558
559 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
560 demangler.
561 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
562 demangling mode.
563 (gnu_new_abi_symbol_characters): New function.
564 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
565 file.
566 * cp-demangle.c: New file.
567
f03aa80d
AC
568Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
569
570 * floatformat.c: Add name to each floatformat field.
571
77bfb694
JL
572Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
573
574 * Makefile.in (objalloc.o): Depend on config.h
575
5c82d20a
ZW
5762000-05-29 Zack Weinberg <zack@wolery.cumb.org>
577
eb383413 578 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
579 if HAVE_STRING_H.
580 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
581 * objalloc.c: Include config.h. Include stdlib.h and don't
582 declare malloc or free if HAVE_STDLIB_H.
583 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
584 else declare malloc without prototype. Include string.h if
585 HAVE_STRING_H, else declare memset without prototype. Don't
586 include stddef.h.
587
eb383413
L
5882000-05-23 Mike Stump <mrs@wrs.com>
589
590 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
591 -j3.
592
5932000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
594
595 * xmalloc.c: Include config.h for HAVE_SBRK definition.
596
5972000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
598
599 * hashtab.c (hash_pointer): Delete low-order bits which are
600 probably zero, also eliminate a warning on alpha.
601
6022000-05-15 David Edelsohn <edelsohn@gnu.org>
603
604 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
605 on $(enable_shared).
606
6072000-05-10 Jakub Jelinek <jakub@redhat.com>
608
609 * config.table: Use mh-sparcpic for sparc*-*-*.
610
6112000-05-08 Nick Clifton <nickc@cygnus.com>
612
613 * Makefile.in (CFILES): Add strncmp.c.
614 (NEEDED): Add strncmp.
615
6162000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 617
eb383413
L
618 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
619 Cast the arguments to `islower' to `unsigned char'.
620 (print_demangler_list): Prototype.
621
622Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
623
624 * sort.c (UCHAR_MAX): Provide fallback definition.
625
6262000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
627
628 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
629 SUBDIRS.
630
eb383413
L
6312000-04-28 Kenneth Block <block@zk3.dec.com>
632 Jason Merrill <jason@casey.cygnus.com>
633
634 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
635 (cplus_demangle_set_style): New function for setting style.
636 (cplus_demangle_name_to_style): New function to translate name.
637
6382000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
639
640 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
641
642 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
643 (libiberty_AC_FUNC_STRNCMP): Invoke.
644
645 * strncmp.c: New file.
646
647Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
648
649 * hashtab.c (htab_expand): Add prototype.
650 (find_empty_slot_for_expand): Likewise.
651
6522000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
653
654 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
655 match prototype.
656 (htab_expand): Cast the return value of xcalloc.
657
6582000-04-24 Mark Mitchell <mark@codesourcery.com>
659
660 * hashtab.c (hash_pointer): New function.
661 (eq_pointer): Likewise.
662 (htab_hash_pointer): New variable.
663 (htab_eq_pointer): Likewise.
664
6652000-04-23 Mark Mitchell <mark@codesourcery.com>
666
667 * sort.c (sort_pointers): Fix endianness bugs.
668
669 * sort.c: New file.
670 * Makefile.in (CFILES): Add sort.c
671 (REQUIRED_OFILES): Add sort.o.
672 (sort.o): New target.
673
19be4303
JL
6742000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
675
676 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
677 4.3BSD systems.
678
eb383413
L
679Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
680
681 * hashtab.c: Various minor cleanups.
682 (htab_find_slot_with_hash): INSERT is now enum insert_option.
683 (htab_find_slot): Likewise.
684
6852000-04-16 Dave Pitts <dpitts@cozx.com>
686
687 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
688
afe36a78
RH
6892000-04-05 Richard Henderson <rth@cygnus.com>
690
691 * splay-tree.c (splay_tree_remove): New.
692
eb383413
L
6932000-03-30 Mark Mitchell <mark@codesourcery.com>
694
695 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
696 codes.
697 (htab_find_with_hash): Likewise.
698 (htab_find_slot_with_hash): Likewise.
699
7002000-03-29 Zack Weinberg <zack@wolery.cumb.org>
701
702 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
703 unless it will be used. Rearrange loop for better
704 optimization.
705 (higher_prime_number): Add static prototype.
706
b4fe2683
JM
707Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
708
709 * Makefile.in (partition.o): Depend on config.h
710
7112000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
712
713 * hashtab.c (find_empty_slot_for_expand): New function.
714 (htab_expand): Use it instead of htab_find_slot.
715 (htab_find_with_hash): Renamed from htab_find; now accepts extra
716 argument HASH.
717 (htab_find_slot_with_hash): Likewise for htab_find_slot.
718 (htab_find): New wrapper function.
719 (htab_find_slot): Likewise.
720 (htab_traverse): Pass slot, not entry, to called function.
721
7222000-03-09 Alex Samuel <samuel@codesourcery.com>
723
724 * Makefile.in (CFILES): Add partition.c.
725 (REQUIRED_OFILES): Add partition.o.
726 (partition.o): New rule.
727 * partition.c: New file.
728
7292000-03-09 Zack Weinberg <zack@wolery.cumb.org>
730
731 * hashtab.c (htab_create): Set del_f.
732 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
733 Use it.
734
7352000-03-08 Zack Weinberg <zack@wolery.cumb.org>
736
737 * hashtab.c: Remove debugging variables (all_searches,
738 all_collisions, all_expansions). Delete
739 all_hash_table_collisions.
740 (create_hash_table, delete_hash_table, empty_hash_table,
741 find_hash_table_entry, remove_element_from_hash_table_entry,
742 clear_hash_table_slot, traverse_hash_table, hash_table_size,
743 hash_table_elements_number, hash_table_collisions): Rename to:
744 htab_create, htab_delete, htab_empty, htab_find_slot,
745 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
746 htab_elements, htab_collisions.
747 (htab_find): New function, handles common case where you don't
748 plan to add or delete an entry.
749 (htab_expand): Don't create a whole new table, just a new
750 entry vector.
751 (htab_find_slot): Simplify logic.
752
08372f14
ILT
7531999-08-03 Ian Lance Taylor <ian@zembu.com>
754
755 * floatformat.c: Add casts to avoid signed/unsigned warnings.
756 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
757
758 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
759 $(TARGETLIB)n so it works on MSDOS.
760 (install_to_tooldir): Likewise.
761
9c8ac5a9
ILT
7621999-07-21 Ian Lance Taylor <ian@zembu.com>
763
764 From Mark Elbrecht:
765 * makefile.dos: Remove; obsolete.
8f36e47c 766 * configure.bat: Remove; obsolete.
9c8ac5a9 767
0c0a36a4
ILT
7681999-07-11 Ian Lance Taylor <ian@zembu.com>
769
770 * splay-tree.c (splay_tree_insert): Add initialization to avoid
771 warning.
772
7732000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
774
775 * pexecute.c: Conditionally include string.h.
b4fe2683 776 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
777
7782000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
779
780 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
781 we're using gcc.
782
783 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
784
7851999-12-27 Geoff Keating <geoffk@cygnus.com>
786
787 * vasprintf.c (int_vasprintf): Don't re-read the format character
788 as this mishandles strings like '%%s'.
789
7901999-12-05 Mark Mitchell <mark@codesourcery.com>
791
792 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
793 rather than struct splay_tree_node.
794 (splay_tree_insert): Use struct splay_tree_s rather than struct
795 splay_tree.
796
797Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
798
799 * hashtab.c (sys/types.h): File included.
800
8011999-11-22 Jason Merrill <jason@casey.cygnus.com>
802
803 * strtoul.c, strtol.c, random.c: Remove advertising clause from
804 BSD license, pursuant with
805
806 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
807
808Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
809
810 * hashtab.c: Include stdio.h.
811
812Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
813
814 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
815
816Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
817
818 * xstrdup (sys/types.h): Include this file.
819
8201999-10-28 Nathan Sidwell <nathan@acm.org>
821
822 * Makefile.in (SUBDIRS): New macro.
823 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
824 avoid multiple subdirectory cleaning.
825 (*-subdir): Use SUBDIRS.
826
8271999-10-25 Jim Kingdon <http://developer.redhat.com/>
828
829 * cplus-dem.c: Move declarations of standard_symbol_characters and
830 hp_symbol_characters inside #ifdef MAIN to avoid compiler
831 warnings.
832
8331999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
834
835 * hashtab.c (find_hash_table_entry): When returning a
836 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
837 (clear_hash_table_slot): New function which deletes an entry
838 by its position in the table, not its value.
839 (traverse_hash_table): New function which calls a hook
840 function for every live entry in the table.
841
8421999-10-19 Mark Mitchell <mark@codesourcery.com>
843
844 * cplus-dem.c (INTBUF_SIZE): New macro.
845 (string_append_template_idx): New function.
846 (demangle_expression): Likewise.
847 (demangle_integral_value): Use it.
848 (demangle_real_value): New function, split out from ...
849 (demangle_template_value_parm): ... here. Use
850 string_append_template_idx. Use demangle_real_value.
851 (demangle_template): Use string_append_template_idx.
852 (demangle_qualified): Use consume_count_with_underscores.
853 (get_count): Tweak formatting.
854 (do_type): Use string_append_template_idx.
b4fe2683 855
0c0a36a4
ILT
8561999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
857
858 * calloc.c: Add a public domain notice.
859
860Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
861
862 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
863
864Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
865
866 * Makefile.in (CFILES): Add hashtab.c
867 (REQUIRED_OFILES): Add hashtab.o
868 (hashtab.o): Add dependencies.
869 * hashtab.c: New file
870
871Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
872
873 * basename.c (DIR_SEPARATOR): New macro.
874 (DIR_SEPARATOR_2): Likewise.
875 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
876 (IS_DIR_SEPARATOR): Likewise.
877 (main): Handle MSDOS style pathname.
878
8791999-10-11 Mark Mitchell <mark@codesourcery.com>
880
881 * cplus-dem.c (do_type): Handle pointer to member types whose
882 enclosing classes have namespace scope.
883
884Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
885
886 * config.table: Provide a backup shell for executing move-if-change.
887
8881999-10-02 Mark Mitchell <mark@codesourcery.com>
889
890 * xmalloc.c (xmalloc): Fix spelling error.
891 (xcalloc, xrealloc): Likewise.
892
8931999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
894
895 * cplus-dem.c (fancy_abort, demangle_integral_value,
896 demangle_arm_hp_template, recursively_demangle,
897 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
898 (program_name, program_version, fatal): Constify a char*.
899 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
900 (main): Call return, not exit.
901
9021999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
903
904 * choose-temp.c: Remove obsolete comment about gcc.
905 (make_temp_file): Constify a char*.
906
907Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
908
909 * xmemdup.c: Include sys/types.h.
910
9111999-09-07 Jeff Garzik <jgarzik@pobox.com>
912
913 * xmemdup.c: New xmemdup function.
914 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
915
916Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
917
b4fe2683 918 * config.table: Add openedition target.
0c0a36a4
ILT
919 * config/mh-openedition: New file.
920
921Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
922
923 * pexecute.c (pexecute): Fill in temp_base when needed.
924
9251999-08-31 Richard Henderson <rth@cygnus.com>
926
927 * getpwd.c: Check HAVE_GETCWD before defining it away.
928
9291999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
930
931 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
932 (REQUIRED_OFILES): Add getpwd.o.
933 (getpwd.o): Add target.
934
935 * configure.in (AC_PREREQ): Bump to 2.13.
936 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
937
938 * getpwd.c: New file, moved here from gcc.
939
9401999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941
942 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
943 comparing against a signed quantity.
944 (arm_special): Likewise.
945 (demangle_fund_type): Likewise.
946 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 947 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
948 (main): Constify variable `valid_symbols'.
949
950Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
951
952 * strtoul.c (strtoul): Add parentheses around && within ||.
953
954Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
955
956 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
957 libdir, libsubdir and tooldir.
958
9591999-08-01 Mark Mitchell <mark@codesourcery.com>
960
961 * splay-tree.c (splay_tree_insert): Return the new node.
962
35ca97ea
RH
9631999-07-14 Richard Henderson <rth@cygnus.com>
964
b4fe2683 965 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
966 prototyping directly.
967 * choose-temp.c: Conditionally include string.h.
968
0c0a36a4
ILT
9691999-07-12 Jason Merrill <jason@yorick.cygnus.com>
970
971 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
972
af32ff69
ILT
9731999-07-11 Ian Lance Taylor <ian@zembu.com>
974
975 * splay-tree.c (splay_tree_insert): Add initialization to avoid
976 warning.
977
0c0a36a4
ILT
9781999-07-07 Jason Merrill <jason@yorick.cygnus.com>
979
980 * Makefile.in (needed-list): Only include stuff we actually need
981 for libstdc++.
982
9831999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
984
985 * configure.in (checkfuncs): Add gettimeofday.
986 * config.in, configure: Regenerated.
987
988Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
989
990 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
991 the test fails.
992 * configure: Regenerate.
993
9941999-06-10 Mike Stump <mrs@wrs.com>
995
996 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
997 parallel builds.
998
9991999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1000
1001 * putenv.c: Include ansidecl.h to define `const'.
1002 * setenv.c: Likewise.
1003
1004Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
1005
1006 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1007 * configure.in (funcs): Add putenv and setenv.
1008 (AC_CHECK_FUNCS): Check for putenv and setenv.
1009 * configure: Rebuilt.
1010 * putenv.c setenv.c: New files.
1011
1012 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1013 bytes of space using malloc.
1014
1015Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1016
1017 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1018 the *mangled pointer beyond the end of the string. Clean up code to
1019 match prevailing coding style.
1020
10211999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1022
1023 * tmpnam.c (L_tmpnam): Fix typo.
1024
1025Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1026
1027 * cplus-dem.c (standard_symbol_characters): Renamed from
1028 standard_symbol_alphabet. No longer modify TABLE.
1029 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1030 modify TABLE.
1031 (main): Corresponding changes. Use strchr to determine if a
1032 character is valid.
1033
e9868447
JB
10341999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1035
1036 * cplus-dem.c (main): Use table lookup to distinguish identifier
1037 characters from non-identifier characters.
1038 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1039
33fbbfbc
RH
1040Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1041
1042 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1043 * getruntime.c: Only attempt to include sys/resource.h and
1044 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1045 are defined.
1046
0c0a36a4
ILT
1047Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1048
1049 * configure.in (alloca detection): Handle alloca directly for interix.
1050 * configure: Rebuilt.
1051
1052Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1053
1054 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1055
252b5132
RH
10561999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1057
1058 Fix from Dale Hawkins:
b4fe2683 1059 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
1060 reallocated properly if we use it again.
1061
1062 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1063 stricter about syntax. Always null-terminate string.
1064
c1687039
ILT
1065Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1066
1067 * configure.in (checkfuncs): Check for sbrk.
1068 * config.in: Rebuilt.
1069 * configure: Likewise.
1070 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1071
0c0a36a4
ILT
10721999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1073
1074 Fix from Marcus Daniels:
1075 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1076 identifier looking for another underscore.
1077
1078Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1079
1080 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1081 * xmalloc.c: Likewise.
1082 (xcalloc): UWIN has sbrk.
1083 (xrealloc): Fix guard macro.
1084
252b5132
RH
10851999-04-11 Richard Henderson <rth@cygnus.com>
1086
1087 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1088 or <alloca.h>.
1089 * clock.c (GNU_HZ): New definition.
1090 (clock): Use it.
1091 * getruntime.c: Likewise.
1092
1093 * config.table: Use mh-beos.
1094 * config/mh-beos: New file.
1095
0c0a36a4
ILT
10961999-04-11 Mark Mitchell <mark@codesourcery.com>
1097
1098 * cplus-dem.c (demangle_template_value_parm): Handle
1099 pointers-to-members.
1100 (do_type): Handle template parameters as qualifiers.
1101
252b5132
RH
11021999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1103
1104 * cplus-dem.c: Attempt to handle overflows in counts with some
1105 semblance of grace.
1106 (consume_count): Detect overflows. Return -1 to indicate errors,
1107 instead of zero.
1108 (demangle_template_value_parm, demangle_template): Handle change
1109 to consume_count's return convention.
1110
0c0a36a4
ILT
11111999-04-05 Tom Tromey <tromey@cygnus.com>
1112
1113 * testsuite/regress-demangle: New file.
1114 * testsuite/demangle-expected: New file.
252b5132 1115
0c0a36a4
ILT
1116 * Makefile.in (all, check, installcheck, info, install-info,
1117 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1118 distclean, maintainer-clean, realclean): Depend on corresponding
1119 `-subdir' target.
1120 (all-subdir check-subdir installcheck-subdir info-subdir
1121 install-info-subdir clean-info-subdir dvi-subdir
1122 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1123 distclean-subdir maintainer-clean-subdir): New target.
1124 * testsuite/Makefile.in: New file.
1125 * configure: Rebuilt.
1126 * configure.in: Create testsuite/Makefile.
252b5132
RH
1127
11281999-04-02 Mark Mitchell <mark@codesourcery.com>
1129
1130 * splay-tree.h (splay_tree_compare_pointers): Define.
1131
11321999-03-30 Mark Mitchell <mark@codesourcery.com>
1133
1134 * splay-tree.c (splay_tree_compare_ints): Define.
1135
11361999-03-30 Tom Tromey <tromey@cygnus.com>
1137
1138 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1139 don't advance input pointer.
1140 (demangle_class_name): If consume_count didn't find a count, do
1141 nothing. Don't bother with `strlen' sanity check; consume_count
1142 does it for us.
1143
11441999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1145
1146 From Art Haas <ahaas@neosoft.com>:
1147 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1148 when doing arm or hp style.
1149 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 1150
252b5132
RH
1151Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1152
1153 * pexecute.c (__CYGWIN32__): Rename to
1154 (__CYGWIN__): this.
1155 * xmalloc.c: Likewise.
1156
1157 Changes to support i386-pc-uwin.
1158 * configure.in (*-*-uwin*): Workaround for vfork bug.
1159 * configure: Regenerate.
1160 * pexecute.c (pexecute): Be like standard Unix.
1161 (pwait): Likewise.
1162 * xmalloc.c (first_break): Define.
1163 (xmalloc_set_program_name): Use.
1164 (xmalloc): Use.
1165
1166Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1167
1168 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1169
1170Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1171
1172 * config.table: Check cygwin*, not cygwin32*.
1173
1174Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1175
1176 * Makefile.in: Change mkstemp -> mkstemps.
1177
1178Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1179
1180 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1181 * configure.in (funcs): Check for and conditionally add mkstemps to
1182 the list of functions libiberty will provide.
1183 * configure: Rebuilt.
b4fe2683 1184
252b5132
RH
1185Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1186
b4fe2683 1187 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
1188 platforms that don't have HZ.
1189 * getruntime.c (HZ): Likewise.
1190
1191Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1192
1193 * Makefile.in (xstrdup.o): Depend on config.h.
1194
1195Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1196
1197 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1198 freeing it.
1199
1200Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1201
1202 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1203
1204Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1205
1206 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1207 splay-tree.o.
1208
12091999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1210
1211 * configure.in: Require autoconf 2.12.1 or higher.
1212
12131998-12-30 Michael Meissner <meissner@cygnus.com>
1214
1215 * random.c (NULL): Don't redefine NULL if it is already defined.
1216
1217Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1218
1219 * argv.c (buildargv): Cast the result of alloca in assignment.
1220
1221 * choose-temp.c: Include stdlib.h.
1222
1223 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1224 (snarf_numeric_literal): Constify first parameter.
1225 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1226 int, not a char.
1227 (demangle_qualifier): Likewise.
1228 (demangle_signature): Cast the argument of a ctype function to
1229 unsigned char.
1230 (arm_pt): Add parens around assignment used as truth value.
1231 (demangle_arm_hp_template): Constify variable `args'.
1232 (do_hpacc_template_const_value): Cast the argument of a ctype
1233 function to unsigned char.
1234 (do_hpacc_template_literal): Remove unused variable `i'.
1235 (snarf_numeric_literal): Constify parameter `args'.
1236 Cast the argument of a ctype function to unsigned char.
1237
1238 * floatformat.c (floatformat_to_double): Add explicit braces to
1239 avoid ambiguous `else'.
1240
1241 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1242 `cstart' and `cend' to unsigned char. Cast the argument of macro
1243 `FOLD', which uses ctype functions, to unsigned char.
1244
1245 * objalloc.c (free): Add prototype.
1246
1247Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1248
1249 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1250
1251Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1252
1253 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1254 doesn't exist.
1255 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 1256
252b5132
RH
1257Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1258
1259 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1260 bumping the pointer we read from. Also prepend these codes,
1261 as we do in other places.
1262
12631998-12-18 Nick Clifton <nickc@cygnus.com>
1264
1265 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1266 'const char *' in order to match its usage when calling siblings.
1267 (snarf_numeric_literal): Make first arg 'const char **' in order
1268 to match usage.
1269
1270Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1271
1272 * choose-temp.c: Don't check IN_GCC anymore.
1273
1274 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1275 * memchr.c (memchr): Likewise.
1276 * memcpy.c (memcpy): Likewise.
1277 * memmove.c (memmove): Likewise.
1278
1279 * mkstemp.c: Don't check IN_GCC anymore.
1280 * pexecute.c: Likewise.
1281 * splay-tree.c: Likewise.
1282
1283 * strchr.c (strchr): Use `const', not `CONST'.
1284 * strrchr.c (strrchr): Likewise.
1285 * strtol.c (strtol): Likewise.
1286 * strtoul.c (strtoul): Likewise.
1287
1288Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1289 Elena Zannoni <ezannoni@cygnus.com>
1290 Stan Shebs <shebs@cygnus.com>
1291 Edith Epstein <eepstein@cygnus.com>
1292 Andres MacLeod <amacleod@cygnus.com>
1293 Satish Pai <pai@apollo.hp.com>
1294
1295 * HP aCC demangling support.
1296 * cplus-dem.c
1297 (main): Remove default to HP style demangling, set to EDG
1298 demangling correctly when -edg specified; set the demangling style
1299 when user specifies 'edg'. Set strip_underscore to
1300 prepends_underscore, if not HPUXHPPA. Set
1301 current_demangling_style to hp_demangling if HPUXHPPA. Set
1302 current demangling style correctly if the switch is hp. Read
1303 label correctly also in the HP style case.
1304 (work_stuff): add temp_start field; add field for volatile member
1305 function.
1306 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1307 style for this case is the same as ARM.
1308 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1309 (demangle_arm_hp_template): new function. (It was
1310 demangle_arm_pt.); check and set value of temp_start field in
1311 multiple places. Also, when ceching for end of template args,
1312 check to see if at end of static member of template class.
1313 (demangle_class): new local variable : save_class_name_end Don't
1314 include template args in string defining class.
1315 (demangle_class_name): use demangel_arm_hp_template.
1316 (demangle_function_name): handle case where demangling style is
1317 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1318 Handle EDG_DEMANGLING style. Handle constructor and destructor
1319 ops for HP style.
1320 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1321 styles. global destructor and constructor for HP style are same
1322 as for ARM style. Same for local variables.
1323 (demangle_qualified): handle EDG_DEMANGLING style.
1324 (demangle_signature): add case for volatile member function. For
1325 cases '1' - '9' : initialize the temp_start field to -1 and handle
1326 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1327 and AUTO_DEMANGLING styles. If expecting a function and managed
1328 to demangle the funct args, then handle the LUCID_DEMANGLING,
1329 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1330 class name after "Lnnn_ in HP style case. HP style too needs to
1331 forget types. _nnn is OK for HP style, so don't report failure.
1332 (do_hpacc_template_const_value): new function. Handle template's
1333 value param for HP/aCC.
1334 (do_hpacc_template_literal): new function. Handle a template's
1335 literal parameter for HP aCC.
1336 (recursively_demangle): new function
1337 (snarf_numeric_literal): new function.
1338 (usage): add 'edg' to the list of demangling styles; add hp switch
1339 to message.
1340
1341Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1342
1343 * pexecute.c: Remove obsolete ifdefed cygwin code.
1344
1345Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1346
1347 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1348 * cplus-dem.c: Likewise. Conform to libiberty.h.
1349 * pexecute.c: Likewise.
1350 * splay-tree.c: Likewise.
1351
13521998-11-25 Mike Stump <mrs@wrs.com>
1353
1354 * Makefile.in (splay-tree.o): Add config.h dependency.
1355
1356Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1357
1358 * configure.in: Use AC_PREREQ(2.12.1).
1359
13601998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1361
b4fe2683 1362 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
1363
1364Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1365
1366 * mpw.c (mpw_access): Add missing parens.
1367
1368Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1369
1370 * configure.in: Call AC_HEADER_SYS_WAIT.
1371
1372 * pexecute.c: Include sys/wait.h when !IN_GCC.
1373
1374Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1375
1376 * pexecute.c: revert back to checking old Cygwin
1377 preprocessor symbol until some time has passed.
1378
1379Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1380
1381 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1382 since it will now support similar constructs.
1383
1384Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1385
1386 * configure.in: Check for calloc.
1387
1388 * calloc.c: New file.
1389
1390 * xmalloc.c (xcalloc): New function.
1391
1392Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1393
1394 *cplus-dem.c (demangle_prefix): Use the last "__"
1395 in the mangled name when looking for the signature. This allows
1396 template names to begin with "__".
1397
13981998-11-08 Mark Mitchell <mark@markmitchell.com>
1399
1400 * cplus-dem.c (type_kind_t): Add tk_reference.
1401 (demangle_template_value_parm): Handle it.
1402 (do_type): Use it for references, instead of tk_pointer.
1403
1404 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1405 not internal_cplus_demangle.
1406
1407Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1408
1409 * choose-temp.c: Don't include gansidecl.h.
1410 * mkstemp.c: Likewise.
1411 * pexecute.c: Likewise.
1412
1413Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1414
b4fe2683
JM
1415 * configure.in: detect cygwin* instead of cygwin32*
1416 * configure: regenerate
252b5132
RH
1417
1418Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1419
1420 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1421 whether to include config.h. Possibly include unistd.h in the
1422 !IN_GCC case. Define VFORK_STRING as a printable function call
1423 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1424 defined, include vfork.h. If VMS is defined, define vfork()
1425 appropriately. Remove vfork check on USG, we're using autoconf.
1426 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1427 locally what string to use.
1428
14291998-10-26 Mark Mitchell <mark@markmitchell.com>
1430
1431 * splay-tree.c: Tweak include directives to make sure declarations of
1432 xmalloc and free are available.
1433
14341998-10-25 Mark Mitchell <mark@markmitchell.com>
1435
1436 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1437 anonymous namespaces.
1438
14391998-10-23 Mark Mitchell <mark@markmitchell.com>
1440
1441 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1442 with type_quals.
1443 (TYPE_UNQUALIFIED): New macro.
1444 (TYPE_QUAL_CONST): Likewise.
1445 (TYPE_QUAL_VOLATILE): Likewise.
1446 (TYPE_QUAL_RESTRICT): Likewise.
1447 (code_for_qualifier): New function.
1448 (qualifier_string): Likewise.
1449 (demangle_qualifier): Likewise.
1450 (internal_cplus_demangle): Use them.
1451 (demangle_signature): Likewise.
1452 (demangle_template_value_parm): Likewise.
1453 (do_type): Likewise.
1454 (demangle_fund_type)): Likewise.
1455
1456Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1457
1458 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1459 to match prototype.
1460
14611998-10-21 Mark Mitchell <mark@markmitchell.com>
1462
1463 * splay-tree.c: New file.
1464 * Makefile.in (CFILES): Add it.
1465 (REQUIRED_OFILES): Likewise.
1466 (splay-tree.o): Add dependencies.
1467
1468Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1469
1470 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1471 range of 'K' index.
1472
1473Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1474
1475 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1476
1477 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1478 `unsigned char'.
1479 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1480 comparing against one.
1481 (cplus_mangle_opname): Likewise.
1482 (demangle_integral_value): Cast argument of ctype macro to
1483 `unsigned char'.
1484 (demangle_template_value_parm): Likewise.
1485 (demangle_template): Initialize variable `bindex'. Cast the
1486 result of `strlen' to (int) when comparing against one. Remove
1487 unused variable `start_of_value_parm'.
1488 (demangle_class_name): Cast the result of `strlen' to (int) when
1489 comparing against one.
1490 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1491 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1492 when comparing against one.
1493 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1494 (get_count): Likewise.
1495 (do_type): Likewise. Cast the result of `strlen' to (int) when
1496 comparing against one.
1497 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1498 (demangle_function_name): Cast the result of `strlen' to (int)
1499 when comparing against one.
1500
1501 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1502 comparing against one.
1503
1504Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1505
b4fe2683
JM
1506 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1507 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1508 * config.in, configure: Rebuilt.
252b5132
RH
1509
1510 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1511 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1512 * config.in, configure: Rebuilt.
1513
1514Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1515
b4fe2683 1516 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
1517
1518Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1519
1520 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1521
1522Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1523
1524 * Merge egcs & devo libiberty.
1525