]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
New test.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
918a89ef 12000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * cplus-dem.c (grow_vect): Prototype.
4 (ada_demangle): Cast the arg of ctype macros to unsigned char.
5
582f72ad 62000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7
8 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
9 parameter `option'.
10
0d6e3c59 112000-11-15 Kenneth Block <kenneth.block@compaq.com>
12
42ded3a1 13 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 14 be used in GCC.
15
9df8b754 162000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 17
582f72ad 18 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 19 list.
20
e4c2dc6e 212000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
22
23 * hashtab.c (htab_expand): Change to return int. Use calloc or
24 xcalloc depending on htab->return_allocation_failure. Return zero
25 if calloc fails.
26 (htab_create): Update comment to cover memory allocation.
27 (htab_try_create): New.
28 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
29 Update comment to cover this.
30
696d6593 312000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
32
33 * hashtab.c: Change void * to PTR where necessary.
34 (htab_create, htab_expand): Correct formatting of comment before
35 function.
36
8f2b45d4 372000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 38
39 * cp-demangle.c (string_list_def): Add caret_position and comments.
40 (result_caret_pos): New macro.
41 (result_append_string): Rename to...
42 (result_add_string): ... this, and insert at caret position.
43 Rename throughout.
44 (result_append): Rename to...
45 (result_add): ... this, and insert at caret position. Rename
46 throughout.
47 (result_append_char): Rename to...
48 (result_add_char): ... this, and insert at caret position. Rename
49 throughout.
50 (result_append_space): Remove.
51 (string_list_new): Initialize caret position.
52 (result_add_separated_char): Use caret position.
53 (result_get_caret): New funtion.
54 (result_set_caret): Likewise.
55 (result_shift_caret): Likewise.
56 (result_previous_char_is_space): Likewise.
57 (substitution_start): Use caret position.
58 (substitution_add): Likewise.
59 (demangling_new): Initialize caret position.
60 (demangle_encoding): Use caret position.
61 (demanglin_nested_name): Put CV qualifiers after name.
62 (demangle_type_ptr): Use switch statement. Handle pointers to
63 arrays. Don't use result_append_space. Use caret position.
64 (demangle_type): Emit CV qualifiers after underlying type. Adjust
65 call to demangle_array_type.
66 (demangle_array_type): Add parameter to handle pointers to arrays.
67
a4e59c31 682000-10-01 Mark Mitchell <mark@codesourcery.com>
69
70 * splay-tree.c (splay_tree_insert): Fix formatting.
71
e41f0d80 722000-09-16 Mark Mitchell <mark@codesourcery.com>
73
74 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
75
83d86ada 762000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
77
78 * splay-tree.c: #include <stdio.h>.
79
78631810 802000-09-14 Hans-Peter Nilsson <hp@axis.com>
81
82 * testsuite/demangle-expected: Add two tests for anonymous
83 namespaces.
84 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
85
508f18c8 862000-09-10 Mark Mitchell <mark@codesourcery.com>
87
88 * splay-tree.c (splay_tree_predecessor): New function.
89 (splay_tree_successor): Likewise.
90
1a2d2193 912000-09-10 Hans-Peter Nilsson <hp@axis.com>
92
93 * testsuite/demangle-expected: Add four tests for type_info
94 mangling.
1a2d2193 95 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
96 for a non-template non-qualified type_info function or node.
97
09656987 982000-09-08 Alex Samuel <samuel@codesourcery.com>
99
100 * cp-demangle.c: Fix copyright banner.
101
7cc2d24b 1022000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
103
104 * md5.c: #include "ansidecl.h".
105
b83e8722 1062000-09-06 Alex Samuel <samuel@codesourcery.com>
107
108 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
109 (demangle_type): Handle substitution candidates correctly in the
110 face of special substitutions.
111
cf70278e 1122000-09-05 Alex Samuel <samuel@codesourcery.com>
113
114 * cp-demangle.c (demangle_encoding): Rename variable.
115 (demangle_name): Rename parameter. Handle return type
116 suppression.
117 (demangle_nested_name): Rename parameter.
118 (demangle_prefix): Likewise. Change return type suppression.
119 (demangle_unqualified_name): Add parameter. Flag constructors and
120 conversion operators.
121 (demangle_special_name): Fix comment.
122 (demangle_type): Rename variable.
123 (demangle_bare_function_type): Check for missing return type and
124 parameter.
125 (demangle_class_enum_type): Rename parameter.
126 (demangle_discriminator): Fix misspelling in comment.
127
4aabc076 1282000-08-31 DJ Delorie <dj@redhat.com>
129
130 * configure.in (Cygwin): special case cygwin only when we're
131 building cygwin, not when we're hosting cygwin.
132
804ddfd1 1332000-09-04 Alex Samuel <samuel@codesourcery.com>
134
135 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
136 <expression>.
137
e015a852 1382000-09-04 Alex Samuel <samuel@codesourcery.com>
139
140 * cp-demangle.c (demangle_type_ptr): Increment position past
141 pointer and reference characters.
142
2b6805b4 1432000-09-04 Alex Samuel <samuel@codesourcery.com>
144
145 * cp-demangle.c (demangle_nv_offset): New function.
146 (demangle_v_offset): Likewise.
147 (demangle_call_offset): Likewise.
148 (demangle_special_name): Update thunk demangling to comply with
149 ABI changes.
150
40e00cb0 1512000-09-03 Alex Samuel <samuel@codesourcery.com>
152
153 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
154 (substitution_def): Remove template_parm_number.
155 (NOT_TEMPLATE_PARM): Remove.
156 (result_insert_string): New macro.
157 (result_insert): Likewise.
158 (result_insert_char): Likewise.
159 (substitution_add): Remove last parameter. Don't store template
160 parm number.
161 (BFT_NO_RETURN_TYPE): Define as NULL.
162 (demangle_encoding): Adjust call to demangle_bare_function_type.
163 (demangle_name): Adjust substitution. Adjust call to
164 substitution_add.
165 (demangle_prefix): Adjust call to substitution_add.
166 (demangle_identifier): Handle anonymous namespaces.
167 (demangle_operator_name): Change demangling of vendor-extended
168 operator to match ABI changes.
169 (demangle_type_ptr): Change parameters. Make recursive. Handle
170 substitutions here.
171 (demangle_type): Adjust calls to demangle_template_param,
172 substitution_add, and demangle_type_ptr. Fix substitution of
173 templated types.
174 (demangle_function_type): Change parameter to a pointer.
175 (demangle_bare_function_type): Likewise. Adjust insertion point.
176 (demangle_template_param): Remove last parameter.
177 (demangle_expr_primary): Remove unused variable. Adjust call to
178 demangle_template_param.
179 (is_mangled_char): Accept `$' and `.'.
180 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
181 * dyn-string.c (dyn_string_insert_char): New function.
182
01f404a2 1832000-08-31 Hans-Peter Nilsson <hp@axis.com>
184
185 * testsuite/demangle-expected: Add nine tests for
186 underscore-after-number followed by five tests for name-signature
187 delimiter.
188
d74245d4 1892000-08-28 Richard Henderson <rth@cygnus.com>
190
191 * Makefile.in (md5.o): Depend on config.h.
192
19f716e5 1932000-08-28 Jason Merrill <jason@redhat.com>
194
195 * Makefile.in (REQUIRED_OFILES): Add md5.o.
196 (CFILES): Add md5.c.
197 * md5.c: New file.
198
f8aeab41 1992000-08-27 Alex Samuel <samuel@codesourcery.com>
200
201 * cp-demangle.c (demangle_name): Initialize template_p in local
202 name case. Don't re-add substitutions as candidates.
203 (demangle_nested_name): Use <unqualified-name>.
204 (demangle_prefix): Likewise. Don't add template names as
205 substitution candidates twice, or re-add a substitution or the
206 last prefix component.
207 (demangle_local_name): Adjust output format.
208
62c2feed 2092000-08-25 Alex Samuel <samuel@codesourcery.com>
210
211 * cp-demangle.c (result_add_separated_char): Change parameter to
212 int.
213 (substitution_add): Don't check for duplicates. Check if
214 previously allocated size is zero.
215 (demangle_name): Remove duplicate check for std substitution.
216 Clear template flag appropriately.
217 (demangle_prefix): Remove argument to demangle_substitution.
218 Don't check that template flag is already set.
219 (demangle_operator_name): Add pt operator.
220 (demangle_type): Don't treat r as built-in type. Remove argument
221 to demangle_substitution. Fix substitution candidate mechanics.
222 Handle <template-template-parm>s. Improve comments.
223 (demangle_template_param): Don't handle template arg lists here.
224 (demangle_substitution): Remove parameter.
225 (print_usage): Remove extra fprintf option.
226
ee1d4c3d 2272000-08-24 Greg McGary <greg@mcgary.org>
228
229 * libiberty/random.c (end_ptr): Revert previous change.
230
f0bff53d 2312000-08-24 Greg McGary <greg@mcgary.org>
232
233 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
234 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
235 * libiberty/random.c (end_ptr): Likewise.
236
c1b316c0 2372000-08-23 Alex Samuel <samuel@codesourcery.com>
238
239 * cp-demangle.c (result_close_template_list): Remove function.
240 (result_add_separated_char): New function.
241 (result_open_template_list): New macro.
242 (result_close_template_list): Likewise.
243 (demangle_prefix): Don't set template_p if the
244 prefix ends with a ctor name.
245 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
246 (demangle_type): Check for template args after substitution.
247 (demangle_template_args): Use result_open_template_list.
248
385b48fc 2492000-08-02 Zack Weinberg <zack@wolery.cumb.org>
250
251 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
252
d0ed2203 2532000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 254
255 * config/mh-openedition.h: Added -DLE370 definition.
256
8fc0efd2 2572000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
258
259 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
260 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
261 Cast program to 'char *' in errmsg_arg assignment.
262 (PWAIT_ERROR): Define.
263 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
264 to DJGPP's WIF* macros.
265
a1d4f79a 2662000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
267 Jeff Law <law@cygnus.com>
268
98b4c197 269 * getcwd.c: Include string.h, stdlib.h for prototypes
270
a1d4f79a 271 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 272 * rename.c: Include config.h, unistd.h
273 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 274
01f404a2 2752000-07-24 Hans-Peter Nilsson <hp@axis.com>
276
277 * cplus-dem.c (work_stuff_copy_to_from): New.
278 (delete_non_B_K_work_stuff): New.
279 (delete_work_stuff): New.
280 (mop_up): Break out work_stuff partly destruction to
281 delete_non_B_K_work_stuff.
282 (iterate_demangle_function): New.
283 (demangle_prefix): Call iterate_demangle_function instead of
284 demangle_function_name. Leave handling of name-signature
285 __-delimiters to iterate_demangle_function.
286 (demangle_integral_value): Strip an optional
287 following underscore cautiously. Handle negative numbers.
288
f2e5a608 2892000-07-24 Daniel Berlin <dberlin@redhat.com>
290
291 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
292 if (AUTO_DEMANGLING || GNU_DEMANGLING)
293
65bcf503 2942000-07-21 Alex Samuel <samuel@codesourcery.com>
295
296 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
297 allocating ctor mangling.
298 (demangle_array_type): Handle empty and non-constant array length.
299
68e6b6e1 3002000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 301 Jeff Law <law@cygnus.com>
302
1a163ca8 303 * configure.in (AC_CHECK_HEADERS): Add time.h.
304 (AC_HEADER_TIME): Add check.
305 * configure, config.in: Regenerate.
306 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
307
a451eef0 308 * configure.in (AC_CHECK_HEADERS): Add limits.h.
309 * configure, config.in: Regenerate.
310 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
311 * strtol.c, strtoul.c: #include "config.h". Portably #include
312 <limits.h> and/or <sys/param.h>.
313 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 314
fb758229 315 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
316 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
317 * configure, config.in: Regenerate.
318 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
319
68e6b6e1 320 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
321
ad46fec4 3222000-07-21 Mike Stump <mrs@wrs.com>
323
324 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 325 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 326
bb37062f 3272000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
328
329 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
330
331 * setenv.c (setenv): Initialize variable `ep'.
332
333 * sigsetmask.c (abort): Prototype.
334
335 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
336 __STDC__ for stdarg.h include.
337 (int_vasprintf): Prototype.
338 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
339 definition. Cast `global_total_width' in comparison.
340 (main): Prototype. Return a value.
341
342 * vfork.c (fork): Prototype.
343
344 * xexit.c: Include config.h.
345
6cb730c2 3462000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
347
348 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
349 and print it with %u.
350
e42d7fe1 3512000-07-17 Hans-Peter Nilsson <hp@axis.com>
352
353 * testsuite/regress-demangle (failed test): Show result and
354 expected output.
355
04ef60ef 3562000-07-07 Andrew Haley <aph@cygnus.com>
357
358 * cplus-dem.c (main): fflush() after emitting last char before
359 waiting for input.
360
b7f68aff 3612000-06-28 Alex Samuel <samuel@codesourcery.com>
362
363 * cp-demangle.c (demangle_encoding): Accept no substitutions.
364 (demangle_name): Handle <substitution> followed by
365 <unqualified-template-name>.
366 (demangle_type): Follow special substitutions with
367 <class-enum-type>
368 (demangle_subtitution): Set template_p for special substitutions.
369 (main): Fix typos.
370
597f928d 3712000-06-27 Alex Samuel <samuel@codesourcery.com>
372
373 * cp-demangle.c (demangle_special_name): Swap base and derived
374 class when demangling construction vtables.
375
140d75d7 3762000-06-21 Alex Samuel <samuel@codesourcery.com>
377
378 * cp-demangle.c: Don't include ctype.h.
379 (IS_DIGIT): New macro.
380 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
381 instead of isdigit and isalpanum.
382 (demangling_def): Make name and next const pointers.
383 (STATUS_ALLOCATION_FAILED): New status code.
384 (dyn_string_append_space): Handle failure in
385 dyn_string_append_char.
386 (int_to_dyn_string): Likewise. Change return value to status_t.
387 (string_list_new): Handle failure of dyn_string_init.
388 (result_close_template_list): Change return type to status_t.
389 Handle failure in dyn_string_append.
390 (result_push): Change return value to status_t. Handle failure in
391 string_list_new. Handle failure of result_push throughout.
392 (substitution_add): Change return value to status_t. Handle
393 dyn_string failures. Handle failure of substitution_add
394 throughout.
395 (template_arg_list_new): Return NULL on allocation failure.
396 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
397 Handle error result throughout.
398 (result_append): Likewise.
399 (result_append_char): Likewise.
400 (result_append_space): Likewise.
401 (demangling_new): Make argument a const pointer. Handle
402 allocation failures.
403 (demangle_template_args): Handle failure in template_arg_list_new
404 and result_close_template_list.
405 (demangle_discriminator): Return if int_to_dyn_string fails.
406 (cp_demangle): Likewise.
407 (cp_demangle_type): New function.
408 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
409 memory allocation failure.
410 (main): Likewise.
411 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
412 IN_LIBGCC2.
413 (dyn_string_init): Change return value to int. Handle
414 RETURN_ON_ALLOCATION_FAILURE case.
415 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
416 (dyn_string_release): Delete the dyn_string.
417 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
418 (dyn_string_copy): Change return type to int.
419 (dyn_string_copy_cstr): Likewise.
420 (dyn_string_prepend): Likewise.
421 (dyn_string_prepend_cstr): Likewise.
422 (dyn_string_insert): Likewise.
423 (dyn_string_insert_cstr): Likewise.
424 (dyn_string_append): Likewise.
425 (dyn_string_append_cstr): Likewise.
426 (dyn_string_append_char): Likewise.
427 (dyn_string_substring): Likewise.
428
210aba33 4292000-06-09 Zack Weinberg <zack@wolery.cumb.org>
430
431 * cp-demangle.c (demangle_operator_name): Add spaces before
432 names beginning with a letter: delete, delete[], new, new[],
433 sizeof.
434 (demangle_special_name): Handle TF <type> and TJ <type>.
435
0b4450c1 436Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
437
438 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
439
e5d6924a 440Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
441
442 * cp-demangle.c (stdio.h): File included unconditionaly.
443 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
444 * dyn-string.c (stdio.h): File included.
445 * partition.c (partition_print): No `&' needed to take the address of
446 a function.
447
da8bd873 4482000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
449
450 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
451
452 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
453
454 * cp-demangle.c (demangle_char): Change parameter from char to int.
455 (demangle_expression, demangle_expr_primary): Remove extra
456 semi-colon in prototype.
457
458 * dyn-string.c (dyn_string_append_char): Change parameter from
459 char to int.
460
461 * memcmp.c (memcmp): Constify.
462
463 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
464 __extension__.
465
466 * partition.c (elem_compare): Prototype. Don't cast away
467 const-ness.
468
469 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
470
4b7bc488 4712000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
472
473 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
474
475 * cp-demangle.c: Include demangle.h.
476 (template_arg_list_new): DeANSIfy.
477 (cp_demangle): Make static and add prototype.
478 (operator_code, operators): Constify.
479 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
480
7ae7b54c 4812000-06-05 Alex Samuel <samuel@codesourcery.com>
482
483 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
484 unsigned char.
485 (demangle_unqualified_name): Likewise.
486 (demangle_number_literally): Likewise.
487 (demangle_type): Likewise.
488 (demangle_substitution): Likewise.
489 (is_mangled_char): Likewise, for isalnum.
490
168d63e5 4912000-06-04 Alex Samuel <samuel@codesourcery.com>
492
493 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
494 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
495 (cp-demangle.o): New dependency.
496 (dyn-string.o): Likewise.
497
498 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
499
500 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
501 demangler.
502 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
503 demangling mode.
504 (gnu_new_abi_symbol_characters): New function.
505 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
506 file.
507 * cp-demangle.c: New file.
508
b5495c1d 509Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
510
511 * floatformat.c: Add name to each floatformat field.
512
8fab1737 513Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
514
515 * Makefile.in (objalloc.o): Depend on config.h
516
317ab997 5172000-05-29 Zack Weinberg <zack@wolery.cumb.org>
518
519 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
520 if HAVE_STRING_H.
521 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
522 * objalloc.c: Include config.h. Include stdlib.h and don't
523 declare malloc or free if HAVE_STDLIB_H.
524 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
525 else declare malloc without prototype. Include string.h if
526 HAVE_STRING_H, else declare memset without prototype. Don't
527 include stddef.h.
528
874478ba 5292000-05-23 Mike Stump <mrs@wrs.com>
530
531 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
532 -j3.
533
55de1520 5342000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
535
536 * xmalloc.c: Include config.h for HAVE_SBRK definition.
537
e51b357b 5382000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
539
540 * hashtab.c (hash_pointer): Delete low-order bits which are
541 probably zero, also eliminate a warning on alpha.
542
9e362499 5432000-05-15 David Edelsohn <edelsohn@gnu.org>
544
e390e838 545 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 546 on $(enable_shared).
547
06c6487f 5482000-05-10 Jakub Jelinek <jakub@redhat.com>
549
550 * config.table: Use mh-sparcpic for sparc*-*-*.
551
0baf89fb 5522000-05-08 Nick Clifton <nickc@cygnus.com>
553
554 * Makefile.in (CFILES): Add strncmp.c.
555 (NEEDED): Add strncmp.
556
59f72e4d 5572000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
558
559 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
560 Cast the arguments to `islower' to `unsigned char'.
561 (print_demangler_list): Prototype.
562
fb0c90ed 563Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
564
565 * sort.c (UCHAR_MAX): Provide fallback definition.
566
167a5f18 5672000-04-29 Alexandre Oliva <aoliva@cygnus.com>
568
569 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
570 SUBDIRS.
571
6f572555 5722000-04-28 Kenneth Block <block@zk3.dec.com>
573 Jason Merrill <jason@casey.cygnus.com>
574
575 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
576 (cplus_demangle_set_style): New function for setting style.
577 (cplus_demangle_name_to_style): New function to translate name.
578
b3524c8f 5792000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
580
581 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
582
583 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
584 (libiberty_AC_FUNC_STRNCMP): Invoke.
585
586 * strncmp.c: New file.
587
a5f725a3 588Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
589
590 * hashtab.c (htab_expand): Add prototype.
591 (find_empty_slot_for_expand): Likewise.
592
8afd4145 5932000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
594
595 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
596 match prototype.
597 (htab_expand): Cast the return value of xcalloc.
598
c9dfb8ae 5992000-04-24 Mark Mitchell <mark@codesourcery.com>
600
601 * hashtab.c (hash_pointer): New function.
602 (eq_pointer): Likewise.
603 (htab_hash_pointer): New variable.
604 (htab_eq_pointer): Likewise.
605
85993fc6 6062000-04-23 Mark Mitchell <mark@codesourcery.com>
607
9517f453 608 * sort.c (sort_pointers): Fix endianness bugs.
609
85993fc6 610 * sort.c: New file.
611 * Makefile.in (CFILES): Add sort.c
612 (REQUIRED_OFILES): Add sort.o.
613 (sort.o): New target.
614
c9b2f47c 6152000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
616
617 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
618 4.3BSD systems.
619
2b3dbc20 620Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
621
622 * hashtab.c: Various minor cleanups.
623 (htab_find_slot_with_hash): INSERT is now enum insert_option.
624 (htab_find_slot): Likewise.
625
6ea8a864 6262000-04-16 Dave Pitts <dpitts@cozx.com>
627
628 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
629
105211e5 6302000-04-05 Richard Henderson <rth@cygnus.com>
631
632 * splay-tree.c (splay_tree_remove): New.
633
7669680f 6342000-03-30 Mark Mitchell <mark@codesourcery.com>
635
636 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
637 codes.
638 (htab_find_with_hash): Likewise.
639 (htab_find_slot_with_hash): Likewise.
640
07c797e3 6412000-03-29 Zack Weinberg <zack@wolery.cumb.org>
642
643 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
644 unless it will be used. Rearrange loop for better
645 optimization.
646 (higher_prime_number): Add static prototype.
647
8ef1b8d1 648Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
649
650 * Makefile.in (partition.o): Depend on config.h
651
ed26da85 6522000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
653
654 * hashtab.c (find_empty_slot_for_expand): New function.
655 (htab_expand): Use it instead of htab_find_slot.
656 (htab_find_with_hash): Renamed from htab_find; now accepts extra
657 argument HASH.
658 (htab_find_slot_with_hash): Likewise for htab_find_slot.
659 (htab_find): New wrapper function.
660 (htab_find_slot): Likewise.
661 (htab_traverse): Pass slot, not entry, to called function.
662
dadde703 6632000-03-09 Alex Samuel <samuel@codesourcery.com>
664
665 * Makefile.in (CFILES): Add partition.c.
666 (REQUIRED_OFILES): Add partition.o.
667 (partition.o): New rule.
668 * partition.c: New file.
669
3fdd387a 6702000-03-09 Zack Weinberg <zack@wolery.cumb.org>
671
672 * hashtab.c (htab_create): Set del_f.
673 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
674 Use it.
675
07c967f9 6762000-03-08 Zack Weinberg <zack@wolery.cumb.org>
677
678 * hashtab.c: Remove debugging variables (all_searches,
679 all_collisions, all_expansions). Delete
680 all_hash_table_collisions.
681 (create_hash_table, delete_hash_table, empty_hash_table,
682 find_hash_table_entry, remove_element_from_hash_table_entry,
683 clear_hash_table_slot, traverse_hash_table, hash_table_size,
684 hash_table_elements_number, hash_table_collisions): Rename to:
685 htab_create, htab_delete, htab_empty, htab_find_slot,
686 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
687 htab_elements, htab_collisions.
688 (htab_find): New function, handles common case where you don't
689 plan to add or delete an entry.
690 (htab_expand): Don't create a whole new table, just a new
691 entry vector.
692 (htab_find_slot): Simplify logic.
693
1f33a375 6941999-08-03 Ian Lance Taylor <ian@zembu.com>
695
696 * floatformat.c: Add casts to avoid signed/unsigned warnings.
697 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
698
699 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
700 $(TARGETLIB)n so it works on MSDOS.
701 (install_to_tooldir): Likewise.
702
7031999-07-21 Ian Lance Taylor <ian@zembu.com>
704
705 From Mark Elbrecht:
706 * makefile.dos: Remove; obsolete.
707 * configure.bat: Remove; obsolete.
708
7091999-07-11 Ian Lance Taylor <ian@zembu.com>
710
711 * splay-tree.c (splay_tree_insert): Add initialization to avoid
712 warning.
713
b99e5aef 7142000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
715
716 * pexecute.c: Conditionally include string.h.
07c967f9 717 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 718
6d93ad38 7192000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
720
721 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
722 we're using gcc.
723
724 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
725
59dfb43e 7261999-12-27 Geoff Keating <geoffk@cygnus.com>
727
728 * vasprintf.c (int_vasprintf): Don't re-read the format character
729 as this mishandles strings like '%%s'.
730
b04bbebb 7311999-12-05 Mark Mitchell <mark@codesourcery.com>
732
733 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
734 rather than struct splay_tree_node.
735 (splay_tree_insert): Use struct splay_tree_s rather than struct
736 splay_tree.
737
d7f8de75 738Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
739
740 * hashtab.c (sys/types.h): File included.
741
7202ac7d 7421999-11-22 Jason Merrill <jason@casey.cygnus.com>
743
744 * strtoul.c, strtol.c, random.c: Remove advertising clause from
745 BSD license, pursuant with
746
747 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
748
bd41a79e 749Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
750
751 * hashtab.c: Include stdio.h.
752
b77d3fd0 753Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
754
755 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
756
1b4391fe 757Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
758
759 * xstrdup (sys/types.h): Include this file.
760
4bc57096 7611999-10-28 Nathan Sidwell <nathan@acm.org>
762
763 * Makefile.in (SUBDIRS): New macro.
764 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
765 avoid multiple subdirectory cleaning.
766 (*-subdir): Use SUBDIRS.
767
9087cad2 7681999-10-25 Jim Kingdon <http://developer.redhat.com/>
769
770 * cplus-dem.c: Move declarations of standard_symbol_characters and
771 hp_symbol_characters inside #ifdef MAIN to avoid compiler
772 warnings.
773
21a7d507 7741999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
775
776 * hashtab.c (find_hash_table_entry): When returning a
777 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
778 (clear_hash_table_slot): New function which deletes an entry
779 by its position in the table, not its value.
780 (traverse_hash_table): New function which calls a hook
781 function for every live entry in the table.
782
42c870f1 7831999-10-19 Mark Mitchell <mark@codesourcery.com>
784
785 * cplus-dem.c (INTBUF_SIZE): New macro.
786 (string_append_template_idx): New function.
787 (demangle_expression): Likewise.
788 (demangle_integral_value): Use it.
789 (demangle_real_value): New function, split out from ...
790 (demangle_template_value_parm): ... here. Use
791 string_append_template_idx. Use demangle_real_value.
792 (demangle_template): Use string_append_template_idx.
793 (demangle_qualified): Use consume_count_with_underscores.
794 (get_count): Tweak formatting.
795 (do_type): Use string_append_template_idx.
07c967f9 796
33b090eb 7971999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
798
799 * calloc.c: Add a public domain notice.
800
9879c2ce 801Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
802
803 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
804
5da6c26f 805Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
806
807 * Makefile.in (CFILES): Add hashtab.c
808 (REQUIRED_OFILES): Add hashtab.o
809 (hashtab.o): Add dependencies.
810 * hashtab.c: New file
811
be42b79e 812Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
813
814 * basename.c (DIR_SEPARATOR): New macro.
815 (DIR_SEPARATOR_2): Likewise.
816 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
817 (IS_DIR_SEPARATOR): Likewise.
818 (main): Handle MSDOS style pathname.
819
6c65e8d7 8201999-10-11 Mark Mitchell <mark@codesourcery.com>
821
822 * cplus-dem.c (do_type): Handle pointer to member types whose
823 enclosing classes have namespace scope.
824
278929f3 825Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
826
827 * config.table: Provide a backup shell for executing move-if-change.
828
a7599ac8 8291999-10-02 Mark Mitchell <mark@codesourcery.com>
830
831 * xmalloc.c (xmalloc): Fix spelling error.
832 (xcalloc, xrealloc): Likewise.
833
4d84eafd 8341999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
835
836 * cplus-dem.c (fancy_abort, demangle_integral_value,
837 demangle_arm_hp_template, recursively_demangle,
838 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
839 (program_name, program_version, fatal): Constify a char*.
840 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
841 (main): Call return, not exit.
842
8f376364 8431999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
844
845 * choose-temp.c: Remove obsolete comment about gcc.
846 (make_temp_file): Constify a char*.
847
3a4fff76 848Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
849
850 * xmemdup.c: Include sys/types.h.
851
7570bccb 8521999-09-07 Jeff Garzik <jgarzik@pobox.com>
853
854 * xmemdup.c: New xmemdup function.
855 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
856
b50c7be3 857Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
858
07c967f9 859 * config.table: Add openedition target.
b50c7be3 860 * config/mh-openedition: New file.
861
fd0c1d22 862Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
863
864 * pexecute.c (pexecute): Fill in temp_base when needed.
865
be342bf0 8661999-08-31 Richard Henderson <rth@cygnus.com>
867
868 * getpwd.c: Check HAVE_GETCWD before defining it away.
869
71774460 8701999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
871
872 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
873 (REQUIRED_OFILES): Add getpwd.o.
874 (getpwd.o): Add target.
875
876 * configure.in (AC_PREREQ): Bump to 2.13.
877 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
878
879 * getpwd.c: New file, moved here from gcc.
880
ac126d82 8811999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
882
883 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
884 comparing against a signed quantity.
885 (arm_special): Likewise.
886 (demangle_fund_type): Likewise.
887 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 888 ATTRIBUTE_UNUSED.
ac126d82 889 (main): Constify variable `valid_symbols'.
890
4f3b4661 891Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
892
893 * strtoul.c (strtoul): Add parentheses around && within ||.
894
f92ff492 895Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
896
897 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
898 libdir, libsubdir and tooldir.
899
a9f46aed 9001999-08-01 Mark Mitchell <mark@codesourcery.com>
901
902 * splay-tree.c (splay_tree_insert): Return the new node.
903
db081298 9041999-07-14 Richard Henderson <rth@cygnus.com>
905
07c967f9 906 * argv.c: Include stdlib.h and string.h instead of
db081298 907 prototyping directly.
908 * choose-temp.c: Conditionally include string.h.
909
e5aa3a54 9101999-07-12 Jason Merrill <jason@yorick.cygnus.com>
911
912 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
913
4ef402f7 9141999-07-11 Ian Lance Taylor <ian@zembu.com>
915
916 * splay-tree.c (splay_tree_insert): Add initialization to avoid
917 warning.
918
d65034bd 9191999-07-07 Jason Merrill <jason@yorick.cygnus.com>
920
921 * Makefile.in (needed-list): Only include stuff we actually need
922 for libstdc++.
923
18912799 9241999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
925
926 * configure.in (checkfuncs): Add gettimeofday.
927 * config.in, configure: Regenerated.
928
d96f58b6 929Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
930
931 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
932 the test fails.
933 * configure: Regenerate.
934
4248b202 9351999-06-10 Mike Stump <mrs@wrs.com>
936
937 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
938 parallel builds.
939
3c243ded 9401999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941
942 * putenv.c: Include ansidecl.h to define `const'.
943 * setenv.c: Likewise.
944
654c70ae 945Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
946
34f75864 947 * Makefile.in (CFILES): Add putenv.c and setenv.c.
948 * configure.in (funcs): Add putenv and setenv.
949 (AC_CHECK_FUNCS): Check for putenv and setenv.
950 * configure: Rebuilt.
951 * putenv.c setenv.c: New files.
952
654c70ae 953 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
954 bytes of space using malloc.
955
41980611 956Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
957
958 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
959 the *mangled pointer beyond the end of the string. Clean up code to
960 match prevailing coding style.
961
08b8ada9 9621999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
963
964 * tmpnam.c (L_tmpnam): Fix typo.
965
2fb1c6e9 966Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
967
968 * cplus-dem.c (standard_symbol_characters): Renamed from
969 standard_symbol_alphabet. No longer modify TABLE.
970 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
971 modify TABLE.
972 (main): Corresponding changes. Use strchr to determine if a
973 character is valid.
974
25398e41 9751999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
976
977 * cplus-dem.c (main): Use table lookup to distinguish identifier
978 characters from non-identifier characters.
979 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
980
29723d26 981Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
982
983 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
984 * getruntime.c: Only attempt to include sys/resource.h and
985 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
986 are defined.
987
dde96550 988Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
989
990 * configure.in (alloca detection): Handle alloca directly for interix.
991 * configure: Rebuilt.
992
e98ba651 993Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
994
995 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
996
3460a017 9971999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
998
999 Fix from Dale Hawkins:
07c967f9 1000 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 1001 reallocated properly if we use it again.
1002
1003 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
1004 stricter about syntax. Always null-terminate string.
1005
b01c0955 1006Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1007
1008 * configure.in (checkfuncs): Check for sbrk.
1009 * config.in: Rebuilt.
1010 * configure: Likewise.
1011 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1012
87c2e884 10131999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1014
1015 Fix from Marcus Daniels:
1016 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1017 identifier looking for another underscore.
1018
16b8e80f 1019Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1020
1021 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1022 * xmalloc.c: Likewise.
1023 (xcalloc): UWIN has sbrk.
1024 (xrealloc): Fix guard macro.
1025
4d0cfb7e 10261999-04-11 Richard Henderson <rth@cygnus.com>
1027
1028 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1029 or <alloca.h>.
1030 * clock.c (GNU_HZ): New definition.
1031 (clock): Use it.
1032 * getruntime.c: Likewise.
1033
1034 * config.table: Use mh-beos.
1035 * config/mh-beos: New file.
1036
0dc64970 10371999-04-11 Mark Mitchell <mark@codesourcery.com>
1038
1039 * cplus-dem.c (demangle_template_value_parm): Handle
1040 pointers-to-members.
1041 (do_type): Handle template parameters as qualifiers.
1042
9fec6063 10431999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1044
1045 * cplus-dem.c: Attempt to handle overflows in counts with some
1046 semblance of grace.
1047 (consume_count): Detect overflows. Return -1 to indicate errors,
1048 instead of zero.
1049 (demangle_template_value_parm, demangle_template): Handle change
1050 to consume_count's return convention.
1051
715f424c 10521999-04-05 Tom Tromey <tromey@cygnus.com>
1053
1054 * testsuite/regress-demangle: New file.
1055 * testsuite/demangle-expected: New file.
1056
1057 * Makefile.in (all, check, installcheck, info, install-info,
1058 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1059 distclean, maintainer-clean, realclean): Depend on corresponding
1060 `-subdir' target.
1061 (all-subdir check-subdir installcheck-subdir info-subdir
1062 install-info-subdir clean-info-subdir dvi-subdir
1063 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1064 distclean-subdir maintainer-clean-subdir): New target.
1065 * testsuite/Makefile.in: New file.
1066 * configure: Rebuilt.
1067 * configure.in: Create testsuite/Makefile.
1068
71c5948c 10691999-04-02 Mark Mitchell <mark@codesourcery.com>
1070
1071 * splay-tree.h (splay_tree_compare_pointers): Define.
1072
d1264606 10731999-03-30 Mark Mitchell <mark@codesourcery.com>
1074
1075 * splay-tree.c (splay_tree_compare_ints): Define.
1076
6fd618e7 10771999-03-30 Tom Tromey <tromey@cygnus.com>
1078
1079 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1080 don't advance input pointer.
1081 (demangle_class_name): If consume_count didn't find a count, do
1082 nothing. Don't bother with `strlen' sanity check; consume_count
1083 does it for us.
1084
bdaa26ad 10851999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1086
1087 From Art Haas <ahaas@neosoft.com>:
1088 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1089 when doing arm or hp style.
1090 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 1091
d267f778 1092Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1093
1094 * pexecute.c (__CYGWIN32__): Rename to
1095 (__CYGWIN__): this.
1096 * xmalloc.c: Likewise.
1097
1098 Changes to support i386-pc-uwin.
1099 * configure.in (*-*-uwin*): Workaround for vfork bug.
1100 * configure: Regenerate.
1101 * pexecute.c (pexecute): Be like standard Unix.
1102 (pwait): Likewise.
1103 * xmalloc.c (first_break): Define.
1104 (xmalloc_set_program_name): Use.
1105 (xmalloc): Use.
1106
90405950 1107Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1108
1109 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1110
bdaa26ad 1111Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1112
1113 * config.table: Check cygwin*, not cygwin32*.
1114
e6ed8194 1115Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1116
1117 * Makefile.in: Change mkstemp -> mkstemps.
1118
301e59c9 1119Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1120
1121 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1122 * configure.in (funcs): Check for and conditionally add mkstemps to
1123 the list of functions libiberty will provide.
1124 * configure: Rebuilt.
07c967f9 1125
89e305f9 1126Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1127
07c967f9 1128 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 1129 platforms that don't have HZ.
1130 * getruntime.c (HZ): Likewise.
1131
ecfe64e7 1132Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1133
1134 * Makefile.in (xstrdup.o): Depend on config.h.
1135
2e5e2114 1136Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1137
1138 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1139 freeing it.
1140
6aa62a59 1141Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1142
1143 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1144
bdaa26ad 1145Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1146
1147 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1148 splay-tree.o.
1149
11501999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1151
1152 * configure.in: Require autoconf 2.12.1 or higher.
1153
9e1ed734 11541998-12-30 Michael Meissner <meissner@cygnus.com>
1155
1156 * random.c (NULL): Don't redefine NULL if it is already defined.
1157
7c8c70e9 1158Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1159
1160 * argv.c (buildargv): Cast the result of alloca in assignment.
1161
1162 * choose-temp.c: Include stdlib.h.
2e5e2114 1163
7c8c70e9 1164 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1165 (snarf_numeric_literal): Constify first parameter.
1166 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1167 int, not a char.
1168 (demangle_qualifier): Likewise.
1169 (demangle_signature): Cast the argument of a ctype function to
1170 unsigned char.
1171 (arm_pt): Add parens around assignment used as truth value.
1172 (demangle_arm_hp_template): Constify variable `args'.
1173 (do_hpacc_template_const_value): Cast the argument of a ctype
1174 function to unsigned char.
1175 (do_hpacc_template_literal): Remove unused variable `i'.
1176 (snarf_numeric_literal): Constify parameter `args'.
1177 Cast the argument of a ctype function to unsigned char.
1178
1179 * floatformat.c (floatformat_to_double): Add explicit braces to
1180 avoid ambiguous `else'.
2e5e2114 1181
7c8c70e9 1182 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1183 `cstart' and `cend' to unsigned char. Cast the argument of macro
1184 `FOLD', which uses ctype functions, to unsigned char.
1185
1186 * objalloc.c (free): Add prototype.
1187
9070a37e 1188Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1189
1190 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1191
bdaa26ad 1192Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1193
1194 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1195 doesn't exist.
1196 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 1197
0a5a5994 1198Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1199
1200 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1201 bumping the pointer we read from. Also prepend these codes,
1202 as we do in other places.
1203
bdaa26ad 12041998-12-18 Nick Clifton <nickc@cygnus.com>
1205
1206 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1207 'const char *' in order to match its usage when calling siblings.
1208 (snarf_numeric_literal): Make first arg 'const char **' in order
1209 to match usage.
4ed77eec 1210
50cbddd6 1211Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1212
4ed77eec 1213 * choose-temp.c: Don't check IN_GCC anymore.
1214
1215 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1216 * memchr.c (memchr): Likewise.
1217 * memcpy.c (memcpy): Likewise.
1218 * memmove.c (memmove): Likewise.
2e5e2114 1219
4ed77eec 1220 * mkstemp.c: Don't check IN_GCC anymore.
1221 * pexecute.c: Likewise.
1222 * splay-tree.c: Likewise.
2e5e2114 1223
4ed77eec 1224 * strchr.c (strchr): Use `const', not `CONST'.
1225 * strrchr.c (strrchr): Likewise.
1226 * strtol.c (strtol): Likewise.
1227 * strtoul.c (strtoul): Likewise.
1228
f75dc4de 1229Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1230 Elena Zannoni <ezannoni@cygnus.com>
1231 Stan Shebs <shebs@cygnus.com>
1232 Edith Epstein <eepstein@cygnus.com>
1233 Andres MacLeod <amacleod@cygnus.com>
1234 Satish Pai <pai@apollo.hp.com>
1235
1236 * HP aCC demangling support.
1237 * cplus-dem.c
1238 (main): Remove default to HP style demangling, set to EDG
1239 demangling correctly when -edg specified; set the demangling style
1240 when user specifies 'edg'. Set strip_underscore to
1241 prepends_underscore, if not HPUXHPPA. Set
1242 current_demangling_style to hp_demangling if HPUXHPPA. Set
1243 current demangling style correctly if the switch is hp. Read
1244 label correctly also in the HP style case.
1245 (work_stuff): add temp_start field; add field for volatile member
1246 function.
1247 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1248 style for this case is the same as ARM.
1249 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1250 (demangle_arm_hp_template): new function. (It was
1251 demangle_arm_pt.); check and set value of temp_start field in
1252 multiple places. Also, when ceching for end of template args,
1253 check to see if at end of static member of template class.
1254 (demangle_class): new local variable : save_class_name_end Don't
1255 include template args in string defining class.
1256 (demangle_class_name): use demangel_arm_hp_template.
1257 (demangle_function_name): handle case where demangling style is
1258 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1259 Handle EDG_DEMANGLING style. Handle constructor and destructor
1260 ops for HP style.
1261 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1262 styles. global destructor and constructor for HP style are same
1263 as for ARM style. Same for local variables.
1264 (demangle_qualified): handle EDG_DEMANGLING style.
1265 (demangle_signature): add case for volatile member function. For
1266 cases '1' - '9' : initialize the temp_start field to -1 and handle
1267 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1268 and AUTO_DEMANGLING styles. If expecting a function and managed
1269 to demangle the funct args, then handle the LUCID_DEMANGLING,
1270 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1271 class name after "Lnnn_ in HP style case. HP style too needs to
1272 forget types. _nnn is OK for HP style, so don't report failure.
1273 (do_hpacc_template_const_value): new function. Handle template's
1274 value param for HP/aCC.
1275 (do_hpacc_template_literal): new function. Handle a template's
1276 literal parameter for HP aCC.
1277 (recursively_demangle): new function
1278 (snarf_numeric_literal): new function.
1279 (usage): add 'edg' to the list of demangling styles; add hp switch
1280 to message.
1281
a5c56042 1282Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1283
1284 * pexecute.c: Remove obsolete ifdefed cygwin code.
1285
4ae63959 1286Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1287
1288 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1289 * cplus-dem.c: Likewise. Conform to libiberty.h.
1290 * pexecute.c: Likewise.
1291 * splay-tree.c: Likewise.
1292
b41b6b67 12931998-11-25 Mike Stump <mrs@wrs.com>
1294
1295 * Makefile.in (splay-tree.o): Add config.h dependency.
1296
a1dd5bff 1297Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1298
1299 * configure.in: Use AC_PREREQ(2.12.1).
1300
d54546fb 13011998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1302
07c967f9 1303 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 1304
9fdb1080 1305Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1306
1307 * mpw.c (mpw_access): Add missing parens.
1308
1ed7db2f 1309Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1310
1311 * configure.in: Call AC_HEADER_SYS_WAIT.
1312
1313 * pexecute.c: Include sys/wait.h when !IN_GCC.
1314
bdaa26ad 1315Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1316
1317 * pexecute.c: revert back to checking old Cygwin
1318 preprocessor symbol until some time has passed.
1319
1320Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1321
1322 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1323 since it will now support similar constructs.
1324
34fa8831 1325Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1326
1327 * configure.in: Check for calloc.
1328
1329 * calloc.c: New file.
1330
1331 * xmalloc.c (xcalloc): New function.
1332
75ebb412 1333Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1334
1335 *cplus-dem.c (demangle_prefix): Use the last "__"
1336 in the mangled name when looking for the signature. This allows
1337 template names to begin with "__".
1338
5b546829 13391998-11-08 Mark Mitchell <mark@markmitchell.com>
1340
73bea962 1341 * cplus-dem.c (type_kind_t): Add tk_reference.
1342 (demangle_template_value_parm): Handle it.
1343 (do_type): Use it for references, instead of tk_pointer.
1344
5b546829 1345 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1346 not internal_cplus_demangle.
1347
0e4558d2 1348Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1349
1350 * choose-temp.c: Don't include gansidecl.h.
1351 * mkstemp.c: Likewise.
1352 * pexecute.c: Likewise.
1353
7b8b8d43 1354Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1355
07c967f9 1356 * configure.in: detect cygwin* instead of cygwin32*
1357 * configure: regenerate
7b8b8d43 1358
f9a39df1 1359Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1360
1361 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1362 whether to include config.h. Possibly include unistd.h in the
1363 !IN_GCC case. Define VFORK_STRING as a printable function call
1364 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1365 defined, include vfork.h. If VMS is defined, define vfork()
1366 appropriately. Remove vfork check on USG, we're using autoconf.
1367 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1368 locally what string to use.
1369
797ba725 13701998-10-26 Mark Mitchell <mark@markmitchell.com>
1371
1372 * splay-tree.c: Tweak include directives to make sure declarations of
1373 xmalloc and free are available.
1374
3662c79b 13751998-10-25 Mark Mitchell <mark@markmitchell.com>
1376
1377 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1378 anonymous namespaces.
2e5e2114 1379
af5199c0 13801998-10-23 Mark Mitchell <mark@markmitchell.com>
1381
1382 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1383 with type_quals.
1384 (TYPE_UNQUALIFIED): New macro.
1385 (TYPE_QUAL_CONST): Likewise.
1386 (TYPE_QUAL_VOLATILE): Likewise.
1387 (TYPE_QUAL_RESTRICT): Likewise.
1388 (code_for_qualifier): New function.
1389 (qualifier_string): Likewise.
1390 (demangle_qualifier): Likewise.
1391 (internal_cplus_demangle): Use them.
1392 (demangle_signature): Likewise.
1393 (demangle_template_value_parm): Likewise.
1394 (do_type): Likewise.
1395 (demangle_fund_type)): Likewise.
3662c79b 1396
e61da89d 1397Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1398
1399 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1400 to match prototype.
1401
9a4eb61d 14021998-10-21 Mark Mitchell <mark@markmitchell.com>
1403
1404 * splay-tree.c: New file.
1405 * Makefile.in (CFILES): Add it.
1406 (REQUIRED_OFILES): Likewise.
1407 (splay-tree.o): Add dependencies.
1408
e5d3a45b 1409Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1410
1411 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1412 range of 'K' index.
1413
4350e959 1414Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1415
1416 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1417
1418 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1419 `unsigned char'.
1420 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1421 comparing against one.
1422 (cplus_mangle_opname): Likewise.
1423 (demangle_integral_value): Cast argument of ctype macro to
1424 `unsigned char'.
1425 (demangle_template_value_parm): Likewise.
1426 (demangle_template): Initialize variable `bindex'. Cast the
1427 result of `strlen' to (int) when comparing against one. Remove
1428 unused variable `start_of_value_parm'.
1429 (demangle_class_name): Cast the result of `strlen' to (int) when
1430 comparing against one.
1431 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1432 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1433 when comparing against one.
1434 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1435 (get_count): Likewise.
1436 (do_type): Likewise. Cast the result of `strlen' to (int) when
1437 comparing against one.
1438 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1439 (demangle_function_name): Cast the result of `strlen' to (int)
1440 when comparing against one.
1441
1442 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1443 comparing against one.
1444
5dfe2c03 1445Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1446
07c967f9 1447 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1448 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1449 * config.in, configure: Rebuilt.
0be6f86d 1450
5dfe2c03 1451 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1452 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1453 * config.in, configure: Rebuilt.
1454
7b8b8d43 1455Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1456
07c967f9 1457 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 1458
68b78c88 1459Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1460
1461 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1462
804ec1bf 1463Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1464
1465 * Merge egcs & devo libiberty.
1466
7a1ec54f 1467