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