]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* gcc.c-torture/execute/nestfunc-3.c (main): Mask result to 32 bits.
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
29120f44
HPN
12000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2
3 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
4 parameter `option'.
5
0437a5a8
KB
62000-11-15 Kenneth Block <kenneth.block@compaq.com>
7
9e038f71 8 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
9 be used in GCC.
10
eab0c1ab 112000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 12
29120f44 13 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
14 list.
15
d50d20ec
HPN
162000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
17
18 * hashtab.c (htab_expand): Change to return int. Use calloc or
19 xcalloc depending on htab->return_allocation_failure. Return zero
20 if calloc fails.
21 (htab_create): Update comment to cover memory allocation.
22 (htab_try_create): New.
23 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
24 Update comment to cover this.
25
35e9340f
HPN
262000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
27
28 * hashtab.c: Change void * to PTR where necessary.
29 (htab_create, htab_expand): Correct formatting of comment before
30 function.
31
ea343d1a 322000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
33
34 * cp-demangle.c (string_list_def): Add caret_position and comments.
35 (result_caret_pos): New macro.
36 (result_append_string): Rename to...
37 (result_add_string): ... this, and insert at caret position.
38 Rename throughout.
39 (result_append): Rename to...
40 (result_add): ... this, and insert at caret position. Rename
41 throughout.
42 (result_append_char): Rename to...
43 (result_add_char): ... this, and insert at caret position. Rename
44 throughout.
45 (result_append_space): Remove.
46 (string_list_new): Initialize caret position.
47 (result_add_separated_char): Use caret position.
48 (result_get_caret): New funtion.
49 (result_set_caret): Likewise.
50 (result_shift_caret): Likewise.
51 (result_previous_char_is_space): Likewise.
52 (substitution_start): Use caret position.
53 (substitution_add): Likewise.
54 (demangling_new): Initialize caret position.
55 (demangle_encoding): Use caret position.
56 (demanglin_nested_name): Put CV qualifiers after name.
57 (demangle_type_ptr): Use switch statement. Handle pointers to
58 arrays. Don't use result_append_space. Use caret position.
59 (demangle_type): Emit CV qualifiers after underlying type. Adjust
60 call to demangle_array_type.
61 (demangle_array_type): Add parameter to handle pointers to arrays.
62
f15b9af9
MM
632000-10-01 Mark Mitchell <mark@codesourcery.com>
64
65 * splay-tree.c (splay_tree_insert): Fix formatting.
66
8f17b5c5
MM
672000-09-16 Mark Mitchell <mark@codesourcery.com>
68
69 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
70
4eaa189a
MS
712000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
72
73 * splay-tree.c: #include <stdio.h>.
74
29791078
HPN
752000-09-14 Hans-Peter Nilsson <hp@axis.com>
76
77 * testsuite/demangle-expected: Add two tests for anonymous
78 namespaces.
79 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
80
2c9f4db7
MM
812000-09-10 Mark Mitchell <mark@codesourcery.com>
82
83 * splay-tree.c (splay_tree_predecessor): New function.
84 (splay_tree_successor): Likewise.
85
bb22da4b
HPN
862000-09-10 Hans-Peter Nilsson <hp@axis.com>
87
88 * testsuite/demangle-expected: Add four tests for type_info
89 mangling.
bb22da4b
HPN
90 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
91 for a non-template non-qualified type_info function or node.
92
759e8187
AS
932000-09-08 Alex Samuel <samuel@codesourcery.com>
94
95 * cp-demangle.c: Fix copyright banner.
96
2ecd81ef
MS
972000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
98
99 * md5.c: #include "ansidecl.h".
100
d93998ec
AS
1012000-09-06 Alex Samuel <samuel@codesourcery.com>
102
103 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
104 (demangle_type): Handle substitution candidates correctly in the
105 face of special substitutions.
106
1056d228
AS
1072000-09-05 Alex Samuel <samuel@codesourcery.com>
108
109 * cp-demangle.c (demangle_encoding): Rename variable.
110 (demangle_name): Rename parameter. Handle return type
111 suppression.
112 (demangle_nested_name): Rename parameter.
113 (demangle_prefix): Likewise. Change return type suppression.
114 (demangle_unqualified_name): Add parameter. Flag constructors and
115 conversion operators.
116 (demangle_special_name): Fix comment.
117 (demangle_type): Rename variable.
118 (demangle_bare_function_type): Check for missing return type and
119 parameter.
120 (demangle_class_enum_type): Rename parameter.
121 (demangle_discriminator): Fix misspelling in comment.
122
2f31ed7e
DD
1232000-08-31 DJ Delorie <dj@redhat.com>
124
125 * configure.in (Cygwin): special case cygwin only when we're
126 building cygwin, not when we're hosting cygwin.
127
02bcb9c6
AS
1282000-09-04 Alex Samuel <samuel@codesourcery.com>
129
130 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
131 <expression>.
132
aee749cf
AS
1332000-09-04 Alex Samuel <samuel@codesourcery.com>
134
135 * cp-demangle.c (demangle_type_ptr): Increment position past
136 pointer and reference characters.
137
92a16bbe
AS
1382000-09-04 Alex Samuel <samuel@codesourcery.com>
139
140 * cp-demangle.c (demangle_nv_offset): New function.
141 (demangle_v_offset): Likewise.
142 (demangle_call_offset): Likewise.
143 (demangle_special_name): Update thunk demangling to comply with
144 ABI changes.
145
31e0ab1f
AS
1462000-09-03 Alex Samuel <samuel@codesourcery.com>
147
148 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
149 (substitution_def): Remove template_parm_number.
150 (NOT_TEMPLATE_PARM): Remove.
151 (result_insert_string): New macro.
152 (result_insert): Likewise.
153 (result_insert_char): Likewise.
154 (substitution_add): Remove last parameter. Don't store template
155 parm number.
156 (BFT_NO_RETURN_TYPE): Define as NULL.
157 (demangle_encoding): Adjust call to demangle_bare_function_type.
158 (demangle_name): Adjust substitution. Adjust call to
159 substitution_add.
160 (demangle_prefix): Adjust call to substitution_add.
161 (demangle_identifier): Handle anonymous namespaces.
162 (demangle_operator_name): Change demangling of vendor-extended
163 operator to match ABI changes.
164 (demangle_type_ptr): Change parameters. Make recursive. Handle
165 substitutions here.
166 (demangle_type): Adjust calls to demangle_template_param,
167 substitution_add, and demangle_type_ptr. Fix substitution of
168 templated types.
169 (demangle_function_type): Change parameter to a pointer.
170 (demangle_bare_function_type): Likewise. Adjust insertion point.
171 (demangle_template_param): Remove last parameter.
172 (demangle_expr_primary): Remove unused variable. Adjust call to
173 demangle_template_param.
174 (is_mangled_char): Accept `$' and `.'.
175 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
176 * dyn-string.c (dyn_string_insert_char): New function.
177
ccbc3eb7
HPN
1782000-08-31 Hans-Peter Nilsson <hp@axis.com>
179
180 * testsuite/demangle-expected: Add nine tests for
181 underscore-after-number followed by five tests for name-signature
182 delimiter.
183
53dce582
RH
1842000-08-28 Richard Henderson <rth@cygnus.com>
185
186 * Makefile.in (md5.o): Depend on config.h.
187
881c6935
JM
1882000-08-28 Jason Merrill <jason@redhat.com>
189
190 * Makefile.in (REQUIRED_OFILES): Add md5.o.
191 (CFILES): Add md5.c.
192 * md5.c: New file.
193
a440fd19
AS
1942000-08-27 Alex Samuel <samuel@codesourcery.com>
195
196 * cp-demangle.c (demangle_name): Initialize template_p in local
197 name case. Don't re-add substitutions as candidates.
198 (demangle_nested_name): Use <unqualified-name>.
199 (demangle_prefix): Likewise. Don't add template names as
200 substitution candidates twice, or re-add a substitution or the
201 last prefix component.
202 (demangle_local_name): Adjust output format.
203
d01ce591
AS
2042000-08-25 Alex Samuel <samuel@codesourcery.com>
205
206 * cp-demangle.c (result_add_separated_char): Change parameter to
207 int.
208 (substitution_add): Don't check for duplicates. Check if
209 previously allocated size is zero.
210 (demangle_name): Remove duplicate check for std substitution.
211 Clear template flag appropriately.
212 (demangle_prefix): Remove argument to demangle_substitution.
213 Don't check that template flag is already set.
214 (demangle_operator_name): Add pt operator.
215 (demangle_type): Don't treat r as built-in type. Remove argument
216 to demangle_substitution. Fix substitution candidate mechanics.
217 Handle <template-template-parm>s. Improve comments.
218 (demangle_template_param): Don't handle template arg lists here.
219 (demangle_substitution): Remove parameter.
220 (print_usage): Remove extra fprintf option.
221
2f59c8eb
GM
2222000-08-24 Greg McGary <greg@mcgary.org>
223
224 * libiberty/random.c (end_ptr): Revert previous change.
225
2f26c11d
GM
2262000-08-24 Greg McGary <greg@mcgary.org>
227
228 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
229 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
230 * libiberty/random.c (end_ptr): Likewise.
231
e282c9c9
AS
2322000-08-23 Alex Samuel <samuel@codesourcery.com>
233
234 * cp-demangle.c (result_close_template_list): Remove function.
235 (result_add_separated_char): New function.
236 (result_open_template_list): New macro.
237 (result_close_template_list): Likewise.
238 (demangle_prefix): Don't set template_p if the
239 prefix ends with a ctor name.
240 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
241 (demangle_type): Check for template args after substitution.
242 (demangle_template_args): Use result_open_template_list.
243
c9b6494a
ZW
2442000-08-02 Zack Weinberg <zack@wolery.cumb.org>
245
246 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
247
c00fb683 2482000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
249
250 * config/mh-openedition.h: Added -DLE370 definition.
251
0aab2795
ME
2522000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
253
254 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
255 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
256 Cast program to 'char *' in errmsg_arg assignment.
257 (PWAIT_ERROR): Define.
258 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
259 to DJGPP's WIF* macros.
260
c2f275e4
RB
2612000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
262 Jeff Law <law@cygnus.com>
263
73aa9564
RB
264 * getcwd.c: Include string.h, stdlib.h for prototypes
265
c2f275e4 266 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
267 * rename.c: Include config.h, unistd.h
268 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 269
ccbc3eb7
HPN
2702000-07-24 Hans-Peter Nilsson <hp@axis.com>
271
272 * cplus-dem.c (work_stuff_copy_to_from): New.
273 (delete_non_B_K_work_stuff): New.
274 (delete_work_stuff): New.
275 (mop_up): Break out work_stuff partly destruction to
276 delete_non_B_K_work_stuff.
277 (iterate_demangle_function): New.
278 (demangle_prefix): Call iterate_demangle_function instead of
279 demangle_function_name. Leave handling of name-signature
280 __-delimiters to iterate_demangle_function.
281 (demangle_integral_value): Strip an optional
282 following underscore cautiously. Handle negative numbers.
283
3388651c
DB
2842000-07-24 Daniel Berlin <dberlin@redhat.com>
285
286 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
287 if (AUTO_DEMANGLING || GNU_DEMANGLING)
288
0fac482e
AS
2892000-07-21 Alex Samuel <samuel@codesourcery.com>
290
291 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
292 allocating ctor mangling.
293 (demangle_array_type): Handle empty and non-constant array length.
294
8502a100 2952000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
296 Jeff Law <law@cygnus.com>
297
c6451ce1
MS
298 * configure.in (AC_CHECK_HEADERS): Add time.h.
299 (AC_HEADER_TIME): Add check.
300 * configure, config.in: Regenerate.
301 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
302
cd447360
MS
303 * configure.in (AC_CHECK_HEADERS): Add limits.h.
304 * configure, config.in: Regenerate.
305 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
306 * strtol.c, strtoul.c: #include "config.h". Portably #include
307 <limits.h> and/or <sys/param.h>.
308 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 309
3b58c099
MS
310 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
311 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
312 * configure, config.in: Regenerate.
313 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
314
8502a100
MS
315 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
316
da0c7743
MS
3172000-07-21 Mike Stump <mrs@wrs.com>
318
319 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 320 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 321
838f8562
KG
3222000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
323
324 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
325
326 * setenv.c (setenv): Initialize variable `ep'.
327
328 * sigsetmask.c (abort): Prototype.
329
330 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
331 __STDC__ for stdarg.h include.
332 (int_vasprintf): Prototype.
333 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
334 definition. Cast `global_total_width' in comparison.
335 (main): Prototype. Return a value.
336
337 * vfork.c (fork): Prototype.
338
339 * xexit.c: Include config.h.
340
e9958132
JM
3412000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
342
343 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
344 and print it with %u.
345
39a6492f
HPN
3462000-07-17 Hans-Peter Nilsson <hp@axis.com>
347
348 * testsuite/regress-demangle (failed test): Show result and
349 expected output.
350
6d0be369
AH
3512000-07-07 Andrew Haley <aph@cygnus.com>
352
353 * cplus-dem.c (main): fflush() after emitting last char before
354 waiting for input.
355
bece74bd
AS
3562000-06-28 Alex Samuel <samuel@codesourcery.com>
357
358 * cp-demangle.c (demangle_encoding): Accept no substitutions.
359 (demangle_name): Handle <substitution> followed by
360 <unqualified-template-name>.
361 (demangle_type): Follow special substitutions with
362 <class-enum-type>
363 (demangle_subtitution): Set template_p for special substitutions.
364 (main): Fix typos.
365
229b8ec7
AS
3662000-06-27 Alex Samuel <samuel@codesourcery.com>
367
368 * cp-demangle.c (demangle_special_name): Swap base and derived
369 class when demangling construction vtables.
370
051664b0
AS
3712000-06-21 Alex Samuel <samuel@codesourcery.com>
372
373 * cp-demangle.c: Don't include ctype.h.
374 (IS_DIGIT): New macro.
375 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
376 instead of isdigit and isalpanum.
377 (demangling_def): Make name and next const pointers.
378 (STATUS_ALLOCATION_FAILED): New status code.
379 (dyn_string_append_space): Handle failure in
380 dyn_string_append_char.
381 (int_to_dyn_string): Likewise. Change return value to status_t.
382 (string_list_new): Handle failure of dyn_string_init.
383 (result_close_template_list): Change return type to status_t.
384 Handle failure in dyn_string_append.
385 (result_push): Change return value to status_t. Handle failure in
386 string_list_new. Handle failure of result_push throughout.
387 (substitution_add): Change return value to status_t. Handle
388 dyn_string failures. Handle failure of substitution_add
389 throughout.
390 (template_arg_list_new): Return NULL on allocation failure.
391 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
392 Handle error result throughout.
393 (result_append): Likewise.
394 (result_append_char): Likewise.
395 (result_append_space): Likewise.
396 (demangling_new): Make argument a const pointer. Handle
397 allocation failures.
398 (demangle_template_args): Handle failure in template_arg_list_new
399 and result_close_template_list.
400 (demangle_discriminator): Return if int_to_dyn_string fails.
401 (cp_demangle): Likewise.
402 (cp_demangle_type): New function.
403 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
404 memory allocation failure.
405 (main): Likewise.
406 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
407 IN_LIBGCC2.
408 (dyn_string_init): Change return value to int. Handle
409 RETURN_ON_ALLOCATION_FAILURE case.
410 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
411 (dyn_string_release): Delete the dyn_string.
412 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
413 (dyn_string_copy): Change return type to int.
414 (dyn_string_copy_cstr): Likewise.
415 (dyn_string_prepend): Likewise.
416 (dyn_string_prepend_cstr): Likewise.
417 (dyn_string_insert): Likewise.
418 (dyn_string_insert_cstr): Likewise.
419 (dyn_string_append): Likewise.
420 (dyn_string_append_cstr): Likewise.
421 (dyn_string_append_char): Likewise.
422 (dyn_string_substring): Likewise.
423
fe06b696
ZW
4242000-06-09 Zack Weinberg <zack@wolery.cumb.org>
425
426 * cp-demangle.c (demangle_operator_name): Add spaces before
427 names beginning with a letter: delete, delete[], new, new[],
428 sizeof.
429 (demangle_special_name): Handle TF <type> and TJ <type>.
430
6223e158
PDM
431Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
432
433 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
434
48f3e29b
PDM
435Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
436
437 * cp-demangle.c (stdio.h): File included unconditionaly.
438 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
439 * dyn-string.c (stdio.h): File included.
440 * partition.c (partition_print): No `&' needed to take the address of
441 a function.
442
69197e7e
KG
4432000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
444
445 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
446
447 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
448
449 * cp-demangle.c (demangle_char): Change parameter from char to int.
450 (demangle_expression, demangle_expr_primary): Remove extra
451 semi-colon in prototype.
452
453 * dyn-string.c (dyn_string_append_char): Change parameter from
454 char to int.
455
456 * memcmp.c (memcmp): Constify.
457
458 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
459 __extension__.
460
461 * partition.c (elem_compare): Prototype. Don't cast away
462 const-ness.
463
464 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
465
7eb23b1f
KG
4662000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
467
468 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
469
470 * cp-demangle.c: Include demangle.h.
471 (template_arg_list_new): DeANSIfy.
472 (cp_demangle): Make static and add prototype.
473 (operator_code, operators): Constify.
474 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
475
3faa108c
AS
4762000-06-05 Alex Samuel <samuel@codesourcery.com>
477
478 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
479 unsigned char.
480 (demangle_unqualified_name): Likewise.
481 (demangle_number_literally): Likewise.
482 (demangle_type): Likewise.
483 (demangle_substitution): Likewise.
484 (is_mangled_char): Likewise, for isalnum.
485
69afa80d
AS
4862000-06-04 Alex Samuel <samuel@codesourcery.com>
487
488 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
489 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
490 (cp-demangle.o): New dependency.
491 (dyn-string.o): Likewise.
492
493 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
494
495 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
496 demangler.
497 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
498 demangling mode.
499 (gnu_new_abi_symbol_characters): New function.
500 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
501 file.
502 * cp-demangle.c: New file.
503
0b72c3df
AC
504Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
505
506 * floatformat.c: Add name to each floatformat field.
507
270cea06
JL
508Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
509
510 * Makefile.in (objalloc.o): Depend on config.h
511
d11ec6f0
ZW
5122000-05-29 Zack Weinberg <zack@wolery.cumb.org>
513
514 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
515 if HAVE_STRING_H.
516 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
517 * objalloc.c: Include config.h. Include stdlib.h and don't
518 declare malloc or free if HAVE_STDLIB_H.
519 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
520 else declare malloc without prototype. Include string.h if
521 HAVE_STRING_H, else declare memset without prototype. Don't
522 include stddef.h.
523
f8e2da56
MS
5242000-05-23 Mike Stump <mrs@wrs.com>
525
526 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
527 -j3.
528
650f3068
DA
5292000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
530
531 * xmalloc.c: Include config.h for HAVE_SBRK definition.
532
1d2da2e1
HB
5332000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
534
535 * hashtab.c (hash_pointer): Delete low-order bits which are
536 probably zero, also eliminate a warning on alpha.
537
47668d0a
DE
5382000-05-15 David Edelsohn <edelsohn@gnu.org>
539
c7a79a32 540 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
541 on $(enable_shared).
542
36348eab
JJ
5432000-05-10 Jakub Jelinek <jakub@redhat.com>
544
545 * config.table: Use mh-sparcpic for sparc*-*-*.
546
209bbe34
NC
5472000-05-08 Nick Clifton <nickc@cygnus.com>
548
549 * Makefile.in (CFILES): Add strncmp.c.
550 (NEEDED): Add strncmp.
551
a85a47fb
KG
5522000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
553
554 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
555 Cast the arguments to `islower' to `unsigned char'.
556 (print_demangler_list): Prototype.
557
4aef973c
PDM
558Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
559
560 * sort.c (UCHAR_MAX): Provide fallback definition.
561
3b94497c
AO
5622000-04-29 Alexandre Oliva <aoliva@cygnus.com>
563
564 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
565 SUBDIRS.
566
24eaa47a
KB
5672000-04-28 Kenneth Block <block@zk3.dec.com>
568 Jason Merrill <jason@casey.cygnus.com>
569
570 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
571 (cplus_demangle_set_style): New function for setting style.
572 (cplus_demangle_name_to_style): New function to translate name.
573
a9266bfa
KG
5742000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
575
576 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
577
578 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
579 (libiberty_AC_FUNC_STRNCMP): Invoke.
580
581 * strncmp.c: New file.
582
8e02c4d0
JH
583Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
584
585 * hashtab.c (htab_expand): Add prototype.
586 (find_empty_slot_for_expand): Likewise.
587
4feeaae3
KG
5882000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
589
590 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
591 match prototype.
592 (htab_expand): Cast the return value of xcalloc.
593
18a94a2f
MM
5942000-04-24 Mark Mitchell <mark@codesourcery.com>
595
596 * hashtab.c (hash_pointer): New function.
597 (eq_pointer): Likewise.
598 (htab_hash_pointer): New variable.
599 (htab_eq_pointer): Likewise.
600
eeb0656f
MM
6012000-04-23 Mark Mitchell <mark@codesourcery.com>
602
b51024fc
MM
603 * sort.c (sort_pointers): Fix endianness bugs.
604
eeb0656f
MM
605 * sort.c: New file.
606 * Makefile.in (CFILES): Add sort.c
607 (REQUIRED_OFILES): Add sort.o.
608 (sort.o): New target.
609
7277f72d
MS
6102000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
611
612 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
613 4.3BSD systems.
614
e38992e8
RK
615Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
616
617 * hashtab.c: Various minor cleanups.
618 (htab_find_slot_with_hash): INSERT is now enum insert_option.
619 (htab_find_slot): Likewise.
620
498e1ab1
DP
6212000-04-16 Dave Pitts <dpitts@cozx.com>
622
623 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
624
dc17cc7b
RH
6252000-04-05 Richard Henderson <rth@cygnus.com>
626
627 * splay-tree.c (splay_tree_remove): New.
628
b13eb66b
MM
6292000-03-30 Mark Mitchell <mark@codesourcery.com>
630
631 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
632 codes.
633 (htab_find_with_hash): Likewise.
634 (htab_find_slot_with_hash): Likewise.
635
0194e877
ZW
6362000-03-29 Zack Weinberg <zack@wolery.cumb.org>
637
638 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
639 unless it will be used. Rearrange loop for better
640 optimization.
641 (higher_prime_number): Add static prototype.
642
abc61fd4
JL
643Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
644
645 * Makefile.in (partition.o): Depend on config.h
646
8c5d513f
BS
6472000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
648
649 * hashtab.c (find_empty_slot_for_expand): New function.
650 (htab_expand): Use it instead of htab_find_slot.
651 (htab_find_with_hash): Renamed from htab_find; now accepts extra
652 argument HASH.
653 (htab_find_slot_with_hash): Likewise for htab_find_slot.
654 (htab_find): New wrapper function.
655 (htab_find_slot): Likewise.
656 (htab_traverse): Pass slot, not entry, to called function.
657
d9d4fb43
AS
6582000-03-09 Alex Samuel <samuel@codesourcery.com>
659
660 * Makefile.in (CFILES): Add partition.c.
661 (REQUIRED_OFILES): Add partition.o.
662 (partition.o): New rule.
663 * partition.c: New file.
664
5dc9cffd
ZW
6652000-03-09 Zack Weinberg <zack@wolery.cumb.org>
666
667 * hashtab.c (htab_create): Set del_f.
668 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
669 Use it.
670
5194cf08
ZW
6712000-03-08 Zack Weinberg <zack@wolery.cumb.org>
672
673 * hashtab.c: Remove debugging variables (all_searches,
674 all_collisions, all_expansions). Delete
675 all_hash_table_collisions.
676 (create_hash_table, delete_hash_table, empty_hash_table,
677 find_hash_table_entry, remove_element_from_hash_table_entry,
678 clear_hash_table_slot, traverse_hash_table, hash_table_size,
679 hash_table_elements_number, hash_table_collisions): Rename to:
680 htab_create, htab_delete, htab_empty, htab_find_slot,
681 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
682 htab_elements, htab_collisions.
683 (htab_find): New function, handles common case where you don't
684 plan to add or delete an entry.
685 (htab_expand): Don't create a whole new table, just a new
686 entry vector.
687 (htab_find_slot): Simplify logic.
688
5ad5a984
ILT
6891999-08-03 Ian Lance Taylor <ian@zembu.com>
690
691 * floatformat.c: Add casts to avoid signed/unsigned warnings.
692 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
693
694 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
695 $(TARGETLIB)n so it works on MSDOS.
696 (install_to_tooldir): Likewise.
697
6981999-07-21 Ian Lance Taylor <ian@zembu.com>
699
700 From Mark Elbrecht:
701 * makefile.dos: Remove; obsolete.
702 * configure.bat: Remove; obsolete.
703
7041999-07-11 Ian Lance Taylor <ian@zembu.com>
705
706 * splay-tree.c (splay_tree_insert): Add initialization to avoid
707 warning.
708
aeecce42
MK
7092000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
710
711 * pexecute.c: Conditionally include string.h.
5194cf08 712 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 713
1eaf7d9c
KG
7142000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
715
716 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
717 we're using gcc.
718
719 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
720
0fadedb2
GK
7211999-12-27 Geoff Keating <geoffk@cygnus.com>
722
723 * vasprintf.c (int_vasprintf): Don't re-read the format character
724 as this mishandles strings like '%%s'.
725
08230f26
MM
7261999-12-05 Mark Mitchell <mark@codesourcery.com>
727
728 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
729 rather than struct splay_tree_node.
730 (splay_tree_insert): Use struct splay_tree_s rather than struct
731 splay_tree.
732
6de9b8ff
PDM
733Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
734
735 * hashtab.c (sys/types.h): File included.
736
f3636679
JM
7371999-11-22 Jason Merrill <jason@casey.cygnus.com>
738
739 * strtoul.c, strtol.c, random.c: Remove advertising clause from
740 BSD license, pursuant with
741
742 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
743
36dd3a44
JL
744Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
745
746 * hashtab.c: Include stdio.h.
747
6e300472
JL
748Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
749
750 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
751
df548dfc
PDM
752Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
753
754 * xstrdup (sys/types.h): Include this file.
755
2c375143
NS
7561999-10-28 Nathan Sidwell <nathan@acm.org>
757
758 * Makefile.in (SUBDIRS): New macro.
759 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
760 avoid multiple subdirectory cleaning.
761 (*-subdir): Use SUBDIRS.
762
a82cecda
JK
7631999-10-25 Jim Kingdon <http://developer.redhat.com/>
764
765 * cplus-dem.c: Move declarations of standard_symbol_characters and
766 hp_symbol_characters inside #ifdef MAIN to avoid compiler
767 warnings.
768
ed38f5d5
ZW
7691999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
770
771 * hashtab.c (find_hash_table_entry): When returning a
772 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
773 (clear_hash_table_slot): New function which deletes an entry
774 by its position in the table, not its value.
775 (traverse_hash_table): New function which calls a hook
776 function for every live entry in the table.
777
b60fe4a7
MM
7781999-10-19 Mark Mitchell <mark@codesourcery.com>
779
780 * cplus-dem.c (INTBUF_SIZE): New macro.
781 (string_append_template_idx): New function.
782 (demangle_expression): Likewise.
783 (demangle_integral_value): Use it.
784 (demangle_real_value): New function, split out from ...
785 (demangle_template_value_parm): ... here. Use
786 string_append_template_idx. Use demangle_real_value.
787 (demangle_template): Use string_append_template_idx.
788 (demangle_qualified): Use consume_count_with_underscores.
789 (get_count): Tweak formatting.
790 (do_type): Use string_append_template_idx.
5194cf08 791
3da5522a
KG
7921999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
793
794 * calloc.c: Add a public domain notice.
795
d7d36ea8
PDM
796Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
797
798 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
799
a2f945c6
VM
800Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
801
802 * Makefile.in (CFILES): Add hashtab.c
803 (REQUIRED_OFILES): Add hashtab.o
804 (hashtab.o): Add dependencies.
805 * hashtab.c: New file
806
7f22ec2e
MK
807Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
808
809 * basename.c (DIR_SEPARATOR): New macro.
810 (DIR_SEPARATOR_2): Likewise.
811 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
812 (IS_DIR_SEPARATOR): Likewise.
813 (main): Handle MSDOS style pathname.
814
7c56a6ce
MM
8151999-10-11 Mark Mitchell <mark@codesourcery.com>
816
817 * cplus-dem.c (do_type): Handle pointer to member types whose
818 enclosing classes have namespace scope.
819
cd32188b
ME
820Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
821
822 * config.table: Provide a backup shell for executing move-if-change.
823
fc232f7a
MM
8241999-10-02 Mark Mitchell <mark@codesourcery.com>
825
826 * xmalloc.c (xmalloc): Fix spelling error.
827 (xcalloc, xrealloc): Likewise.
828
2a138827
KG
8291999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
830
831 * cplus-dem.c (fancy_abort, demangle_integral_value,
832 demangle_arm_hp_template, recursively_demangle,
833 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
834 (program_name, program_version, fatal): Constify a char*.
835 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
836 (main): Call return, not exit.
837
5a657fc3
KG
8381999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
839
840 * choose-temp.c: Remove obsolete comment about gcc.
841 (make_temp_file): Constify a char*.
842
33c5ddcd
KG
843Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
844
845 * xmemdup.c: Include sys/types.h.
846
b10647f1
JG
8471999-09-07 Jeff Garzik <jgarzik@pobox.com>
848
849 * xmemdup.c: New xmemdup function.
850 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
851
3dd6c3af
LV
852Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
853
5194cf08 854 * config.table: Add openedition target.
3dd6c3af
LV
855 * config/mh-openedition: New file.
856
19e28e2a
ME
857Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
858
859 * pexecute.c (pexecute): Fill in temp_base when needed.
860
4dfeccf9
RH
8611999-08-31 Richard Henderson <rth@cygnus.com>
862
863 * getpwd.c: Check HAVE_GETCWD before defining it away.
864
4ac3cb83
KG
8651999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
866
867 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
868 (REQUIRED_OFILES): Add getpwd.o.
869 (getpwd.o): Add target.
870
871 * configure.in (AC_PREREQ): Bump to 2.13.
872 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
873
874 * getpwd.c: New file, moved here from gcc.
875
e797ff70
KG
8761999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
877
878 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
879 comparing against a signed quantity.
880 (arm_special): Likewise.
881 (demangle_fund_type): Likewise.
882 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 883 ATTRIBUTE_UNUSED.
e797ff70
KG
884 (main): Constify variable `valid_symbols'.
885
55247fce
PDM
886Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
887
888 * strtoul.c (strtoul): Add parentheses around && within ||.
889
76632dd0
DJ
890Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
891
892 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
893 libdir, libsubdir and tooldir.
894
d080bbfa
MM
8951999-08-01 Mark Mitchell <mark@codesourcery.com>
896
897 * splay-tree.c (splay_tree_insert): Return the new node.
898
a81c752a
RH
8991999-07-14 Richard Henderson <rth@cygnus.com>
900
5194cf08 901 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
902 prototyping directly.
903 * choose-temp.c: Conditionally include string.h.
904
8f1824d9
JM
9051999-07-12 Jason Merrill <jason@yorick.cygnus.com>
906
907 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
908
652374d3
ILT
9091999-07-11 Ian Lance Taylor <ian@zembu.com>
910
911 * splay-tree.c (splay_tree_insert): Add initialization to avoid
912 warning.
913
a4494286
JM
9141999-07-07 Jason Merrill <jason@yorick.cygnus.com>
915
916 * Makefile.in (needed-list): Only include stuff we actually need
917 for libstdc++.
918
90e72e20
AS
9191999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
920
921 * configure.in (checkfuncs): Add gettimeofday.
922 * config.in, configure: Regenerated.
923
b569200e
MK
924Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
925
926 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
927 the test fails.
928 * configure: Regenerate.
929
73919448
MS
9301999-06-10 Mike Stump <mrs@wrs.com>
931
932 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
933 parallel builds.
934
fee9125c
KG
9351999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
936
937 * putenv.c: Include ansidecl.h to define `const'.
938 * setenv.c: Likewise.
939
71cce721
MN
940Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
941
a7c9637f
JL
942 * Makefile.in (CFILES): Add putenv.c and setenv.c.
943 * configure.in (funcs): Add putenv and setenv.
944 (AC_CHECK_FUNCS): Check for putenv and setenv.
945 * configure: Rebuilt.
946 * putenv.c setenv.c: New files.
947
71cce721
MN
948 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
949 bytes of space using malloc.
950
53504016
SG
951Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
952
953 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
954 the *mangled pointer beyond the end of the string. Clean up code to
955 match prevailing coding style.
956
34842539
MH
9571999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
958
959 * tmpnam.c (L_tmpnam): Fix typo.
960
3a08531d
ME
961Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
962
963 * cplus-dem.c (standard_symbol_characters): Renamed from
964 standard_symbol_alphabet. No longer modify TABLE.
965 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
966 modify TABLE.
967 (main): Corresponding changes. Use strchr to determine if a
968 character is valid.
969
8db9d08b
JB
9701999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
971
972 * cplus-dem.c (main): Use table lookup to distinguish identifier
973 characters from non-identifier characters.
974 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
975
6a071f4a
FF
976Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
977
978 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
979 * getruntime.c: Only attempt to include sys/resource.h and
980 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
981 are defined.
982
7dd88617
DT
983Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
984
985 * configure.in (alloca detection): Handle alloca directly for interix.
986 * configure: Rebuilt.
987
7a1528bc
MK
988Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
989
990 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
991
76409268
JB
9921999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
993
994 Fix from Dale Hawkins:
5194cf08 995 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
996 reallocated properly if we use it again.
997
998 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
999 stricter about syntax. Always null-terminate string.
1000
acbbd80a
MK
1001Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
1002
1003 * configure.in (checkfuncs): Check for sbrk.
1004 * config.in: Rebuilt.
1005 * configure: Likewise.
1006 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
1007
92523551
JB
10081999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
1009
1010 Fix from Marcus Daniels:
1011 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
1012 identifier looking for another underscore.
1013
36eb4217
MK
1014Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
1015
1016 * pexecute.c: Change all references to __UWIN__ to _UWIN.
1017 * xmalloc.c: Likewise.
1018 (xcalloc): UWIN has sbrk.
1019 (xrealloc): Fix guard macro.
1020
2c45d1a0
RH
10211999-04-11 Richard Henderson <rth@cygnus.com>
1022
1023 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
1024 or <alloca.h>.
1025 * clock.c (GNU_HZ): New definition.
1026 (clock): Use it.
1027 * getruntime.c: Likewise.
1028
1029 * config.table: Use mh-beos.
1030 * config/mh-beos: New file.
1031
391cdef0
MM
10321999-04-11 Mark Mitchell <mark@codesourcery.com>
1033
1034 * cplus-dem.c (demangle_template_value_parm): Handle
1035 pointers-to-members.
1036 (do_type): Handle template parameters as qualifiers.
1037
9d229989
JB
10381999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
1039
1040 * cplus-dem.c: Attempt to handle overflows in counts with some
1041 semblance of grace.
1042 (consume_count): Detect overflows. Return -1 to indicate errors,
1043 instead of zero.
1044 (demangle_template_value_parm, demangle_template): Handle change
1045 to consume_count's return convention.
1046
7c72138a
TT
10471999-04-05 Tom Tromey <tromey@cygnus.com>
1048
1049 * testsuite/regress-demangle: New file.
1050 * testsuite/demangle-expected: New file.
1051
1052 * Makefile.in (all, check, installcheck, info, install-info,
1053 clean-info, dvi, install, etags, tags, mostlyclean, clean,
1054 distclean, maintainer-clean, realclean): Depend on corresponding
1055 `-subdir' target.
1056 (all-subdir check-subdir installcheck-subdir info-subdir
1057 install-info-subdir clean-info-subdir dvi-subdir
1058 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
1059 distclean-subdir maintainer-clean-subdir): New target.
1060 * testsuite/Makefile.in: New file.
1061 * configure: Rebuilt.
1062 * configure.in: Create testsuite/Makefile.
1063
ae7f7270
MM
10641999-04-02 Mark Mitchell <mark@codesourcery.com>
1065
1066 * splay-tree.h (splay_tree_compare_pointers): Define.
1067
30f72379
MM
10681999-03-30 Mark Mitchell <mark@codesourcery.com>
1069
1070 * splay-tree.c (splay_tree_compare_ints): Define.
1071
4cc48683
TT
10721999-03-30 Tom Tromey <tromey@cygnus.com>
1073
1074 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
1075 don't advance input pointer.
1076 (demangle_class_name): If consume_count didn't find a count, do
1077 nothing. Don't bother with `strlen' sanity check; consume_count
1078 does it for us.
1079
3510075c
JL
10801999-03-16 Stan Shebs <shebs@andros.cygnus.com>
1081
1082 From Art Haas <ahaas@neosoft.com>:
1083 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
1084 when doing arm or hp style.
1085 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 1086
89f602a7
MK
1087Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
1088
1089 * pexecute.c (__CYGWIN32__): Rename to
1090 (__CYGWIN__): this.
1091 * xmalloc.c: Likewise.
1092
1093 Changes to support i386-pc-uwin.
1094 * configure.in (*-*-uwin*): Workaround for vfork bug.
1095 * configure: Regenerate.
1096 * pexecute.c (pexecute): Be like standard Unix.
1097 (pwait): Likewise.
1098 * xmalloc.c (first_break): Define.
1099 (xmalloc_set_program_name): Use.
1100 (xmalloc): Use.
1101
9346c824
FS
1102Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1103
1104 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
1105
3510075c
JL
1106Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
1107
1108 * config.table: Check cygwin*, not cygwin32*.
1109
8ec65f13
DB
1110Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
1111
1112 * Makefile.in: Change mkstemp -> mkstemps.
1113
687361c8
ME
1114Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
1115
1116 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
1117 * configure.in (funcs): Check for and conditionally add mkstemps to
1118 the list of functions libiberty will provide.
1119 * configure: Rebuilt.
5194cf08 1120
b207e09c
MK
1121Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
1122
5194cf08 1123 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
1124 platforms that don't have HZ.
1125 * getruntime.c (HZ): Likewise.
1126
16b4c15e
RH
1127Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
1128
1129 * Makefile.in (xstrdup.o): Depend on config.h.
1130
38beb75c
UD
1131Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
1132
1133 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
1134 freeing it.
1135
7e4311a3
KG
1136Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137
1138 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
1139
3510075c
JL
1140Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
1141
1142 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
1143 splay-tree.o.
1144
11451999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
1146
1147 * configure.in: Require autoconf 2.12.1 or higher.
1148
fb9939b8
MM
11491998-12-30 Michael Meissner <meissner@cygnus.com>
1150
1151 * random.c (NULL): Don't redefine NULL if it is already defined.
1152
087aa398
KG
1153Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1154
1155 * argv.c (buildargv): Cast the result of alloca in assignment.
1156
1157 * choose-temp.c: Include stdlib.h.
38beb75c 1158
087aa398
KG
1159 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
1160 (snarf_numeric_literal): Constify first parameter.
1161 (code_for_qualifier): Avoid a gcc extension, make the parameter an
1162 int, not a char.
1163 (demangle_qualifier): Likewise.
1164 (demangle_signature): Cast the argument of a ctype function to
1165 unsigned char.
1166 (arm_pt): Add parens around assignment used as truth value.
1167 (demangle_arm_hp_template): Constify variable `args'.
1168 (do_hpacc_template_const_value): Cast the argument of a ctype
1169 function to unsigned char.
1170 (do_hpacc_template_literal): Remove unused variable `i'.
1171 (snarf_numeric_literal): Constify parameter `args'.
1172 Cast the argument of a ctype function to unsigned char.
1173
1174 * floatformat.c (floatformat_to_double): Add explicit braces to
1175 avoid ambiguous `else'.
38beb75c 1176
087aa398
KG
1177 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
1178 `cstart' and `cend' to unsigned char. Cast the argument of macro
1179 `FOLD', which uses ctype functions, to unsigned char.
1180
1181 * objalloc.c (free): Add prototype.
1182
21f2174d
HPN
1183Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
1184
1185 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
1186
3510075c
JL
1187Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
1188
1189 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
1190 doesn't exist.
1191 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 1192
e8fc8222
AM
1193Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1194
1195 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
1196 bumping the pointer we read from. Also prepend these codes,
1197 as we do in other places.
1198
3510075c
JL
11991998-12-18 Nick Clifton <nickc@cygnus.com>
1200
1201 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
1202 'const char *' in order to match its usage when calling siblings.
1203 (snarf_numeric_literal): Make first arg 'const char **' in order
1204 to match usage.
11a0bb74 1205
f4f30aa1
JL
1206Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1207
11a0bb74
KG
1208 * choose-temp.c: Don't check IN_GCC anymore.
1209
1210 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
1211 * memchr.c (memchr): Likewise.
1212 * memcpy.c (memcpy): Likewise.
1213 * memmove.c (memmove): Likewise.
38beb75c 1214
11a0bb74
KG
1215 * mkstemp.c: Don't check IN_GCC anymore.
1216 * pexecute.c: Likewise.
1217 * splay-tree.c: Likewise.
38beb75c 1218
11a0bb74
KG
1219 * strchr.c (strchr): Use `const', not `CONST'.
1220 * strrchr.c (strrchr): Likewise.
1221 * strtol.c (strtol): Likewise.
1222 * strtoul.c (strtoul): Likewise.
1223
70d5ccef
DT
1224Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
1225 Elena Zannoni <ezannoni@cygnus.com>
1226 Stan Shebs <shebs@cygnus.com>
1227 Edith Epstein <eepstein@cygnus.com>
1228 Andres MacLeod <amacleod@cygnus.com>
1229 Satish Pai <pai@apollo.hp.com>
1230
1231 * HP aCC demangling support.
1232 * cplus-dem.c
1233 (main): Remove default to HP style demangling, set to EDG
1234 demangling correctly when -edg specified; set the demangling style
1235 when user specifies 'edg'. Set strip_underscore to
1236 prepends_underscore, if not HPUXHPPA. Set
1237 current_demangling_style to hp_demangling if HPUXHPPA. Set
1238 current demangling style correctly if the switch is hp. Read
1239 label correctly also in the HP style case.
1240 (work_stuff): add temp_start field; add field for volatile member
1241 function.
1242 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
1243 style for this case is the same as ARM.
1244 (demangle_args): handle EDG_DEMANGLING style; support HP style.
1245 (demangle_arm_hp_template): new function. (It was
1246 demangle_arm_pt.); check and set value of temp_start field in
1247 multiple places. Also, when ceching for end of template args,
1248 check to see if at end of static member of template class.
1249 (demangle_class): new local variable : save_class_name_end Don't
1250 include template args in string defining class.
1251 (demangle_class_name): use demangel_arm_hp_template.
1252 (demangle_function_name): handle case where demangling style is
1253 HP_DEMANGLING and currently point at an 'X' in the mangled name.
1254 Handle EDG_DEMANGLING style. Handle constructor and destructor
1255 ops for HP style.
1256 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
1257 styles. global destructor and constructor for HP style are same
1258 as for ARM style. Same for local variables.
1259 (demangle_qualified): handle EDG_DEMANGLING style.
1260 (demangle_signature): add case for volatile member function. For
1261 cases '1' - '9' : initialize the temp_start field to -1 and handle
1262 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
1263 and AUTO_DEMANGLING styles. If expecting a function and managed
1264 to demangle the funct args, then handle the LUCID_DEMANGLING,
1265 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
1266 class name after "Lnnn_ in HP style case. HP style too needs to
1267 forget types. _nnn is OK for HP style, so don't report failure.
1268 (do_hpacc_template_const_value): new function. Handle template's
1269 value param for HP/aCC.
1270 (do_hpacc_template_literal): new function. Handle a template's
1271 literal parameter for HP aCC.
1272 (recursively_demangle): new function
1273 (snarf_numeric_literal): new function.
1274 (usage): add 'edg' to the list of demangling styles; add hp switch
1275 to message.
1276
8d525fa8
CF
1277Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
1278
1279 * pexecute.c: Remove obsolete ifdefed cygwin code.
1280
9b1a92d8
KG
1281Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1282
1283 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
1284 * cplus-dem.c: Likewise. Conform to libiberty.h.
1285 * pexecute.c: Likewise.
1286 * splay-tree.c: Likewise.
1287
c85c3232
MS
12881998-11-25 Mike Stump <mrs@wrs.com>
1289
1290 * Makefile.in (splay-tree.o): Add config.h dependency.
1291
35a6cd99
KG
1292Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1293
1294 * configure.in: Use AC_PREREQ(2.12.1).
1295
6e6e34b7
BK
12961998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
1297
5194cf08 1298 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 1299
59b67c11
JL
1300Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
1301
1302 * mpw.c (mpw_access): Add missing parens.
1303
a6458d1d
KG
1304Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1305
1306 * configure.in: Call AC_HEADER_SYS_WAIT.
1307
1308 * pexecute.c: Include sys/wait.h when !IN_GCC.
1309
3510075c
JL
1310Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
1311
1312 * pexecute.c: revert back to checking old Cygwin
1313 preprocessor symbol until some time has passed.
1314
1315Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
1316
1317 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
1318 since it will now support similar constructs.
1319
a9acf741
KG
1320Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1321
1322 * configure.in: Check for calloc.
1323
1324 * calloc.c: New file.
1325
1326 * xmalloc.c (xcalloc): New function.
1327
a49fb37a
AM
1328Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
1329
1330 *cplus-dem.c (demangle_prefix): Use the last "__"
1331 in the mangled name when looking for the signature. This allows
1332 template names to begin with "__".
1333
0e714131
MM
13341998-11-08 Mark Mitchell <mark@markmitchell.com>
1335
ec2288ff
MM
1336 * cplus-dem.c (type_kind_t): Add tk_reference.
1337 (demangle_template_value_parm): Handle it.
1338 (do_type): Use it for references, instead of tk_pointer.
1339
0e714131
MM
1340 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
1341 not internal_cplus_demangle.
1342
2931b6d4
KG
1343Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1344
1345 * choose-temp.c: Don't include gansidecl.h.
1346 * mkstemp.c: Likewise.
1347 * pexecute.c: Likewise.
1348
dd8f3ed5
GN
1349Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
1350
5194cf08
ZW
1351 * configure.in: detect cygwin* instead of cygwin32*
1352 * configure: regenerate
dd8f3ed5 1353
c5f7c445
KG
1354Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1355
1356 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
1357 whether to include config.h. Possibly include unistd.h in the
1358 !IN_GCC case. Define VFORK_STRING as a printable function call
1359 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
1360 defined, include vfork.h. If VMS is defined, define vfork()
1361 appropriately. Remove vfork check on USG, we're using autoconf.
1362 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
1363 locally what string to use.
1364
ad3ef78e
MM
13651998-10-26 Mark Mitchell <mark@markmitchell.com>
1366
1367 * splay-tree.c: Tweak include directives to make sure declarations of
1368 xmalloc and free are available.
1369
224301c1
MM
13701998-10-25 Mark Mitchell <mark@markmitchell.com>
1371
1372 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
1373 anonymous namespaces.
38beb75c 1374
d9db46fd
MM
13751998-10-23 Mark Mitchell <mark@markmitchell.com>
1376
1377 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
1378 with type_quals.
1379 (TYPE_UNQUALIFIED): New macro.
1380 (TYPE_QUAL_CONST): Likewise.
1381 (TYPE_QUAL_VOLATILE): Likewise.
1382 (TYPE_QUAL_RESTRICT): Likewise.
1383 (code_for_qualifier): New function.
1384 (qualifier_string): Likewise.
1385 (demangle_qualifier): Likewise.
1386 (internal_cplus_demangle): Use them.
1387 (demangle_signature): Likewise.
1388 (demangle_template_value_parm): Likewise.
1389 (do_type): Likewise.
1390 (demangle_fund_type)): Likewise.
224301c1 1391
b056ad1c
KG
1392Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1393
1394 * splay-tree.c (splay_tree_foreach_helper): Make definition static
1395 to match prototype.
1396
ed87f9c8
MM
13971998-10-21 Mark Mitchell <mark@markmitchell.com>
1398
1399 * splay-tree.c: New file.
1400 * Makefile.in (CFILES): Add it.
1401 (REQUIRED_OFILES): Likewise.
1402 (splay-tree.o): Add dependencies.
1403
e0c13971
AS
1404Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
1405
1406 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
1407 range of 'K' index.
1408
91e0f659
KG
1409Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1410
1411 * choose-temp.c: Prototype mkstemps() when IN_GCC.
1412
1413 * cplus-dem.c (consume_count): Cast argument of ctype macro to
1414 `unsigned char'.
1415 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
1416 comparing against one.
1417 (cplus_mangle_opname): Likewise.
1418 (demangle_integral_value): Cast argument of ctype macro to
1419 `unsigned char'.
1420 (demangle_template_value_parm): Likewise.
1421 (demangle_template): Initialize variable `bindex'. Cast the
1422 result of `strlen' to (int) when comparing against one. Remove
1423 unused variable `start_of_value_parm'.
1424 (demangle_class_name): Cast the result of `strlen' to (int) when
1425 comparing against one.
1426 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
1427 (gnu_special): Likewise. Cast the result of `strlen' to (int)
1428 when comparing against one.
1429 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
1430 (get_count): Likewise.
1431 (do_type): Likewise. Cast the result of `strlen' to (int) when
1432 comparing against one.
1433 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
1434 (demangle_function_name): Cast the result of `strlen' to (int)
1435 when comparing against one.
1436
1437 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
1438 comparing against one.
1439
73aeb2ff
JL
1440Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
1441
5194cf08
ZW
1442 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
1443 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
1444 * config.in, configure: Rebuilt.
ae76f1be 1445
73aeb2ff
JL
1446 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
1447 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
1448 * config.in, configure: Rebuilt.
1449
dd8f3ed5
GN
1450Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
1451
5194cf08 1452 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 1453
f77d8413
MT
1454Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
1455
1456 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
1457
ca6b370d
JL
1458Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
1459
1460 * Merge egcs & devo libiberty.
1461
ab4856b1
ML
1462