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