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