Update copyright year.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
1a79b024
DD
12004-01-09 Kelley Cook <kcook@gcc.gnu.org>
2
3 * configure.in: Rename file to ...
4 * configure.ac: ... this.
5 * Makefile.in: Update a comment for above change.
6 * README: Likewise.
7 * config.in: Regenerate.
8
820542c9
DD
92004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
10
11 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
12 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
13 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
14 demangling template parameters.
15 * testsuite/test-demangle.c (fail): New static function.
16 (main): Support new options in input file: --no-params,
17 --is-v3-ctor, and --is-v3-dtor.
18 * testsuite/demangle-expected: Add --no-params to most tests, and
19 add the correct result when parameters are not demangled. Add
20 some simple tests for V3 constructor/destructor recognition.
21
2f9c4058
DD
222003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
23
24 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
25
4fd47f10
DJ
262003-12-22 Daniel Jacobowitz <drow@mvista.com>
27
28 PR debug/13272
29 * Makefile.in (lbasename.o): Depend on filenames.h.
30 * lbasename.c: Include "filenames.h" instead of defining
31 its macros locally.
32
b6fb00c0
DD
332003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
34
35 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
36 dynamic arrays.
37 (struct d_operator_info): Add len field.
38 (struct d_builtin_type_info): Add len and java_len fields.
39 (struct d_standard_sub_info): Add simple_len, full_len, and
40 set_last_name_len fields.
41 (struct d_comp): Add len field to s_string.
42 (struct d_info): Add send, did_subs, and expansion fields.
43 (d_append_string_constant): Define.
44 (d_append_string): Remove. Change all users to use
45 d_append_string_constant or d_append_buffer instead.
46 (d_make_sub): Add len parameter. Change all callers.
47 (d_name): Increase expansion when substituting std::.
48 (d_unqualified_name): Increase expansion for an operator.
49 (d_number): Don't use multiplication for negative numbers.
50 (d_identifier): Make sure there are enough characters in the
51 string for the specified length. Adjust expansion for an
52 anonymous namespace.
53 (d_operators): Initialize len field.
54 (d_special_name, d_ctor_dtor_name): Increase expansion.
55 (d_builtin_types): Initialize len and java_len fields.
56 (d_type): Increase expansion for a builtin type.
57 (d_cv_qualifiers): Increase expansion for each qualifier.
58 (d_bare_function_type): Decrease expansion when removing single
59 void parameter.
60 (d_template_param): Increment did_subs.
61 (d_expression): Increase expansion for an operator.
62 (d_expr_primary): Decrease expansion for a type we will print
63 specially.
64 (standard_subs): Initialize new fields.
65 (d_substitution): Increment did_subs when doing a normal
66 substitution. Increase expansion for a special substitution.
67 (d_print): Add estimate parameter. Change all callers.
68 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
69 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
70 (d_print_java_identifier): Rename from d_print_identifier. Handle
71 only Java case. Change caller.
72 (d_init_info): Change return type to void. Change all callers.
73 Initialize send, did_subs, and expansion fields. Do not
74 initialize comps and subs fields.
75 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
76 arrays on stack. Make an estimate of the length of the demangled
77 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
78 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
79 subs arrays on stack.
80
2730f651
DD
812003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
82
83 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
84 after the identifier.
85 * testsuite/demangle-expected: Add test case.
86
d4edd112
DD
872003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
88
89 Fix for PR c++/13447:
90 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
91 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
92 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
93 D_COMP_QUAL_NAME.
94 (is_ctor_or_dtor): Likewise.
95 (d_local_name): Use D_COMP_LOCAL_NAME rather than
96 D_COMP_QUAL_NAME.
97 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
98 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
99 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
100 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
101 * testsuite/demangle-expected: Add two test cases.
102
103 * cp-demangle.c (d_print_function_type): Clear the global modifier
104 list when printing the modifiers, not just when printing the
105 function parameters.
106 * testsuite/demangle-expected: Add two test cases.
107
d35d0cd4
DD
1082003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
109
110 * cp-demangle.c (d_print_function_type): Print the function
111 parameters with no modifiers.
112 * testsuite/demangle-expected: Add test case.
113
114 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
115 expect that we've read the entire string.
116 (is_ctor_or_dtor): Don't expect that we've read the entire
117 string--reverse patch of 2003-11-29.
118
09e9708c
DD
1192003-12-15 Brendan Kehoe <brendan@zen.org>
120
121 * libiberty/Makefile.in (floatformat.o): Add dependency on
122 config.h to accompany change of 2003-12-03.
123
97ceaf5b
DD
1242003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
125
126 Fix handling of constructor/destructor of standard substitution:
127 * cp-demangle.c (struct d_standard_sub_info): Define.
128 (d_substitution): Add prefix argument. Change all callers.
129 Rework handling of standard substitutions to print full name when
130 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
131 * testsuite/demangle-expected: Add test case.
132
133 Fix handling of negative literal constants:
134 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
135 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
136 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
137 (d_print_comp): Handle D_COMP_LITERAL_NEG.
138 * testsuite/demangle-expected: Add test case.
139
858b45cf
DD
1402003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
141
142 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
143 (d_last_char): Define new macro.
144 (d_make_name): Reject an empty name.
145 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
146 (d_substitution, d_print_identifier): Likewise.
147 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
148 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
149 (d_print_mod) Use new d_last_char macro.
150 (d_print_cast): Use new d_last_char macro.
151 (is_ctor_or_dtor): Don't leak memory.
152
153 Fix handling of member function modifiers:
154 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
155 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
156 (d_dump): Dump new d_comp_type values.
157 (d_make_comp): Accept new d_comp_type values.
158 (has_return_type): Only accept _THIS variants of qualifiers.
159 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
160 qualifiers.
161 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
162 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
163 qualifiers and printing them at the end, add _THIS qualifiers to
164 the modifier list.
165 (d_print_comp) [D_COMP_*_THIS]: New cases.
166 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
167 qualifiers.
168 (d_print_mod_list): Add suffix parameter. Change all callers.
169 Keep walking the list even if the current modifier has been
170 printed.
171 (d_print_mod): Handle new _THIS qualifiers.
172 (d_print_function_type): Handle new _THIS qualifiers when deciding
173 whether to print a parenthesis. Put a space before the
174 parenthesis in some cases. Call d_print_mod_list again at the
175 end, passing suffix as 1.
176 (is_ctor_or_dtor): Look for new _THIS qualifiers.
177 * testsuite/demangle-expected: Add test case.
178
179 Fix for PR gcc/13304:
180 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
181 before the '<' is itself a '<', insert a space.
182 (d_print_cast): Likewise.
183 * testsuite/demangle-expected: Add test case.
184
185 Fix for PR gcc/13244:
186 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
187 which uses the '>' operator in an extra layer of parens.
188 * testsuite/demangle-expected: Add test case.
189
b52927b7
DD
1902003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
191
192 * floatformat.c: Include "config.h" and <string.h> if available.
193 (INFINITY, NAN): Define if not defined by <math.h>.
194 (floatformat_to_double): Handle NaN, infinity, and denormalized
195 numbers.
196 (floatformat_from_double): Likewise.
197 (ieee_test): In debugging code, use little endian rather than big
198 endian. Correct tests to handle NaN and to check correct sign of
199 zero. Omit m68k extended test.
200 (main): Add more debugging cases.
201
24afc00d
DD
2022003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
203
204 * cp-demangle.c (d_demangle): Only return success if we consumed
205 the entire demangled string.
206 (is_ctor_or_dtor): Likewise.
207
208 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
209 to restore expected result of EDG test case to original expected
210 result.
211
331c3da2
DD
2122003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
213
214 * cp-demangle.c (struct d_print_mod): Add templates field.
215 (d_make_builtin_type): Check for NULL type.
216 (d_make_extended_operator): Check for NULL name.
217 (d_make_ctor, d_make_dtor): Likewise.
218 (d_mangled_name): Add top_level parameter. Change all callers.
219 (d_encoding): If DMGL_PARAMS is not set, strip off initial
220 CV-qualifiers.
221 (d_type): Check some return values we rely on.
222 (d_bare_function_type, d_array_type): Likewise.
223 (d_pointer_to_member_type, d_template_args): Likewise.
224 (d_add_substitution): Fail if argument is NULL.
225 (d_print_resize): Check whether buf is NULL.
226 (d_print_comp): Save current templates list with each modifier.
227 Don't pass the modifier list down when printing a template.
228 (d_print_cast): Don't pass the modifier list down when printing a
229 template.
230 (d_print_mod_list): Temporarily set templates list while printing
231 a modifier.
232 (d_print_mod): Check that buf is not NULL before using it.
233 (d_print_function_type): Print parens if there is no modifier.
234 (d_init_info): Permit as many substitutions as there are
235 characters in the mangled name.
236 * testsuite/demangle-expected: Add two new test cases.
237
51948b34
DD
2382003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
239
240 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
241 d_demangle.
242
6d95373e
DD
2432003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
244
245 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
246 callers.
247 (print_usage): Display new -p option.
248 (long_options): Add --no-params.
249 (main): Accept and handle -p.
250
54a962d9
DD
2512003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
252
253 * cp-demangle.c (has_return_type): Skip qualifiers when checking
254 whether we have a template.
255 * testsuite/demangle-expected: Add four new tests.
256
8fe0d347
DD
2572003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
258
259 * testsuite/demangle-expected: Minor changes to match output of
260 new demangler: adjust whitespace in four tests, and change order
261 of qualifiers in one test.
262
263 * cp-demangle.c: Complete rewrite.
264
dd9d4b48
DD
2652003-11-19 Mark Mitchell <mark@codesourcery.com>
266
267 * cp-demangle.c (demangle_type): Correct thinko in substitution
268 processing.
269
0976f6a7
DD
2702003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
271
272 * cp-demangle.c (demangle_operator_name): Remove space before
273 "sizeof".
274 (demangle_type_ptr): Put qualifiers in the right place. Handle
275 qualifiers in pointer to member specially.
276 (demangle_type): Handle qualifiers for pointer or reference
277 specially. Handle function type.
278 (demangle_local_name): Save and restore caret around demangling of
279 initial encoding.
280
281 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
282 cplus_demangle.
283
284 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
285
e7e6980b
DD
2862003-10-31 Andreas Jaeger <aj@suse.de>
287
288 * floatformat.c (floatformat_always_valid): Add unused attribute.
289
97ceaf5b
DD
2902003-10-30 Josef Zlomek <zlomekj@suse.cz>
291
292 Jan Hubicka <jh@suse.cz>
293 * vasprintf.c (int_vasprintf): Pass va_list by value.
294 Use va_copy for copying va_list.
295 (vasprintf): Pass va_list by value.
296
686e72d7
DD
2972003-10-30 Josef Zlomek <zlomekj@suse.cz>
298
299 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
300 instead of increasing n_elements when inserting to deleted slot.
301
eec65ede
JB
3022003-10-20 J. Brobecker <brobecker@gnat.com>
303
304 * cplus-dem.c (demangle_template): Register a new Btype only
305 when needed.
306 * testsuite/demangle-expected: Add a new test.
307
cd275bff
L
3082003-10-16 H.J. Lu <hongjiu.lu@intel.com>
309
310 * testsuite/demangle-expected: Update the expected output of
311 _GLOBAL__I__Z2fnv.
312
e3b1168e
DJ
3132003-10-02 Daniel Jacobowitz <drow@mvista.com>
314
315 * strerror.c: Revert last change. Declare static sys_nerr
316 and sys_errlist using different names.
317
efb150d5
DJ
3182003-10-01 Daniel Jacobowitz <drow@mvista.com>
319
320 * strerror.c: Don't provide or reference sys_errlist if
321 strerror is available.
322
b7ca9213
L
3232003-10-01 H.J. Lu <hongjiu.lu@intel.com>
324
325 * configure.in: Check if $MAKEINFO is missing.
326 * configure: Regenerated.
327
8ddbb593
DJ
3282003-09-24 Daniel Jacobowitz <drow@mvista.com>
329
330 * configure.in: Use AC_PROG_CPP_WERROR.
331 * configure: Regenerated.
332
5324d185
AC
3332003-09-22 Andrew Cagney <cagney@redhat.com>
334
335 * floatformat.c (floatformat_i387_ext_is_valid): New function.
336 (floatformat_always_valid): New function.
337 (floatformat_i387_ext): Initialize new "is_valid" field to
338 "floatformat_i387_ext_is_valid".
339 (floatformat_ieee_single_little): Initialize "is_valid" field to
340 floatformat_always_valid.
341 (floatformat_ieee_double_big): Ditto.
342 (floatformat_ieee_double_little): Ditto.
343 (floatformat_ieee_double_little): Ditto.
344 (floatformat_ieee_double_littlebyte_bigword): Ditto.
345 (floatformat_i960_ext): Ditto.
346 (floatformat_m88110_ext): Ditto.
347 (floatformat_m88110_harris_ext): Ditto.
348 (floatformat_arm_ext_big): Ditto.
349 (floatformat_arm_ext_littlebyte_bigword): Ditto.
350 (floatformat_ia64_spill_big): Ditto.
351 (floatformat_ia64_spill_little): Ditto.
352 (floatformat_ia64_quad_big): Ditto.
353 (floatformat_ia64_quad_little): Ditto.
354 (floatformat_ia64_quad_little): Ditto.
355 (floatformat_is_valid): Call "is_valid".
356
34f4a113
AC
3572003-09-15 Andrew Cagney <cagney@redhat.com>
358
359 * floatformat.c (get_field): Make "data" constant.
360 (floatformat_is_valid, floatformat_to_double): Make "from"
361 constant, fix casts.
362 (floatformat_from_double): Make "from" constant.
363
3f2aacaf
DJ
3642003-09-15 Daniel Jacobowitz <drow@mvista.com>
365
366 * floatformat.c (floatformat_is_valid): New function.
367 (get_field, put_field): Correct comments.
368
aae66b9f
DD
3692003-09-06 Josef Zlomek <zlomekj@suse.cz>
370
371 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
372 FIBHEAPKEY_T.
373
60b04ee8
DD
3742003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
375
376 PR bootstrap/12100
377 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
378 * configure: Rebuilt.
379
2299a76d
DJ
3802003-08-27 Daniel Jacobowitz <drow@mvista.com>
381
382 * aclocal.m4: Include acx.m4 and no-executables.m4.
383 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
384 (LIB_AC_PROG_CC): Remove.
385 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
386 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
387 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
388 performing link tests.
389 * configure: Regenerated.
390
9ad1aa29
DD
3912003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
392
393 * cp-demangle.c: Clarify what package(s) this is part of.
394
dbb9d0f3
DD
3952003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
396
397 * pex-win32.c (pexecute): Mark parameters this_pname and
398 temp_base as unused. Remove unused variables retries,
399 sleep_interval. Initialize org_stdin, org_stdout.
400 (pwait): Mark parameter flags as unused.
401
4022003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
403
404 * pex-win32.c (fix_argv): Ensure that the executable pathname
405 uses Win32 backslashes.
406 (pexecute): Cast away constness when assigning *errmsg_arg.
407
78c5b0a5
L
4082003-06-26 H.J. Lu <hongjiu.lu@intel.com>
409
410 * testsuite/demangle-expected: Add more GNU V3 testcases.
411
70ecf948
DD
4122003-06-22 Zack Weinberg <zack@codesourcery.com>
413
414 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
415 not HC_ASCII and HC_EBCDIC.
416 Add documentation in form expected by gather-docs.
417 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
418 * Makefile.in, functions.texi: Regenerate.
419
cbc0188b
DD
4202003-06-21 Zack Weinberg <zack@codesourcery.com>
421
422 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
423 for charset determination.
424
5f73c378
DD
4252003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
426
427 * configure.in: Add check for malloc.h needed by
428 m68k for function free().
429 * configure: Regenerated.
430 * config.in: Add HAVE_MALLOC_H.
431 * hashtab.c: include malloc.h were available for
432 free().
433
e69f6c8c 4342003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 435
e69f6c8c
DD
436 PR bootstrap/10974
437 * physmem.c: Update comment.
438 * configure.in: Modify test for _system_configuration for older
439 AIX systems.
440
441 * config.in, configure: Regenerated.
cbc0188b 442
54c60684
DD
4432003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
444
445 PR other/10810
446 * test-demangle.c (getline): Fix fence-post error.
447
5a4e47bd
NC
4482003-06-03 Nick Clifton <nickc@redhat.com>
449
450 * asprintf.c: Change comment to note that -1 is returned upon
451 error.
452 * vasprintf.c: Likewise.
453 (vasprintf): Return -1 upon error.
454 * functions.texi: Document changes to asprintf and vasprintf.
455
916f5d13
DD
4562003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
457
458 * config.table: Accept i[345867]86 variant.
459
e4f79046
JB
4602003-05-15 Jim Blandy <jimb@redhat.com>
461
462 * hex.c (_hex_value): Make this unsigned.
463 (hex_value): Update documentation for new return type. hex_value
464 now expands to an unsigned int expression, to avoid unexpected
465 sign extension when we store it in a bfd_vma, which is larger than
466 int on some platforms.
467 * functions.texi: Regenerated.
468
0f3538e7
DD
4692003-05-07 Josef Zlomek <zlomekj@suse.cz>
470
471 * splay-tree.c (splay_tree_predecessor): Fix comment.
472 (splay_tree_successor): Fix comment.
473
7108c5dc
JM
4742003-05-07 Jason Merrill <jason@redhat.com>
475
eafaf5eb 476 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
477 * configure.in: Add AC_C_BIGENDIAN_CROSS.
478 * aclocal.m4: Include accross.m4.
479 * configure, config.in: Regenerate.
480
0b555173
DD
4812003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
482
483 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
484 * configure: Regenerate.
485
8730135a
DD
4862003-05-03 Carlo Wood <carlo@alinoe.com>
487
488 * cp-demangle.c: Fix typo in "char_traints" string-literal.
489
341eccbc
DD
4902003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
491
492 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
493 (main): Test that we don't write too much data.
494
2ed1e5cc
DD
4952003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
496
497 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
498 vsnprintf.
499 * snprintf.c, vsnprintf.c: New files.
500 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
501 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
502 Regenerate dependencies.
503
504 * functions.texi, configure, config.in: Regenerated.
505
10b57b38
DD
5062003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
507
508 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
509 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
510 and stpncpy.
511 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
512 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
513 Regenerate dependencies.
514
515 * functions.texi, configure, config.in: Regenerated.
516
ff773b85
DD
5172003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
518
519 * argv.c: Fix comments.
520 * calloc.c: Don't unnecessarily include "libiberty.h".
521 (bzero): Add prototype.
522 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
523 * getcwd.c (getcwd): Use standard definition to avoid conflicts
524 with system headers.
525 * hashtab.c (htab_traverse): Delete unused variables.
526 * rename.c: Include "ansidecl.h".
527 (rename): Use standard definition to avoid conflicts with system
528 headers.
529 * strsignal.c: Rely on ANSI_PROTOTYPES.
530 * strstr.c: Check GNUC >= 2, not GNUC == 2.
531 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
532 * vprintf.c: Include "ansidecl.h" earlier, rely on
533 ANSI_PROTOTYPES.
534 * vsprintf.c: Include "ansidecl.h" earlier, rely on
535 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 536
ff773b85
DD
537 * Makefile.in: Regenerate dependencies.
538
bb325820
DD
5392003-04-15 DJ Delorie <dj@redhat.com>
540
541 * maint-tool (deps): Scan for headers in $srcdir also.
542
258a4893
DD
5432003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
544
545 PR target/10338
546 PR bootstrap/10198
547 PR bootstrap/10140
548 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
549 __mempcpy.
550 * regex.c (regerror): Likewise.
551
ff773b85
DD
5522003-04-14 Roger Sayle <roger@eyesopen.com>
553
554 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
555 * memchr.c: Likewise.
556 * strcasecmp.c: Likewise.
557 * strncasecmp.c: Likewise.
558 * strncmp.c: Likewise.
559 * xatexit.c: Likewise.
560 * xmalloc.c: Likewise.
561
562 * copysign.c: Use traditional function declaration instead of DEFUN.
563 * sigsetmask.c: Likewise.
564
565 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
566 * memset.c: Likewise.
567
568 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
569 * memmove.c: Likewise.
570
eec539c7
DD
5712003-04-14 Roger Sayle <roger@eyesopen.com>
572
573 * strdup.c (strdup): Tweak implementation to use memcpy.
574
daf7c4ad
DD
5752003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
576
577 * configure.in (HAVE_UINTPTR_T): Always define.
578 * configure: Regenerated.
579
aa072e59
AO
5802003-03-23 Alexandre Oliva <aoliva@redhat.com>
581
582 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
583 instead of $$CC alone.
584 (install_to_tooldir): Use it.
585
f77ed96c
DD
5862003-17-03 Jan Hubicka <jh@suse.cz>
587
588 * hashtab.c (htab_traverse_noresize): Break out from ...
589 * hashtab.c (htab_traverse): ... here.
590
2336e177
DD
5912003-12-03 Jan Hubicka <jh@suse.cz>
592
593 * hashtab.c (htab_expand): Fix warning.
594
595 * hashtab.c (htab_expand): Compute the size of hashtable based
596 on the number of elements actually used.
597 (htab_traverse): Call htab_expand when table is too empty.
598
d8cbbf95
DD
5992003-03-11 Carlo Wood <carlo@gnu.org>
600
601 * cplus-dem.c (demangle_integral_value): Correction to reflect
602 patch of 2002-01-10 in order to also make negative multi-digits
603 without leading underscore work.
604
a01fefeb
DD
6052003-03-03 Mark Mitchell <mark@codesourcery.com>
606
607 * cplus-dem.c: Add license exception to copyright notice.
608
638ceb1a
DD
6092003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
610
611 * physmem.c: Formatting changes from upstream.
612
ef803806
DD
6132003-02-24 Danny Smith <dannysmith@users.source.forge.net>
614
615 * physmem.c (physmem_total): Add _WIN32 support.
616 (physmem_available): Likewise.
617
181fa229
DD
6182003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
619
620 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
621 GSI_PHYSMEM.
622 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
623
cc529274
DD
6242003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
625
626 * configure.in: Check for sys/systemcfg.h and
627 _system_configuration.
628 * physmem.c: Add support for AIX. Tweek formatting as per
629 upstream coreutils beta.
630
6312003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
632 Richard Earnshaw <rearnsha@arm.com>
633 Geoffrey Keating <geoffk@apple.com>
cbc0188b 634
cc529274
DD
635 * configure.in: Check for sys/sysctl.h and sysctl.
636 * physmem.c: Add support for *bsd and darwin.
637 * Makefile.in: Generate depedency for physmem.o.
638
192cbe66
DD
6392003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
640
641 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
642 Tru64 UNIX.
643 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
644 Tru64 UNIX.
645
646 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
647 machine/hal_sysinfo.h, sys/table.h.
648 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
649 * configure, config.in: Regenerate.
650
ff773b85
DD
6512003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
652
653 * configure.in: Check for sys/sysmp.h and sysmp.
654 * physmem.c: Pull upstream copy, add support for irix6.
655
656 * config.in, configure: Regenerated.
657
900d2082
DD
6582003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
659
660 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
661 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
662 pstat_getdynamic.
cbc0188b 663
4938384a
DD
6642003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
665
666 * Makefile.in (CFILES): Add physmem.c.
667 (REQUIRED_OFILES): Add physmem.o.
668 * configure.in: Check for sys/pstat.h.
669 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
670 * physmem.c: New file, copied from textutils.
671
672 * config.in, configure: Regenerated.
673
ba61a412
DJ
6742003-02-20 Daniel Jacobowitz <drow@mvista.com>
675
676 * Makefile.in (CFILES): Add lrealpath.c.
677 (REQUIRED_OFILES): Add lrealpath.o.
678 (lrealpath.o): Add rule.
679 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
680 * configure.in: Add realpath and canonicalize_file_name to
681 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
682 for canonicalize_file_name.
683 * lrealpath.c: New file.
684 * make-relative-prefix.c: Update documentation.
685 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
686 * config.in: Regenerated.
687 * configure: Regenerated.
688 * functions.texi: Regenerated.
689
25dfe0ac
DD
6902003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
691
692 * cplus_dem.c: Fix typo: intializes -> initializes.
693
8b90eef4
AO
6942003-02-20 Alexandre Oliva <aoliva@redhat.com>
695
696 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
697 config.status.
698 * configure: Rebuilt.
699
fcd7c7c9
DD
7002003-02-13 Daniel Jacobowitz <drow@mvista.com>
701
702 Fix PR c++/7612.
703 * cplus-dem.c (demangle_signature): Call string_delete.
704 Remove extra string_init.
705 (demangle_arm_hp_template): Call string_delete instead of
706 string_clear. Add missing string_delete call.
707 (demangle_qualified): Add missing string_delete call.
708 (do_type): Remove unused variable btype. Add missing string_delete
709 call. Call string_delete instead of string_clear.
710 (demangle_fund_type): Move variable btype inside of the switch
711 statement. Add missing string_delete call.
712 (do_arg): Call string_delete instead of string_clear. Remove extra
713 string_init.
714 (demangle_nested_args): Free work->previous_argument.
715
073c427b
DD
7162003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
717
718 * acconfig.h: New file. Add uintptr_t.
719 * config.in: Regenerated.
720
f8bd3000
DD
7212003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
722
723 * libiberty.texi: Update to GFDL 1.2.
724
85b9a938
DD
7252003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
726
727 * Makefile.in (libiberty_topdir): New subst.
728 (mkinstalldirs): Redefine in terms of the above.
729 * configure.in: AC_SUBST it.
730 * configure: Regenerate.
731
578460f2
AO
7322003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
733
734 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
735 (info-subdir, install-info-subdir, clean-info-subdir)
736 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
737 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
738 Pass $(FLAGS_TO_PASS).
739
7f285245
AO
7402003-01-27 Alexandre Oliva <aoliva@redhat.com>
741
742 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
743 /`$$CC -print-multi-os-directory`.
744
5f9624e3
DJ
7452003-01-26 Daniel Jacobowitz <drow@mvista.com>
746
747 * hashtab.c (htab_create_alloc_ex): New function.
748 (hatab_set_functions_ex): New function.
749 (htab_delete, htab_expand): Support alternate allocation functions.
750
9c2259b8
DD
7512003-01-24 Christopher Faylor <cgf@redhat.com>
752
753 * configure.in: Remove special pex-cygwin consideration.
754 * configure: Regenerate.
755 * pex-cygwin.c: Remove.
756 * Makefile.in: Remove pex-cygwin.[co] lines.
757
5a17353c
DD
7582003-01-24 Zack Weinberg <zack@codesourcery.com>
759
760 * Makefile.in (CFILES): Add pex-*.c.
761 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
762 (CONFIGURED_OFILES): Add pex-*.o.
763 (TEXIFILES): Add pexecute.txh.
764 (pexecute.o): Delete rule.
765 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
766 pex-unix.o, pex-win32.o): New rules.
767 * configure.in: Change AC_INIT argument to xmalloc.c.
768 Compute appropriate pexecute implementation and substitute it
769 as @pexecute@.
770
771 * pexecute.c: Split up into...
772 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
773 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
774 new files.
775
776 * functions.texi: Regenerate.
777 * configure: Regenerate.
778
eed2b28c
DD
7792003-01-20 Josef Zlomek <zlomekj@suse.cz>
780
781 * hashtab.c (htab_expand): Fix allocation of new entries.
782
27a39a5f
DD
7832003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
784
785 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
786
787 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
788 mkinstalldirs command.
789
b51c1553
DD
7902002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
791
792 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
793 Define for hosts with HOST_EXECUTABLE_SUFFIX.
794
756954c3
DD
7952002-11-24 Nick Clifton <nickc@redhat.com>
796
797 * make-relative-prefix.c (make_relative_prefix): Ensure return
798 string is empty before using strcat to construct it.
799
2a80c0a4
DD
8002002-11-22 Daniel Jacobowitz <drow@mvista.com>
801
802 * Makefile.in: Add make-relative-prefix.c.
803 * make-relative-prefix.c: New file.
804 * functions.texi: Rebuilt.
805
768b20d8
JJ
8062002-11-16 Jakub Jelinek <jakub@redhat.com>
807
808 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
809 used with arguments in traditional C' warnings.
810
f52d1d64
JJ
8112002-10-16 Jakub Jelinek <jakub@redhat.com>
812
813 * config.table: Use mh-s390pic for s390x too.
814
0d3deb8d
DD
8152002-10-06 Andreas Jaeger <aj@suse.de>
816
817 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
818 variable and of strict-aliasing warning.
819 (grow_vect): Use char as first parameter.
820
1b67de92
DD
8212002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
822
823 * Makefile.in (all): Fix multilib parallel build.
824
585cc78f
DD
8252002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
826
827 * cp-demangle.c (demangling_new): Cast 0 to enum.
828 (demangle_char): Cast return of strdup to char *.
829 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
830 (is_gnu_v3_mangled_dtor): Likewise.
831 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
832 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
833 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
834 * md5.c (md5_process_bytes): Cast results back to const void *.
835 (md5_process_block): Add cast to const md5_uint32 *.
836 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
837 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
838 unsigned short.
839 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
840 to void *.
841 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
842
e21b0cc1
NC
8432002-09-19 Nick Clifton <nickc@redhat.com>
844
845 * README: Update email addresses for bugs and patches.
846
a54ba43f
DD
8472002-09-10 Mike Stump <mrs@apple.com>
848
849 * splay-tree.c (splay_tree_successor): Fix comments.
850
8512002-09-11 Zack Weinberg <zack@codesourcery.com>
852
853 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
854 * testsuite/Makefile.in: Adjust for test-demangle.
855 * testsuite/regress-demangle: Deleted.
856 * testsuite/test-demangle.c: New file.
857 * testsuite/demangle-expected: Change \$ to $ throughout, now that
858 this file is not being read by a shell script.
859
01cea699
DD
8602002-09-05 Roger Sayle <roger@eyesopen.com>
861
862 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
863
a2832523
DD
8642002-08-07 DJ Delorie <dj@redhat.com>
865
866 * regex.c (re_error_msgid): Just use a simple array of strings.
867 (re_compile_pattern): Compensate.
868 (re_comp): Likewise.
869 (re_comp): Likewise.
870 (regerror): Likewise.
871
1e3f0be0
DD
8722002-07-29 Neil Booth <neil@daikokuya.co.uk>
873
874 * cplus-dem.c (PREPEND_BLANK): Remove.
875
b851d07b
DD
8762002-07-10 Jason Merrill <jason@redhat.com>
877
878 * cp-demangle.c (demangle_identifier): Support extended Unicode
879 characters.
880
2a9dffbf
DD
8812002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
882
883 * cp-demangle.c (demangle_v3_with_details): Wrap in
884 !defined IN_GLIBCPP_V3.
885
793011ca
DD
8862002-07-01 Mark Mitchell <mark@codesourcery.com>
887
888 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
889 Set it for the "st" operator.
890 (demangle_expression): Handle expressions with types as arguments.
891
b39b76b8
DD
8922002-06-30 Douglas Rupp <rupp@gnat.com>
893
894 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
895 * Makefile.in (OUTPUT_OPTION): Use.
896
4748c6d8
DD
8972002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
898
899 * Makefile.in (install_to_libdir): Add $(DESTDIR).
900 (install_to_tooldir): Likewise.
901
f9c3326a
DD
9022002-06-17 Douglas Rupp <rupp@gnat.com>
903
904 * lbasename.c: Add 2002 to copyright.
905 (IS_DIR_SEPARATOR): Remove VMS junk.
906
18893690
DD
9072002-06-05 Geoffrey Keating <geoffk@redhat.com>
908
909 * hashtab.c (htab_create): New stub function for backward
910 compatibility.
911 (htab_try_create): Likewise.
912
9132002-06-03 Geoffrey Keating <geoffk@redhat.com>
914
915 * hashtab.c (htab_create): Delete.
916 (htab_try_create): Delete.
917 (htab_create_alloc): New.
918 (htab_delete): Support user-specified memory allocation.
919 (htab_expand): Likewise.
920
9212002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
922
923 * configure.in: Fix typo in the code checking for sys_errlist.
924 * configure: Regenerated.
925
9296c8b2
DD
9262002-05-13 Andreas Schwab <schwab@suse.de>
927
928 * config.table: Use mh-x86pic also for x86-64.
929
52d98c2d
DD
9302002-05-08 Alexandre Oliva <aoliva@redhat.com>
931
932 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
933 script entry, and set LD to it when configuring multilibs.
934 * configure: Rebuilt.
935
cafa3917
DD
9362002-05-07 Mark Mitchell <mark@codesourcery.com>
937
938 * configure.in (AC_TYPE_PID_T): Use it.
939 * configure: Regenerated.
940 * getruntime.c: Include <sys/types.h>.
941 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
942
b1c933fc
RH
9432002-04-09 Richard Henderson <rth@redhat.com>
944
945 * hashtab.c (higher_prime_number): Use 7 as minimum.
946 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
947 (htab_find_slot_with_hash): Likewise.
948
0c4460bb
DD
9492002-04-01 Phil Edwards <pme@gcc.gnu.org>
950
951 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
952 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
953 not compile if IN_GLIBCPP_V3 defined.
954 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
955
f2160d2b
DD
9562002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
957
3ebf1f59 958 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
959 if it is NULL.
960
7dd4d42a
DD
9612002-03-27 DJ Delorie <dj@redhat.com>
962
963 * hex.c: Add documentation.
964 (_hex_value): Provide non-ASCII empty table.
965 (hex_init): Initialize the non-ASCII table.
966 * functions.texi: Regenerate.
967
38e57a35
DD
9682002-03-27 Mark Mitchell <mark@codesourcery.com>
969
970 * dyn-string.c: Add libgcc exception to copyright notice.
971
cfed0715
DD
9722002-03-26 H.J. Lu (hjl@gnu.org)
973
974 * config.table: Support --with-build-subdir.
975 * configure.in: Likewise.
976 * configure: Rebuild.
977
1504972f
DD
9782002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
979
980 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
981 seen.
982
35efcd67
DD
9832002-03-12 Mark Mitchell <mark@codesourcery.com>
984
985 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
986 notice.
987
dabc64ea
DD
9882002-03-11 Douglas B Rupp <rupp@gnat.com>
989
990 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
991
3ddbd84c
JB
9922002-03-06 Jim Blandy <jimb@redhat.com>
993
994 * splay-tree.c (splay_tree_xmalloc_allocate,
995 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
996 prototyped definitions. Mark `data' arguments as unused.
997
efdab807
AC
9982002-03-06 Andrew Cagney <ac131313@redhat.com>
999
1000 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1001
50d4562d
DD
10022002-03-04 Phil Edwards <pme@gcc.gnu.org>
1003
1004 * configure.in: Add --enable-install-libiberty option.
1005 * Makefile.in (INSTALLED_HEADERS): New variable.
1006 (install_to_libdir): Possibly also copy headers.
1007 * configure: Regenerated.
1008
10092002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1010
1011 * xmalloc.c (xmalloc_fail): Clarify error message further.
1012
6e9980f5
DD
10132002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1014
1015 * xmalloc.c (xmalloc_fail): Clarify error message.
1016
18893690 10172002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
1018
1019 * splay-tree.c (splay_tree_xmalloc_allocate,
1020 splay_tree_xmalloc_deallocate): New functions.
1021 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1022 above functions and a dummy data pointer.
1023 (splay_tree_new_with_allocator): New function.
1024 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1025 splay_tree_remove): Use the splay tree's allocation and
1026 deallocation functions.
1027
59ea9fe7
DD
10282002-02-19 Scott Snyder <snyder@fnal.gov>
1029
1030 * testsuite/demangle-expected: Add test case for infinite loop in
1031 demangler.
1032 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1033 if do_type() doesn't make any progress --- prevents an infinite
1034 loop.
1035
6f848550
DD
10362002-02-18 Carlo Wood <carlo@gnu.org>
1037
1038 PR c++/5390
1039 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1040 numbers that do not start with an underscore; This is needed
1041 for integer template parameters. This doesn't break anything
1042 because multi-digit numbers are never followed by a digit.
1043 * testsuite/demangle-expected: Corrected all mangled test
1044 cases with multi-digit template parameters: g++ 2.95.x does
1045 not generate underscores around these parameters.
1046
44354ae1
DD
10472002-02-05 Jason Merrill <jason@redhat.com>
1048
1049 * cplus-dem.c (flags): Add DMGL_VERBOSE
1050 (cplus_demangle_v3_p): Remove.
1051 (demangle_it): Add DMGL_TYPES to passed flags.
1052 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1053 (cplus_demangle_v3_type): Remove.
1054 (cplus_demangle_v3): Add options parm.
1055
42da15d6
DD
10562002-02-02 H.J. Lu (hjl@gnu.org)
1057
1058 * cp-demangle.c (cp_demangle_type): Do not protect with
1059 IN_LIBGCC2.
1060 (cplus_demangle_v3_all): New.
1061 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1062 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1063
1064 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1065 Initialized to cplus_demangle_v3.
1066 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1067 of cplus_demangle_v3.
1068 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1069 command line symbol.
1070
1071 * testsuite/regress-demangle: Pass the mangled name at the
1072 command line.
1073
b117c158
DD
10742002-02-01 H.J. Lu <hjl@gnu.org>
1075
1076 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1077 DMGL_GNU_V3.
1078
c78d91b1
DD
10792002-01-31 Phil Edwards <pme@gcc.gnu.org>
1080
1081 * cp-demangle.c: Revert yesterday's change.
1082
bef8b55d
DD
10832002-01-31 Adam Megacz <adam@xwt.org>
1084
1085 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1086 wrt HAVE_SYS_ERRLIST.
1087
2c955b8b
DD
10882002-01-30 Phil Edwards <pme@gcc.gnu.org>
1089
1090 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1091 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1092 cp_demangle_type.
1093 * testsuite/demangle-expected: New gnu-v3 test.
1094
58b1717a
RH
10952002-01-22 Momchil Velikov <velco@fadata.bg>
1096
1097 * configure.in (variable detection): Use arrays of unspecified
1098 size instead of plain integers.
1099
cc096b71
DD
11002002-01-18 DJ Delorie <dj@redhat.com>
1101
1102 * Makefile.in (TESTLIB): New. This library is for future
1103 testsuites.
1104 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1105 break down by letter.
1106 (REQUIRED_OFILES): List long-to-compile files first.
1107 (maint-deps): New, target for updating dependencies.
1108 (dependencies): Update.
1109 * maint-tool: Add dependency-generating option.
1110 * configure.in: Check for _doprnt even if we're not providing it.
1111 * configure: Regenerate.
1112
1113 * _doprnt.c: Modifications to allow compiling on any platform.
1114 * copysign.c: Likewise.
1115 * putenv.c: Likewise.
1116 * setenv.c: Likewise.
1117 * vsprintf.c: Likewise.
1118
11192002-01-15 Douglas B Rupp <rupp@gnat.com>
1120
1121 * mkstemps.c (mkstemps): On VMS, open temp file with option
1122 that causes it to be deleted when closed.
1123
20d54542
DD
11242002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1125
c23795e2
DD
1126 * cp-demangle.c (long_options): Const-ify.
1127 * cplus-dem.c (long_options): Likewise.
1128
20d54542
DD
1129 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1130 strstr instead.
1131
f348a7b1
DD
11322001-12-31 Ira Ruben <ira@apple.com>
1133
1134 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1135 * configure: Regenerated.
1136
d86cd745
DD
11372001-12-24 Douglas B. Rupp <rupp@gnat.com>
1138
1139 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1140 * configure: Regenerated.
1141
ae533646
DD
11422001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1143
1144 PR other/2719
1145 * cplus-dem.c (consume_count): Treat negative count as an error.
1146 * testsuite/demangle-expected: Added testcase.
1147
c0eb281b
DD
1148Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1149
1150 * configure.in: Hardcode that vfork works on VMS host.
1151 * configure: Regenerated.
1152
2da4c07f
RH
11532001-12-06 Richard Henderson <rth@redhat.com>
1154
1155 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1156 (cplus_demangle): Support no_demangling.
1157
24acd898
DD
11582001-11-27 Zack Weinberg <zack@codesourcery.com>
1159
1160 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1161 in libiberty context. Fix typo in leading comment.
1162 * configure.in: Fix various AC_DEFINEs so autoheader works.
1163 If any of vprintf, vsprintf, vfprintf is missing from libc,
1164 then AC_REPLACE_FUNCS(_doprnt).
1165
fec50157 11662001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 1167 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
1168
1169 * Makefile.in (stamp-h): Depend on Makefile for proper
1170 serialization.
1171 (*-subdir): Depend on config.h for proper serialization.
1172
5527febf
DD
11732001-11-26 DJ Delorie <dj@redhat.com>
1174
1175 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1176 * configure: Regenerate.
1177 * config.h: Add HAVE_ALLOCA_H.
1178
941d74a0
DD
11792001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1180
1181 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1182 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1183 is available.
1184
dc579051
DD
1185Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1186
1187 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1188 * configure.in (HAVE_UINTPTR_T): Test for system defining
1189 uintptr_t and define HAVE_UINTPTR_T appropriately.
1190 * regex.c (uintptr_t): Do not provide a definition if the
1191 system provided one.
1192
1193 * regex.c (PREFIX): Provide an alternate definition for
1194 non-ANSI/ISO compilers.
1195 (ARG_PREFIX): Likewise.
1196
1a78a35a
DD
11972001-11-12 Jim Meyering <meyering@lucent.com>
1198
1199 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1200 this code would end up calling gettext even in packages built
1201 with --disable-nls.
1202 * getopt.c (_): Likewise.
1203 * regex.c (_): Likewise.
1204
4e55c4b6
DD
12052001-11-03 Alan Modra <amodra@bigpond.net.au>
1206
1207 * configure.in: Cope with missing makeinfo.
1208 * configure: Regenerate.
1209
d311a83a
DD
12102001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1211
1212 * hex.c (hex_init): Provide empty stub.
1213
1214 * hex.c (hex_init): Delete.
1215 (_hex_value): Const-ify and initialize at compile-time.
1216
3bc62f91
DD
12172001-10-19 H.J. Lu <hjl@gnu.org>
1218
1219 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1220 necessary.
1221
5d852400
DD
12222001-10-17 DJ Delorie <dj@redhat.com>
1223
1224 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1225 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 1226 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
1227 Improve manual formatting.
1228 * functions.texi: Regenerate.
1229
ba19b94f
DD
12302001-10-15 DJ Delorie <dj@redhat.com>
1231
1232 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1233 (maint-undoc): New.
1234 maint-tool: Add "undoc" tool.
1235 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1236 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1237 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1238 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1239 documentation.
1240 * fnmatch.txh: New.
1241 * functions.texi: Regenerate.
1242
56056af5
DD
12432001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1244
1245 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1246 * strtod.c: Use "ISO C" instead of "ANSI C".
1247 * functions.texi: Regenerate.
1248
99b58139
DD
12492001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1250
1251 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1252 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1253 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1254 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1255 spelling. Give names to function arguments in documentation. Use
1256 (void) prototypes in documentation.
1257 * functions.texi: Regenerate.
1258
e6450fe5
DD
12592001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1260
1261 * argv.c (buildargv, tests, main): Const-ify.
1262 * cp-demangle.c (operator_code): Likewise.
1263 * cplus-dem.c (optable, libiberty_demanglers,
1264 cplus_demangle_set_style, cplus_demangle_name_to_style,
1265 print_demangler_list): Likewise.
1266 * hashtab.c (higher_prime_number): Likewise.
1267 * strcasecmp.c (charmap): Likewise.
1268 * strerror.c (error_info, strerror, main): Likewise.
1269 * strncasecmp.c (charmap): Likewise.
1270 * strsignal.c (signal_info): Likewise.
1271
da191b5b
DD
12722001-09-29 DJ Delorie <dj@redhat.com>
1273
1274 * configure: Regenerate.
1275
916aaa12
DD
12762001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1277
1278 * concat.c: Include stdlib.h.
1279
fa9f0e33
DD
12802001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1281
1282 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1283 @dircategory and @direntry directives. Add @finalout.
1284 (many nodes): Lose the next,prev,up pointers on the @nide line.
1285 (Using, Supplemental Functions, Replacement Functions): Fix
1286 markup.
1287 (Functions): Move around, to allow makeinfo to build the manual
1288 without next,prev,up pointers in thye node lines.
1289 (Licenses): Fix typos.
1290
1291 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1292 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1293 * functions.texi: Regenerate.
1294
1295 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1296 line.
1297
12982001-09-27 DJ Delorie <dj@redhat.com>
1299
1300 * configure.in: Don't use in-tree texinfo, because libiberty must
1301 be built before it. Check for makeinfo version 4 or higher.
1302 * functions.texi: Regenerate.
1303
39423523
DD
13042001-09-20 DJ Delorie <dj@redhat.com>
1305 Phil Edwards <pedwards@disaster.jaj.com>
1306
1307 * configure.in (MAKEINFO, PERL): Detect these.
1308 (--enable-maintainer-mode): Add.
1309 * configure: Regenerate.
1310 * Makefile.in (MAKEINFO, PERL): Define.
1311 (libiberty.info, libiberty.dvi, libiberty.html): New.
1312 (CFILES): Add bsearch.c.
1313 (CONFIGURED_OFILES): New, list of objects configure might add.
1314 (maint-missing, maint-buildall): New, for maintainers only.
1315 (clean, mostlyclean): Add info/dvi/html files.
1316 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1317 * gather-docs: New, for maintainers.
1318 * maint-tool: New, for maintainers.
1319 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1320 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1321 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1322 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1323 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1324 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1325 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1326 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1327 documentation.
1328
66c94e19
DD
13292001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1330
1331 * concat.c (reconcat): Fix for traditional C.
1332
99ee3a8f
DD
13332001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1334
1335 * concat.c (reconcat): New function.
1336
54c20242
DD
13372001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1338
1339 * concat.c (vconcat_length, vconcat_copy, concat_length,
1340 concat_copy, concat_copy2): New functions.
1341 (concat): Use vconcat_length/vconcat_copy.
1342
1343 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1344 Define.
1345
843f21be
DD
13462001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1347
1348 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1349 VA_FIXEDARG & VA_CLOSE.
1350
1351 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1352 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1353 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1354
8a423cb3
DD
13552001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1356
1357 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1358
dc676635
DD
13592001-08-23 Ulrich Drepper <drepper@redhat.com>
1360
1361 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1362
13632001-08-23 Ulrich Drepper <drepper@redhat.com>
1364
1365 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1366 instead of mbrtowc.
1367 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1368 wcslen, and __wcscoll instead of wcscoll.
1369
f080c76d
DD
13702001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1371
3ebf1f59
DD
1372 * fibheap.c (fibheap_init, fibnode_init): Remove.
1373 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1374 initialize memory.
1375 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1376
f01b59ed
DD
13772001-08-21 Richard Henderson <rth@redhat.com>
1378
1379 * Makefile.in (fibheap.o): Depend on config.h.
1380 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1381 functions for inlining.
1382
1383Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1384
1385 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1386 hosting on cygwin.
1387 * configure: Regenerate.
1388
eb828599
AC
13892001-08-20 Andrew Cagney <ac131313@redhat.com>
1390
1391 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1392 HARRIS_FLOAT_FORMAT.
1393 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1394 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1395 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1396 (floatformat_m88110_harris_ext): New float formats.
1397
4e55c4b6
DD
13982001-08-20 Daniel Berlin <dan@cgsoftware.com>
1399
1400 * fibheap.c: New file. Fibonacci heap.
1401
1402 * Makefile.in (CFILES): Add fibheap.c.
1403 (REQUIRED_OFILES): Add fibheap.o.
1404 (fibheap.o): Add dependencies for fibheap.o.
1405
68a41de7
DD
14062001-08-17 Christopher Faylor <cgf@cygnus.com>
1407
1408 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1409 * configure: Regenerate.
1410
8fc34799
DD
14112001-08-16 Richard Henderson <rth@redhat.com>
1412
1413 * hashtab.c (htab_hash_string): New.
1414
16bad250
AC
14152001-08-13 Andrew Cagney <ac131313@redhat.com>
1416
1417 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1418 name.
1419
a9022147
DD
14202001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1421
1422 * regex.c (wcs_regex_compile): Use appropriate string
1423 to compare with collating element.
1424 Fix the padding for the alignment.
1425
8aefe91a 14262001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1427
1428 * lbasename.c (lbasename): Change function definition to return a
1429 const char pointer.
1430
e7e9b069
DD
14312001-08-07 Jason Merrill <jason_merrill@redhat.com>
1432
1433 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1434 for".
1435
cc5144f8
DD
14362001-08-03 Richard Henderson <rth@redhat.com>
1437
1438 * Makefile.in (concat.o): Depend on config.h.
1439
8aefe91a
DD
14402001-07-30 Andreas Jaeger <aj@suse.de>
1441
1442 * concat.c: Include "config.h".
1443
86710ce2
DD
14442001-07-30 Andreas Jaeger <aj@suse.de>
1445
1446 * regex.c: Declare wcs functions only if compiling with
1447 MBS_SUPPORT.
1448 Don't use #elif for traditional C.
1449
14502001-07-23 Ulrich Drepper <drepper@redhat.com>
1451
1452 * regex.c: Revamp memory allocation for WCHAR functions to
1453 not use too much stack.
1454
14552001-07-30 Andreas Jaeger <aj@suse.de>
1456
1457 * regex.c: Declare wcs functions only if compiling with
1458 MBS_SUPPORT.
1459 Don't use #elif for traditional C.
1460
a5d8f731
DD
14612001-07-25 Daniel Jacobowitz <drow@mvista.com>
1462
1463 * Makefile.in (regex.o): Add dependency on config.h.
1464
6ad8a379
DD
14652001-07-18 Andreas Schwab <schwab@suse.de>
1466
1467 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1468 underscore character.
1469
14702001-07-18 Ulrich Drepper <drepper@redhat.com>
1471
1472 * regex.c: Limit string length printed in debug messages to 100
1473 chars.
1474
14752001-07-18 Andreas Jaeger <aj@suse.de>
1476
1477 * regex.c: Place under LGPL version 2.1.
1478
2a6ef469
DD
14792001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1480
1481 * Makefile.in: Add support for regex code.
1482 * regex.c: New file.
1483
7b78baae
DD
14842001-07-05 Mark Klein <mklein@dis.com>
1485
1486 * Makefile.in: Add ffs.c dependency.
1487 * configure.in: Add ffs.c.
1488 * ffs.c: New file.
1489
926150e2
DD
14902001-06-18 Richard Henderson <rth@redhat.com>
1491
1492 * concat.c: Include <sys/types.h>.
1493
11f6f21d
DD
14942001-06-11 Loren J. Rittle <ljrittle@acm.org>
1495
1496 bootstrap/3106
1497 * strerror.c (sys_nerr): Hide the OS header version.
1498 * strsignal.c (sys_nsig): Likewise.
1499
d42dae6c
DD
15002001-06-10 Richard Henderson <rth@redhat.com>
1501
1502 * concat.c: Include string.h. Fix int vs size_t usage.
1503 Simplify the iteration loops. Use memcpy.
1504
e05c6d27
DD
15052001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1506
1507 * partition.c: Fix misspelling of `implementation'.
1508
b50c4073
DD
15092001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1510
1511 * md5.c (md5_init_ctx): Declare constants as unsigned.
1512 (md5_process_block): Likewise.
1513
457161bf
DD
15142001-05-07 Zack Weinberg <zackw@stanford.edu>
1515
1516 * cp-demangle.c (demangle_v3_with_details,
1517 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1518 function definition.
1519 * ternary.c: Use K+R style function definitions. Use PTR, not
1520 void *. Make arguments constant where possible.
1521
e00bc6a7
DD
15222001-05-07 Mark Mitchell <mark@codesourcery.com>
1523
1524 * splay-tree.h (splay_tree_max): New function.
1525 (splay_tree_min): Likewise.
1526
400ee7e1
DB
15272001-04-15 Daniel Berlin <dan@cgsoftware.com>
1528
1529 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1530
1531 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1532
d9697354
DD
15332001-04-03 Zack Weinberg <zackw@stanford.edu>
1534
1535 * make-temp-file.c (try): Inline.
1536
a7bf099b
DD
15372001-02-28 Richard Henderson <rth@redhat.com>
1538
1539 * Makefile.in (make-temp-file.o): Depend on config.h.
1540
30a1def2
DD
15412001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1542
1543 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1544
079c672a
DD
15452001-03-23 Jakub Jelinek <jakub@redhat.com>
1546
1547 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1548 `_' not followed by a digit is invalid.
1549
a88e356a
JB
15502001-03-22 Jim Blandy <jimb@redhat.com>
1551
1552 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1553 instead of free, to free the contents as well as the string
1554 structure.
1555
1dffcc66
DD
15562001-03-21 Zack Weinberg <zackw@stanford.edu>
1557
1558 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1559 Don't default P_tmpdir to anything. Try /var/tmp before
1560 /usr/tmp.
1561
15622001-03-20 Zack Weinberg <zackw@stanford.edu>
1563
1564 * choose-temp.c: Split off make_temp_file, and the code
1565 duplicated between it and choose_temp_base, into...
1566 * make-temp-file.c: ... here; new file.
1567
1568 * Makefile.in (CFILES): Add make-temp-file.c.
1569 (REQUIRED_OFILES): Add make-temp-file.o.
1570
e61231f1
JB
15712001-03-20 Jim Blandy <jimb@redhat.com>
1572
1573 * cp-demangle.c (struct demangling_def): New fields:
1574 is_constructor and is_destructor.
1575 (demangling_new): Initialize them.
1576 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1577 or destructor.
1578 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1579 is_gnu_v3_mangled_dtor): New functions.
1580
a9cbbe6d
DD
15812001-03-20 Jason Merrill <jason@redhat.com>
1582
1583 * cplus-dem.c (main): Skip initial $.
1584
b1e51b3c
DD
15852001-03-15 Michael Meissner <meissner@redhat.com>
1586
1587 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1588 might be a signed integer under pre-ISO C systems.
1589
8aa30e60 15902001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1591 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1592
8aa30e60
DD
1593 * libiberty/lbasename.c: New file.
1594 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1595
30673bf5
DD
15962001-03-06 Zack Weinberg <zackw@stanford.edu>
1597
1598 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1599 * configure.in: Replace all alloca logic with a simple use of
1600 the above new macro.
1601 * config.table: Kill *-*-beos* entry.
1602 * config/mh-beos: Delete.
1603 * configure, config.in: Regenerate.
fa03f0a7 1604
30673bf5
DD
1605 * Makefile.in (ALLOCA, HFILES): Kill.
1606 (REQUIRED_OFILES): Add alloca.o.
1607 (alloca.o): Depend on libiberty.h.
1608 (argv.o): Don't depend on alloca-conf.h.
1609 * alloca-conf.h: Delete.
1610 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1611 blocks. Provide the C alloca unconditionally. Use PTR where
1612 appropriate. Make i00afunc static.
1613 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1614
5810f394
DD
16152001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1616
1617 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1618
a9db032a
DD
16192001-02-16 Loren J. Rittle <ljrittle@acm.org>
1620
1621 * cplus-dem.c (main): Initialize style.
fa03f0a7 1622
8aefe91a
DD
16232001-02-02 Phil Edwards <pme@sources.redhat.com>
1624
1625 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1626
bc9bf259
DD
16272001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1628
1629 Add support for Java demangling under the v3 ABI:
1630 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1631 (struct demangling_def): Add `style' field.
1632 (demangling_new): New parameter `style'. Set it in demangling_t.
1633 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1634 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1635 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1636 (main): Call cp_demangle with extra parameter.
1637 (java_demangle_v3): New function.
1638 (java_builtin_type_names): New. Table of primitive type names used
1639 for Java demangling.
1640 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1641 Java output.
1642 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1643 demangling.
1644 (long_options): Remove obsolete `java' option.
1645 (main): Remove explicit handling of `java' option. Instead, pass style
1646 parameter in cplus_demangle flags as gdb does.
1647 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1648
f6528837
DD
16492000-12-29 DJ Delorie <dj@redhat.com>
1650
1651 * fnmatch.c: Make the note about the origins of this file more
1652 accurate, at least until we can sync with glibc.
1653 * getopt.c: Ditto.
1654 * getopt1.c: Ditto.
1655 * md5.c: Ditto.
1656 * obstack.c: Ditto.
9d969b59 1657
c6da642e
DD
16582000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1659
1660 * bsearch.c: New file.
1661 * configure.in (funcs): Add bsearch.
1662 (AC_CHECK_FUNCS): Likewise.
1663 * configure, config.in: Regenerate.
1664
ae7d06ad 16652000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1666
1667 * safe-ctype.c: #include "ansidecl.h".
1668 * strtod.c: Likewise.
1669
ae7d06ad 16702000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1671
1672 * strtoul.c: Include safe-ctype.h, not ctype.h.
1673
ac424eb3
DD
16742000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1675
1676 * safe-ctype.c: New file.
1677 * Makefile.in (CFILES): Add safe-ctype.c.
1678 (REQUIRED_OFILES): Add safe-ctype.o.
1679
1680 * argv.c: Define ISBLANK and use it, not isspace.
1681 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1682 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1683 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1684 before calling TOLOWER(c)/TOUPPER(c).
1685
4415a860
DD
16862000-12-07 Mike Stump <mrs@wrs.com>
1687
1688 * Makefile.in (distclean): When cleaning, remove testsuite.
1689
849ee224
DD
16902000-12-05 Jason Merrill <jason@redhat.com>
1691
1692 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1693 name before allocating the dyn_string.
1694
ae7d06ad 16952000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1696
1697 * cp-demangle.c: s/new_abi/v3/.
1698 * cplus-dem.c: Likewise.
1699 (current_demangling_style): Now auto_demangling.
1700 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1701 (main): Use standard symbol chars for auto_demangling.
e49a569c 1702
ae7d06ad 17032000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1704
1705 * hashtab.c (higher_prime_number): Use a table, rather than a
1706 seive, to find the next prime.
ae7d06ad
NC
1707
17082000-11-22 H.J. Lu <hjl@gnu.org>
1709
1710 * cplus-dem.c (main): Handle gnat_demangling.
1711
17122000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1713
1714 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1715 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1716 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1717 argument form of AC_DEFINE in dummy definitions block. Use
1718 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1719 in dummy block. Preload cache variables instead of bypassing
1720 tests, where possible.
1721 * acconfig.h: Removed.
ae7d06ad 1722
2ea7befd
DD
1723 * xmalloc.c (xmalloc_failed): New function, does error
1724 reporting on failed allocation.
1725 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1726
f1775526
HPN
17272000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1728
1729 * cplus-dem.c (cplus_demangle): Fix formatting.
1730 (grow_vect): Ditto.
1731 (ada_demangle): Ditto.
1732 (internal_cplus_demangle): Ditto.
1733 (mop_up): Ditto.
1734
17352000-11-21 H.J. Lu <hjl@gnu.org>
1736
1737 * cplus-dem.c (main): Handle java_demangling.
1738
ae7d06ad 17392000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1740
1741 * cplus-dem.c (grow_vect): Prototype.
1742 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1743
5dd42ef4
HPN
17442000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1745
1746 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1747 parameter `option'.
1748
296731c1
DD
17492000-11-15 Kenneth Block <kenneth.block@compaq.com>
1750
8944fb9d 1751 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1752 be used in GCC.
1753
6e53a714 17542000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1755
5dd42ef4 1756 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1757 list.
1758
99a4c1bd
HPN
17592000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1760
1761 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1762 xcalloc depending on htab->return_allocation_failure. Return zero
1763 if calloc fails.
99a4c1bd
HPN
1764 (htab_create): Update comment to cover memory allocation.
1765 (htab_try_create): New.
1766 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1767 Update comment to cover this.
99a4c1bd 1768
e0f3df8f
HPN
17692000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1770
1771 * hashtab.c: Change void * to PTR where necessary.
1772 (htab_create, htab_expand): Correct formatting of comment before
1773 function.
1774
ae7d06ad 17752000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1776
1777 * cp-demangle.c (string_list_def): Add caret_position and comments.
1778 (result_caret_pos): New macro.
1779 (result_append_string): Rename to...
1780 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1781 Rename throughout.
59666b35
DD
1782 (result_append): Rename to...
1783 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1784 throughout.
59666b35
DD
1785 (result_append_char): Rename to...
1786 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1787 throughout.
59666b35
DD
1788 (result_append_space): Remove.
1789 (string_list_new): Initialize caret position.
1790 (result_add_separated_char): Use caret position.
1791 (result_get_caret): New funtion.
1792 (result_set_caret): Likewise.
1793 (result_shift_caret): Likewise.
1794 (result_previous_char_is_space): Likewise.
1795 (substitution_start): Use caret position.
1796 (substitution_add): Likewise.
1797 (demangling_new): Initialize caret position.
1798 (demangle_encoding): Use caret position.
ae7d06ad 1799 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1800 (demangle_type_ptr): Use switch statement. Handle pointers to
1801 arrays. Don't use result_append_space. Use caret position.
1802 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1803 call to demangle_array_type.
1804 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1805
ae7d06ad 18062000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1807
1808 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1809
18102000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1811
1812 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1813
18142000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1815
1816 * splay-tree.c: #include <stdio.h>.
1817
18182000-09-14 Hans-Peter Nilsson <hp@axis.com>
1819
1820 * testsuite/demangle-expected: Add two tests for anonymous
1821 namespaces.
1822 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1823
18242000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1825
1826 * splay-tree.c (splay_tree_predecessor): New function.
1827 (splay_tree_successor): Likewise.
ae7d06ad
NC
1828
18292000-09-10 Hans-Peter Nilsson <hp@axis.com>
1830
1831 * testsuite/demangle-expected: Add four tests for type_info
1832 mangling.
1833 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1834 for a non-template non-qualified type_info function or node.
1835
18362000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1837
1838 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1839
18402000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1841
1842 * md5.c: #include "ansidecl.h".
1843
18442000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1845
1846 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1847 (demangle_type): Handle substitution candidates correctly in the
1848 face of special substitutions.
ae7d06ad
NC
1849
18502000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1851
1852 * cp-demangle.c (demangle_encoding): Rename variable.
1853 (demangle_name): Rename parameter. Handle return type
1854 suppression.
1855 (demangle_nested_name): Rename parameter.
1856 (demangle_prefix): Likewise. Change return type suppression.
1857 (demangle_unqualified_name): Add parameter. Flag constructors and
1858 conversion operators.
1859 (demangle_special_name): Fix comment.
1860 (demangle_type): Rename variable.
1861 (demangle_bare_function_type): Check for missing return type and
1862 parameter.
1863 (demangle_class_enum_type): Rename parameter.
1864 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
1865
18662000-08-31 DJ Delorie <dj@redhat.com>
1867
1868 * configure.in (Cygwin): special case cygwin only when we're
1869 building cygwin, not when we're hosting cygwin.
1870
18712000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1872
1873 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
1874 <expression>.
ae7d06ad
NC
1875
18762000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1877
1878 * cp-demangle.c (demangle_type_ptr): Increment position past
1879 pointer and reference characters.
ae7d06ad
NC
1880
18812000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1882
1883 * cp-demangle.c (demangle_nv_offset): New function.
1884 (demangle_v_offset): Likewise.
1885 (demangle_call_offset): Likewise.
1886 (demangle_special_name): Update thunk demangling to comply with
1887 ABI changes.
ae7d06ad
NC
1888
18892000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1890
1891 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
1892 (substitution_def): Remove template_parm_number.
1893 (NOT_TEMPLATE_PARM): Remove.
1894 (result_insert_string): New macro.
1895 (result_insert): Likewise.
1896 (result_insert_char): Likewise.
1897 (substitution_add): Remove last parameter. Don't store template
1898 parm number.
1899 (BFT_NO_RETURN_TYPE): Define as NULL.
1900 (demangle_encoding): Adjust call to demangle_bare_function_type.
1901 (demangle_name): Adjust substitution. Adjust call to
1902 substitution_add.
1903 (demangle_prefix): Adjust call to substitution_add.
1904 (demangle_identifier): Handle anonymous namespaces.
1905 (demangle_operator_name): Change demangling of vendor-extended
1906 operator to match ABI changes.
1907 (demangle_type_ptr): Change parameters. Make recursive. Handle
1908 substitutions here.
1909 (demangle_type): Adjust calls to demangle_template_param,
1910 substitution_add, and demangle_type_ptr. Fix substitution of
1911 templated types.
1912 (demangle_function_type): Change parameter to a pointer.
1913 (demangle_bare_function_type): Likewise. Adjust insertion point.
1914 (demangle_template_param): Remove last parameter.
1915 (demangle_expr_primary): Remove unused variable. Adjust call to
1916 demangle_template_param.
1917 (is_mangled_char): Accept `$' and `.'.
1918 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
1919 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
1920
19212000-08-31 Hans-Peter Nilsson <hp@axis.com>
1922
1923 * testsuite/demangle-expected: Add nine tests for
1924 underscore-after-number followed by five tests for name-signature
1925 delimiter.
1926
19272000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
1928
1929 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
1930
19312000-08-28 Jason Merrill <jason@redhat.com>
1932
1933 * Makefile.in (REQUIRED_OFILES): Add md5.o.
1934 (CFILES): Add md5.c.
1935 * md5.c: New file.
1936
19372000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1938
1939 * cp-demangle.c (demangle_name): Initialize template_p in local
1940 name case. Don't re-add substitutions as candidates.
1941 (demangle_nested_name): Use <unqualified-name>.
1942 (demangle_prefix): Likewise. Don't add template names as
1943 substitution candidates twice, or re-add a substitution or the
1944 last prefix component.
1945 (demangle_local_name): Adjust output format.
ae7d06ad
NC
1946
19472000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1948
1949 * cp-demangle.c (result_add_separated_char): Change parameter to
1950 int.
1951 (substitution_add): Don't check for duplicates. Check if
1952 previously allocated size is zero.
1953 (demangle_name): Remove duplicate check for std substitution.
1954 Clear template flag appropriately.
1955 (demangle_prefix): Remove argument to demangle_substitution.
1956 Don't check that template flag is already set.
1957 (demangle_operator_name): Add pt operator.
1958 (demangle_type): Don't treat r as built-in type. Remove argument
1959 to demangle_substitution. Fix substitution candidate mechanics.
1960 Handle <template-template-parm>s. Improve comments.
1961 (demangle_template_param): Don't handle template arg lists here.
1962 (demangle_substitution): Remove parameter.
1963 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
1964
19652000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1966
1967 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
1968
19692000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
1970
1971 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
1972 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
1973 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
1974
19752000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1976
1977 * cp-demangle.c (result_close_template_list): Remove function.
1978 (result_add_separated_char): New function.
1979 (result_open_template_list): New macro.
1980 (result_close_template_list): Likewise.
1981 (demangle_prefix): Don't set template_p if the
1982 prefix ends with a ctor name.
1983 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
1984 (demangle_type): Check for template args after substitution.
1985 (demangle_template_args): Use result_open_template_list.
d3e85005 1986
ae7d06ad 19872000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 1988
ae7d06ad 1989 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 1990
ae7d06ad 19912000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
1992
1993 * config/mh-openedition.h: Added -DLE370 definition.
1994
a9f34fb6
JL
19952000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
1996
1997 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
1998 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
1999 Cast program to 'char *' in errmsg_arg assignment.
2000 (PWAIT_ERROR): Define.
2001 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2002 to DJGPP's WIF* macros.
2003
90aaccd1 20042000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2005 Jeff Law <law@cygnus.com>
90aaccd1 2006
ae7d06ad 2007 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2008
90aaccd1 2009 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2010 * rename.c: Include config.h, unistd.h
2011 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2012
6ef554e3
HPN
20132000-07-24 Hans-Peter Nilsson <hp@axis.com>
2014
2015 * cplus-dem.c (work_stuff_copy_to_from): New.
2016 (delete_non_B_K_work_stuff): New.
2017 (delete_work_stuff): New.
2018 (mop_up): Break out work_stuff partly destruction to
2019 delete_non_B_K_work_stuff.
2020 (iterate_demangle_function): New.
2021 (demangle_prefix): Call iterate_demangle_function instead of
2022 demangle_function_name. Leave handling of name-signature
2023 __-delimiters to iterate_demangle_function.
2024 (demangle_integral_value): Strip an optional
2025 following underscore cautiously. Handle negative numbers.
2026
ae7d06ad 20272000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2028
ae7d06ad 2029 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2030 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2031
ae7d06ad
NC
20322000-07-21 Alex Samuel <samuel@codesourcery.com>
2033
2034 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2035 allocating ctor mangling.
2036 (demangle_array_type): Handle empty and non-constant array length.
2037
b1233257 20382000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
2039 Jeff Law <law@cygnus.com>
2040
2041 * configure.in (AC_CHECK_HEADERS): Add time.h.
2042 (AC_HEADER_TIME): Add check.
2043 * configure, config.in: Regenerate.
2044 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2045
2046 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2047 * configure, config.in: Regenerate.
2048 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2049 * strtol.c, strtoul.c: #include "config.h". Portably #include
2050 <limits.h> and/or <sys/param.h>.
2051 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 2052
7d3ffcaf
JL
2053 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2054 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2055 * configure, config.in: Regenerate.
2056 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2057
b1233257
JL
2058 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2059
ae7d06ad
NC
20602000-07-21 Mike Stump <mrs@wrs.com>
2061
2062 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
2063 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
2064
20652000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2066
2067 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2068
2069 * setenv.c (setenv): Initialize variable `ep'.
2070
2071 * sigsetmask.c (abort): Prototype.
2072
2073 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2074 __STDC__ for stdarg.h include.
2075 (int_vasprintf): Prototype.
2076 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2077 definition. Cast `global_total_width' in comparison.
2078 (main): Prototype. Return a value.
2079
2080 * vfork.c (fork): Prototype.
2081
2082 * xexit.c: Include config.h.
2083
9adf30b2
JL
20842000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2085
2086 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2087 and print it with %u.
2088
2ed78d1b
HPN
20892000-07-17 Hans-Peter Nilsson <hp@axis.com>
2090
2091 * testsuite/regress-demangle (failed test): Show result and
2092 expected output.
2093
0473bdf7
AH
20942000-07-07 Andrew Haley <aph@cygnus.com>
2095
2096 * cplus-dem.c (main): fflush() after emitting last char before
2097 waiting for input.
2098
03d5f569
JM
20992000-06-28 Alex Samuel <samuel@codesourcery.com>
2100
2101 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2102 (demangle_name): Handle <substitution> followed by
2103 <unqualified-template-name>.
2104 (demangle_type): Follow special substitutions with
2105 <class-enum-type>
2106 (demangle_subtitution): Set template_p for special substitutions.
2107 (main): Fix typos.
ae7d06ad 2108
03d5f569
JM
21092000-06-27 Alex Samuel <samuel@codesourcery.com>
2110
2111 * cp-demangle.c (demangle_special_name): Swap base and derived
2112 class when demangling construction vtables.
2113
21142000-06-21 Alex Samuel <samuel@codesourcery.com>
2115
2116 * cp-demangle.c: Don't include ctype.h.
2117 (IS_DIGIT): New macro.
2118 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2119 instead of isdigit and isalpanum.
2120 (demangling_def): Make name and next const pointers.
2121 (STATUS_ALLOCATION_FAILED): New status code.
2122 (dyn_string_append_space): Handle failure in
2123 dyn_string_append_char.
2124 (int_to_dyn_string): Likewise. Change return value to status_t.
2125 (string_list_new): Handle failure of dyn_string_init.
2126 (result_close_template_list): Change return type to status_t.
2127 Handle failure in dyn_string_append.
2128 (result_push): Change return value to status_t. Handle failure in
2129 string_list_new. Handle failure of result_push throughout.
2130 (substitution_add): Change return value to status_t. Handle
2131 dyn_string failures. Handle failure of substitution_add
2132 throughout.
2133 (template_arg_list_new): Return NULL on allocation failure.
2134 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2135 Handle error result throughout.
2136 (result_append): Likewise.
2137 (result_append_char): Likewise.
2138 (result_append_space): Likewise.
2139 (demangling_new): Make argument a const pointer. Handle
2140 allocation failures.
2141 (demangle_template_args): Handle failure in template_arg_list_new
2142 and result_close_template_list.
2143 (demangle_discriminator): Return if int_to_dyn_string fails.
2144 (cp_demangle): Likewise.
2145 (cp_demangle_type): New function.
2146 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2147 memory allocation failure.
2148 (main): Likewise.
2149 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2150 IN_LIBGCC2.
2151 (dyn_string_init): Change return value to int. Handle
2152 RETURN_ON_ALLOCATION_FAILURE case.
2153 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2154 (dyn_string_release): Delete the dyn_string.
2155 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2156 (dyn_string_copy): Change return type to int.
2157 (dyn_string_copy_cstr): Likewise.
2158 (dyn_string_prepend): Likewise.
2159 (dyn_string_prepend_cstr): Likewise.
2160 (dyn_string_insert): Likewise.
2161 (dyn_string_insert_cstr): Likewise.
2162 (dyn_string_append): Likewise.
2163 (dyn_string_append_cstr): Likewise.
2164 (dyn_string_append_char): Likewise.
2165 (dyn_string_substring): Likewise.
ae7d06ad 2166
eb383413 21672000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 2168
eb383413
L
2169 * cp-demangle.c (demangle_operator_name): Add spaces before
2170 names beginning with a letter: delete, delete[], new, new[],
2171 sizeof.
2172 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 2173
eb383413
L
2174Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2175
2176 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2177
2178Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2179
2180 * cp-demangle.c (stdio.h): File included unconditionaly.
2181 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2182 * dyn-string.c (stdio.h): File included.
2183 * partition.c (partition_print): No `&' needed to take the address of
2184 a function.
2185
21862000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2187
2188 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 2189
eb383413
L
2190 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2191
2192 * cp-demangle.c (demangle_char): Change parameter from char to int.
2193 (demangle_expression, demangle_expr_primary): Remove extra
2194 semi-colon in prototype.
2195
2196 * dyn-string.c (dyn_string_append_char): Change parameter from
2197 char to int.
2198
2199 * memcmp.c (memcmp): Constify.
2200
2201 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2202 __extension__.
2203
2204 * partition.c (elem_compare): Prototype. Don't cast away
2205 const-ness.
2206
2207 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 2208
eb383413
L
22092000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2210
2211 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2212
2213 * cp-demangle.c: Include demangle.h.
2214 (template_arg_list_new): DeANSIfy.
2215 (cp_demangle): Make static and add prototype.
2216 (operator_code, operators): Constify.
2217 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2218
22192000-06-05 Alex Samuel <samuel@codesourcery.com>
2220
2221 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2222 unsigned char.
2223 (demangle_unqualified_name): Likewise.
2224 (demangle_number_literally): Likewise.
2225 (demangle_type): Likewise.
2226 (demangle_substitution): Likewise.
2227 (is_mangled_char): Likewise, for isalnum.
2228
22292000-06-04 Alex Samuel <samuel@codesourcery.com>
2230
2231 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2232 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2233 (cp-demangle.o): New dependency.
2234 (dyn-string.o): Likewise.
2235
2236 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2237
2238 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2239 demangler.
2240 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2241 demangling mode.
2242 (gnu_new_abi_symbol_characters): New function.
2243 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2244 file.
2245 * cp-demangle.c: New file.
ae7d06ad 2246
f03aa80d
AC
2247Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2248
2249 * floatformat.c: Add name to each floatformat field.
2250
77bfb694
JL
2251Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2252
2253 * Makefile.in (objalloc.o): Depend on config.h
2254
5c82d20a
ZW
22552000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2256
eb383413 2257 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2258 if HAVE_STRING_H.
2259 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2260 * objalloc.c: Include config.h. Include stdlib.h and don't
2261 declare malloc or free if HAVE_STDLIB_H.
2262 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2263 else declare malloc without prototype. Include string.h if
2264 HAVE_STRING_H, else declare memset without prototype. Don't
2265 include stddef.h.
2266
eb383413
L
22672000-05-23 Mike Stump <mrs@wrs.com>
2268
2269 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2270 -j3.
eb383413
L
2271
22722000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2273
2274 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2275
22762000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2277
ae7d06ad 2278 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2279 probably zero, also eliminate a warning on alpha.
2280
22812000-05-15 David Edelsohn <edelsohn@gnu.org>
2282
2283 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2284 on $(enable_shared).
2285
22862000-05-10 Jakub Jelinek <jakub@redhat.com>
2287
2288 * config.table: Use mh-sparcpic for sparc*-*-*.
2289
22902000-05-08 Nick Clifton <nickc@cygnus.com>
2291
2292 * Makefile.in (CFILES): Add strncmp.c.
2293 (NEEDED): Add strncmp.
2294
22952000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2296
eb383413
L
2297 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2298 Cast the arguments to `islower' to `unsigned char'.
2299 (print_demangler_list): Prototype.
2300
2301Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2302
2303 * sort.c (UCHAR_MAX): Provide fallback definition.
2304
23052000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2306
2307 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2308 SUBDIRS.
2309
eb383413
L
23102000-04-28 Kenneth Block <block@zk3.dec.com>
2311 Jason Merrill <jason@casey.cygnus.com>
2312
ae7d06ad
NC
2313 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2314 (cplus_demangle_set_style): New function for setting style.
2315 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2316
23172000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2318
2319 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2320
2321 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2322 (libiberty_AC_FUNC_STRNCMP): Invoke.
2323
2324 * strncmp.c: New file.
2325
2326Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2327
2328 * hashtab.c (htab_expand): Add prototype.
2329 (find_empty_slot_for_expand): Likewise.
2330
23312000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2332
2333 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2334 match prototype.
2335 (htab_expand): Cast the return value of xcalloc.
2336
23372000-04-24 Mark Mitchell <mark@codesourcery.com>
2338
2339 * hashtab.c (hash_pointer): New function.
2340 (eq_pointer): Likewise.
2341 (htab_hash_pointer): New variable.
2342 (htab_eq_pointer): Likewise.
2343
23442000-04-23 Mark Mitchell <mark@codesourcery.com>
2345
2346 * sort.c (sort_pointers): Fix endianness bugs.
2347
2348 * sort.c: New file.
2349 * Makefile.in (CFILES): Add sort.c
2350 (REQUIRED_OFILES): Add sort.o.
2351 (sort.o): New target.
2352
19be4303
JL
23532000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2354
2355 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2356 4.3BSD systems.
2357
eb383413
L
2358Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2359
2360 * hashtab.c: Various minor cleanups.
2361 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2362 (htab_find_slot): Likewise.
2363
23642000-04-16 Dave Pitts <dpitts@cozx.com>
2365
2366 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2367
afe36a78
RH
23682000-04-05 Richard Henderson <rth@cygnus.com>
2369
2370 * splay-tree.c (splay_tree_remove): New.
2371
eb383413
L
23722000-03-30 Mark Mitchell <mark@codesourcery.com>
2373
2374 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2375 codes.
2376 (htab_find_with_hash): Likewise.
2377 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2378
eb383413
L
23792000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2380
2381 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2382 unless it will be used. Rearrange loop for better
2383 optimization.
2384 (higher_prime_number): Add static prototype.
2385
b4fe2683
JM
2386Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2387
2388 * Makefile.in (partition.o): Depend on config.h
2389
23902000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2391
2392 * hashtab.c (find_empty_slot_for_expand): New function.
2393 (htab_expand): Use it instead of htab_find_slot.
2394 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2395 argument HASH.
2396 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2397 (htab_find): New wrapper function.
2398 (htab_find_slot): Likewise.
2399 (htab_traverse): Pass slot, not entry, to called function.
2400
24012000-03-09 Alex Samuel <samuel@codesourcery.com>
2402
2403 * Makefile.in (CFILES): Add partition.c.
2404 (REQUIRED_OFILES): Add partition.o.
2405 (partition.o): New rule.
2406 * partition.c: New file.
ae7d06ad 2407
b4fe2683
JM
24082000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2409
2410 * hashtab.c (htab_create): Set del_f.
2411 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2412 Use it.
2413
24142000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2415
2416 * hashtab.c: Remove debugging variables (all_searches,
2417 all_collisions, all_expansions). Delete
2418 all_hash_table_collisions.
2419 (create_hash_table, delete_hash_table, empty_hash_table,
2420 find_hash_table_entry, remove_element_from_hash_table_entry,
2421 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2422 hash_table_elements_number, hash_table_collisions): Rename to:
2423 htab_create, htab_delete, htab_empty, htab_find_slot,
2424 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2425 htab_elements, htab_collisions.
2426 (htab_find): New function, handles common case where you don't
2427 plan to add or delete an entry.
2428 (htab_expand): Don't create a whole new table, just a new
2429 entry vector.
2430 (htab_find_slot): Simplify logic.
2431
08372f14
ILT
24321999-08-03 Ian Lance Taylor <ian@zembu.com>
2433
2434 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2435 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2436
2437 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2438 $(TARGETLIB)n so it works on MSDOS.
2439 (install_to_tooldir): Likewise.
2440
9c8ac5a9
ILT
24411999-07-21 Ian Lance Taylor <ian@zembu.com>
2442
2443 From Mark Elbrecht:
2444 * makefile.dos: Remove; obsolete.
8f36e47c 2445 * configure.bat: Remove; obsolete.
9c8ac5a9 2446
0c0a36a4
ILT
24471999-07-11 Ian Lance Taylor <ian@zembu.com>
2448
2449 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2450 warning.
2451
24522000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2453
2454 * pexecute.c: Conditionally include string.h.
b4fe2683 2455 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2456
24572000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2458
2459 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2460 we're using gcc.
2461
2462 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2463
24641999-12-27 Geoff Keating <geoffk@cygnus.com>
2465
2466 * vasprintf.c (int_vasprintf): Don't re-read the format character
2467 as this mishandles strings like '%%s'.
2468
24691999-12-05 Mark Mitchell <mark@codesourcery.com>
2470
2471 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2472 rather than struct splay_tree_node.
2473 (splay_tree_insert): Use struct splay_tree_s rather than struct
2474 splay_tree.
2475
2476Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2477
2478 * hashtab.c (sys/types.h): File included.
2479
24801999-11-22 Jason Merrill <jason@casey.cygnus.com>
2481
2482 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2483 BSD license, pursuant with
2484
2485 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2486
2487Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2488
2489 * hashtab.c: Include stdio.h.
2490
2491Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2492
2493 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2494
2495Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2496
2497 * xstrdup (sys/types.h): Include this file.
2498
24991999-10-28 Nathan Sidwell <nathan@acm.org>
2500
2501 * Makefile.in (SUBDIRS): New macro.
2502 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2503 avoid multiple subdirectory cleaning.
2504 (*-subdir): Use SUBDIRS.
2505
25061999-10-25 Jim Kingdon <http://developer.redhat.com/>
2507
2508 * cplus-dem.c: Move declarations of standard_symbol_characters and
2509 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2510 warnings.
2511
25121999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2513
2514 * hashtab.c (find_hash_table_entry): When returning a
2515 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2516 (clear_hash_table_slot): New function which deletes an entry
2517 by its position in the table, not its value.
2518 (traverse_hash_table): New function which calls a hook
2519 function for every live entry in the table.
2520
25211999-10-19 Mark Mitchell <mark@codesourcery.com>
2522
2523 * cplus-dem.c (INTBUF_SIZE): New macro.
2524 (string_append_template_idx): New function.
2525 (demangle_expression): Likewise.
2526 (demangle_integral_value): Use it.
2527 (demangle_real_value): New function, split out from ...
2528 (demangle_template_value_parm): ... here. Use
2529 string_append_template_idx. Use demangle_real_value.
2530 (demangle_template): Use string_append_template_idx.
2531 (demangle_qualified): Use consume_count_with_underscores.
2532 (get_count): Tweak formatting.
2533 (do_type): Use string_append_template_idx.
b4fe2683 2534
0c0a36a4
ILT
25351999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2536
2537 * calloc.c: Add a public domain notice.
2538
2539Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2540
2541 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2542
2543Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2544
2545 * Makefile.in (CFILES): Add hashtab.c
2546 (REQUIRED_OFILES): Add hashtab.o
2547 (hashtab.o): Add dependencies.
2548 * hashtab.c: New file
2549
2550Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2551
2552 * basename.c (DIR_SEPARATOR): New macro.
2553 (DIR_SEPARATOR_2): Likewise.
2554 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2555 (IS_DIR_SEPARATOR): Likewise.
2556 (main): Handle MSDOS style pathname.
2557
25581999-10-11 Mark Mitchell <mark@codesourcery.com>
2559
2560 * cplus-dem.c (do_type): Handle pointer to member types whose
2561 enclosing classes have namespace scope.
2562
2563Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2564
2565 * config.table: Provide a backup shell for executing move-if-change.
2566
25671999-10-02 Mark Mitchell <mark@codesourcery.com>
2568
2569 * xmalloc.c (xmalloc): Fix spelling error.
2570 (xcalloc, xrealloc): Likewise.
2571
25721999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2573
2574 * cplus-dem.c (fancy_abort, demangle_integral_value,
2575 demangle_arm_hp_template, recursively_demangle,
2576 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2577 (program_name, program_version, fatal): Constify a char*.
2578 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2579 (main): Call return, not exit.
2580
25811999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2582
2583 * choose-temp.c: Remove obsolete comment about gcc.
2584 (make_temp_file): Constify a char*.
2585
2586Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2587
2588 * xmemdup.c: Include sys/types.h.
2589
25901999-09-07 Jeff Garzik <jgarzik@pobox.com>
2591
2592 * xmemdup.c: New xmemdup function.
2593 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2594
2595Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2596
b4fe2683 2597 * config.table: Add openedition target.
0c0a36a4
ILT
2598 * config/mh-openedition: New file.
2599
2600Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2601
2602 * pexecute.c (pexecute): Fill in temp_base when needed.
2603
26041999-08-31 Richard Henderson <rth@cygnus.com>
2605
2606 * getpwd.c: Check HAVE_GETCWD before defining it away.
2607
26081999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2609
2610 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2611 (REQUIRED_OFILES): Add getpwd.o.
2612 (getpwd.o): Add target.
2613
2614 * configure.in (AC_PREREQ): Bump to 2.13.
2615 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2616
2617 * getpwd.c: New file, moved here from gcc.
2618
26191999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2620
2621 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2622 comparing against a signed quantity.
2623 (arm_special): Likewise.
2624 (demangle_fund_type): Likewise.
2625 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2626 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2627 (main): Constify variable `valid_symbols'.
2628
2629Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2630
2631 * strtoul.c (strtoul): Add parentheses around && within ||.
2632
2633Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2634
2635 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2636 libdir, libsubdir and tooldir.
2637
26381999-08-01 Mark Mitchell <mark@codesourcery.com>
2639
2640 * splay-tree.c (splay_tree_insert): Return the new node.
2641
35ca97ea
RH
26421999-07-14 Richard Henderson <rth@cygnus.com>
2643
b4fe2683 2644 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2645 prototyping directly.
2646 * choose-temp.c: Conditionally include string.h.
2647
0c0a36a4
ILT
26481999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2649
2650 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2651
af32ff69
ILT
26521999-07-11 Ian Lance Taylor <ian@zembu.com>
2653
2654 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2655 warning.
2656
0c0a36a4
ILT
26571999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2658
2659 * Makefile.in (needed-list): Only include stuff we actually need
2660 for libstdc++.
2661
26621999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2663
2664 * configure.in (checkfuncs): Add gettimeofday.
2665 * config.in, configure: Regenerated.
2666
2667Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2668
2669 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2670 the test fails.
2671 * configure: Regenerate.
2672
26731999-06-10 Mike Stump <mrs@wrs.com>
2674
2675 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2676 parallel builds.
2677
26781999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2679
2680 * putenv.c: Include ansidecl.h to define `const'.
2681 * setenv.c: Likewise.
2682
2683Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2684
2685 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2686 * configure.in (funcs): Add putenv and setenv.
2687 (AC_CHECK_FUNCS): Check for putenv and setenv.
2688 * configure: Rebuilt.
2689 * putenv.c setenv.c: New files.
2690
2691 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2692 bytes of space using malloc.
2693
2694Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2695
2696 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2697 the *mangled pointer beyond the end of the string. Clean up code to
2698 match prevailing coding style.
2699
27001999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2701
2702 * tmpnam.c (L_tmpnam): Fix typo.
2703
2704Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2705
2706 * cplus-dem.c (standard_symbol_characters): Renamed from
2707 standard_symbol_alphabet. No longer modify TABLE.
2708 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2709 modify TABLE.
2710 (main): Corresponding changes. Use strchr to determine if a
2711 character is valid.
2712
e9868447
JB
27131999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2714
2715 * cplus-dem.c (main): Use table lookup to distinguish identifier
2716 characters from non-identifier characters.
2717 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2718
33fbbfbc
RH
2719Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2720
2721 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2722 * getruntime.c: Only attempt to include sys/resource.h and
2723 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2724 are defined.
2725
0c0a36a4
ILT
2726Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2727
2728 * configure.in (alloca detection): Handle alloca directly for interix.
2729 * configure: Rebuilt.
2730
2731Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2732
2733 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2734
252b5132
RH
27351999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2736
2737 Fix from Dale Hawkins:
b4fe2683 2738 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2739 reallocated properly if we use it again.
2740
2741 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2742 stricter about syntax. Always null-terminate string.
2743
c1687039
ILT
2744Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2745
2746 * configure.in (checkfuncs): Check for sbrk.
2747 * config.in: Rebuilt.
2748 * configure: Likewise.
2749 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2750
0c0a36a4
ILT
27511999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2752
2753 Fix from Marcus Daniels:
2754 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2755 identifier looking for another underscore.
2756
2757Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2758
2759 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2760 * xmalloc.c: Likewise.
2761 (xcalloc): UWIN has sbrk.
2762 (xrealloc): Fix guard macro.
2763
252b5132
RH
27641999-04-11 Richard Henderson <rth@cygnus.com>
2765
2766 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2767 or <alloca.h>.
2768 * clock.c (GNU_HZ): New definition.
2769 (clock): Use it.
2770 * getruntime.c: Likewise.
2771
2772 * config.table: Use mh-beos.
2773 * config/mh-beos: New file.
2774
0c0a36a4
ILT
27751999-04-11 Mark Mitchell <mark@codesourcery.com>
2776
2777 * cplus-dem.c (demangle_template_value_parm): Handle
2778 pointers-to-members.
2779 (do_type): Handle template parameters as qualifiers.
2780
252b5132
RH
27811999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2782
2783 * cplus-dem.c: Attempt to handle overflows in counts with some
2784 semblance of grace.
2785 (consume_count): Detect overflows. Return -1 to indicate errors,
2786 instead of zero.
2787 (demangle_template_value_parm, demangle_template): Handle change
2788 to consume_count's return convention.
2789
0c0a36a4
ILT
27901999-04-05 Tom Tromey <tromey@cygnus.com>
2791
2792 * testsuite/regress-demangle: New file.
2793 * testsuite/demangle-expected: New file.
252b5132 2794
0c0a36a4
ILT
2795 * Makefile.in (all, check, installcheck, info, install-info,
2796 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2797 distclean, maintainer-clean, realclean): Depend on corresponding
2798 `-subdir' target.
2799 (all-subdir check-subdir installcheck-subdir info-subdir
2800 install-info-subdir clean-info-subdir dvi-subdir
2801 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2802 distclean-subdir maintainer-clean-subdir): New target.
2803 * testsuite/Makefile.in: New file.
2804 * configure: Rebuilt.
2805 * configure.in: Create testsuite/Makefile.
252b5132
RH
2806
28071999-04-02 Mark Mitchell <mark@codesourcery.com>
2808
2809 * splay-tree.h (splay_tree_compare_pointers): Define.
2810
28111999-03-30 Mark Mitchell <mark@codesourcery.com>
2812
2813 * splay-tree.c (splay_tree_compare_ints): Define.
2814
28151999-03-30 Tom Tromey <tromey@cygnus.com>
2816
2817 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2818 don't advance input pointer.
2819 (demangle_class_name): If consume_count didn't find a count, do
2820 nothing. Don't bother with `strlen' sanity check; consume_count
2821 does it for us.
2822
28231999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2824
2825 From Art Haas <ahaas@neosoft.com>:
2826 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2827 when doing arm or hp style.
2828 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2829
252b5132
RH
2830Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2831
2832 * pexecute.c (__CYGWIN32__): Rename to
2833 (__CYGWIN__): this.
2834 * xmalloc.c: Likewise.
2835
2836 Changes to support i386-pc-uwin.
2837 * configure.in (*-*-uwin*): Workaround for vfork bug.
2838 * configure: Regenerate.
2839 * pexecute.c (pexecute): Be like standard Unix.
2840 (pwait): Likewise.
2841 * xmalloc.c (first_break): Define.
2842 (xmalloc_set_program_name): Use.
2843 (xmalloc): Use.
2844
2845Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2846
2847 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2848
2849Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2850
2851 * config.table: Check cygwin*, not cygwin32*.
2852
2853Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2854
2855 * Makefile.in: Change mkstemp -> mkstemps.
2856
2857Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2858
2859 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2860 * configure.in (funcs): Check for and conditionally add mkstemps to
2861 the list of functions libiberty will provide.
2862 * configure: Rebuilt.
b4fe2683 2863
252b5132
RH
2864Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
2865
b4fe2683 2866 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
2867 platforms that don't have HZ.
2868 * getruntime.c (HZ): Likewise.
2869
2870Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
2871
2872 * Makefile.in (xstrdup.o): Depend on config.h.
2873
2874Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
2875
2876 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
2877 freeing it.
2878
2879Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2880
2881 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
2882
2883Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
2884
2885 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
2886 splay-tree.o.
2887
28881999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
2889
2890 * configure.in: Require autoconf 2.12.1 or higher.
2891
28921998-12-30 Michael Meissner <meissner@cygnus.com>
2893
2894 * random.c (NULL): Don't redefine NULL if it is already defined.
2895
2896Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2897
2898 * argv.c (buildargv): Cast the result of alloca in assignment.
2899
2900 * choose-temp.c: Include stdlib.h.
2901
2902 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
2903 (snarf_numeric_literal): Constify first parameter.
2904 (code_for_qualifier): Avoid a gcc extension, make the parameter an
2905 int, not a char.
252b5132
RH
2906 (demangle_qualifier): Likewise.
2907 (demangle_signature): Cast the argument of a ctype function to
2908 unsigned char.
2909 (arm_pt): Add parens around assignment used as truth value.
2910 (demangle_arm_hp_template): Constify variable `args'.
2911 (do_hpacc_template_const_value): Cast the argument of a ctype
2912 function to unsigned char.
2913 (do_hpacc_template_literal): Remove unused variable `i'.
2914 (snarf_numeric_literal): Constify parameter `args'.
2915 Cast the argument of a ctype function to unsigned char.
2916
2917 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 2918 avoid ambiguous `else'.
252b5132
RH
2919
2920 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
2921 `cstart' and `cend' to unsigned char. Cast the argument of macro
2922 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
2923
2924 * objalloc.c (free): Add prototype.
2925
2926Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
2927
2928 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
2929
2930Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
2931
2932 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 2933 doesn't exist.
252b5132 2934 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 2935
252b5132
RH
2936Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
2937
2938 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
2939 bumping the pointer we read from. Also prepend these codes,
2940 as we do in other places.
2941
29421998-12-18 Nick Clifton <nickc@cygnus.com>
2943
2944 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
2945 'const char *' in order to match its usage when calling siblings.
2946 (snarf_numeric_literal): Make first arg 'const char **' in order
2947 to match usage.
2948
2949Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2950
2951 * choose-temp.c: Don't check IN_GCC anymore.
2952
2953 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
2954 * memchr.c (memchr): Likewise.
2955 * memcpy.c (memcpy): Likewise.
2956 * memmove.c (memmove): Likewise.
2957
2958 * mkstemp.c: Don't check IN_GCC anymore.
2959 * pexecute.c: Likewise.
2960 * splay-tree.c: Likewise.
2961
2962 * strchr.c (strchr): Use `const', not `CONST'.
2963 * strrchr.c (strrchr): Likewise.
2964 * strtol.c (strtol): Likewise.
2965 * strtoul.c (strtoul): Likewise.
2966
2967Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
2968 Elena Zannoni <ezannoni@cygnus.com>
2969 Stan Shebs <shebs@cygnus.com>
2970 Edith Epstein <eepstein@cygnus.com>
2971 Andres MacLeod <amacleod@cygnus.com>
2972 Satish Pai <pai@apollo.hp.com>
2973
2974 * HP aCC demangling support.
2975 * cplus-dem.c
2976 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
2977 demangling correctly when -edg specified; set the demangling style
2978 when user specifies 'edg'. Set strip_underscore to
2979 prepends_underscore, if not HPUXHPPA. Set
2980 current_demangling_style to hp_demangling if HPUXHPPA. Set
2981 current demangling style correctly if the switch is hp. Read
2982 label correctly also in the HP style case.
252b5132 2983 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 2984 function.
252b5132 2985 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 2986 style for this case is the same as ARM.
252b5132
RH
2987 (demangle_args): handle EDG_DEMANGLING style; support HP style.
2988 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
2989 demangle_arm_pt.); check and set value of temp_start field in
2990 multiple places. Also, when ceching for end of template args,
2991 check to see if at end of static member of template class.
252b5132 2992 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 2993 include template args in string defining class.
252b5132
RH
2994 (demangle_class_name): use demangel_arm_hp_template.
2995 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
2996 HP_DEMANGLING and currently point at an 'X' in the mangled name.
2997 Handle EDG_DEMANGLING style. Handle constructor and destructor
2998 ops for HP style.
252b5132 2999 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3000 styles. global destructor and constructor for HP style are same
3001 as for ARM style. Same for local variables.
252b5132
RH
3002 (demangle_qualified): handle EDG_DEMANGLING style.
3003 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
3004 cases '1' - '9' : initialize the temp_start field to -1 and handle
3005 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3006 and AUTO_DEMANGLING styles. If expecting a function and managed
3007 to demangle the funct args, then handle the LUCID_DEMANGLING,
3008 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3009 class name after "Lnnn_ in HP style case. HP style too needs to
3010 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 3011 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3012 value param for HP/aCC.
252b5132 3013 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3014 literal parameter for HP aCC.
252b5132
RH
3015 (recursively_demangle): new function
3016 (snarf_numeric_literal): new function.
3017 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3018 to message.
252b5132
RH
3019
3020Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3021
3022 * pexecute.c: Remove obsolete ifdefed cygwin code.
3023
3024Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3025
3026 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3027 * cplus-dem.c: Likewise. Conform to libiberty.h.
3028 * pexecute.c: Likewise.
3029 * splay-tree.c: Likewise.
3030
30311998-11-25 Mike Stump <mrs@wrs.com>
3032
3033 * Makefile.in (splay-tree.o): Add config.h dependency.
3034
3035Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3036
3037 * configure.in: Use AC_PREREQ(2.12.1).
3038
30391998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3040
b4fe2683 3041 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3042
3043Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3044
3045 * mpw.c (mpw_access): Add missing parens.
3046
3047Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3048
3049 * configure.in: Call AC_HEADER_SYS_WAIT.
3050
3051 * pexecute.c: Include sys/wait.h when !IN_GCC.
3052
3053Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3054
3055 * pexecute.c: revert back to checking old Cygwin
3056 preprocessor symbol until some time has passed.
3057
3058Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3059
3060 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3061 since it will now support similar constructs.
3062
3063Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3064
3065 * configure.in: Check for calloc.
3066
3067 * calloc.c: New file.
3068
3069 * xmalloc.c (xcalloc): New function.
3070
3071Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3072
3073 *cplus-dem.c (demangle_prefix): Use the last "__"
3074 in the mangled name when looking for the signature. This allows
3075 template names to begin with "__".
3076
30771998-11-08 Mark Mitchell <mark@markmitchell.com>
3078
3079 * cplus-dem.c (type_kind_t): Add tk_reference.
3080 (demangle_template_value_parm): Handle it.
3081 (do_type): Use it for references, instead of tk_pointer.
3082
3083 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3084 not internal_cplus_demangle.
3085
3086Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3087
3088 * choose-temp.c: Don't include gansidecl.h.
3089 * mkstemp.c: Likewise.
3090 * pexecute.c: Likewise.
3091
3092Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3093
b4fe2683
JM
3094 * configure.in: detect cygwin* instead of cygwin32*
3095 * configure: regenerate
252b5132
RH
3096
3097Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3098
3099 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
3100 whether to include config.h. Possibly include unistd.h in the
3101 !IN_GCC case. Define VFORK_STRING as a printable function call
3102 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3103 defined, include vfork.h. If VMS is defined, define vfork()
3104 appropriately. Remove vfork check on USG, we're using autoconf.
3105 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3106 locally what string to use.
252b5132
RH
3107
31081998-10-26 Mark Mitchell <mark@markmitchell.com>
3109
3110 * splay-tree.c: Tweak include directives to make sure declarations of
3111 xmalloc and free are available.
3112
31131998-10-25 Mark Mitchell <mark@markmitchell.com>
3114
3115 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3116 anonymous namespaces.
3117
31181998-10-23 Mark Mitchell <mark@markmitchell.com>
3119
3120 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3121 with type_quals.
3122 (TYPE_UNQUALIFIED): New macro.
3123 (TYPE_QUAL_CONST): Likewise.
3124 (TYPE_QUAL_VOLATILE): Likewise.
3125 (TYPE_QUAL_RESTRICT): Likewise.
3126 (code_for_qualifier): New function.
3127 (qualifier_string): Likewise.
3128 (demangle_qualifier): Likewise.
3129 (internal_cplus_demangle): Use them.
3130 (demangle_signature): Likewise.
3131 (demangle_template_value_parm): Likewise.
3132 (do_type): Likewise.
3133 (demangle_fund_type)): Likewise.
3134
3135Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3136
3137 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3138 to match prototype.
3139
31401998-10-21 Mark Mitchell <mark@markmitchell.com>
3141
3142 * splay-tree.c: New file.
3143 * Makefile.in (CFILES): Add it.
3144 (REQUIRED_OFILES): Likewise.
3145 (splay-tree.o): Add dependencies.
3146
3147Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3148
3149 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3150 range of 'K' index.
3151
3152Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3153
3154 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3155
3156 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3157 `unsigned char'.
3158 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3159 comparing against one.
3160 (cplus_mangle_opname): Likewise.
3161 (demangle_integral_value): Cast argument of ctype macro to
3162 `unsigned char'.
3163 (demangle_template_value_parm): Likewise.
3164 (demangle_template): Initialize variable `bindex'. Cast the
3165 result of `strlen' to (int) when comparing against one. Remove
3166 unused variable `start_of_value_parm'.
3167 (demangle_class_name): Cast the result of `strlen' to (int) when
3168 comparing against one.
3169 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3170 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3171 when comparing against one.
3172 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3173 (get_count): Likewise.
3174 (do_type): Likewise. Cast the result of `strlen' to (int) when
3175 comparing against one.
3176 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3177 (demangle_function_name): Cast the result of `strlen' to (int)
3178 when comparing against one.
3179
3180 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3181 comparing against one.
3182
3183Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3184
b4fe2683
JM
3185 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3186 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3187 * config.in, configure: Rebuilt.
252b5132
RH
3188
3189 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3190 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3191 * config.in, configure: Rebuilt.
3192
3193Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3194
b4fe2683 3195 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
3196
3197Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3198
3199 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3200
3201Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3202
3203 * Merge egcs & devo libiberty.
3204