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