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