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