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