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