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