]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* texi2pod.pl: If multiple @c man sections with the same tag
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
e5fb0a98 12000-12-07 Mike Stump <mrs@kankakee.wrs.com>
2
3 * Makefile.in (distclean): When cleaning, remove testsuite.
4
cf0ad6a8 52000-12-05 Jason Merrill <jason@redhat.com>
6
7 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
8 name before allocating the dyn_string.
9
bb505139 102000-12-04 Jason Merrill <jason@redhat.com>
11
12 * cp-demangle.c: s/new_abi/v3/.
13 * cplus-dem.c: Likewise.
14 (current_demangling_style): Now auto_demangling.
15 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
16 (main): Use standard symbol chars for auto_demangling.
17
54b3a5af 182000-11-26 Mark Mitchell <mark@codesourcery.com>
19
20 * hashtab.c (higher_prime_number): Use a table, rather than a
21 seive, to find the next prime.
22
9628d706 232000-11-22 H.J. Lu <hjl@gnu.org>
24
25 * cplus-dem.c (main): Handle gnat_demangling.
26
ec255163 272000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
28
29 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
30 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
31 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
32 argument form of AC_DEFINE in dummy definitions block. Use
33 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
34 in dummy block. Preload cache variables instead of bypassing
35 tests, where possible.
36 * acconfig.h: Removed.
37
38 * xmalloc.c (xmalloc_failed): New function, does error
39 reporting on failed allocation.
40 (xmalloc, xcalloc, xrealloc): Use it.
41
626946fb 422000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
43
44 * cplus-dem.c (cplus_demangle): Fix formatting.
45 (grow_vect): Ditto.
46 (ada_demangle): Ditto.
47 (internal_cplus_demangle): Ditto.
48 (mop_up): Ditto.
49
502000-11-21 H.J. Lu <hjl@gnu.org>
51
52 * cplus-dem.c (main): Handle java_demangling.
53
918a89ef 542000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
55
56 * cplus-dem.c (grow_vect): Prototype.
57 (ada_demangle): Cast the arg of ctype macros to unsigned char.
58
582f72ad 592000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
60
61 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
62 parameter `option'.
63
0d6e3c59 642000-11-15 Kenneth Block <kenneth.block@compaq.com>
65
42ded3a1 66 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 67 be used in GCC.
68
9df8b754 692000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 70
582f72ad 71 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 72 list.
73
e4c2dc6e 742000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
75
76 * hashtab.c (htab_expand): Change to return int. Use calloc or
77 xcalloc depending on htab->return_allocation_failure. Return zero
78 if calloc fails.
79 (htab_create): Update comment to cover memory allocation.
80 (htab_try_create): New.
81 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
82 Update comment to cover this.
83
696d6593 842000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
85
86 * hashtab.c: Change void * to PTR where necessary.
87 (htab_create, htab_expand): Correct formatting of comment before
88 function.
89
8f2b45d4 902000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 91
92 * cp-demangle.c (string_list_def): Add caret_position and comments.
93 (result_caret_pos): New macro.
94 (result_append_string): Rename to...
95 (result_add_string): ... this, and insert at caret position.
ec255163 96 Rename throughout.
f99edf23 97 (result_append): Rename to...
98 (result_add): ... this, and insert at caret position. Rename
ec255163 99 throughout.
f99edf23 100 (result_append_char): Rename to...
101 (result_add_char): ... this, and insert at caret position. Rename
ec255163 102 throughout.
f99edf23 103 (result_append_space): Remove.
104 (string_list_new): Initialize caret position.
105 (result_add_separated_char): Use caret position.
106 (result_get_caret): New funtion.
107 (result_set_caret): Likewise.
108 (result_shift_caret): Likewise.
109 (result_previous_char_is_space): Likewise.
110 (substitution_start): Use caret position.
111 (substitution_add): Likewise.
112 (demangling_new): Initialize caret position.
113 (demangle_encoding): Use caret position.
ec255163 114 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 115 (demangle_type_ptr): Use switch statement. Handle pointers to
116 arrays. Don't use result_append_space. Use caret position.
117 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 118 call to demangle_array_type.
119 (demangle_array_type): Add parameter to handle pointers to arrays.
120
a4e59c31 1212000-10-01 Mark Mitchell <mark@codesourcery.com>
122
123 * splay-tree.c (splay_tree_insert): Fix formatting.
124
e41f0d80 1252000-09-16 Mark Mitchell <mark@codesourcery.com>
126
127 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
128
83d86ada 1292000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
130
131 * splay-tree.c: #include <stdio.h>.
132
78631810 1332000-09-14 Hans-Peter Nilsson <hp@axis.com>
134
135 * testsuite/demangle-expected: Add two tests for anonymous
136 namespaces.
137 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
138
508f18c8 1392000-09-10 Mark Mitchell <mark@codesourcery.com>
140
141 * splay-tree.c (splay_tree_predecessor): New function.
142 (splay_tree_successor): Likewise.
143
1a2d2193 1442000-09-10 Hans-Peter Nilsson <hp@axis.com>
145
146 * testsuite/demangle-expected: Add four tests for type_info
147 mangling.
1a2d2193 148 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
149 for a non-template non-qualified type_info function or node.
150
09656987 1512000-09-08 Alex Samuel <samuel@codesourcery.com>
152
153 * cp-demangle.c: Fix copyright banner.
154
7cc2d24b 1552000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
156
157 * md5.c: #include "ansidecl.h".
158
b83e8722 1592000-09-06 Alex Samuel <samuel@codesourcery.com>
160
161 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
162 (demangle_type): Handle substitution candidates correctly in the
163 face of special substitutions.
164
cf70278e 1652000-09-05 Alex Samuel <samuel@codesourcery.com>
166
167 * cp-demangle.c (demangle_encoding): Rename variable.
168 (demangle_name): Rename parameter. Handle return type
169 suppression.
170 (demangle_nested_name): Rename parameter.
171 (demangle_prefix): Likewise. Change return type suppression.
172 (demangle_unqualified_name): Add parameter. Flag constructors and
173 conversion operators.
174 (demangle_special_name): Fix comment.
175 (demangle_type): Rename variable.
176 (demangle_bare_function_type): Check for missing return type and
ec255163 177 parameter.
cf70278e 178 (demangle_class_enum_type): Rename parameter.
179 (demangle_discriminator): Fix misspelling in comment.
180
4aabc076 1812000-08-31 DJ Delorie <dj@redhat.com>
182
183 * configure.in (Cygwin): special case cygwin only when we're
184 building cygwin, not when we're hosting cygwin.
185
804ddfd1 1862000-09-04 Alex Samuel <samuel@codesourcery.com>
187
188 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 189 <expression>.
190
e015a852 1912000-09-04 Alex Samuel <samuel@codesourcery.com>
192
193 * cp-demangle.c (demangle_type_ptr): Increment position past
194 pointer and reference characters.
195
2b6805b4 1962000-09-04 Alex Samuel <samuel@codesourcery.com>
197
198 * cp-demangle.c (demangle_nv_offset): New function.
199 (demangle_v_offset): Likewise.
200 (demangle_call_offset): Likewise.
201 (demangle_special_name): Update thunk demangling to comply with
202 ABI changes.
ec255163 203
40e00cb0 2042000-09-03 Alex Samuel <samuel@codesourcery.com>
205
206 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
207 (substitution_def): Remove template_parm_number.
208 (NOT_TEMPLATE_PARM): Remove.
209 (result_insert_string): New macro.
210 (result_insert): Likewise.
211 (result_insert_char): Likewise.
212 (substitution_add): Remove last parameter. Don't store template
ec255163 213 parm number.
40e00cb0 214 (BFT_NO_RETURN_TYPE): Define as NULL.
215 (demangle_encoding): Adjust call to demangle_bare_function_type.
216 (demangle_name): Adjust substitution. Adjust call to
ec255163 217 substitution_add.
40e00cb0 218 (demangle_prefix): Adjust call to substitution_add.
219 (demangle_identifier): Handle anonymous namespaces.
220 (demangle_operator_name): Change demangling of vendor-extended
221 operator to match ABI changes.
222 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 223 substitutions here.
40e00cb0 224 (demangle_type): Adjust calls to demangle_template_param,
225 substitution_add, and demangle_type_ptr. Fix substitution of
226 templated types.
227 (demangle_function_type): Change parameter to a pointer.
228 (demangle_bare_function_type): Likewise. Adjust insertion point.
229 (demangle_template_param): Remove last parameter.
230 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 231 demangle_template_param.
40e00cb0 232 (is_mangled_char): Accept `$' and `.'.
233 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
234 * dyn-string.c (dyn_string_insert_char): New function.
235
01f404a2 2362000-08-31 Hans-Peter Nilsson <hp@axis.com>
237
238 * testsuite/demangle-expected: Add nine tests for
239 underscore-after-number followed by five tests for name-signature
240 delimiter.
241
d74245d4 2422000-08-28 Richard Henderson <rth@cygnus.com>
243
244 * Makefile.in (md5.o): Depend on config.h.
245
19f716e5 2462000-08-28 Jason Merrill <jason@redhat.com>
247
248 * Makefile.in (REQUIRED_OFILES): Add md5.o.
249 (CFILES): Add md5.c.
250 * md5.c: New file.
251
f8aeab41 2522000-08-27 Alex Samuel <samuel@codesourcery.com>
253
254 * cp-demangle.c (demangle_name): Initialize template_p in local
255 name case. Don't re-add substitutions as candidates.
256 (demangle_nested_name): Use <unqualified-name>.
257 (demangle_prefix): Likewise. Don't add template names as
258 substitution candidates twice, or re-add a substitution or the
259 last prefix component.
260 (demangle_local_name): Adjust output format.
261
62c2feed 2622000-08-25 Alex Samuel <samuel@codesourcery.com>
263
264 * cp-demangle.c (result_add_separated_char): Change parameter to
265 int.
266 (substitution_add): Don't check for duplicates. Check if
267 previously allocated size is zero.
268 (demangle_name): Remove duplicate check for std substitution.
269 Clear template flag appropriately.
270 (demangle_prefix): Remove argument to demangle_substitution.
271 Don't check that template flag is already set.
272 (demangle_operator_name): Add pt operator.
273 (demangle_type): Don't treat r as built-in type. Remove argument
274 to demangle_substitution. Fix substitution candidate mechanics.
275 Handle <template-template-parm>s. Improve comments.
ec255163 276 (demangle_template_param): Don't handle template arg lists here.
62c2feed 277 (demangle_substitution): Remove parameter.
278 (print_usage): Remove extra fprintf option.
279
ee1d4c3d 2802000-08-24 Greg McGary <greg@mcgary.org>
281
282 * libiberty/random.c (end_ptr): Revert previous change.
283
f0bff53d 2842000-08-24 Greg McGary <greg@mcgary.org>
285
286 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
287 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
288 * libiberty/random.c (end_ptr): Likewise.
289
c1b316c0 2902000-08-23 Alex Samuel <samuel@codesourcery.com>
291
292 * cp-demangle.c (result_close_template_list): Remove function.
293 (result_add_separated_char): New function.
294 (result_open_template_list): New macro.
295 (result_close_template_list): Likewise.
296 (demangle_prefix): Don't set template_p if the
297 prefix ends with a ctor name.
298 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
299 (demangle_type): Check for template args after substitution.
300 (demangle_template_args): Use result_open_template_list.
ec255163 301
385b48fc 3022000-08-02 Zack Weinberg <zack@wolery.cumb.org>
303
304 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
305
ec255163 3062000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 307
308 * config/mh-openedition.h: Added -DLE370 definition.
309
8fc0efd2 3102000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
311
312 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
313 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
314 Cast program to 'char *' in errmsg_arg assignment.
315 (PWAIT_ERROR): Define.
316 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
317 to DJGPP's WIF* macros.
318
a1d4f79a 3192000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
320 Jeff Law <law@cygnus.com>
321
98b4c197 322 * getcwd.c: Include string.h, stdlib.h for prototypes
323
a1d4f79a 324 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 325 * rename.c: Include config.h, unistd.h
326 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 327
01f404a2 3282000-07-24 Hans-Peter Nilsson <hp@axis.com>
329
330 * cplus-dem.c (work_stuff_copy_to_from): New.
331 (delete_non_B_K_work_stuff): New.
332 (delete_work_stuff): New.
333 (mop_up): Break out work_stuff partly destruction to
334 delete_non_B_K_work_stuff.
335 (iterate_demangle_function): New.
336 (demangle_prefix): Call iterate_demangle_function instead of
337 demangle_function_name. Leave handling of name-signature
338 __-delimiters to iterate_demangle_function.
339 (demangle_integral_value): Strip an optional
340 following underscore cautiously. Handle negative numbers.
341
f2e5a608 3422000-07-24 Daniel Berlin <dberlin@redhat.com>
343
ec255163 344 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 345 if (AUTO_DEMANGLING || GNU_DEMANGLING)
346
65bcf503 3472000-07-21 Alex Samuel <samuel@codesourcery.com>
348
349 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
350 allocating ctor mangling.
351 (demangle_array_type): Handle empty and non-constant array length.
352
68e6b6e1 3532000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 354 Jeff Law <law@cygnus.com>
355
1a163ca8 356 * configure.in (AC_CHECK_HEADERS): Add time.h.
357 (AC_HEADER_TIME): Add check.
358 * configure, config.in: Regenerate.
359 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
360
a451eef0 361 * configure.in (AC_CHECK_HEADERS): Add limits.h.
362 * configure, config.in: Regenerate.
363 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
364 * strtol.c, strtoul.c: #include "config.h". Portably #include
365 <limits.h> and/or <sys/param.h>.
366 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 367
fb758229 368 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
369 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
370 * configure, config.in: Regenerate.
371 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
372
68e6b6e1 373 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
374
ad46fec4 3752000-07-21 Mike Stump <mrs@wrs.com>
376
377 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 378 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 379
bb37062f 3802000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
381
382 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
383
384 * setenv.c (setenv): Initialize variable `ep'.
385
386 * sigsetmask.c (abort): Prototype.
387
388 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
389 __STDC__ for stdarg.h include.
390 (int_vasprintf): Prototype.
391 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
392 definition. Cast `global_total_width' in comparison.
393 (main): Prototype. Return a value.
394
395 * vfork.c (fork): Prototype.
396
397 * xexit.c: Include config.h.
398
6cb730c2 3992000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
400
401 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
402 and print it with %u.
403
e42d7fe1 4042000-07-17 Hans-Peter Nilsson <hp@axis.com>
405
406 * testsuite/regress-demangle (failed test): Show result and
407 expected output.
408
04ef60ef 4092000-07-07 Andrew Haley <aph@cygnus.com>
410
411 * cplus-dem.c (main): fflush() after emitting last char before
412 waiting for input.
413
b7f68aff 4142000-06-28 Alex Samuel <samuel@codesourcery.com>
415
416 * cp-demangle.c (demangle_encoding): Accept no substitutions.
417 (demangle_name): Handle <substitution> followed by
418 <unqualified-template-name>.
419 (demangle_type): Follow special substitutions with
420 <class-enum-type>
421 (demangle_subtitution): Set template_p for special substitutions.
422 (main): Fix typos.
ec255163 423
597f928d 4242000-06-27 Alex Samuel <samuel@codesourcery.com>
425
426 * cp-demangle.c (demangle_special_name): Swap base and derived
427 class when demangling construction vtables.
428
140d75d7 4292000-06-21 Alex Samuel <samuel@codesourcery.com>
430
431 * cp-demangle.c: Don't include ctype.h.
432 (IS_DIGIT): New macro.
433 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
434 instead of isdigit and isalpanum.
435 (demangling_def): Make name and next const pointers.
436 (STATUS_ALLOCATION_FAILED): New status code.
437 (dyn_string_append_space): Handle failure in
438 dyn_string_append_char.
439 (int_to_dyn_string): Likewise. Change return value to status_t.
440 (string_list_new): Handle failure of dyn_string_init.
441 (result_close_template_list): Change return type to status_t.
442 Handle failure in dyn_string_append.
443 (result_push): Change return value to status_t. Handle failure in
444 string_list_new. Handle failure of result_push throughout.
445 (substitution_add): Change return value to status_t. Handle
446 dyn_string failures. Handle failure of substitution_add
447 throughout.
448 (template_arg_list_new): Return NULL on allocation failure.
449 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
450 Handle error result throughout.
451 (result_append): Likewise.
452 (result_append_char): Likewise.
453 (result_append_space): Likewise.
454 (demangling_new): Make argument a const pointer. Handle
455 allocation failures.
456 (demangle_template_args): Handle failure in template_arg_list_new
457 and result_close_template_list.
458 (demangle_discriminator): Return if int_to_dyn_string fails.
459 (cp_demangle): Likewise.
460 (cp_demangle_type): New function.
461 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
462 memory allocation failure.
463 (main): Likewise.
464 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
465 IN_LIBGCC2.
466 (dyn_string_init): Change return value to int. Handle
467 RETURN_ON_ALLOCATION_FAILURE case.
468 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
469 (dyn_string_release): Delete the dyn_string.
470 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
471 (dyn_string_copy): Change return type to int.
472 (dyn_string_copy_cstr): Likewise.
473 (dyn_string_prepend): Likewise.
474 (dyn_string_prepend_cstr): Likewise.
475 (dyn_string_insert): Likewise.
476 (dyn_string_insert_cstr): Likewise.
477 (dyn_string_append): Likewise.
478 (dyn_string_append_cstr): Likewise.
479 (dyn_string_append_char): Likewise.
480 (dyn_string_substring): Likewise.
ec255163 481
210aba33 4822000-06-09 Zack Weinberg <zack@wolery.cumb.org>
483
484 * cp-demangle.c (demangle_operator_name): Add spaces before
485 names beginning with a letter: delete, delete[], new, new[],
486 sizeof.
487 (demangle_special_name): Handle TF <type> and TJ <type>.
488
0b4450c1 489Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
490
491 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
492
e5d6924a 493Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
494
495 * cp-demangle.c (stdio.h): File included unconditionaly.
496 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
497 * dyn-string.c (stdio.h): File included.
498 * partition.c (partition_print): No `&' needed to take the address of
499 a function.
500
da8bd873 5012000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
502
503 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 504
da8bd873 505 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
506
507 * cp-demangle.c (demangle_char): Change parameter from char to int.
508 (demangle_expression, demangle_expr_primary): Remove extra
509 semi-colon in prototype.
510
511 * dyn-string.c (dyn_string_append_char): Change parameter from
512 char to int.
513
514 * memcmp.c (memcmp): Constify.
515
516 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
517 __extension__.
518
519 * partition.c (elem_compare): Prototype. Don't cast away
520 const-ness.
521
522 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 523
4b7bc488 5242000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
525
526 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
527
528 * cp-demangle.c: Include demangle.h.
529 (template_arg_list_new): DeANSIfy.
530 (cp_demangle): Make static and add prototype.
531 (operator_code, operators): Constify.
532 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
533
7ae7b54c 5342000-06-05 Alex Samuel <samuel@codesourcery.com>
535
536 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
537 unsigned char.
538 (demangle_unqualified_name): Likewise.
539 (demangle_number_literally): Likewise.
540 (demangle_type): Likewise.
541 (demangle_substitution): Likewise.
542 (is_mangled_char): Likewise, for isalnum.
543
168d63e5 5442000-06-04 Alex Samuel <samuel@codesourcery.com>
545
546 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
547 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
548 (cp-demangle.o): New dependency.
549 (dyn-string.o): Likewise.
550
551 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
552
553 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
554 demangler.
555 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
556 demangling mode.
557 (gnu_new_abi_symbol_characters): New function.
558 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
559 file.
560 * cp-demangle.c: New file.
ec255163 561
b5495c1d 562Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
563
564 * floatformat.c: Add name to each floatformat field.
565
8fab1737 566Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
567
568 * Makefile.in (objalloc.o): Depend on config.h
569
317ab997 5702000-05-29 Zack Weinberg <zack@wolery.cumb.org>
571
572 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
573 if HAVE_STRING_H.
574 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
575 * objalloc.c: Include config.h. Include stdlib.h and don't
576 declare malloc or free if HAVE_STDLIB_H.
577 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
578 else declare malloc without prototype. Include string.h if
579 HAVE_STRING_H, else declare memset without prototype. Don't
580 include stddef.h.
581
874478ba 5822000-05-23 Mike Stump <mrs@wrs.com>
583
584 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
585 -j3.
586
55de1520 5872000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
588
589 * xmalloc.c: Include config.h for HAVE_SBRK definition.
590
e51b357b 5912000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
592
ec255163 593 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 594 probably zero, also eliminate a warning on alpha.
595
9e362499 5962000-05-15 David Edelsohn <edelsohn@gnu.org>
597
e390e838 598 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 599 on $(enable_shared).
600
06c6487f 6012000-05-10 Jakub Jelinek <jakub@redhat.com>
602
603 * config.table: Use mh-sparcpic for sparc*-*-*.
604
0baf89fb 6052000-05-08 Nick Clifton <nickc@cygnus.com>
606
607 * Makefile.in (CFILES): Add strncmp.c.
608 (NEEDED): Add strncmp.
609
59f72e4d 6102000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
611
612 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
613 Cast the arguments to `islower' to `unsigned char'.
614 (print_demangler_list): Prototype.
615
fb0c90ed 616Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
617
618 * sort.c (UCHAR_MAX): Provide fallback definition.
619
167a5f18 6202000-04-29 Alexandre Oliva <aoliva@cygnus.com>
621
622 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
623 SUBDIRS.
624
6f572555 6252000-04-28 Kenneth Block <block@zk3.dec.com>
626 Jason Merrill <jason@casey.cygnus.com>
627
ec255163 628 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
629 (cplus_demangle_set_style): New function for setting style.
630 (cplus_demangle_name_to_style): New function to translate name.
6f572555 631
b3524c8f 6322000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
633
634 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
635
636 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
637 (libiberty_AC_FUNC_STRNCMP): Invoke.
638
639 * strncmp.c: New file.
640
a5f725a3 641Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
642
643 * hashtab.c (htab_expand): Add prototype.
644 (find_empty_slot_for_expand): Likewise.
645
8afd4145 6462000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
647
648 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
649 match prototype.
650 (htab_expand): Cast the return value of xcalloc.
651
c9dfb8ae 6522000-04-24 Mark Mitchell <mark@codesourcery.com>
653
654 * hashtab.c (hash_pointer): New function.
655 (eq_pointer): Likewise.
656 (htab_hash_pointer): New variable.
657 (htab_eq_pointer): Likewise.
658
85993fc6 6592000-04-23 Mark Mitchell <mark@codesourcery.com>
660
9517f453 661 * sort.c (sort_pointers): Fix endianness bugs.
662
85993fc6 663 * sort.c: New file.
664 * Makefile.in (CFILES): Add sort.c
665 (REQUIRED_OFILES): Add sort.o.
666 (sort.o): New target.
667
c9b2f47c 6682000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
669
670 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
671 4.3BSD systems.
672
2b3dbc20 673Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
674
675 * hashtab.c: Various minor cleanups.
676 (htab_find_slot_with_hash): INSERT is now enum insert_option.
677 (htab_find_slot): Likewise.
678
6ea8a864 6792000-04-16 Dave Pitts <dpitts@cozx.com>
680
681 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 682
105211e5 6832000-04-05 Richard Henderson <rth@cygnus.com>
684
685 * splay-tree.c (splay_tree_remove): New.
686
7669680f 6872000-03-30 Mark Mitchell <mark@codesourcery.com>
688
689 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
690 codes.
691 (htab_find_with_hash): Likewise.
692 (htab_find_slot_with_hash): Likewise.
ec255163 693
07c797e3 6942000-03-29 Zack Weinberg <zack@wolery.cumb.org>
695
696 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
697 unless it will be used. Rearrange loop for better
698 optimization.
699 (higher_prime_number): Add static prototype.
700
8ef1b8d1 701Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
702
703 * Makefile.in (partition.o): Depend on config.h
704
ed26da85 7052000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
706
707 * hashtab.c (find_empty_slot_for_expand): New function.
708 (htab_expand): Use it instead of htab_find_slot.
709 (htab_find_with_hash): Renamed from htab_find; now accepts extra
710 argument HASH.
711 (htab_find_slot_with_hash): Likewise for htab_find_slot.
712 (htab_find): New wrapper function.
713 (htab_find_slot): Likewise.
714 (htab_traverse): Pass slot, not entry, to called function.
715
dadde703 7162000-03-09 Alex Samuel <samuel@codesourcery.com>
717
718 * Makefile.in (CFILES): Add partition.c.
719 (REQUIRED_OFILES): Add partition.o.
720 (partition.o): New rule.
721 * partition.c: New file.
ec255163 722
3fdd387a 7232000-03-09 Zack Weinberg <zack@wolery.cumb.org>
724
725 * hashtab.c (htab_create): Set del_f.
726 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
727 Use it.
728
07c967f9 7292000-03-08 Zack Weinberg <zack@wolery.cumb.org>
730
731 * hashtab.c: Remove debugging variables (all_searches,
732 all_collisions, all_expansions). Delete
733 all_hash_table_collisions.
734 (create_hash_table, delete_hash_table, empty_hash_table,
735 find_hash_table_entry, remove_element_from_hash_table_entry,
736 clear_hash_table_slot, traverse_hash_table, hash_table_size,
737 hash_table_elements_number, hash_table_collisions): Rename to:
738 htab_create, htab_delete, htab_empty, htab_find_slot,
739 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
740 htab_elements, htab_collisions.
741 (htab_find): New function, handles common case where you don't
742 plan to add or delete an entry.
743 (htab_expand): Don't create a whole new table, just a new
744 entry vector.
745 (htab_find_slot): Simplify logic.
746
1f33a375 7471999-08-03 Ian Lance Taylor <ian@zembu.com>
748
749 * floatformat.c: Add casts to avoid signed/unsigned warnings.
750 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
751
752 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
753 $(TARGETLIB)n so it works on MSDOS.
754 (install_to_tooldir): Likewise.
755
7561999-07-21 Ian Lance Taylor <ian@zembu.com>
757
758 From Mark Elbrecht:
759 * makefile.dos: Remove; obsolete.
760 * configure.bat: Remove; obsolete.
761
7621999-07-11 Ian Lance Taylor <ian@zembu.com>
763
764 * splay-tree.c (splay_tree_insert): Add initialization to avoid
765 warning.
766
b99e5aef 7672000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
768
769 * pexecute.c: Conditionally include string.h.
07c967f9 770 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 771
6d93ad38 7722000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
773
774 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
775 we're using gcc.
776
777 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
778
59dfb43e 7791999-12-27 Geoff Keating <geoffk@cygnus.com>
780
781 * vasprintf.c (int_vasprintf): Don't re-read the format character
782 as this mishandles strings like '%%s'.
783
b04bbebb 7841999-12-05 Mark Mitchell <mark@codesourcery.com>
785
786 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
787 rather than struct splay_tree_node.
788 (splay_tree_insert): Use struct splay_tree_s rather than struct
789 splay_tree.
790
d7f8de75 791Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
792
793 * hashtab.c (sys/types.h): File included.
794
7202ac7d 7951999-11-22 Jason Merrill <jason@casey.cygnus.com>
796
797 * strtoul.c, strtol.c, random.c: Remove advertising clause from
798 BSD license, pursuant with
799
800 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
801
bd41a79e 802Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
803
804 * hashtab.c: Include stdio.h.
805
b77d3fd0 806Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
807
808 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
809
1b4391fe 810Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
811
812 * xstrdup (sys/types.h): Include this file.
813
4bc57096 8141999-10-28 Nathan Sidwell <nathan@acm.org>
815
816 * Makefile.in (SUBDIRS): New macro.
817 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
818 avoid multiple subdirectory cleaning.
819 (*-subdir): Use SUBDIRS.
820
9087cad2 8211999-10-25 Jim Kingdon <http://developer.redhat.com/>
822
823 * cplus-dem.c: Move declarations of standard_symbol_characters and
824 hp_symbol_characters inside #ifdef MAIN to avoid compiler
825 warnings.
826
21a7d507 8271999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
828
829 * hashtab.c (find_hash_table_entry): When returning a
830 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
831 (clear_hash_table_slot): New function which deletes an entry
832 by its position in the table, not its value.
833 (traverse_hash_table): New function which calls a hook
834 function for every live entry in the table.
835
42c870f1 8361999-10-19 Mark Mitchell <mark@codesourcery.com>
837
838 * cplus-dem.c (INTBUF_SIZE): New macro.
839 (string_append_template_idx): New function.
840 (demangle_expression): Likewise.
841 (demangle_integral_value): Use it.
842 (demangle_real_value): New function, split out from ...
843 (demangle_template_value_parm): ... here. Use
844 string_append_template_idx. Use demangle_real_value.
845 (demangle_template): Use string_append_template_idx.
846 (demangle_qualified): Use consume_count_with_underscores.
847 (get_count): Tweak formatting.
848 (do_type): Use string_append_template_idx.
07c967f9 849
33b090eb 8501999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
851
852 * calloc.c: Add a public domain notice.
853
9879c2ce 854Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
855
856 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
857
5da6c26f 858Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
859
860 * Makefile.in (CFILES): Add hashtab.c
861 (REQUIRED_OFILES): Add hashtab.o
862 (hashtab.o): Add dependencies.
863 * hashtab.c: New file
864
be42b79e 865Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
866
867 * basename.c (DIR_SEPARATOR): New macro.
868 (DIR_SEPARATOR_2): Likewise.
869 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
870 (IS_DIR_SEPARATOR): Likewise.
871 (main): Handle MSDOS style pathname.
872
6c65e8d7 8731999-10-11 Mark Mitchell <mark@codesourcery.com>
874
875 * cplus-dem.c (do_type): Handle pointer to member types whose
876 enclosing classes have namespace scope.
877
278929f3 878Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
879
880 * config.table: Provide a backup shell for executing move-if-change.
881
a7599ac8 8821999-10-02 Mark Mitchell <mark@codesourcery.com>
883
884 * xmalloc.c (xmalloc): Fix spelling error.
885 (xcalloc, xrealloc): Likewise.
886
4d84eafd 8871999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
888
889 * cplus-dem.c (fancy_abort, demangle_integral_value,
890 demangle_arm_hp_template, recursively_demangle,
891 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
892 (program_name, program_version, fatal): Constify a char*.
893 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
894 (main): Call return, not exit.
895
8f376364 8961999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
897
898 * choose-temp.c: Remove obsolete comment about gcc.
899 (make_temp_file): Constify a char*.
900
3a4fff76 901Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
902
903 * xmemdup.c: Include sys/types.h.
904
7570bccb 9051999-09-07 Jeff Garzik <jgarzik@pobox.com>
906
907 * xmemdup.c: New xmemdup function.
908 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
909
b50c7be3 910Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
911
07c967f9 912 * config.table: Add openedition target.
b50c7be3 913 * config/mh-openedition: New file.
914
fd0c1d22 915Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
916
917 * pexecute.c (pexecute): Fill in temp_base when needed.
918
be342bf0 9191999-08-31 Richard Henderson <rth@cygnus.com>
920
921 * getpwd.c: Check HAVE_GETCWD before defining it away.
922
71774460 9231999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
924
925 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
926 (REQUIRED_OFILES): Add getpwd.o.
927 (getpwd.o): Add target.
928
929 * configure.in (AC_PREREQ): Bump to 2.13.
930 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
931
932 * getpwd.c: New file, moved here from gcc.
933
ac126d82 9341999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
935
936 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
937 comparing against a signed quantity.
938 (arm_special): Likewise.
939 (demangle_fund_type): Likewise.
940 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 941 ATTRIBUTE_UNUSED.
ac126d82 942 (main): Constify variable `valid_symbols'.
943
4f3b4661 944Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
945
946 * strtoul.c (strtoul): Add parentheses around && within ||.
947
f92ff492 948Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
949
950 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
951 libdir, libsubdir and tooldir.
952
a9f46aed 9531999-08-01 Mark Mitchell <mark@codesourcery.com>
954
955 * splay-tree.c (splay_tree_insert): Return the new node.
956
db081298 9571999-07-14 Richard Henderson <rth@cygnus.com>
958
07c967f9 959 * argv.c: Include stdlib.h and string.h instead of
db081298 960 prototyping directly.
961 * choose-temp.c: Conditionally include string.h.
962
e5aa3a54 9631999-07-12 Jason Merrill <jason@yorick.cygnus.com>
964
965 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
966
4ef402f7 9671999-07-11 Ian Lance Taylor <ian@zembu.com>
968
969 * splay-tree.c (splay_tree_insert): Add initialization to avoid
970 warning.
971
d65034bd 9721999-07-07 Jason Merrill <jason@yorick.cygnus.com>
973
974 * Makefile.in (needed-list): Only include stuff we actually need
975 for libstdc++.
976
18912799 9771999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
978
979 * configure.in (checkfuncs): Add gettimeofday.
980 * config.in, configure: Regenerated.
981
d96f58b6 982Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
983
984 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
985 the test fails.
986 * configure: Regenerate.
987
4248b202 9881999-06-10 Mike Stump <mrs@wrs.com>
989
990 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
991 parallel builds.
992
3c243ded 9931999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
994
995 * putenv.c: Include ansidecl.h to define `const'.
996 * setenv.c: Likewise.
997
654c70ae 998Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
999
34f75864 1000 * Makefile.in (CFILES): Add putenv.c and setenv.c.
1001 * configure.in (funcs): Add putenv and setenv.
1002 (AC_CHECK_FUNCS): Check for putenv and setenv.
1003 * configure: Rebuilt.
1004 * putenv.c setenv.c: New files.
1005
654c70ae 1006 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
1007 bytes of space using malloc.
1008
41980611 1009Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
1010
1011 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
1012 the *mangled pointer beyond the end of the string. Clean up code to
1013 match prevailing coding style.
1014
08b8ada9 10151999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
1016
1017 * tmpnam.c (L_tmpnam): Fix typo.
1018
2fb1c6e9 1019Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
1020
1021 * cplus-dem.c (standard_symbol_characters): Renamed from
1022 standard_symbol_alphabet. No longer modify TABLE.
1023 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
1024 modify TABLE.
1025 (main): Corresponding changes. Use strchr to determine if a
1026 character is valid.
1027
25398e41 10281999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
1029
1030 * cplus-dem.c (main): Use table lookup to distinguish identifier
1031 characters from non-identifier characters.
1032 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
1033
29723d26 1034Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
1035
1036 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
1037 * getruntime.c: Only attempt to include sys/resource.h and
1038 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
1039 are defined.
1040
dde96550 1041Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
1042
1043 * configure.in (alloca detection): Handle alloca directly for interix.
1044 * configure: Rebuilt.
1045
e98ba651 1046Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
1047
1048 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
1049
3460a017 10501999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
1051
1052 Fix from Dale Hawkins:
07c967f9 1053 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 1054 reallocated properly if we use it again.
1055
1056 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1057 stricter about syntax. Always null-terminate string.
1058
b01c0955 1059Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1060
1061 * configure.in (checkfuncs): Check for sbrk.
1062 * config.in: Rebuilt.
1063 * configure: Likewise.
1064 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1065
87c2e884 10661999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1067
1068 Fix from Marcus Daniels:
1069 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1070 identifier looking for another underscore.
1071
16b8e80f 1072Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1073
1074 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1075 * xmalloc.c: Likewise.
1076 (xcalloc): UWIN has sbrk.
1077 (xrealloc): Fix guard macro.
1078
4d0cfb7e 10791999-04-11 Richard Henderson <rth@cygnus.com>
1080
1081 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1082 or <alloca.h>.
1083 * clock.c (GNU_HZ): New definition.
1084 (clock): Use it.
1085 * getruntime.c: Likewise.
1086
1087 * config.table: Use mh-beos.
1088 * config/mh-beos: New file.
1089
0dc64970 10901999-04-11 Mark Mitchell <mark@codesourcery.com>
1091
1092 * cplus-dem.c (demangle_template_value_parm): Handle
1093 pointers-to-members.
1094 (do_type): Handle template parameters as qualifiers.
1095
9fec6063 10961999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1097
1098 * cplus-dem.c: Attempt to handle overflows in counts with some
1099 semblance of grace.
1100 (consume_count): Detect overflows. Return -1 to indicate errors,
1101 instead of zero.
1102 (demangle_template_value_parm, demangle_template): Handle change
1103 to consume_count's return convention.
1104
715f424c 11051999-04-05 Tom Tromey <tromey@cygnus.com>
1106
1107 * testsuite/regress-demangle: New file.
1108 * testsuite/demangle-expected: New file.
1109
1110 * Makefile.in (all, check, installcheck, info, install-info,
1111 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1112 distclean, maintainer-clean, realclean): Depend on corresponding
1113 `-subdir' target.
1114 (all-subdir check-subdir installcheck-subdir info-subdir
1115 install-info-subdir clean-info-subdir dvi-subdir
1116 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1117 distclean-subdir maintainer-clean-subdir): New target.
1118 * testsuite/Makefile.in: New file.
1119 * configure: Rebuilt.
1120 * configure.in: Create testsuite/Makefile.
1121
71c5948c 11221999-04-02 Mark Mitchell <mark@codesourcery.com>
1123
1124 * splay-tree.h (splay_tree_compare_pointers): Define.
1125
d1264606 11261999-03-30 Mark Mitchell <mark@codesourcery.com>
1127
1128 * splay-tree.c (splay_tree_compare_ints): Define.
1129
6fd618e7 11301999-03-30 Tom Tromey <tromey@cygnus.com>
1131
1132 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1133 don't advance input pointer.
1134 (demangle_class_name): If consume_count didn't find a count, do
1135 nothing. Don't bother with `strlen' sanity check; consume_count
1136 does it for us.
1137
bdaa26ad 11381999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1139
1140 From Art Haas <ahaas@neosoft.com>:
1141 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1142 when doing arm or hp style.
1143 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 1144
d267f778 1145Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1146
1147 * pexecute.c (__CYGWIN32__): Rename to
1148 (__CYGWIN__): this.
1149 * xmalloc.c: Likewise.
1150
1151 Changes to support i386-pc-uwin.
1152 * configure.in (*-*-uwin*): Workaround for vfork bug.
1153 * configure: Regenerate.
1154 * pexecute.c (pexecute): Be like standard Unix.
1155 (pwait): Likewise.
1156 * xmalloc.c (first_break): Define.
1157 (xmalloc_set_program_name): Use.
1158 (xmalloc): Use.
1159
90405950 1160Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1161
1162 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1163
bdaa26ad 1164Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1165
1166 * config.table: Check cygwin*, not cygwin32*.
1167
e6ed8194 1168Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1169
1170 * Makefile.in: Change mkstemp -> mkstemps.
1171
301e59c9 1172Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1173
1174 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1175 * configure.in (funcs): Check for and conditionally add mkstemps to
1176 the list of functions libiberty will provide.
1177 * configure: Rebuilt.
07c967f9 1178
89e305f9 1179Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1180
07c967f9 1181 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 1182 platforms that don't have HZ.
1183 * getruntime.c (HZ): Likewise.
1184
ecfe64e7 1185Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1186
1187 * Makefile.in (xstrdup.o): Depend on config.h.
1188
2e5e2114 1189Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1190
1191 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1192 freeing it.
1193
6aa62a59 1194Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1195
1196 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1197
bdaa26ad 1198Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1199
1200 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1201 splay-tree.o.
1202
12031999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1204
1205 * configure.in: Require autoconf 2.12.1 or higher.
1206
9e1ed734 12071998-12-30 Michael Meissner <meissner@cygnus.com>
1208
1209 * random.c (NULL): Don't redefine NULL if it is already defined.
1210
7c8c70e9 1211Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1212
1213 * argv.c (buildargv): Cast the result of alloca in assignment.
1214
1215 * choose-temp.c: Include stdlib.h.
2e5e2114 1216
7c8c70e9 1217 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1218 (snarf_numeric_literal): Constify first parameter.
1219 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1220 int, not a char.
1221 (demangle_qualifier): Likewise.
1222 (demangle_signature): Cast the argument of a ctype function to
1223 unsigned char.
1224 (arm_pt): Add parens around assignment used as truth value.
1225 (demangle_arm_hp_template): Constify variable `args'.
1226 (do_hpacc_template_const_value): Cast the argument of a ctype
1227 function to unsigned char.
1228 (do_hpacc_template_literal): Remove unused variable `i'.
1229 (snarf_numeric_literal): Constify parameter `args'.
1230 Cast the argument of a ctype function to unsigned char.
1231
1232 * floatformat.c (floatformat_to_double): Add explicit braces to
1233 avoid ambiguous `else'.
2e5e2114 1234
7c8c70e9 1235 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1236 `cstart' and `cend' to unsigned char. Cast the argument of macro
1237 `FOLD', which uses ctype functions, to unsigned char.
1238
1239 * objalloc.c (free): Add prototype.
1240
9070a37e 1241Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1242
1243 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1244
bdaa26ad 1245Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1246
1247 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1248 doesn't exist.
1249 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 1250
0a5a5994 1251Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1252
1253 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1254 bumping the pointer we read from. Also prepend these codes,
1255 as we do in other places.
1256
bdaa26ad 12571998-12-18 Nick Clifton <nickc@cygnus.com>
1258
1259 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1260 'const char *' in order to match its usage when calling siblings.
1261 (snarf_numeric_literal): Make first arg 'const char **' in order
1262 to match usage.
4ed77eec 1263
50cbddd6 1264Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1265
4ed77eec 1266 * choose-temp.c: Don't check IN_GCC anymore.
1267
1268 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1269 * memchr.c (memchr): Likewise.
1270 * memcpy.c (memcpy): Likewise.
1271 * memmove.c (memmove): Likewise.
2e5e2114 1272
4ed77eec 1273 * mkstemp.c: Don't check IN_GCC anymore.
1274 * pexecute.c: Likewise.
1275 * splay-tree.c: Likewise.
2e5e2114 1276
4ed77eec 1277 * strchr.c (strchr): Use `const', not `CONST'.
1278 * strrchr.c (strrchr): Likewise.
1279 * strtol.c (strtol): Likewise.
1280 * strtoul.c (strtoul): Likewise.
1281
f75dc4de 1282Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1283 Elena Zannoni <ezannoni@cygnus.com>
1284 Stan Shebs <shebs@cygnus.com>
1285 Edith Epstein <eepstein@cygnus.com>
1286 Andres MacLeod <amacleod@cygnus.com>
1287 Satish Pai <pai@apollo.hp.com>
1288
1289 * HP aCC demangling support.
1290 * cplus-dem.c
1291 (main): Remove default to HP style demangling, set to EDG
1292 demangling correctly when -edg specified; set the demangling style
1293 when user specifies 'edg'. Set strip_underscore to
1294 prepends_underscore, if not HPUXHPPA. Set
1295 current_demangling_style to hp_demangling if HPUXHPPA. Set
1296 current demangling style correctly if the switch is hp. Read
1297 label correctly also in the HP style case.
1298 (work_stuff): add temp_start field; add field for volatile member
1299 function.
1300 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1301 style for this case is the same as ARM.
1302 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1303 (demangle_arm_hp_template): new function. (It was
1304 demangle_arm_pt.); check and set value of temp_start field in
1305 multiple places. Also, when ceching for end of template args,
1306 check to see if at end of static member of template class.
1307 (demangle_class): new local variable : save_class_name_end Don't
1308 include template args in string defining class.
1309 (demangle_class_name): use demangel_arm_hp_template.
1310 (demangle_function_name): handle case where demangling style is
1311 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1312 Handle EDG_DEMANGLING style. Handle constructor and destructor
1313 ops for HP style.
1314 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1315 styles. global destructor and constructor for HP style are same
1316 as for ARM style. Same for local variables.
1317 (demangle_qualified): handle EDG_DEMANGLING style.
1318 (demangle_signature): add case for volatile member function. For
1319 cases '1' - '9' : initialize the temp_start field to -1 and handle
1320 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1321 and AUTO_DEMANGLING styles. If expecting a function and managed
1322 to demangle the funct args, then handle the LUCID_DEMANGLING,
1323 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1324 class name after "Lnnn_ in HP style case. HP style too needs to
1325 forget types. _nnn is OK for HP style, so don't report failure.
1326 (do_hpacc_template_const_value): new function. Handle template's
1327 value param for HP/aCC.
1328 (do_hpacc_template_literal): new function. Handle a template's
1329 literal parameter for HP aCC.
1330 (recursively_demangle): new function
1331 (snarf_numeric_literal): new function.
1332 (usage): add 'edg' to the list of demangling styles; add hp switch
1333 to message.
1334
a5c56042 1335Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1336
1337 * pexecute.c: Remove obsolete ifdefed cygwin code.
1338
4ae63959 1339Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1340
1341 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1342 * cplus-dem.c: Likewise. Conform to libiberty.h.
1343 * pexecute.c: Likewise.
1344 * splay-tree.c: Likewise.
1345
b41b6b67 13461998-11-25 Mike Stump <mrs@wrs.com>
1347
1348 * Makefile.in (splay-tree.o): Add config.h dependency.
1349
a1dd5bff 1350Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1351
1352 * configure.in: Use AC_PREREQ(2.12.1).
1353
d54546fb 13541998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1355
07c967f9 1356 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 1357
9fdb1080 1358Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1359
1360 * mpw.c (mpw_access): Add missing parens.
1361
1ed7db2f 1362Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1363
1364 * configure.in: Call AC_HEADER_SYS_WAIT.
1365
1366 * pexecute.c: Include sys/wait.h when !IN_GCC.
1367
bdaa26ad 1368Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1369
1370 * pexecute.c: revert back to checking old Cygwin
1371 preprocessor symbol until some time has passed.
1372
1373Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1374
1375 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1376 since it will now support similar constructs.
1377
34fa8831 1378Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1379
1380 * configure.in: Check for calloc.
1381
1382 * calloc.c: New file.
1383
1384 * xmalloc.c (xcalloc): New function.
1385
75ebb412 1386Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1387
1388 *cplus-dem.c (demangle_prefix): Use the last "__"
1389 in the mangled name when looking for the signature. This allows
1390 template names to begin with "__".
1391
5b546829 13921998-11-08 Mark Mitchell <mark@markmitchell.com>
1393
73bea962 1394 * cplus-dem.c (type_kind_t): Add tk_reference.
1395 (demangle_template_value_parm): Handle it.
1396 (do_type): Use it for references, instead of tk_pointer.
1397
5b546829 1398 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1399 not internal_cplus_demangle.
1400
0e4558d2 1401Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1402
1403 * choose-temp.c: Don't include gansidecl.h.
1404 * mkstemp.c: Likewise.
1405 * pexecute.c: Likewise.
1406
7b8b8d43 1407Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1408
07c967f9 1409 * configure.in: detect cygwin* instead of cygwin32*
1410 * configure: regenerate
7b8b8d43 1411
f9a39df1 1412Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1413
1414 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1415 whether to include config.h. Possibly include unistd.h in the
1416 !IN_GCC case. Define VFORK_STRING as a printable function call
1417 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1418 defined, include vfork.h. If VMS is defined, define vfork()
1419 appropriately. Remove vfork check on USG, we're using autoconf.
1420 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1421 locally what string to use.
1422
797ba725 14231998-10-26 Mark Mitchell <mark@markmitchell.com>
1424
1425 * splay-tree.c: Tweak include directives to make sure declarations of
1426 xmalloc and free are available.
1427
3662c79b 14281998-10-25 Mark Mitchell <mark@markmitchell.com>
1429
1430 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1431 anonymous namespaces.
2e5e2114 1432
af5199c0 14331998-10-23 Mark Mitchell <mark@markmitchell.com>
1434
1435 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1436 with type_quals.
1437 (TYPE_UNQUALIFIED): New macro.
1438 (TYPE_QUAL_CONST): Likewise.
1439 (TYPE_QUAL_VOLATILE): Likewise.
1440 (TYPE_QUAL_RESTRICT): Likewise.
1441 (code_for_qualifier): New function.
1442 (qualifier_string): Likewise.
1443 (demangle_qualifier): Likewise.
1444 (internal_cplus_demangle): Use them.
1445 (demangle_signature): Likewise.
1446 (demangle_template_value_parm): Likewise.
1447 (do_type): Likewise.
1448 (demangle_fund_type)): Likewise.
3662c79b 1449
e61da89d 1450Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1451
1452 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1453 to match prototype.
1454
9a4eb61d 14551998-10-21 Mark Mitchell <mark@markmitchell.com>
1456
1457 * splay-tree.c: New file.
1458 * Makefile.in (CFILES): Add it.
1459 (REQUIRED_OFILES): Likewise.
1460 (splay-tree.o): Add dependencies.
1461
e5d3a45b 1462Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1463
1464 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1465 range of 'K' index.
1466
4350e959 1467Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1468
1469 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1470
1471 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1472 `unsigned char'.
1473 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1474 comparing against one.
1475 (cplus_mangle_opname): Likewise.
1476 (demangle_integral_value): Cast argument of ctype macro to
1477 `unsigned char'.
1478 (demangle_template_value_parm): Likewise.
1479 (demangle_template): Initialize variable `bindex'. Cast the
1480 result of `strlen' to (int) when comparing against one. Remove
1481 unused variable `start_of_value_parm'.
1482 (demangle_class_name): Cast the result of `strlen' to (int) when
1483 comparing against one.
1484 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1485 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1486 when comparing against one.
1487 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1488 (get_count): Likewise.
1489 (do_type): Likewise. Cast the result of `strlen' to (int) when
1490 comparing against one.
1491 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1492 (demangle_function_name): Cast the result of `strlen' to (int)
1493 when comparing against one.
1494
1495 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1496 comparing against one.
1497
5dfe2c03 1498Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1499
07c967f9 1500 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1501 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1502 * config.in, configure: Rebuilt.
0be6f86d 1503
5dfe2c03 1504 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1505 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1506 * config.in, configure: Rebuilt.
1507
7b8b8d43 1508Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1509
07c967f9 1510 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 1511
68b78c88 1512Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1513
1514 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1515
804ec1bf 1516Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1517
1518 * Merge egcs & devo libiberty.
1519
7a1ec54f 1520