* remote.c (fetch_register_using_p): Construct 'p' packet in a
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
f9b4e353
DD
12004-09-08 Adam Nemet <anemet@lnxw.com>
2
3 * vasprintf.c: Accept __va_copy in addition to va_copy.
4
c7efc4d5
PB
52004-09-03 Paolo Bonzini <bonzini@gnu.org>
6
7 * configure: Regenerate.
8
f5396bbe
PB
92004-09-02 Paolo Bonzini <bonzini@gnu.org>
10
11 * configure.ac: Do not enable multilibs for build-side libiberty.
12
950ad202
DD
132004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
14
15 * lrealpath.c (lrealpath): Add _WIN32 support.
16
a21da8bf
DD
172004-06-28 Zack Weinberg <zack@codesourcery.com>
18
19 * cp-demangle.h: Declare cplus_demangle_operators,
20 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
21 cplus_demangle_type as static if IN_GLIBCPP_V3.
22
232004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
24
25 PR other/16240
26 * cp-demangle.c (d_expr_primary): Check for a failure return from
27 cplus_demangle_type.
28 * testsuite/demangle-expected: Add test case.
29
9f7d3e7d
DD
302004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
31
32 * pex-win32.c (fix_argv): Expand comment.
33
0cb2db3a
DD
342004-05-25 Daniel Jacobowitz <drow@false.org>
35
36 * Makefile.in: Add .NOEXPORT.
37
25319993
DD
382004-04-29 Douglas B Rupp <rupp@gnat.com>
39
40 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
41 copyright.
42
7e9f5c71
DD
432004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
44
45 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
46 * configure: Regenerate.
47
bb6a587d
DD
482004-04-22 Richard Henderson <rth@redhat.com>
49
50 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
51 (CHAR_BIT): Provide default.
52 (struct prime_ent, prime_tab): New.
53 (higher_prime_index): Rename from higher_prime_number, return index.
54 (htab_mod_1): New.
55 (htab_mod, htab_mod_m2): Use it.
56 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
57 (htab_expand): Likewise.
58 * configure.ac: Check for stdint.h.
59 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
60 * config.in, configure: Rebuild.
61
53239e41
DD
622004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
63
64 * strerror.c: Include config.h, and redefine sys_nerr and
65 sys_errlist, before including ansidecl.h and libiberty.h.
66
d6ea4e80
DD
672004-04-13 Jeff Law <law@redhat.com>
68
69 * hashtab.c (htab_remove_elt_with_hash): New function.
70 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
71
fe046a17
DD
722004-03-31 Richard Henderson <rth@redhat.com>
73
74 * hashtab.c (htab_size): Move to top of file; mark inline.
75 (htab_elements): Likewise.
76 (htab_mod, htab_mod_m2): New.
77 (htab_delete): Refactor htab->size and htab->entries.
78 (htab_empty): Likewise.
79 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
80 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
81 (htab_clear_slot): Use htab_size, htab_elements.
82 (htab_traverse_noresize, htab_traverse): Likewise.
83
e0c148a7
DD
842004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
85
12a7367e
DD
86 * pex-unix.c (pexecute): Use vfork instead of fork, with
87 appropriate changes to make this safe.
88 * pex-common.h (STDERR_FILE_NO): Define.
89
e0c148a7
DD
90 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
91 an 80 column screen. Run maint-deps.
92
85f969cd
DD
932004-03-09 Kelley Cook <kcook@gcc.gnu.org>
94
95 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
96 * acconfig.h: Delete redundant file.
97 * config.in: Regenerate.
98 * configure: Regenerate.
99
58670637
DD
1002004-03-09 Hans-Peter Nilsson <hp@axis.com>
101
102 * configure: Regenerate for config/accross.m4 correction.
103
758d77be
DD
1042004-03-07 Andreas Jaeger <aj@suse.de>
105
106 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
107 prototypes.
108 (main): Initialize style.
109
74aee4eb
DD
1102004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
111
2d733211
DD
112 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
113 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
114 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
115 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
116 short types to D_PRINT_DEFAULT. Change other integer types to use
117 new D_PRINT_* values where appropriate. Change float types to
118 D_PRINT_FLOAT.
119 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
120 values.
121 * testsuite/demangle-expected: Adjust two test cases.
122
123 * cp-demangle.c (d_print_function_type): Print a space before the
124 parenthesis around the function type in more cases.
125 * testsuite/demangle-expected: Adjust one test case.
126
099f84cf
DD
127 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
128 parentheses around a cast.
129 * testsuite/demangle-expected: Adjust two test cases to match new
130 output.
131
74aee4eb
DD
132 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
133
134 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
135 push more than one of the same CV-qualifier on the top of the
136 stack.
137 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
138 move the CV-qualifiers to apply to the element type instead.
139 (d_print_array_type): When checking the modifiers, keep looking
140 past ones which have been printed already.
141 * testsuite/demangle-expected: Add three test cases.
142
1432004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
144
145 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
146 empty string correctly.
147
148 * cp-demangle.c (__cxa_demangle): It is not an error if status is
149 not NULL. It is an error if the mangled name is the same as a
150 built-in type name.
151 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
152 than cplus_demangle_v3.
153
154 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
155 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
156
f9375305
DD
1572004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
158
159 * regex.c: Include <ansidecl.h>.
160 (regcomp): Cast i to int.
161 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
162
cbf0ee79
DD
1632004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
164
165 * configure.ac: Add m4_pattern_allow(LIBOBJS).
166 * configure: Regenerate.
167
37254c9a
DD
1682004-01-22 DJ Delorie <dj@redhat.com>
169
170 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
171 with explicit build rules.
172 (VPATH): Remove.
173 (.c.o): Poison.
174 * configure.ac (pexecute, LIBOBJS): Add ./ .
175 * maint-tool: Build dependencies with explicit rules.
176
211333f6
DD
1772004-01-15 Kazu Hirata <kazu@cs.umass.edu>
178
179 * strdup.c (strdup): Constify the argument.
180
3795d586
DD
1812004-01-14 Loren J. Rittle <ljrittle@acm.org>
182
183 * Makefile.in (distclean): Remove config.cache.
184
2d6520ee
DJ
1852004-01-13 Daniel Jacobowitz <drow@mvista.com>
186
187 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
188 takes two parameters.
189 * cp-demint.c (cplus_demangle_fill_component): Likewise.
190
59727473
DD
1912004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
192
193 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
194 defined, rename some functions which are to become static via
195 #define.
196 (CP_STATIC_IF_GLIBCPP_V3): Define.
197 (struct d_operator_info): Move definition to cp-demangle.h, and
198 rename to demangle_operator_info. Change all uses.
199 (enum d_builtin_type_print): Move definition to cp-demangle.h.
200 (struct d_builtin_type_info): Move definition to cp-demangle.h,
201 and rename to demangle_builtin_type_info. Change all uses.
202 (enum d_comp_type): Move definition to include/demangle.h, and
203 rename to demangle_component_type, and change all enums to start
204 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
205 (struct d_comp): Move definition to include/demangle.h, and rename
206 to demangle_component. Change all uses.
207 (struct d_info): Move definition to cp-demangle.h.
208 (cplus_demangle_fill_name): New function.
209 (cplus_demangle_fill_extended_operator): New function.
210 (cplus_demangle_fill_ctor): New function.
211 (cplus_demangle_fill_dtor): New function.
212 (d_make_empty): Remove type parameter. Change all callers.
213 (d_make_name): Use cplus_demangle_fill_name.
214 (d_make_extended_operator): Use
215 cplus_demangle_fill_extended_operator.
216 (d_make_ctor): Use cplus_demangle_fill_ctor.
217 (d_make_dtor): Use cplus_demangle_fill_dtor.
218 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
219 non-static by default. Change all callers.
220 (cplus_demangle_operators): Rename from d_operators. Change all
221 uses. Make non-static by default. Add sentinel at end of array.
222 (d_operator_name): Adjust initialization of high for new sentinel
223 in cplus_demangle_operators.
224 (cplus_demangle_builtin_types): Rename from d_builtin_types.
225 Change all uses. Make non-static by default. Change initializer
226 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
227 (cplus_demangle_type): Rename from d_type. Make non-static by
228 default. Change all callers.
229 (cplus_demangle_init_info): Rename from d_init_info. Make
230 non-static by default. Change all callers.
231 * cp-demangle.h: New file.
232 * cp-demint.c: New file.
233 * Makefile.in: Rebuild dependencies.
234 (CFILES): Add cp-demint.c.
235 (REQUIRED_OFILES): Add cp-demint.o.
236
1a79b024
DD
2372004-01-09 Kelley Cook <kcook@gcc.gnu.org>
238
239 * configure.in: Rename file to ...
240 * configure.ac: ... this.
241 * Makefile.in: Update a comment for above change.
242 * README: Likewise.
243 * config.in: Regenerate.
244
820542c9
DD
2452004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
246
247 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
248 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
249 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
250 demangling template parameters.
251 * testsuite/test-demangle.c (fail): New static function.
252 (main): Support new options in input file: --no-params,
253 --is-v3-ctor, and --is-v3-dtor.
254 * testsuite/demangle-expected: Add --no-params to most tests, and
255 add the correct result when parameters are not demangled. Add
256 some simple tests for V3 constructor/destructor recognition.
257
2f9c4058
DD
2582003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
259
260 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
261
4fd47f10
DJ
2622003-12-22 Daniel Jacobowitz <drow@mvista.com>
263
264 PR debug/13272
265 * Makefile.in (lbasename.o): Depend on filenames.h.
266 * lbasename.c: Include "filenames.h" instead of defining
267 its macros locally.
268
b6fb00c0
DD
2692003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
270
271 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
272 dynamic arrays.
273 (struct d_operator_info): Add len field.
274 (struct d_builtin_type_info): Add len and java_len fields.
275 (struct d_standard_sub_info): Add simple_len, full_len, and
276 set_last_name_len fields.
277 (struct d_comp): Add len field to s_string.
278 (struct d_info): Add send, did_subs, and expansion fields.
279 (d_append_string_constant): Define.
280 (d_append_string): Remove. Change all users to use
281 d_append_string_constant or d_append_buffer instead.
282 (d_make_sub): Add len parameter. Change all callers.
283 (d_name): Increase expansion when substituting std::.
284 (d_unqualified_name): Increase expansion for an operator.
285 (d_number): Don't use multiplication for negative numbers.
286 (d_identifier): Make sure there are enough characters in the
287 string for the specified length. Adjust expansion for an
288 anonymous namespace.
289 (d_operators): Initialize len field.
290 (d_special_name, d_ctor_dtor_name): Increase expansion.
291 (d_builtin_types): Initialize len and java_len fields.
292 (d_type): Increase expansion for a builtin type.
293 (d_cv_qualifiers): Increase expansion for each qualifier.
294 (d_bare_function_type): Decrease expansion when removing single
295 void parameter.
296 (d_template_param): Increment did_subs.
297 (d_expression): Increase expansion for an operator.
298 (d_expr_primary): Decrease expansion for a type we will print
299 specially.
300 (standard_subs): Initialize new fields.
301 (d_substitution): Increment did_subs when doing a normal
302 substitution. Increase expansion for a special substitution.
303 (d_print): Add estimate parameter. Change all callers.
304 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
305 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
306 (d_print_java_identifier): Rename from d_print_identifier. Handle
307 only Java case. Change caller.
308 (d_init_info): Change return type to void. Change all callers.
309 Initialize send, did_subs, and expansion fields. Do not
310 initialize comps and subs fields.
311 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
312 arrays on stack. Make an estimate of the length of the demangled
313 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
314 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
315 subs arrays on stack.
316
2730f651
DD
3172003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
318
319 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
320 after the identifier.
321 * testsuite/demangle-expected: Add test case.
322
d4edd112
DD
3232003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
324
325 Fix for PR c++/13447:
326 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
327 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
328 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
329 D_COMP_QUAL_NAME.
330 (is_ctor_or_dtor): Likewise.
331 (d_local_name): Use D_COMP_LOCAL_NAME rather than
332 D_COMP_QUAL_NAME.
333 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
334 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
335 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
336 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
337 * testsuite/demangle-expected: Add two test cases.
338
339 * cp-demangle.c (d_print_function_type): Clear the global modifier
340 list when printing the modifiers, not just when printing the
341 function parameters.
342 * testsuite/demangle-expected: Add two test cases.
343
d35d0cd4
DD
3442003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
345
346 * cp-demangle.c (d_print_function_type): Print the function
347 parameters with no modifiers.
348 * testsuite/demangle-expected: Add test case.
349
350 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
351 expect that we've read the entire string.
352 (is_ctor_or_dtor): Don't expect that we've read the entire
353 string--reverse patch of 2003-11-29.
354
09e9708c
DD
3552003-12-15 Brendan Kehoe <brendan@zen.org>
356
357 * libiberty/Makefile.in (floatformat.o): Add dependency on
358 config.h to accompany change of 2003-12-03.
359
97ceaf5b
DD
3602003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
361
362 Fix handling of constructor/destructor of standard substitution:
363 * cp-demangle.c (struct d_standard_sub_info): Define.
364 (d_substitution): Add prefix argument. Change all callers.
365 Rework handling of standard substitutions to print full name when
366 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
367 * testsuite/demangle-expected: Add test case.
368
369 Fix handling of negative literal constants:
370 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
371 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
372 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
373 (d_print_comp): Handle D_COMP_LITERAL_NEG.
374 * testsuite/demangle-expected: Add test case.
375
858b45cf
DD
3762003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
377
378 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
379 (d_last_char): Define new macro.
380 (d_make_name): Reject an empty name.
381 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
382 (d_substitution, d_print_identifier): Likewise.
383 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
384 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
385 (d_print_mod) Use new d_last_char macro.
386 (d_print_cast): Use new d_last_char macro.
387 (is_ctor_or_dtor): Don't leak memory.
388
389 Fix handling of member function modifiers:
390 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
391 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
392 (d_dump): Dump new d_comp_type values.
393 (d_make_comp): Accept new d_comp_type values.
394 (has_return_type): Only accept _THIS variants of qualifiers.
395 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
396 qualifiers.
397 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
398 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
399 qualifiers and printing them at the end, add _THIS qualifiers to
400 the modifier list.
401 (d_print_comp) [D_COMP_*_THIS]: New cases.
402 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
403 qualifiers.
404 (d_print_mod_list): Add suffix parameter. Change all callers.
405 Keep walking the list even if the current modifier has been
406 printed.
407 (d_print_mod): Handle new _THIS qualifiers.
408 (d_print_function_type): Handle new _THIS qualifiers when deciding
409 whether to print a parenthesis. Put a space before the
410 parenthesis in some cases. Call d_print_mod_list again at the
411 end, passing suffix as 1.
412 (is_ctor_or_dtor): Look for new _THIS qualifiers.
413 * testsuite/demangle-expected: Add test case.
414
415 Fix for PR gcc/13304:
416 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
417 before the '<' is itself a '<', insert a space.
418 (d_print_cast): Likewise.
419 * testsuite/demangle-expected: Add test case.
420
421 Fix for PR gcc/13244:
422 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
423 which uses the '>' operator in an extra layer of parens.
424 * testsuite/demangle-expected: Add test case.
425
b52927b7
DD
4262003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
427
428 * floatformat.c: Include "config.h" and <string.h> if available.
429 (INFINITY, NAN): Define if not defined by <math.h>.
430 (floatformat_to_double): Handle NaN, infinity, and denormalized
431 numbers.
432 (floatformat_from_double): Likewise.
433 (ieee_test): In debugging code, use little endian rather than big
434 endian. Correct tests to handle NaN and to check correct sign of
435 zero. Omit m68k extended test.
436 (main): Add more debugging cases.
437
24afc00d
DD
4382003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
439
440 * cp-demangle.c (d_demangle): Only return success if we consumed
441 the entire demangled string.
442 (is_ctor_or_dtor): Likewise.
443
444 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
445 to restore expected result of EDG test case to original expected
446 result.
447
331c3da2
DD
4482003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
449
450 * cp-demangle.c (struct d_print_mod): Add templates field.
451 (d_make_builtin_type): Check for NULL type.
452 (d_make_extended_operator): Check for NULL name.
453 (d_make_ctor, d_make_dtor): Likewise.
454 (d_mangled_name): Add top_level parameter. Change all callers.
455 (d_encoding): If DMGL_PARAMS is not set, strip off initial
456 CV-qualifiers.
457 (d_type): Check some return values we rely on.
458 (d_bare_function_type, d_array_type): Likewise.
459 (d_pointer_to_member_type, d_template_args): Likewise.
460 (d_add_substitution): Fail if argument is NULL.
461 (d_print_resize): Check whether buf is NULL.
462 (d_print_comp): Save current templates list with each modifier.
463 Don't pass the modifier list down when printing a template.
464 (d_print_cast): Don't pass the modifier list down when printing a
465 template.
466 (d_print_mod_list): Temporarily set templates list while printing
467 a modifier.
468 (d_print_mod): Check that buf is not NULL before using it.
469 (d_print_function_type): Print parens if there is no modifier.
470 (d_init_info): Permit as many substitutions as there are
471 characters in the mangled name.
472 * testsuite/demangle-expected: Add two new test cases.
473
51948b34
DD
4742003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
475
476 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
477 d_demangle.
478
6d95373e
DD
4792003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
480
481 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
482 callers.
483 (print_usage): Display new -p option.
484 (long_options): Add --no-params.
485 (main): Accept and handle -p.
486
54a962d9
DD
4872003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
488
489 * cp-demangle.c (has_return_type): Skip qualifiers when checking
490 whether we have a template.
491 * testsuite/demangle-expected: Add four new tests.
492
8fe0d347
DD
4932003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
494
495 * testsuite/demangle-expected: Minor changes to match output of
496 new demangler: adjust whitespace in four tests, and change order
497 of qualifiers in one test.
498
499 * cp-demangle.c: Complete rewrite.
500
dd9d4b48
DD
5012003-11-19 Mark Mitchell <mark@codesourcery.com>
502
503 * cp-demangle.c (demangle_type): Correct thinko in substitution
504 processing.
505
0976f6a7
DD
5062003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
507
508 * cp-demangle.c (demangle_operator_name): Remove space before
509 "sizeof".
510 (demangle_type_ptr): Put qualifiers in the right place. Handle
511 qualifiers in pointer to member specially.
512 (demangle_type): Handle qualifiers for pointer or reference
513 specially. Handle function type.
514 (demangle_local_name): Save and restore caret around demangling of
515 initial encoding.
516
517 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
518 cplus_demangle.
519
520 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
521
e7e6980b
DD
5222003-10-31 Andreas Jaeger <aj@suse.de>
523
524 * floatformat.c (floatformat_always_valid): Add unused attribute.
525
97ceaf5b
DD
5262003-10-30 Josef Zlomek <zlomekj@suse.cz>
527
528 Jan Hubicka <jh@suse.cz>
529 * vasprintf.c (int_vasprintf): Pass va_list by value.
530 Use va_copy for copying va_list.
531 (vasprintf): Pass va_list by value.
532
686e72d7
DD
5332003-10-30 Josef Zlomek <zlomekj@suse.cz>
534
535 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
536 instead of increasing n_elements when inserting to deleted slot.
537
eec65ede
JB
5382003-10-20 J. Brobecker <brobecker@gnat.com>
539
540 * cplus-dem.c (demangle_template): Register a new Btype only
541 when needed.
542 * testsuite/demangle-expected: Add a new test.
543
cd275bff
L
5442003-10-16 H.J. Lu <hongjiu.lu@intel.com>
545
546 * testsuite/demangle-expected: Update the expected output of
547 _GLOBAL__I__Z2fnv.
548
e3b1168e
DJ
5492003-10-02 Daniel Jacobowitz <drow@mvista.com>
550
551 * strerror.c: Revert last change. Declare static sys_nerr
552 and sys_errlist using different names.
553
efb150d5
DJ
5542003-10-01 Daniel Jacobowitz <drow@mvista.com>
555
556 * strerror.c: Don't provide or reference sys_errlist if
557 strerror is available.
558
b7ca9213
L
5592003-10-01 H.J. Lu <hongjiu.lu@intel.com>
560
561 * configure.in: Check if $MAKEINFO is missing.
562 * configure: Regenerated.
563
8ddbb593
DJ
5642003-09-24 Daniel Jacobowitz <drow@mvista.com>
565
566 * configure.in: Use AC_PROG_CPP_WERROR.
567 * configure: Regenerated.
568
5324d185
AC
5692003-09-22 Andrew Cagney <cagney@redhat.com>
570
571 * floatformat.c (floatformat_i387_ext_is_valid): New function.
572 (floatformat_always_valid): New function.
573 (floatformat_i387_ext): Initialize new "is_valid" field to
574 "floatformat_i387_ext_is_valid".
575 (floatformat_ieee_single_little): Initialize "is_valid" field to
576 floatformat_always_valid.
577 (floatformat_ieee_double_big): Ditto.
578 (floatformat_ieee_double_little): Ditto.
579 (floatformat_ieee_double_little): Ditto.
580 (floatformat_ieee_double_littlebyte_bigword): Ditto.
581 (floatformat_i960_ext): Ditto.
582 (floatformat_m88110_ext): Ditto.
583 (floatformat_m88110_harris_ext): Ditto.
584 (floatformat_arm_ext_big): Ditto.
585 (floatformat_arm_ext_littlebyte_bigword): Ditto.
586 (floatformat_ia64_spill_big): Ditto.
587 (floatformat_ia64_spill_little): Ditto.
588 (floatformat_ia64_quad_big): Ditto.
589 (floatformat_ia64_quad_little): Ditto.
590 (floatformat_ia64_quad_little): Ditto.
591 (floatformat_is_valid): Call "is_valid".
592
34f4a113
AC
5932003-09-15 Andrew Cagney <cagney@redhat.com>
594
595 * floatformat.c (get_field): Make "data" constant.
596 (floatformat_is_valid, floatformat_to_double): Make "from"
597 constant, fix casts.
598 (floatformat_from_double): Make "from" constant.
599
3f2aacaf
DJ
6002003-09-15 Daniel Jacobowitz <drow@mvista.com>
601
602 * floatformat.c (floatformat_is_valid): New function.
603 (get_field, put_field): Correct comments.
604
aae66b9f
DD
6052003-09-06 Josef Zlomek <zlomekj@suse.cz>
606
607 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
608 FIBHEAPKEY_T.
609
60b04ee8
DD
6102003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
611
612 PR bootstrap/12100
613 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
614 * configure: Rebuilt.
615
2299a76d
DJ
6162003-08-27 Daniel Jacobowitz <drow@mvista.com>
617
618 * aclocal.m4: Include acx.m4 and no-executables.m4.
619 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
620 (LIB_AC_PROG_CC): Remove.
621 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
622 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
623 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
624 performing link tests.
625 * configure: Regenerated.
626
9ad1aa29
DD
6272003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
628
a21da8bf 629 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 630
dbb9d0f3
DD
6312003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
632
633 * pex-win32.c (pexecute): Mark parameters this_pname and
634 temp_base as unused. Remove unused variables retries,
635 sleep_interval. Initialize org_stdin, org_stdout.
636 (pwait): Mark parameter flags as unused.
637
6382003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
639
640 * pex-win32.c (fix_argv): Ensure that the executable pathname
641 uses Win32 backslashes.
642 (pexecute): Cast away constness when assigning *errmsg_arg.
643
78c5b0a5
L
6442003-06-26 H.J. Lu <hongjiu.lu@intel.com>
645
646 * testsuite/demangle-expected: Add more GNU V3 testcases.
647
70ecf948
DD
6482003-06-22 Zack Weinberg <zack@codesourcery.com>
649
650 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
651 not HC_ASCII and HC_EBCDIC.
652 Add documentation in form expected by gather-docs.
653 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
654 * Makefile.in, functions.texi: Regenerate.
655
cbc0188b
DD
6562003-06-21 Zack Weinberg <zack@codesourcery.com>
657
658 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
659 for charset determination.
660
5f73c378
DD
6612003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
662
663 * configure.in: Add check for malloc.h needed by
664 m68k for function free().
665 * configure: Regenerated.
666 * config.in: Add HAVE_MALLOC_H.
667 * hashtab.c: include malloc.h were available for
668 free().
669
e69f6c8c 6702003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 671
e69f6c8c
DD
672 PR bootstrap/10974
673 * physmem.c: Update comment.
674 * configure.in: Modify test for _system_configuration for older
675 AIX systems.
676
677 * config.in, configure: Regenerated.
cbc0188b 678
54c60684
DD
6792003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
680
681 PR other/10810
682 * test-demangle.c (getline): Fix fence-post error.
683
5a4e47bd
NC
6842003-06-03 Nick Clifton <nickc@redhat.com>
685
686 * asprintf.c: Change comment to note that -1 is returned upon
687 error.
688 * vasprintf.c: Likewise.
689 (vasprintf): Return -1 upon error.
690 * functions.texi: Document changes to asprintf and vasprintf.
691
916f5d13
DD
6922003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
693
694 * config.table: Accept i[345867]86 variant.
695
e4f79046
JB
6962003-05-15 Jim Blandy <jimb@redhat.com>
697
698 * hex.c (_hex_value): Make this unsigned.
699 (hex_value): Update documentation for new return type. hex_value
700 now expands to an unsigned int expression, to avoid unexpected
701 sign extension when we store it in a bfd_vma, which is larger than
702 int on some platforms.
703 * functions.texi: Regenerated.
704
0f3538e7
DD
7052003-05-07 Josef Zlomek <zlomekj@suse.cz>
706
707 * splay-tree.c (splay_tree_predecessor): Fix comment.
708 (splay_tree_successor): Fix comment.
709
7108c5dc
JM
7102003-05-07 Jason Merrill <jason@redhat.com>
711
eafaf5eb 712 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
713 * configure.in: Add AC_C_BIGENDIAN_CROSS.
714 * aclocal.m4: Include accross.m4.
715 * configure, config.in: Regenerate.
716
0b555173
DD
7172003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
718
719 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
720 * configure: Regenerate.
721
8730135a
DD
7222003-05-03 Carlo Wood <carlo@alinoe.com>
723
724 * cp-demangle.c: Fix typo in "char_traints" string-literal.
725
341eccbc
DD
7262003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
727
728 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
729 (main): Test that we don't write too much data.
730
2ed1e5cc
DD
7312003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
732
733 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
734 vsnprintf.
735 * snprintf.c, vsnprintf.c: New files.
736 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
737 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
738 Regenerate dependencies.
739
740 * functions.texi, configure, config.in: Regenerated.
741
10b57b38
DD
7422003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
743
744 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
745 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
746 and stpncpy.
747 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
748 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
749 Regenerate dependencies.
750
751 * functions.texi, configure, config.in: Regenerated.
752
ff773b85
DD
7532003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
754
755 * argv.c: Fix comments.
756 * calloc.c: Don't unnecessarily include "libiberty.h".
757 (bzero): Add prototype.
758 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
759 * getcwd.c (getcwd): Use standard definition to avoid conflicts
760 with system headers.
761 * hashtab.c (htab_traverse): Delete unused variables.
762 * rename.c: Include "ansidecl.h".
763 (rename): Use standard definition to avoid conflicts with system
764 headers.
765 * strsignal.c: Rely on ANSI_PROTOTYPES.
766 * strstr.c: Check GNUC >= 2, not GNUC == 2.
767 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
768 * vprintf.c: Include "ansidecl.h" earlier, rely on
769 ANSI_PROTOTYPES.
770 * vsprintf.c: Include "ansidecl.h" earlier, rely on
771 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 772
ff773b85
DD
773 * Makefile.in: Regenerate dependencies.
774
bb325820
DD
7752003-04-15 DJ Delorie <dj@redhat.com>
776
777 * maint-tool (deps): Scan for headers in $srcdir also.
778
258a4893
DD
7792003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
780
781 PR target/10338
782 PR bootstrap/10198
783 PR bootstrap/10140
784 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
785 __mempcpy.
786 * regex.c (regerror): Likewise.
787
ff773b85
DD
7882003-04-14 Roger Sayle <roger@eyesopen.com>
789
790 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
791 * memchr.c: Likewise.
792 * strcasecmp.c: Likewise.
793 * strncasecmp.c: Likewise.
794 * strncmp.c: Likewise.
795 * xatexit.c: Likewise.
796 * xmalloc.c: Likewise.
797
798 * copysign.c: Use traditional function declaration instead of DEFUN.
799 * sigsetmask.c: Likewise.
800
801 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
802 * memset.c: Likewise.
803
804 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
805 * memmove.c: Likewise.
806
eec539c7
DD
8072003-04-14 Roger Sayle <roger@eyesopen.com>
808
809 * strdup.c (strdup): Tweak implementation to use memcpy.
810
daf7c4ad
DD
8112003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
812
813 * configure.in (HAVE_UINTPTR_T): Always define.
814 * configure: Regenerated.
815
aa072e59
AO
8162003-03-23 Alexandre Oliva <aoliva@redhat.com>
817
818 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
819 instead of $$CC alone.
820 (install_to_tooldir): Use it.
821
f77ed96c
DD
8222003-17-03 Jan Hubicka <jh@suse.cz>
823
824 * hashtab.c (htab_traverse_noresize): Break out from ...
825 * hashtab.c (htab_traverse): ... here.
826
2336e177
DD
8272003-12-03 Jan Hubicka <jh@suse.cz>
828
829 * hashtab.c (htab_expand): Fix warning.
830
831 * hashtab.c (htab_expand): Compute the size of hashtable based
832 on the number of elements actually used.
833 (htab_traverse): Call htab_expand when table is too empty.
834
d8cbbf95
DD
8352003-03-11 Carlo Wood <carlo@gnu.org>
836
837 * cplus-dem.c (demangle_integral_value): Correction to reflect
838 patch of 2002-01-10 in order to also make negative multi-digits
839 without leading underscore work.
840
a01fefeb
DD
8412003-03-03 Mark Mitchell <mark@codesourcery.com>
842
843 * cplus-dem.c: Add license exception to copyright notice.
844
638ceb1a
DD
8452003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
846
847 * physmem.c: Formatting changes from upstream.
848
ef803806
DD
8492003-02-24 Danny Smith <dannysmith@users.source.forge.net>
850
851 * physmem.c (physmem_total): Add _WIN32 support.
852 (physmem_available): Likewise.
853
181fa229
DD
8542003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
855
856 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
857 GSI_PHYSMEM.
858 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
859
cc529274
DD
8602003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
861
862 * configure.in: Check for sys/systemcfg.h and
863 _system_configuration.
864 * physmem.c: Add support for AIX. Tweek formatting as per
865 upstream coreutils beta.
866
8672003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
868 Richard Earnshaw <rearnsha@arm.com>
869 Geoffrey Keating <geoffk@apple.com>
cbc0188b 870
cc529274
DD
871 * configure.in: Check for sys/sysctl.h and sysctl.
872 * physmem.c: Add support for *bsd and darwin.
873 * Makefile.in: Generate depedency for physmem.o.
874
192cbe66
DD
8752003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
876
877 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
878 Tru64 UNIX.
879 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
880 Tru64 UNIX.
881
882 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
883 machine/hal_sysinfo.h, sys/table.h.
884 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
885 * configure, config.in: Regenerate.
886
ff773b85
DD
8872003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
888
889 * configure.in: Check for sys/sysmp.h and sysmp.
890 * physmem.c: Pull upstream copy, add support for irix6.
891
892 * config.in, configure: Regenerated.
893
900d2082
DD
8942003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
895
896 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
897 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
898 pstat_getdynamic.
cbc0188b 899
4938384a
DD
9002003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
901
902 * Makefile.in (CFILES): Add physmem.c.
903 (REQUIRED_OFILES): Add physmem.o.
904 * configure.in: Check for sys/pstat.h.
905 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
906 * physmem.c: New file, copied from textutils.
907
908 * config.in, configure: Regenerated.
909
ba61a412
DJ
9102003-02-20 Daniel Jacobowitz <drow@mvista.com>
911
912 * Makefile.in (CFILES): Add lrealpath.c.
913 (REQUIRED_OFILES): Add lrealpath.o.
914 (lrealpath.o): Add rule.
915 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
916 * configure.in: Add realpath and canonicalize_file_name to
917 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
918 for canonicalize_file_name.
919 * lrealpath.c: New file.
920 * make-relative-prefix.c: Update documentation.
921 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
922 * config.in: Regenerated.
923 * configure: Regenerated.
924 * functions.texi: Regenerated.
925
25dfe0ac
DD
9262003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
927
928 * cplus_dem.c: Fix typo: intializes -> initializes.
929
8b90eef4
AO
9302003-02-20 Alexandre Oliva <aoliva@redhat.com>
931
932 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
933 config.status.
934 * configure: Rebuilt.
935
fcd7c7c9
DD
9362003-02-13 Daniel Jacobowitz <drow@mvista.com>
937
938 Fix PR c++/7612.
939 * cplus-dem.c (demangle_signature): Call string_delete.
940 Remove extra string_init.
941 (demangle_arm_hp_template): Call string_delete instead of
942 string_clear. Add missing string_delete call.
943 (demangle_qualified): Add missing string_delete call.
944 (do_type): Remove unused variable btype. Add missing string_delete
945 call. Call string_delete instead of string_clear.
946 (demangle_fund_type): Move variable btype inside of the switch
947 statement. Add missing string_delete call.
948 (do_arg): Call string_delete instead of string_clear. Remove extra
949 string_init.
950 (demangle_nested_args): Free work->previous_argument.
951
073c427b
DD
9522003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
953
954 * acconfig.h: New file. Add uintptr_t.
955 * config.in: Regenerated.
956
f8bd3000
DD
9572003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
958
959 * libiberty.texi: Update to GFDL 1.2.
960
85b9a938
DD
9612003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
962
963 * Makefile.in (libiberty_topdir): New subst.
964 (mkinstalldirs): Redefine in terms of the above.
965 * configure.in: AC_SUBST it.
966 * configure: Regenerate.
967
578460f2
AO
9682003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
969
970 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
971 (info-subdir, install-info-subdir, clean-info-subdir)
972 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
973 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
974 Pass $(FLAGS_TO_PASS).
975
7f285245
AO
9762003-01-27 Alexandre Oliva <aoliva@redhat.com>
977
978 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
979 /`$$CC -print-multi-os-directory`.
980
5f9624e3
DJ
9812003-01-26 Daniel Jacobowitz <drow@mvista.com>
982
983 * hashtab.c (htab_create_alloc_ex): New function.
984 (hatab_set_functions_ex): New function.
985 (htab_delete, htab_expand): Support alternate allocation functions.
986
9c2259b8
DD
9872003-01-24 Christopher Faylor <cgf@redhat.com>
988
989 * configure.in: Remove special pex-cygwin consideration.
990 * configure: Regenerate.
991 * pex-cygwin.c: Remove.
992 * Makefile.in: Remove pex-cygwin.[co] lines.
993
5a17353c
DD
9942003-01-24 Zack Weinberg <zack@codesourcery.com>
995
996 * Makefile.in (CFILES): Add pex-*.c.
997 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
998 (CONFIGURED_OFILES): Add pex-*.o.
999 (TEXIFILES): Add pexecute.txh.
1000 (pexecute.o): Delete rule.
1001 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1002 pex-unix.o, pex-win32.o): New rules.
1003 * configure.in: Change AC_INIT argument to xmalloc.c.
1004 Compute appropriate pexecute implementation and substitute it
1005 as @pexecute@.
1006
1007 * pexecute.c: Split up into...
1008 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1009 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1010 new files.
1011
1012 * functions.texi: Regenerate.
1013 * configure: Regenerate.
1014
eed2b28c
DD
10152003-01-20 Josef Zlomek <zlomekj@suse.cz>
1016
1017 * hashtab.c (htab_expand): Fix allocation of new entries.
1018
27a39a5f
DD
10192003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1020
1021 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1022
1023 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1024 mkinstalldirs command.
1025
b51c1553
DD
10262002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1027
1028 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1029 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1030
756954c3
DD
10312002-11-24 Nick Clifton <nickc@redhat.com>
1032
1033 * make-relative-prefix.c (make_relative_prefix): Ensure return
1034 string is empty before using strcat to construct it.
1035
2a80c0a4
DD
10362002-11-22 Daniel Jacobowitz <drow@mvista.com>
1037
1038 * Makefile.in: Add make-relative-prefix.c.
1039 * make-relative-prefix.c: New file.
1040 * functions.texi: Rebuilt.
1041
768b20d8
JJ
10422002-11-16 Jakub Jelinek <jakub@redhat.com>
1043
1044 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1045 used with arguments in traditional C' warnings.
1046
f52d1d64
JJ
10472002-10-16 Jakub Jelinek <jakub@redhat.com>
1048
1049 * config.table: Use mh-s390pic for s390x too.
1050
0d3deb8d
DD
10512002-10-06 Andreas Jaeger <aj@suse.de>
1052
1053 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1054 variable and of strict-aliasing warning.
1055 (grow_vect): Use char as first parameter.
1056
1b67de92
DD
10572002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1058
1059 * Makefile.in (all): Fix multilib parallel build.
1060
585cc78f
DD
10612002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1062
1063 * cp-demangle.c (demangling_new): Cast 0 to enum.
1064 (demangle_char): Cast return of strdup to char *.
1065 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1066 (is_gnu_v3_mangled_dtor): Likewise.
1067 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1068 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1069 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1070 * md5.c (md5_process_bytes): Cast results back to const void *.
1071 (md5_process_block): Add cast to const md5_uint32 *.
1072 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1073 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1074 unsigned short.
1075 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1076 to void *.
1077 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1078
e21b0cc1
NC
10792002-09-19 Nick Clifton <nickc@redhat.com>
1080
1081 * README: Update email addresses for bugs and patches.
1082
a54ba43f
DD
10832002-09-10 Mike Stump <mrs@apple.com>
1084
1085 * splay-tree.c (splay_tree_successor): Fix comments.
1086
10872002-09-11 Zack Weinberg <zack@codesourcery.com>
1088
1089 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1090 * testsuite/Makefile.in: Adjust for test-demangle.
1091 * testsuite/regress-demangle: Deleted.
1092 * testsuite/test-demangle.c: New file.
1093 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1094 this file is not being read by a shell script.
1095
01cea699
DD
10962002-09-05 Roger Sayle <roger@eyesopen.com>
1097
1098 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1099
a2832523
DD
11002002-08-07 DJ Delorie <dj@redhat.com>
1101
1102 * regex.c (re_error_msgid): Just use a simple array of strings.
1103 (re_compile_pattern): Compensate.
1104 (re_comp): Likewise.
1105 (re_comp): Likewise.
1106 (regerror): Likewise.
1107
1e3f0be0
DD
11082002-07-29 Neil Booth <neil@daikokuya.co.uk>
1109
1110 * cplus-dem.c (PREPEND_BLANK): Remove.
1111
b851d07b
DD
11122002-07-10 Jason Merrill <jason@redhat.com>
1113
1114 * cp-demangle.c (demangle_identifier): Support extended Unicode
1115 characters.
1116
2a9dffbf
DD
11172002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1118
1119 * cp-demangle.c (demangle_v3_with_details): Wrap in
1120 !defined IN_GLIBCPP_V3.
1121
793011ca
DD
11222002-07-01 Mark Mitchell <mark@codesourcery.com>
1123
1124 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1125 Set it for the "st" operator.
1126 (demangle_expression): Handle expressions with types as arguments.
1127
b39b76b8
DD
11282002-06-30 Douglas Rupp <rupp@gnat.com>
1129
1130 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1131 * Makefile.in (OUTPUT_OPTION): Use.
1132
4748c6d8
DD
11332002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1134
1135 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1136 (install_to_tooldir): Likewise.
1137
f9c3326a
DD
11382002-06-17 Douglas Rupp <rupp@gnat.com>
1139
1140 * lbasename.c: Add 2002 to copyright.
1141 (IS_DIR_SEPARATOR): Remove VMS junk.
1142
18893690
DD
11432002-06-05 Geoffrey Keating <geoffk@redhat.com>
1144
1145 * hashtab.c (htab_create): New stub function for backward
1146 compatibility.
1147 (htab_try_create): Likewise.
1148
11492002-06-03 Geoffrey Keating <geoffk@redhat.com>
1150
1151 * hashtab.c (htab_create): Delete.
1152 (htab_try_create): Delete.
1153 (htab_create_alloc): New.
1154 (htab_delete): Support user-specified memory allocation.
1155 (htab_expand): Likewise.
1156
11572002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1158
1159 * configure.in: Fix typo in the code checking for sys_errlist.
1160 * configure: Regenerated.
1161
9296c8b2
DD
11622002-05-13 Andreas Schwab <schwab@suse.de>
1163
1164 * config.table: Use mh-x86pic also for x86-64.
1165
52d98c2d
DD
11662002-05-08 Alexandre Oliva <aoliva@redhat.com>
1167
1168 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1169 script entry, and set LD to it when configuring multilibs.
1170 * configure: Rebuilt.
1171
cafa3917
DD
11722002-05-07 Mark Mitchell <mark@codesourcery.com>
1173
1174 * configure.in (AC_TYPE_PID_T): Use it.
1175 * configure: Regenerated.
1176 * getruntime.c: Include <sys/types.h>.
1177 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1178
b1c933fc
RH
11792002-04-09 Richard Henderson <rth@redhat.com>
1180
1181 * hashtab.c (higher_prime_number): Use 7 as minimum.
1182 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1183 (htab_find_slot_with_hash): Likewise.
1184
0c4460bb
DD
11852002-04-01 Phil Edwards <pme@gcc.gnu.org>
1186
1187 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1188 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1189 not compile if IN_GLIBCPP_V3 defined.
1190 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1191
f2160d2b
DD
11922002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1193
3ebf1f59 1194 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1195 if it is NULL.
1196
7dd4d42a
DD
11972002-03-27 DJ Delorie <dj@redhat.com>
1198
1199 * hex.c: Add documentation.
1200 (_hex_value): Provide non-ASCII empty table.
1201 (hex_init): Initialize the non-ASCII table.
1202 * functions.texi: Regenerate.
1203
38e57a35
DD
12042002-03-27 Mark Mitchell <mark@codesourcery.com>
1205
1206 * dyn-string.c: Add libgcc exception to copyright notice.
1207
cfed0715
DD
12082002-03-26 H.J. Lu (hjl@gnu.org)
1209
1210 * config.table: Support --with-build-subdir.
1211 * configure.in: Likewise.
1212 * configure: Rebuild.
1213
1504972f
DD
12142002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1215
1216 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1217 seen.
1218
35efcd67
DD
12192002-03-12 Mark Mitchell <mark@codesourcery.com>
1220
1221 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1222 notice.
1223
dabc64ea
DD
12242002-03-11 Douglas B Rupp <rupp@gnat.com>
1225
1226 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1227
3ddbd84c
JB
12282002-03-06 Jim Blandy <jimb@redhat.com>
1229
1230 * splay-tree.c (splay_tree_xmalloc_allocate,
1231 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1232 prototyped definitions. Mark `data' arguments as unused.
1233
efdab807
AC
12342002-03-06 Andrew Cagney <ac131313@redhat.com>
1235
1236 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1237
50d4562d
DD
12382002-03-04 Phil Edwards <pme@gcc.gnu.org>
1239
1240 * configure.in: Add --enable-install-libiberty option.
1241 * Makefile.in (INSTALLED_HEADERS): New variable.
1242 (install_to_libdir): Possibly also copy headers.
1243 * configure: Regenerated.
1244
12452002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1246
1247 * xmalloc.c (xmalloc_fail): Clarify error message further.
1248
6e9980f5
DD
12492002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1250
1251 * xmalloc.c (xmalloc_fail): Clarify error message.
1252
18893690 12532002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
1254
1255 * splay-tree.c (splay_tree_xmalloc_allocate,
1256 splay_tree_xmalloc_deallocate): New functions.
1257 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1258 above functions and a dummy data pointer.
1259 (splay_tree_new_with_allocator): New function.
1260 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1261 splay_tree_remove): Use the splay tree's allocation and
1262 deallocation functions.
1263
59ea9fe7
DD
12642002-02-19 Scott Snyder <snyder@fnal.gov>
1265
1266 * testsuite/demangle-expected: Add test case for infinite loop in
1267 demangler.
1268 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1269 if do_type() doesn't make any progress --- prevents an infinite
1270 loop.
1271
6f848550
DD
12722002-02-18 Carlo Wood <carlo@gnu.org>
1273
1274 PR c++/5390
1275 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1276 numbers that do not start with an underscore; This is needed
1277 for integer template parameters. This doesn't break anything
1278 because multi-digit numbers are never followed by a digit.
1279 * testsuite/demangle-expected: Corrected all mangled test
1280 cases with multi-digit template parameters: g++ 2.95.x does
1281 not generate underscores around these parameters.
1282
44354ae1
DD
12832002-02-05 Jason Merrill <jason@redhat.com>
1284
1285 * cplus-dem.c (flags): Add DMGL_VERBOSE
1286 (cplus_demangle_v3_p): Remove.
1287 (demangle_it): Add DMGL_TYPES to passed flags.
1288 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1289 (cplus_demangle_v3_type): Remove.
1290 (cplus_demangle_v3): Add options parm.
1291
42da15d6
DD
12922002-02-02 H.J. Lu (hjl@gnu.org)
1293
1294 * cp-demangle.c (cp_demangle_type): Do not protect with
1295 IN_LIBGCC2.
1296 (cplus_demangle_v3_all): New.
1297 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1298 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1299
1300 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1301 Initialized to cplus_demangle_v3.
1302 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1303 of cplus_demangle_v3.
1304 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1305 command line symbol.
1306
1307 * testsuite/regress-demangle: Pass the mangled name at the
1308 command line.
1309
b117c158
DD
13102002-02-01 H.J. Lu <hjl@gnu.org>
1311
1312 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1313 DMGL_GNU_V3.
1314
c78d91b1
DD
13152002-01-31 Phil Edwards <pme@gcc.gnu.org>
1316
1317 * cp-demangle.c: Revert yesterday's change.
1318
bef8b55d
DD
13192002-01-31 Adam Megacz <adam@xwt.org>
1320
1321 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1322 wrt HAVE_SYS_ERRLIST.
1323
2c955b8b
DD
13242002-01-30 Phil Edwards <pme@gcc.gnu.org>
1325
1326 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1327 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1328 cp_demangle_type.
1329 * testsuite/demangle-expected: New gnu-v3 test.
1330
58b1717a
RH
13312002-01-22 Momchil Velikov <velco@fadata.bg>
1332
1333 * configure.in (variable detection): Use arrays of unspecified
1334 size instead of plain integers.
1335
cc096b71
DD
13362002-01-18 DJ Delorie <dj@redhat.com>
1337
1338 * Makefile.in (TESTLIB): New. This library is for future
1339 testsuites.
1340 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1341 break down by letter.
1342 (REQUIRED_OFILES): List long-to-compile files first.
1343 (maint-deps): New, target for updating dependencies.
1344 (dependencies): Update.
1345 * maint-tool: Add dependency-generating option.
1346 * configure.in: Check for _doprnt even if we're not providing it.
1347 * configure: Regenerate.
1348
1349 * _doprnt.c: Modifications to allow compiling on any platform.
1350 * copysign.c: Likewise.
1351 * putenv.c: Likewise.
1352 * setenv.c: Likewise.
1353 * vsprintf.c: Likewise.
1354
13552002-01-15 Douglas B Rupp <rupp@gnat.com>
1356
1357 * mkstemps.c (mkstemps): On VMS, open temp file with option
1358 that causes it to be deleted when closed.
1359
20d54542
DD
13602002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1361
c23795e2
DD
1362 * cp-demangle.c (long_options): Const-ify.
1363 * cplus-dem.c (long_options): Likewise.
1364
20d54542
DD
1365 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1366 strstr instead.
1367
f348a7b1
DD
13682001-12-31 Ira Ruben <ira@apple.com>
1369
1370 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1371 * configure: Regenerated.
1372
d86cd745
DD
13732001-12-24 Douglas B. Rupp <rupp@gnat.com>
1374
1375 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1376 * configure: Regenerated.
1377
ae533646
DD
13782001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1379
1380 PR other/2719
1381 * cplus-dem.c (consume_count): Treat negative count as an error.
1382 * testsuite/demangle-expected: Added testcase.
1383
c0eb281b
DD
1384Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1385
1386 * configure.in: Hardcode that vfork works on VMS host.
1387 * configure: Regenerated.
1388
2da4c07f
RH
13892001-12-06 Richard Henderson <rth@redhat.com>
1390
1391 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1392 (cplus_demangle): Support no_demangling.
1393
24acd898
DD
13942001-11-27 Zack Weinberg <zack@codesourcery.com>
1395
1396 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1397 in libiberty context. Fix typo in leading comment.
1398 * configure.in: Fix various AC_DEFINEs so autoheader works.
1399 If any of vprintf, vsprintf, vfprintf is missing from libc,
1400 then AC_REPLACE_FUNCS(_doprnt).
1401
fec50157 14022001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 1403 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
1404
1405 * Makefile.in (stamp-h): Depend on Makefile for proper
1406 serialization.
1407 (*-subdir): Depend on config.h for proper serialization.
1408
5527febf
DD
14092001-11-26 DJ Delorie <dj@redhat.com>
1410
1411 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1412 * configure: Regenerate.
1413 * config.h: Add HAVE_ALLOCA_H.
1414
941d74a0
DD
14152001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1416
1417 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1418 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1419 is available.
1420
dc579051
DD
1421Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1422
1423 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1424 * configure.in (HAVE_UINTPTR_T): Test for system defining
1425 uintptr_t and define HAVE_UINTPTR_T appropriately.
1426 * regex.c (uintptr_t): Do not provide a definition if the
1427 system provided one.
1428
1429 * regex.c (PREFIX): Provide an alternate definition for
1430 non-ANSI/ISO compilers.
1431 (ARG_PREFIX): Likewise.
1432
1a78a35a
DD
14332001-11-12 Jim Meyering <meyering@lucent.com>
1434
1435 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1436 this code would end up calling gettext even in packages built
1437 with --disable-nls.
1438 * getopt.c (_): Likewise.
1439 * regex.c (_): Likewise.
1440
4e55c4b6
DD
14412001-11-03 Alan Modra <amodra@bigpond.net.au>
1442
1443 * configure.in: Cope with missing makeinfo.
1444 * configure: Regenerate.
1445
d311a83a
DD
14462001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1447
1448 * hex.c (hex_init): Provide empty stub.
1449
1450 * hex.c (hex_init): Delete.
1451 (_hex_value): Const-ify and initialize at compile-time.
1452
3bc62f91
DD
14532001-10-19 H.J. Lu <hjl@gnu.org>
1454
1455 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1456 necessary.
1457
5d852400
DD
14582001-10-17 DJ Delorie <dj@redhat.com>
1459
1460 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1461 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 1462 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
1463 Improve manual formatting.
1464 * functions.texi: Regenerate.
1465
ba19b94f
DD
14662001-10-15 DJ Delorie <dj@redhat.com>
1467
1468 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1469 (maint-undoc): New.
1470 maint-tool: Add "undoc" tool.
1471 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1472 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1473 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1474 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1475 documentation.
1476 * fnmatch.txh: New.
1477 * functions.texi: Regenerate.
1478
56056af5
DD
14792001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1480
1481 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1482 * strtod.c: Use "ISO C" instead of "ANSI C".
1483 * functions.texi: Regenerate.
1484
99b58139
DD
14852001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1486
1487 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1488 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1489 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1490 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1491 spelling. Give names to function arguments in documentation. Use
1492 (void) prototypes in documentation.
1493 * functions.texi: Regenerate.
1494
e6450fe5
DD
14952001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1496
1497 * argv.c (buildargv, tests, main): Const-ify.
1498 * cp-demangle.c (operator_code): Likewise.
1499 * cplus-dem.c (optable, libiberty_demanglers,
1500 cplus_demangle_set_style, cplus_demangle_name_to_style,
1501 print_demangler_list): Likewise.
1502 * hashtab.c (higher_prime_number): Likewise.
1503 * strcasecmp.c (charmap): Likewise.
1504 * strerror.c (error_info, strerror, main): Likewise.
1505 * strncasecmp.c (charmap): Likewise.
1506 * strsignal.c (signal_info): Likewise.
1507
da191b5b
DD
15082001-09-29 DJ Delorie <dj@redhat.com>
1509
1510 * configure: Regenerate.
1511
916aaa12
DD
15122001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1513
1514 * concat.c: Include stdlib.h.
1515
fa9f0e33
DD
15162001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1517
1518 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1519 @dircategory and @direntry directives. Add @finalout.
1520 (many nodes): Lose the next,prev,up pointers on the @nide line.
1521 (Using, Supplemental Functions, Replacement Functions): Fix
1522 markup.
1523 (Functions): Move around, to allow makeinfo to build the manual
1524 without next,prev,up pointers in thye node lines.
1525 (Licenses): Fix typos.
1526
1527 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1528 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1529 * functions.texi: Regenerate.
1530
1531 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1532 line.
1533
15342001-09-27 DJ Delorie <dj@redhat.com>
1535
1536 * configure.in: Don't use in-tree texinfo, because libiberty must
1537 be built before it. Check for makeinfo version 4 or higher.
1538 * functions.texi: Regenerate.
1539
39423523
DD
15402001-09-20 DJ Delorie <dj@redhat.com>
1541 Phil Edwards <pedwards@disaster.jaj.com>
1542
1543 * configure.in (MAKEINFO, PERL): Detect these.
1544 (--enable-maintainer-mode): Add.
1545 * configure: Regenerate.
1546 * Makefile.in (MAKEINFO, PERL): Define.
1547 (libiberty.info, libiberty.dvi, libiberty.html): New.
1548 (CFILES): Add bsearch.c.
1549 (CONFIGURED_OFILES): New, list of objects configure might add.
1550 (maint-missing, maint-buildall): New, for maintainers only.
1551 (clean, mostlyclean): Add info/dvi/html files.
1552 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1553 * gather-docs: New, for maintainers.
1554 * maint-tool: New, for maintainers.
1555 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1556 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1557 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1558 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1559 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1560 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1561 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1562 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1563 documentation.
1564
66c94e19
DD
15652001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1566
1567 * concat.c (reconcat): Fix for traditional C.
1568
99ee3a8f
DD
15692001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1570
1571 * concat.c (reconcat): New function.
1572
54c20242
DD
15732001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1574
1575 * concat.c (vconcat_length, vconcat_copy, concat_length,
1576 concat_copy, concat_copy2): New functions.
1577 (concat): Use vconcat_length/vconcat_copy.
1578
1579 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1580 Define.
1581
843f21be
DD
15822001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1583
1584 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1585 VA_FIXEDARG & VA_CLOSE.
1586
1587 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1588 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1589 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1590
8a423cb3
DD
15912001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1592
1593 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1594
dc676635
DD
15952001-08-23 Ulrich Drepper <drepper@redhat.com>
1596
1597 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1598
15992001-08-23 Ulrich Drepper <drepper@redhat.com>
1600
1601 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1602 instead of mbrtowc.
1603 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1604 wcslen, and __wcscoll instead of wcscoll.
1605
f080c76d
DD
16062001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1607
3ebf1f59
DD
1608 * fibheap.c (fibheap_init, fibnode_init): Remove.
1609 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1610 initialize memory.
1611 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1612
f01b59ed
DD
16132001-08-21 Richard Henderson <rth@redhat.com>
1614
1615 * Makefile.in (fibheap.o): Depend on config.h.
1616 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1617 functions for inlining.
1618
1619Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1620
1621 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1622 hosting on cygwin.
1623 * configure: Regenerate.
1624
eb828599
AC
16252001-08-20 Andrew Cagney <ac131313@redhat.com>
1626
1627 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1628 HARRIS_FLOAT_FORMAT.
1629 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1630 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1631 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1632 (floatformat_m88110_harris_ext): New float formats.
1633
4e55c4b6
DD
16342001-08-20 Daniel Berlin <dan@cgsoftware.com>
1635
1636 * fibheap.c: New file. Fibonacci heap.
1637
1638 * Makefile.in (CFILES): Add fibheap.c.
1639 (REQUIRED_OFILES): Add fibheap.o.
1640 (fibheap.o): Add dependencies for fibheap.o.
1641
68a41de7
DD
16422001-08-17 Christopher Faylor <cgf@cygnus.com>
1643
1644 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1645 * configure: Regenerate.
1646
8fc34799
DD
16472001-08-16 Richard Henderson <rth@redhat.com>
1648
1649 * hashtab.c (htab_hash_string): New.
1650
16bad250
AC
16512001-08-13 Andrew Cagney <ac131313@redhat.com>
1652
1653 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1654 name.
1655
a9022147
DD
16562001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1657
1658 * regex.c (wcs_regex_compile): Use appropriate string
1659 to compare with collating element.
1660 Fix the padding for the alignment.
1661
8aefe91a 16622001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1663
1664 * lbasename.c (lbasename): Change function definition to return a
1665 const char pointer.
1666
e7e9b069
DD
16672001-08-07 Jason Merrill <jason_merrill@redhat.com>
1668
1669 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1670 for".
1671
cc5144f8
DD
16722001-08-03 Richard Henderson <rth@redhat.com>
1673
1674 * Makefile.in (concat.o): Depend on config.h.
1675
8aefe91a
DD
16762001-07-30 Andreas Jaeger <aj@suse.de>
1677
1678 * concat.c: Include "config.h".
1679
86710ce2
DD
16802001-07-30 Andreas Jaeger <aj@suse.de>
1681
1682 * regex.c: Declare wcs functions only if compiling with
1683 MBS_SUPPORT.
1684 Don't use #elif for traditional C.
1685
16862001-07-23 Ulrich Drepper <drepper@redhat.com>
1687
1688 * regex.c: Revamp memory allocation for WCHAR functions to
1689 not use too much stack.
1690
16912001-07-30 Andreas Jaeger <aj@suse.de>
1692
1693 * regex.c: Declare wcs functions only if compiling with
1694 MBS_SUPPORT.
1695 Don't use #elif for traditional C.
1696
a5d8f731
DD
16972001-07-25 Daniel Jacobowitz <drow@mvista.com>
1698
1699 * Makefile.in (regex.o): Add dependency on config.h.
1700
6ad8a379
DD
17012001-07-18 Andreas Schwab <schwab@suse.de>
1702
1703 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1704 underscore character.
1705
17062001-07-18 Ulrich Drepper <drepper@redhat.com>
1707
1708 * regex.c: Limit string length printed in debug messages to 100
1709 chars.
1710
17112001-07-18 Andreas Jaeger <aj@suse.de>
1712
1713 * regex.c: Place under LGPL version 2.1.
1714
2a6ef469
DD
17152001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1716
1717 * Makefile.in: Add support for regex code.
1718 * regex.c: New file.
1719
7b78baae
DD
17202001-07-05 Mark Klein <mklein@dis.com>
1721
1722 * Makefile.in: Add ffs.c dependency.
1723 * configure.in: Add ffs.c.
1724 * ffs.c: New file.
1725
926150e2
DD
17262001-06-18 Richard Henderson <rth@redhat.com>
1727
1728 * concat.c: Include <sys/types.h>.
1729
11f6f21d
DD
17302001-06-11 Loren J. Rittle <ljrittle@acm.org>
1731
1732 bootstrap/3106
1733 * strerror.c (sys_nerr): Hide the OS header version.
1734 * strsignal.c (sys_nsig): Likewise.
1735
d42dae6c
DD
17362001-06-10 Richard Henderson <rth@redhat.com>
1737
1738 * concat.c: Include string.h. Fix int vs size_t usage.
1739 Simplify the iteration loops. Use memcpy.
1740
e05c6d27
DD
17412001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1742
1743 * partition.c: Fix misspelling of `implementation'.
1744
b50c4073
DD
17452001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1746
1747 * md5.c (md5_init_ctx): Declare constants as unsigned.
1748 (md5_process_block): Likewise.
1749
457161bf
DD
17502001-05-07 Zack Weinberg <zackw@stanford.edu>
1751
1752 * cp-demangle.c (demangle_v3_with_details,
1753 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1754 function definition.
1755 * ternary.c: Use K+R style function definitions. Use PTR, not
1756 void *. Make arguments constant where possible.
1757
e00bc6a7
DD
17582001-05-07 Mark Mitchell <mark@codesourcery.com>
1759
1760 * splay-tree.h (splay_tree_max): New function.
1761 (splay_tree_min): Likewise.
1762
400ee7e1
DB
17632001-04-15 Daniel Berlin <dan@cgsoftware.com>
1764
1765 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1766
1767 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1768
d9697354
DD
17692001-04-03 Zack Weinberg <zackw@stanford.edu>
1770
1771 * make-temp-file.c (try): Inline.
1772
a7bf099b
DD
17732001-02-28 Richard Henderson <rth@redhat.com>
1774
1775 * Makefile.in (make-temp-file.o): Depend on config.h.
1776
30a1def2
DD
17772001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1778
1779 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1780
079c672a
DD
17812001-03-23 Jakub Jelinek <jakub@redhat.com>
1782
1783 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1784 `_' not followed by a digit is invalid.
1785
a88e356a
JB
17862001-03-22 Jim Blandy <jimb@redhat.com>
1787
1788 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1789 instead of free, to free the contents as well as the string
1790 structure.
1791
1dffcc66
DD
17922001-03-21 Zack Weinberg <zackw@stanford.edu>
1793
1794 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1795 Don't default P_tmpdir to anything. Try /var/tmp before
1796 /usr/tmp.
1797
17982001-03-20 Zack Weinberg <zackw@stanford.edu>
1799
1800 * choose-temp.c: Split off make_temp_file, and the code
1801 duplicated between it and choose_temp_base, into...
1802 * make-temp-file.c: ... here; new file.
1803
1804 * Makefile.in (CFILES): Add make-temp-file.c.
1805 (REQUIRED_OFILES): Add make-temp-file.o.
1806
e61231f1
JB
18072001-03-20 Jim Blandy <jimb@redhat.com>
1808
1809 * cp-demangle.c (struct demangling_def): New fields:
1810 is_constructor and is_destructor.
1811 (demangling_new): Initialize them.
1812 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1813 or destructor.
1814 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1815 is_gnu_v3_mangled_dtor): New functions.
1816
a9cbbe6d
DD
18172001-03-20 Jason Merrill <jason@redhat.com>
1818
1819 * cplus-dem.c (main): Skip initial $.
1820
b1e51b3c
DD
18212001-03-15 Michael Meissner <meissner@redhat.com>
1822
1823 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1824 might be a signed integer under pre-ISO C systems.
1825
8aa30e60 18262001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1827 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1828
8aa30e60
DD
1829 * libiberty/lbasename.c: New file.
1830 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1831
30673bf5
DD
18322001-03-06 Zack Weinberg <zackw@stanford.edu>
1833
1834 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1835 * configure.in: Replace all alloca logic with a simple use of
1836 the above new macro.
1837 * config.table: Kill *-*-beos* entry.
1838 * config/mh-beos: Delete.
1839 * configure, config.in: Regenerate.
fa03f0a7 1840
30673bf5
DD
1841 * Makefile.in (ALLOCA, HFILES): Kill.
1842 (REQUIRED_OFILES): Add alloca.o.
1843 (alloca.o): Depend on libiberty.h.
1844 (argv.o): Don't depend on alloca-conf.h.
1845 * alloca-conf.h: Delete.
1846 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1847 blocks. Provide the C alloca unconditionally. Use PTR where
1848 appropriate. Make i00afunc static.
1849 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1850
5810f394
DD
18512001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1852
1853 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1854
a9db032a
DD
18552001-02-16 Loren J. Rittle <ljrittle@acm.org>
1856
1857 * cplus-dem.c (main): Initialize style.
fa03f0a7 1858
8aefe91a
DD
18592001-02-02 Phil Edwards <pme@sources.redhat.com>
1860
1861 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1862
bc9bf259
DD
18632001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1864
1865 Add support for Java demangling under the v3 ABI:
1866 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1867 (struct demangling_def): Add `style' field.
1868 (demangling_new): New parameter `style'. Set it in demangling_t.
1869 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1870 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1871 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1872 (main): Call cp_demangle with extra parameter.
1873 (java_demangle_v3): New function.
1874 (java_builtin_type_names): New. Table of primitive type names used
1875 for Java demangling.
1876 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1877 Java output.
1878 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1879 demangling.
1880 (long_options): Remove obsolete `java' option.
1881 (main): Remove explicit handling of `java' option. Instead, pass style
1882 parameter in cplus_demangle flags as gdb does.
1883 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1884
f6528837
DD
18852000-12-29 DJ Delorie <dj@redhat.com>
1886
1887 * fnmatch.c: Make the note about the origins of this file more
1888 accurate, at least until we can sync with glibc.
1889 * getopt.c: Ditto.
1890 * getopt1.c: Ditto.
1891 * md5.c: Ditto.
1892 * obstack.c: Ditto.
9d969b59 1893
c6da642e
DD
18942000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1895
1896 * bsearch.c: New file.
1897 * configure.in (funcs): Add bsearch.
1898 (AC_CHECK_FUNCS): Likewise.
1899 * configure, config.in: Regenerate.
1900
ae7d06ad 19012000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1902
1903 * safe-ctype.c: #include "ansidecl.h".
1904 * strtod.c: Likewise.
1905
ae7d06ad 19062000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1907
1908 * strtoul.c: Include safe-ctype.h, not ctype.h.
1909
ac424eb3
DD
19102000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1911
1912 * safe-ctype.c: New file.
1913 * Makefile.in (CFILES): Add safe-ctype.c.
1914 (REQUIRED_OFILES): Add safe-ctype.o.
1915
1916 * argv.c: Define ISBLANK and use it, not isspace.
1917 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1918 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1919 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1920 before calling TOLOWER(c)/TOUPPER(c).
1921
4415a860
DD
19222000-12-07 Mike Stump <mrs@wrs.com>
1923
1924 * Makefile.in (distclean): When cleaning, remove testsuite.
1925
849ee224
DD
19262000-12-05 Jason Merrill <jason@redhat.com>
1927
1928 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1929 name before allocating the dyn_string.
1930
ae7d06ad 19312000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1932
1933 * cp-demangle.c: s/new_abi/v3/.
1934 * cplus-dem.c: Likewise.
1935 (current_demangling_style): Now auto_demangling.
1936 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1937 (main): Use standard symbol chars for auto_demangling.
e49a569c 1938
ae7d06ad 19392000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1940
1941 * hashtab.c (higher_prime_number): Use a table, rather than a
1942 seive, to find the next prime.
ae7d06ad
NC
1943
19442000-11-22 H.J. Lu <hjl@gnu.org>
1945
1946 * cplus-dem.c (main): Handle gnat_demangling.
1947
19482000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1949
1950 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1951 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1952 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1953 argument form of AC_DEFINE in dummy definitions block. Use
1954 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1955 in dummy block. Preload cache variables instead of bypassing
1956 tests, where possible.
1957 * acconfig.h: Removed.
ae7d06ad 1958
2ea7befd
DD
1959 * xmalloc.c (xmalloc_failed): New function, does error
1960 reporting on failed allocation.
1961 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1962
f1775526
HPN
19632000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1964
1965 * cplus-dem.c (cplus_demangle): Fix formatting.
1966 (grow_vect): Ditto.
1967 (ada_demangle): Ditto.
1968 (internal_cplus_demangle): Ditto.
1969 (mop_up): Ditto.
1970
19712000-11-21 H.J. Lu <hjl@gnu.org>
1972
1973 * cplus-dem.c (main): Handle java_demangling.
1974
ae7d06ad 19752000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1976
1977 * cplus-dem.c (grow_vect): Prototype.
1978 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1979
5dd42ef4
HPN
19802000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1981
1982 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1983 parameter `option'.
1984
296731c1
DD
19852000-11-15 Kenneth Block <kenneth.block@compaq.com>
1986
8944fb9d 1987 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1988 be used in GCC.
1989
6e53a714 19902000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1991
5dd42ef4 1992 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1993 list.
1994
99a4c1bd
HPN
19952000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1996
1997 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1998 xcalloc depending on htab->return_allocation_failure. Return zero
1999 if calloc fails.
99a4c1bd
HPN
2000 (htab_create): Update comment to cover memory allocation.
2001 (htab_try_create): New.
2002 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 2003 Update comment to cover this.
99a4c1bd 2004
e0f3df8f
HPN
20052000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2006
2007 * hashtab.c: Change void * to PTR where necessary.
2008 (htab_create, htab_expand): Correct formatting of comment before
2009 function.
2010
ae7d06ad 20112000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
2012
2013 * cp-demangle.c (string_list_def): Add caret_position and comments.
2014 (result_caret_pos): New macro.
2015 (result_append_string): Rename to...
2016 (result_add_string): ... this, and insert at caret position.
ae7d06ad 2017 Rename throughout.
59666b35
DD
2018 (result_append): Rename to...
2019 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2020 throughout.
59666b35
DD
2021 (result_append_char): Rename to...
2022 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2023 throughout.
59666b35
DD
2024 (result_append_space): Remove.
2025 (string_list_new): Initialize caret position.
2026 (result_add_separated_char): Use caret position.
2027 (result_get_caret): New funtion.
2028 (result_set_caret): Likewise.
2029 (result_shift_caret): Likewise.
2030 (result_previous_char_is_space): Likewise.
2031 (substitution_start): Use caret position.
2032 (substitution_add): Likewise.
2033 (demangling_new): Initialize caret position.
2034 (demangle_encoding): Use caret position.
ae7d06ad 2035 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
2036 (demangle_type_ptr): Use switch statement. Handle pointers to
2037 arrays. Don't use result_append_space. Use caret position.
2038 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
2039 call to demangle_array_type.
2040 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2041
ae7d06ad 20422000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2043
2044 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2045
20462000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2047
2048 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2049
20502000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2051
2052 * splay-tree.c: #include <stdio.h>.
2053
20542000-09-14 Hans-Peter Nilsson <hp@axis.com>
2055
2056 * testsuite/demangle-expected: Add two tests for anonymous
2057 namespaces.
2058 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2059
20602000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2061
2062 * splay-tree.c (splay_tree_predecessor): New function.
2063 (splay_tree_successor): Likewise.
ae7d06ad
NC
2064
20652000-09-10 Hans-Peter Nilsson <hp@axis.com>
2066
2067 * testsuite/demangle-expected: Add four tests for type_info
2068 mangling.
2069 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2070 for a non-template non-qualified type_info function or node.
2071
20722000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2073
2074 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
2075
20762000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2077
2078 * md5.c: #include "ansidecl.h".
2079
20802000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2081
2082 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2083 (demangle_type): Handle substitution candidates correctly in the
2084 face of special substitutions.
ae7d06ad
NC
2085
20862000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2087
2088 * cp-demangle.c (demangle_encoding): Rename variable.
2089 (demangle_name): Rename parameter. Handle return type
2090 suppression.
2091 (demangle_nested_name): Rename parameter.
2092 (demangle_prefix): Likewise. Change return type suppression.
2093 (demangle_unqualified_name): Add parameter. Flag constructors and
2094 conversion operators.
2095 (demangle_special_name): Fix comment.
2096 (demangle_type): Rename variable.
2097 (demangle_bare_function_type): Check for missing return type and
2098 parameter.
2099 (demangle_class_enum_type): Rename parameter.
2100 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
2101
21022000-08-31 DJ Delorie <dj@redhat.com>
2103
2104 * configure.in (Cygwin): special case cygwin only when we're
2105 building cygwin, not when we're hosting cygwin.
2106
21072000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2108
2109 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2110 <expression>.
ae7d06ad
NC
2111
21122000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2113
2114 * cp-demangle.c (demangle_type_ptr): Increment position past
2115 pointer and reference characters.
ae7d06ad
NC
2116
21172000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2118
2119 * cp-demangle.c (demangle_nv_offset): New function.
2120 (demangle_v_offset): Likewise.
2121 (demangle_call_offset): Likewise.
2122 (demangle_special_name): Update thunk demangling to comply with
2123 ABI changes.
ae7d06ad
NC
2124
21252000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2126
2127 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2128 (substitution_def): Remove template_parm_number.
2129 (NOT_TEMPLATE_PARM): Remove.
2130 (result_insert_string): New macro.
2131 (result_insert): Likewise.
2132 (result_insert_char): Likewise.
2133 (substitution_add): Remove last parameter. Don't store template
2134 parm number.
2135 (BFT_NO_RETURN_TYPE): Define as NULL.
2136 (demangle_encoding): Adjust call to demangle_bare_function_type.
2137 (demangle_name): Adjust substitution. Adjust call to
2138 substitution_add.
2139 (demangle_prefix): Adjust call to substitution_add.
2140 (demangle_identifier): Handle anonymous namespaces.
2141 (demangle_operator_name): Change demangling of vendor-extended
2142 operator to match ABI changes.
2143 (demangle_type_ptr): Change parameters. Make recursive. Handle
2144 substitutions here.
2145 (demangle_type): Adjust calls to demangle_template_param,
2146 substitution_add, and demangle_type_ptr. Fix substitution of
2147 templated types.
2148 (demangle_function_type): Change parameter to a pointer.
2149 (demangle_bare_function_type): Likewise. Adjust insertion point.
2150 (demangle_template_param): Remove last parameter.
2151 (demangle_expr_primary): Remove unused variable. Adjust call to
2152 demangle_template_param.
2153 (is_mangled_char): Accept `$' and `.'.
2154 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2155 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
2156
21572000-08-31 Hans-Peter Nilsson <hp@axis.com>
2158
2159 * testsuite/demangle-expected: Add nine tests for
2160 underscore-after-number followed by five tests for name-signature
2161 delimiter.
2162
21632000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2164
2165 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2166
21672000-08-28 Jason Merrill <jason@redhat.com>
2168
2169 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2170 (CFILES): Add md5.c.
2171 * md5.c: New file.
2172
21732000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2174
2175 * cp-demangle.c (demangle_name): Initialize template_p in local
2176 name case. Don't re-add substitutions as candidates.
2177 (demangle_nested_name): Use <unqualified-name>.
2178 (demangle_prefix): Likewise. Don't add template names as
2179 substitution candidates twice, or re-add a substitution or the
2180 last prefix component.
2181 (demangle_local_name): Adjust output format.
ae7d06ad
NC
2182
21832000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2184
2185 * cp-demangle.c (result_add_separated_char): Change parameter to
2186 int.
2187 (substitution_add): Don't check for duplicates. Check if
2188 previously allocated size is zero.
2189 (demangle_name): Remove duplicate check for std substitution.
2190 Clear template flag appropriately.
2191 (demangle_prefix): Remove argument to demangle_substitution.
2192 Don't check that template flag is already set.
2193 (demangle_operator_name): Add pt operator.
2194 (demangle_type): Don't treat r as built-in type. Remove argument
2195 to demangle_substitution. Fix substitution candidate mechanics.
2196 Handle <template-template-parm>s. Improve comments.
2197 (demangle_template_param): Don't handle template arg lists here.
2198 (demangle_substitution): Remove parameter.
2199 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
2200
22012000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2202
2203 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2204
22052000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2206
2207 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2208 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2209 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
2210
22112000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2212
2213 * cp-demangle.c (result_close_template_list): Remove function.
2214 (result_add_separated_char): New function.
2215 (result_open_template_list): New macro.
2216 (result_close_template_list): Likewise.
2217 (demangle_prefix): Don't set template_p if the
2218 prefix ends with a ctor name.
2219 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2220 (demangle_type): Check for template args after substitution.
2221 (demangle_template_args): Use result_open_template_list.
d3e85005 2222
ae7d06ad 22232000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2224
ae7d06ad 2225 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2226
ae7d06ad 22272000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2228
2229 * config/mh-openedition.h: Added -DLE370 definition.
2230
a9f34fb6
JL
22312000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2232
2233 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2234 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2235 Cast program to 'char *' in errmsg_arg assignment.
2236 (PWAIT_ERROR): Define.
2237 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2238 to DJGPP's WIF* macros.
2239
90aaccd1 22402000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2241 Jeff Law <law@cygnus.com>
90aaccd1 2242
ae7d06ad 2243 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2244
90aaccd1 2245 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2246 * rename.c: Include config.h, unistd.h
2247 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2248
6ef554e3
HPN
22492000-07-24 Hans-Peter Nilsson <hp@axis.com>
2250
2251 * cplus-dem.c (work_stuff_copy_to_from): New.
2252 (delete_non_B_K_work_stuff): New.
2253 (delete_work_stuff): New.
2254 (mop_up): Break out work_stuff partly destruction to
2255 delete_non_B_K_work_stuff.
2256 (iterate_demangle_function): New.
2257 (demangle_prefix): Call iterate_demangle_function instead of
2258 demangle_function_name. Leave handling of name-signature
2259 __-delimiters to iterate_demangle_function.
2260 (demangle_integral_value): Strip an optional
2261 following underscore cautiously. Handle negative numbers.
2262
ae7d06ad 22632000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2264
ae7d06ad 2265 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2266 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2267
ae7d06ad
NC
22682000-07-21 Alex Samuel <samuel@codesourcery.com>
2269
2270 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2271 allocating ctor mangling.
2272 (demangle_array_type): Handle empty and non-constant array length.
2273
b1233257 22742000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
2275 Jeff Law <law@cygnus.com>
2276
2277 * configure.in (AC_CHECK_HEADERS): Add time.h.
2278 (AC_HEADER_TIME): Add check.
2279 * configure, config.in: Regenerate.
2280 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2281
2282 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2283 * configure, config.in: Regenerate.
2284 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2285 * strtol.c, strtoul.c: #include "config.h". Portably #include
2286 <limits.h> and/or <sys/param.h>.
2287 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 2288
7d3ffcaf
JL
2289 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2290 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2291 * configure, config.in: Regenerate.
2292 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2293
b1233257
JL
2294 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2295
ae7d06ad
NC
22962000-07-21 Mike Stump <mrs@wrs.com>
2297
2298 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
2299 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
2300
23012000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2302
2303 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2304
2305 * setenv.c (setenv): Initialize variable `ep'.
2306
2307 * sigsetmask.c (abort): Prototype.
2308
2309 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2310 __STDC__ for stdarg.h include.
2311 (int_vasprintf): Prototype.
2312 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2313 definition. Cast `global_total_width' in comparison.
2314 (main): Prototype. Return a value.
2315
2316 * vfork.c (fork): Prototype.
2317
2318 * xexit.c: Include config.h.
2319
9adf30b2
JL
23202000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2321
2322 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2323 and print it with %u.
2324
2ed78d1b
HPN
23252000-07-17 Hans-Peter Nilsson <hp@axis.com>
2326
2327 * testsuite/regress-demangle (failed test): Show result and
2328 expected output.
2329
0473bdf7
AH
23302000-07-07 Andrew Haley <aph@cygnus.com>
2331
2332 * cplus-dem.c (main): fflush() after emitting last char before
2333 waiting for input.
2334
03d5f569
JM
23352000-06-28 Alex Samuel <samuel@codesourcery.com>
2336
2337 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2338 (demangle_name): Handle <substitution> followed by
2339 <unqualified-template-name>.
2340 (demangle_type): Follow special substitutions with
2341 <class-enum-type>
2342 (demangle_subtitution): Set template_p for special substitutions.
2343 (main): Fix typos.
ae7d06ad 2344
03d5f569
JM
23452000-06-27 Alex Samuel <samuel@codesourcery.com>
2346
2347 * cp-demangle.c (demangle_special_name): Swap base and derived
2348 class when demangling construction vtables.
2349
23502000-06-21 Alex Samuel <samuel@codesourcery.com>
2351
2352 * cp-demangle.c: Don't include ctype.h.
2353 (IS_DIGIT): New macro.
2354 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2355 instead of isdigit and isalpanum.
2356 (demangling_def): Make name and next const pointers.
2357 (STATUS_ALLOCATION_FAILED): New status code.
2358 (dyn_string_append_space): Handle failure in
2359 dyn_string_append_char.
2360 (int_to_dyn_string): Likewise. Change return value to status_t.
2361 (string_list_new): Handle failure of dyn_string_init.
2362 (result_close_template_list): Change return type to status_t.
2363 Handle failure in dyn_string_append.
2364 (result_push): Change return value to status_t. Handle failure in
2365 string_list_new. Handle failure of result_push throughout.
2366 (substitution_add): Change return value to status_t. Handle
2367 dyn_string failures. Handle failure of substitution_add
2368 throughout.
2369 (template_arg_list_new): Return NULL on allocation failure.
2370 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2371 Handle error result throughout.
2372 (result_append): Likewise.
2373 (result_append_char): Likewise.
2374 (result_append_space): Likewise.
2375 (demangling_new): Make argument a const pointer. Handle
2376 allocation failures.
2377 (demangle_template_args): Handle failure in template_arg_list_new
2378 and result_close_template_list.
2379 (demangle_discriminator): Return if int_to_dyn_string fails.
2380 (cp_demangle): Likewise.
2381 (cp_demangle_type): New function.
2382 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2383 memory allocation failure.
2384 (main): Likewise.
2385 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2386 IN_LIBGCC2.
2387 (dyn_string_init): Change return value to int. Handle
2388 RETURN_ON_ALLOCATION_FAILURE case.
2389 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2390 (dyn_string_release): Delete the dyn_string.
2391 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2392 (dyn_string_copy): Change return type to int.
2393 (dyn_string_copy_cstr): Likewise.
2394 (dyn_string_prepend): Likewise.
2395 (dyn_string_prepend_cstr): Likewise.
2396 (dyn_string_insert): Likewise.
2397 (dyn_string_insert_cstr): Likewise.
2398 (dyn_string_append): Likewise.
2399 (dyn_string_append_cstr): Likewise.
2400 (dyn_string_append_char): Likewise.
2401 (dyn_string_substring): Likewise.
ae7d06ad 2402
eb383413 24032000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 2404
eb383413
L
2405 * cp-demangle.c (demangle_operator_name): Add spaces before
2406 names beginning with a letter: delete, delete[], new, new[],
2407 sizeof.
2408 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 2409
eb383413
L
2410Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2411
2412 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2413
2414Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2415
2416 * cp-demangle.c (stdio.h): File included unconditionaly.
2417 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2418 * dyn-string.c (stdio.h): File included.
2419 * partition.c (partition_print): No `&' needed to take the address of
2420 a function.
2421
24222000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2423
2424 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 2425
eb383413
L
2426 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2427
2428 * cp-demangle.c (demangle_char): Change parameter from char to int.
2429 (demangle_expression, demangle_expr_primary): Remove extra
2430 semi-colon in prototype.
2431
2432 * dyn-string.c (dyn_string_append_char): Change parameter from
2433 char to int.
2434
2435 * memcmp.c (memcmp): Constify.
2436
2437 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2438 __extension__.
2439
2440 * partition.c (elem_compare): Prototype. Don't cast away
2441 const-ness.
2442
2443 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 2444
eb383413
L
24452000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2446
2447 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2448
2449 * cp-demangle.c: Include demangle.h.
2450 (template_arg_list_new): DeANSIfy.
2451 (cp_demangle): Make static and add prototype.
2452 (operator_code, operators): Constify.
2453 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2454
24552000-06-05 Alex Samuel <samuel@codesourcery.com>
2456
2457 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2458 unsigned char.
2459 (demangle_unqualified_name): Likewise.
2460 (demangle_number_literally): Likewise.
2461 (demangle_type): Likewise.
2462 (demangle_substitution): Likewise.
2463 (is_mangled_char): Likewise, for isalnum.
2464
24652000-06-04 Alex Samuel <samuel@codesourcery.com>
2466
2467 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2468 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2469 (cp-demangle.o): New dependency.
2470 (dyn-string.o): Likewise.
2471
2472 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2473
2474 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2475 demangler.
2476 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2477 demangling mode.
2478 (gnu_new_abi_symbol_characters): New function.
2479 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2480 file.
2481 * cp-demangle.c: New file.
ae7d06ad 2482
f03aa80d
AC
2483Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2484
2485 * floatformat.c: Add name to each floatformat field.
2486
77bfb694
JL
2487Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2488
2489 * Makefile.in (objalloc.o): Depend on config.h
2490
5c82d20a
ZW
24912000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2492
eb383413 2493 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2494 if HAVE_STRING_H.
2495 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2496 * objalloc.c: Include config.h. Include stdlib.h and don't
2497 declare malloc or free if HAVE_STDLIB_H.
2498 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2499 else declare malloc without prototype. Include string.h if
2500 HAVE_STRING_H, else declare memset without prototype. Don't
2501 include stddef.h.
2502
eb383413
L
25032000-05-23 Mike Stump <mrs@wrs.com>
2504
2505 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2506 -j3.
eb383413
L
2507
25082000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2509
2510 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2511
25122000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2513
ae7d06ad 2514 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2515 probably zero, also eliminate a warning on alpha.
2516
25172000-05-15 David Edelsohn <edelsohn@gnu.org>
2518
2519 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2520 on $(enable_shared).
2521
25222000-05-10 Jakub Jelinek <jakub@redhat.com>
2523
2524 * config.table: Use mh-sparcpic for sparc*-*-*.
2525
25262000-05-08 Nick Clifton <nickc@cygnus.com>
2527
2528 * Makefile.in (CFILES): Add strncmp.c.
2529 (NEEDED): Add strncmp.
2530
25312000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2532
eb383413
L
2533 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2534 Cast the arguments to `islower' to `unsigned char'.
2535 (print_demangler_list): Prototype.
2536
2537Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2538
2539 * sort.c (UCHAR_MAX): Provide fallback definition.
2540
25412000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2542
2543 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2544 SUBDIRS.
2545
eb383413
L
25462000-04-28 Kenneth Block <block@zk3.dec.com>
2547 Jason Merrill <jason@casey.cygnus.com>
2548
ae7d06ad
NC
2549 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2550 (cplus_demangle_set_style): New function for setting style.
2551 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2552
25532000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2554
2555 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2556
2557 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2558 (libiberty_AC_FUNC_STRNCMP): Invoke.
2559
2560 * strncmp.c: New file.
2561
2562Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2563
2564 * hashtab.c (htab_expand): Add prototype.
2565 (find_empty_slot_for_expand): Likewise.
2566
25672000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2568
2569 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2570 match prototype.
2571 (htab_expand): Cast the return value of xcalloc.
2572
25732000-04-24 Mark Mitchell <mark@codesourcery.com>
2574
2575 * hashtab.c (hash_pointer): New function.
2576 (eq_pointer): Likewise.
2577 (htab_hash_pointer): New variable.
2578 (htab_eq_pointer): Likewise.
2579
25802000-04-23 Mark Mitchell <mark@codesourcery.com>
2581
2582 * sort.c (sort_pointers): Fix endianness bugs.
2583
2584 * sort.c: New file.
2585 * Makefile.in (CFILES): Add sort.c
2586 (REQUIRED_OFILES): Add sort.o.
2587 (sort.o): New target.
2588
19be4303
JL
25892000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2590
2591 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2592 4.3BSD systems.
2593
eb383413
L
2594Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2595
2596 * hashtab.c: Various minor cleanups.
2597 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2598 (htab_find_slot): Likewise.
2599
26002000-04-16 Dave Pitts <dpitts@cozx.com>
2601
2602 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2603
afe36a78
RH
26042000-04-05 Richard Henderson <rth@cygnus.com>
2605
2606 * splay-tree.c (splay_tree_remove): New.
2607
eb383413
L
26082000-03-30 Mark Mitchell <mark@codesourcery.com>
2609
2610 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2611 codes.
2612 (htab_find_with_hash): Likewise.
2613 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2614
eb383413
L
26152000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2616
2617 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2618 unless it will be used. Rearrange loop for better
2619 optimization.
2620 (higher_prime_number): Add static prototype.
2621
b4fe2683
JM
2622Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2623
2624 * Makefile.in (partition.o): Depend on config.h
2625
26262000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2627
2628 * hashtab.c (find_empty_slot_for_expand): New function.
2629 (htab_expand): Use it instead of htab_find_slot.
2630 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2631 argument HASH.
2632 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2633 (htab_find): New wrapper function.
2634 (htab_find_slot): Likewise.
2635 (htab_traverse): Pass slot, not entry, to called function.
2636
26372000-03-09 Alex Samuel <samuel@codesourcery.com>
2638
2639 * Makefile.in (CFILES): Add partition.c.
2640 (REQUIRED_OFILES): Add partition.o.
2641 (partition.o): New rule.
2642 * partition.c: New file.
ae7d06ad 2643
b4fe2683
JM
26442000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2645
2646 * hashtab.c (htab_create): Set del_f.
2647 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2648 Use it.
2649
26502000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2651
2652 * hashtab.c: Remove debugging variables (all_searches,
2653 all_collisions, all_expansions). Delete
2654 all_hash_table_collisions.
2655 (create_hash_table, delete_hash_table, empty_hash_table,
2656 find_hash_table_entry, remove_element_from_hash_table_entry,
2657 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2658 hash_table_elements_number, hash_table_collisions): Rename to:
2659 htab_create, htab_delete, htab_empty, htab_find_slot,
2660 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2661 htab_elements, htab_collisions.
2662 (htab_find): New function, handles common case where you don't
2663 plan to add or delete an entry.
2664 (htab_expand): Don't create a whole new table, just a new
2665 entry vector.
2666 (htab_find_slot): Simplify logic.
2667
08372f14
ILT
26681999-08-03 Ian Lance Taylor <ian@zembu.com>
2669
2670 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2671 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2672
2673 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2674 $(TARGETLIB)n so it works on MSDOS.
2675 (install_to_tooldir): Likewise.
2676
9c8ac5a9
ILT
26771999-07-21 Ian Lance Taylor <ian@zembu.com>
2678
2679 From Mark Elbrecht:
2680 * makefile.dos: Remove; obsolete.
8f36e47c 2681 * configure.bat: Remove; obsolete.
9c8ac5a9 2682
0c0a36a4
ILT
26831999-07-11 Ian Lance Taylor <ian@zembu.com>
2684
2685 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2686 warning.
2687
26882000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2689
2690 * pexecute.c: Conditionally include string.h.
b4fe2683 2691 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2692
26932000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2694
2695 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2696 we're using gcc.
2697
2698 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2699
27001999-12-27 Geoff Keating <geoffk@cygnus.com>
2701
2702 * vasprintf.c (int_vasprintf): Don't re-read the format character
2703 as this mishandles strings like '%%s'.
2704
27051999-12-05 Mark Mitchell <mark@codesourcery.com>
2706
2707 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2708 rather than struct splay_tree_node.
2709 (splay_tree_insert): Use struct splay_tree_s rather than struct
2710 splay_tree.
2711
2712Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2713
2714 * hashtab.c (sys/types.h): File included.
2715
27161999-11-22 Jason Merrill <jason@casey.cygnus.com>
2717
2718 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2719 BSD license, pursuant with
2720
2721 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2722
2723Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2724
2725 * hashtab.c: Include stdio.h.
2726
2727Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2728
2729 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2730
2731Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2732
2733 * xstrdup (sys/types.h): Include this file.
2734
27351999-10-28 Nathan Sidwell <nathan@acm.org>
2736
2737 * Makefile.in (SUBDIRS): New macro.
2738 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2739 avoid multiple subdirectory cleaning.
2740 (*-subdir): Use SUBDIRS.
2741
27421999-10-25 Jim Kingdon <http://developer.redhat.com/>
2743
2744 * cplus-dem.c: Move declarations of standard_symbol_characters and
2745 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2746 warnings.
2747
27481999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2749
2750 * hashtab.c (find_hash_table_entry): When returning a
2751 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2752 (clear_hash_table_slot): New function which deletes an entry
2753 by its position in the table, not its value.
2754 (traverse_hash_table): New function which calls a hook
2755 function for every live entry in the table.
2756
27571999-10-19 Mark Mitchell <mark@codesourcery.com>
2758
2759 * cplus-dem.c (INTBUF_SIZE): New macro.
2760 (string_append_template_idx): New function.
2761 (demangle_expression): Likewise.
2762 (demangle_integral_value): Use it.
2763 (demangle_real_value): New function, split out from ...
2764 (demangle_template_value_parm): ... here. Use
2765 string_append_template_idx. Use demangle_real_value.
2766 (demangle_template): Use string_append_template_idx.
2767 (demangle_qualified): Use consume_count_with_underscores.
2768 (get_count): Tweak formatting.
2769 (do_type): Use string_append_template_idx.
b4fe2683 2770
0c0a36a4
ILT
27711999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2772
2773 * calloc.c: Add a public domain notice.
2774
2775Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2776
2777 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2778
2779Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2780
2781 * Makefile.in (CFILES): Add hashtab.c
2782 (REQUIRED_OFILES): Add hashtab.o
2783 (hashtab.o): Add dependencies.
2784 * hashtab.c: New file
2785
2786Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2787
2788 * basename.c (DIR_SEPARATOR): New macro.
2789 (DIR_SEPARATOR_2): Likewise.
2790 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2791 (IS_DIR_SEPARATOR): Likewise.
2792 (main): Handle MSDOS style pathname.
2793
27941999-10-11 Mark Mitchell <mark@codesourcery.com>
2795
2796 * cplus-dem.c (do_type): Handle pointer to member types whose
2797 enclosing classes have namespace scope.
2798
2799Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2800
2801 * config.table: Provide a backup shell for executing move-if-change.
2802
28031999-10-02 Mark Mitchell <mark@codesourcery.com>
2804
2805 * xmalloc.c (xmalloc): Fix spelling error.
2806 (xcalloc, xrealloc): Likewise.
2807
28081999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2809
2810 * cplus-dem.c (fancy_abort, demangle_integral_value,
2811 demangle_arm_hp_template, recursively_demangle,
2812 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2813 (program_name, program_version, fatal): Constify a char*.
2814 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2815 (main): Call return, not exit.
2816
28171999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2818
2819 * choose-temp.c: Remove obsolete comment about gcc.
2820 (make_temp_file): Constify a char*.
2821
2822Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2823
2824 * xmemdup.c: Include sys/types.h.
2825
28261999-09-07 Jeff Garzik <jgarzik@pobox.com>
2827
2828 * xmemdup.c: New xmemdup function.
2829 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2830
2831Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2832
b4fe2683 2833 * config.table: Add openedition target.
0c0a36a4
ILT
2834 * config/mh-openedition: New file.
2835
2836Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2837
2838 * pexecute.c (pexecute): Fill in temp_base when needed.
2839
28401999-08-31 Richard Henderson <rth@cygnus.com>
2841
2842 * getpwd.c: Check HAVE_GETCWD before defining it away.
2843
28441999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2845
2846 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2847 (REQUIRED_OFILES): Add getpwd.o.
2848 (getpwd.o): Add target.
2849
2850 * configure.in (AC_PREREQ): Bump to 2.13.
2851 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2852
2853 * getpwd.c: New file, moved here from gcc.
2854
28551999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2856
2857 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2858 comparing against a signed quantity.
2859 (arm_special): Likewise.
2860 (demangle_fund_type): Likewise.
2861 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2862 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2863 (main): Constify variable `valid_symbols'.
2864
2865Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2866
2867 * strtoul.c (strtoul): Add parentheses around && within ||.
2868
2869Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2870
2871 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2872 libdir, libsubdir and tooldir.
2873
28741999-08-01 Mark Mitchell <mark@codesourcery.com>
2875
2876 * splay-tree.c (splay_tree_insert): Return the new node.
2877
35ca97ea
RH
28781999-07-14 Richard Henderson <rth@cygnus.com>
2879
b4fe2683 2880 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2881 prototyping directly.
2882 * choose-temp.c: Conditionally include string.h.
2883
0c0a36a4
ILT
28841999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2885
2886 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2887
af32ff69
ILT
28881999-07-11 Ian Lance Taylor <ian@zembu.com>
2889
2890 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2891 warning.
2892
0c0a36a4
ILT
28931999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2894
2895 * Makefile.in (needed-list): Only include stuff we actually need
2896 for libstdc++.
2897
28981999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2899
2900 * configure.in (checkfuncs): Add gettimeofday.
2901 * config.in, configure: Regenerated.
2902
2903Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2904
2905 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2906 the test fails.
2907 * configure: Regenerate.
2908
29091999-06-10 Mike Stump <mrs@wrs.com>
2910
2911 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2912 parallel builds.
2913
29141999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2915
2916 * putenv.c: Include ansidecl.h to define `const'.
2917 * setenv.c: Likewise.
2918
2919Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2920
2921 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2922 * configure.in (funcs): Add putenv and setenv.
2923 (AC_CHECK_FUNCS): Check for putenv and setenv.
2924 * configure: Rebuilt.
2925 * putenv.c setenv.c: New files.
2926
2927 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2928 bytes of space using malloc.
2929
2930Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2931
2932 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2933 the *mangled pointer beyond the end of the string. Clean up code to
2934 match prevailing coding style.
2935
29361999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2937
2938 * tmpnam.c (L_tmpnam): Fix typo.
2939
2940Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2941
2942 * cplus-dem.c (standard_symbol_characters): Renamed from
2943 standard_symbol_alphabet. No longer modify TABLE.
2944 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2945 modify TABLE.
2946 (main): Corresponding changes. Use strchr to determine if a
2947 character is valid.
2948
e9868447
JB
29491999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2950
2951 * cplus-dem.c (main): Use table lookup to distinguish identifier
2952 characters from non-identifier characters.
2953 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2954
33fbbfbc
RH
2955Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2956
2957 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2958 * getruntime.c: Only attempt to include sys/resource.h and
2959 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2960 are defined.
2961
0c0a36a4
ILT
2962Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2963
2964 * configure.in (alloca detection): Handle alloca directly for interix.
2965 * configure: Rebuilt.
2966
2967Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2968
2969 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2970
252b5132
RH
29711999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2972
2973 Fix from Dale Hawkins:
b4fe2683 2974 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2975 reallocated properly if we use it again.
2976
2977 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2978 stricter about syntax. Always null-terminate string.
2979
c1687039
ILT
2980Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2981
2982 * configure.in (checkfuncs): Check for sbrk.
2983 * config.in: Rebuilt.
2984 * configure: Likewise.
2985 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2986
0c0a36a4
ILT
29871999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2988
2989 Fix from Marcus Daniels:
2990 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2991 identifier looking for another underscore.
2992
2993Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2994
2995 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2996 * xmalloc.c: Likewise.
2997 (xcalloc): UWIN has sbrk.
2998 (xrealloc): Fix guard macro.
2999
252b5132
RH
30001999-04-11 Richard Henderson <rth@cygnus.com>
3001
3002 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3003 or <alloca.h>.
3004 * clock.c (GNU_HZ): New definition.
3005 (clock): Use it.
3006 * getruntime.c: Likewise.
3007
3008 * config.table: Use mh-beos.
3009 * config/mh-beos: New file.
3010
0c0a36a4
ILT
30111999-04-11 Mark Mitchell <mark@codesourcery.com>
3012
3013 * cplus-dem.c (demangle_template_value_parm): Handle
3014 pointers-to-members.
3015 (do_type): Handle template parameters as qualifiers.
3016
252b5132
RH
30171999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3018
3019 * cplus-dem.c: Attempt to handle overflows in counts with some
3020 semblance of grace.
3021 (consume_count): Detect overflows. Return -1 to indicate errors,
3022 instead of zero.
3023 (demangle_template_value_parm, demangle_template): Handle change
3024 to consume_count's return convention.
3025
0c0a36a4
ILT
30261999-04-05 Tom Tromey <tromey@cygnus.com>
3027
3028 * testsuite/regress-demangle: New file.
3029 * testsuite/demangle-expected: New file.
252b5132 3030
0c0a36a4
ILT
3031 * Makefile.in (all, check, installcheck, info, install-info,
3032 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3033 distclean, maintainer-clean, realclean): Depend on corresponding
3034 `-subdir' target.
3035 (all-subdir check-subdir installcheck-subdir info-subdir
3036 install-info-subdir clean-info-subdir dvi-subdir
3037 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3038 distclean-subdir maintainer-clean-subdir): New target.
3039 * testsuite/Makefile.in: New file.
3040 * configure: Rebuilt.
3041 * configure.in: Create testsuite/Makefile.
252b5132
RH
3042
30431999-04-02 Mark Mitchell <mark@codesourcery.com>
3044
3045 * splay-tree.h (splay_tree_compare_pointers): Define.
3046
30471999-03-30 Mark Mitchell <mark@codesourcery.com>
3048
3049 * splay-tree.c (splay_tree_compare_ints): Define.
3050
30511999-03-30 Tom Tromey <tromey@cygnus.com>
3052
3053 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3054 don't advance input pointer.
3055 (demangle_class_name): If consume_count didn't find a count, do
3056 nothing. Don't bother with `strlen' sanity check; consume_count
3057 does it for us.
3058
30591999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3060
3061 From Art Haas <ahaas@neosoft.com>:
3062 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3063 when doing arm or hp style.
3064 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 3065
252b5132
RH
3066Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3067
3068 * pexecute.c (__CYGWIN32__): Rename to
3069 (__CYGWIN__): this.
3070 * xmalloc.c: Likewise.
3071
3072 Changes to support i386-pc-uwin.
3073 * configure.in (*-*-uwin*): Workaround for vfork bug.
3074 * configure: Regenerate.
3075 * pexecute.c (pexecute): Be like standard Unix.
3076 (pwait): Likewise.
3077 * xmalloc.c (first_break): Define.
3078 (xmalloc_set_program_name): Use.
3079 (xmalloc): Use.
3080
3081Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3082
3083 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3084
3085Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3086
3087 * config.table: Check cygwin*, not cygwin32*.
3088
3089Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3090
3091 * Makefile.in: Change mkstemp -> mkstemps.
3092
3093Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3094
3095 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3096 * configure.in (funcs): Check for and conditionally add mkstemps to
3097 the list of functions libiberty will provide.
3098 * configure: Rebuilt.
b4fe2683 3099
252b5132
RH
3100Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3101
b4fe2683 3102 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3103 platforms that don't have HZ.
3104 * getruntime.c (HZ): Likewise.
3105
3106Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3107
3108 * Makefile.in (xstrdup.o): Depend on config.h.
3109
3110Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3111
3112 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3113 freeing it.
3114
3115Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3116
3117 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3118
3119Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3120
3121 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3122 splay-tree.o.
3123
31241999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3125
3126 * configure.in: Require autoconf 2.12.1 or higher.
3127
31281998-12-30 Michael Meissner <meissner@cygnus.com>
3129
3130 * random.c (NULL): Don't redefine NULL if it is already defined.
3131
3132Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3133
3134 * argv.c (buildargv): Cast the result of alloca in assignment.
3135
3136 * choose-temp.c: Include stdlib.h.
3137
3138 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
3139 (snarf_numeric_literal): Constify first parameter.
3140 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3141 int, not a char.
252b5132
RH
3142 (demangle_qualifier): Likewise.
3143 (demangle_signature): Cast the argument of a ctype function to
3144 unsigned char.
3145 (arm_pt): Add parens around assignment used as truth value.
3146 (demangle_arm_hp_template): Constify variable `args'.
3147 (do_hpacc_template_const_value): Cast the argument of a ctype
3148 function to unsigned char.
3149 (do_hpacc_template_literal): Remove unused variable `i'.
3150 (snarf_numeric_literal): Constify parameter `args'.
3151 Cast the argument of a ctype function to unsigned char.
3152
3153 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 3154 avoid ambiguous `else'.
252b5132
RH
3155
3156 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3157 `cstart' and `cend' to unsigned char. Cast the argument of macro
3158 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3159
3160 * objalloc.c (free): Add prototype.
3161
3162Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3163
3164 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3165
3166Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3167
3168 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3169 doesn't exist.
252b5132 3170 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3171
252b5132
RH
3172Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3173
3174 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3175 bumping the pointer we read from. Also prepend these codes,
3176 as we do in other places.
3177
31781998-12-18 Nick Clifton <nickc@cygnus.com>
3179
3180 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3181 'const char *' in order to match its usage when calling siblings.
3182 (snarf_numeric_literal): Make first arg 'const char **' in order
3183 to match usage.
3184
3185Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3186
3187 * choose-temp.c: Don't check IN_GCC anymore.
3188
3189 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3190 * memchr.c (memchr): Likewise.
3191 * memcpy.c (memcpy): Likewise.
3192 * memmove.c (memmove): Likewise.
3193
3194 * mkstemp.c: Don't check IN_GCC anymore.
3195 * pexecute.c: Likewise.
3196 * splay-tree.c: Likewise.
3197
3198 * strchr.c (strchr): Use `const', not `CONST'.
3199 * strrchr.c (strrchr): Likewise.
3200 * strtol.c (strtol): Likewise.
3201 * strtoul.c (strtoul): Likewise.
3202
3203Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3204 Elena Zannoni <ezannoni@cygnus.com>
3205 Stan Shebs <shebs@cygnus.com>
3206 Edith Epstein <eepstein@cygnus.com>
3207 Andres MacLeod <amacleod@cygnus.com>
3208 Satish Pai <pai@apollo.hp.com>
3209
3210 * HP aCC demangling support.
3211 * cplus-dem.c
3212 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
3213 demangling correctly when -edg specified; set the demangling style
3214 when user specifies 'edg'. Set strip_underscore to
3215 prepends_underscore, if not HPUXHPPA. Set
3216 current_demangling_style to hp_demangling if HPUXHPPA. Set
3217 current demangling style correctly if the switch is hp. Read
3218 label correctly also in the HP style case.
252b5132 3219 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3220 function.
252b5132 3221 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3222 style for this case is the same as ARM.
252b5132
RH
3223 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3224 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
3225 demangle_arm_pt.); check and set value of temp_start field in
3226 multiple places. Also, when ceching for end of template args,
3227 check to see if at end of static member of template class.
252b5132 3228 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3229 include template args in string defining class.
252b5132
RH
3230 (demangle_class_name): use demangel_arm_hp_template.
3231 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
3232 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3233 Handle EDG_DEMANGLING style. Handle constructor and destructor
3234 ops for HP style.
252b5132 3235 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3236 styles. global destructor and constructor for HP style are same
3237 as for ARM style. Same for local variables.
252b5132
RH
3238 (demangle_qualified): handle EDG_DEMANGLING style.
3239 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
3240 cases '1' - '9' : initialize the temp_start field to -1 and handle
3241 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3242 and AUTO_DEMANGLING styles. If expecting a function and managed
3243 to demangle the funct args, then handle the LUCID_DEMANGLING,
3244 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3245 class name after "Lnnn_ in HP style case. HP style too needs to
3246 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 3247 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3248 value param for HP/aCC.
252b5132 3249 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3250 literal parameter for HP aCC.
252b5132
RH
3251 (recursively_demangle): new function
3252 (snarf_numeric_literal): new function.
3253 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3254 to message.
252b5132
RH
3255
3256Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3257
3258 * pexecute.c: Remove obsolete ifdefed cygwin code.
3259
3260Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3261
3262 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3263 * cplus-dem.c: Likewise. Conform to libiberty.h.
3264 * pexecute.c: Likewise.
3265 * splay-tree.c: Likewise.
3266
32671998-11-25 Mike Stump <mrs@wrs.com>
3268
3269 * Makefile.in (splay-tree.o): Add config.h dependency.
3270
3271Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3272
3273 * configure.in: Use AC_PREREQ(2.12.1).
3274
32751998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3276
b4fe2683 3277 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3278
3279Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3280
3281 * mpw.c (mpw_access): Add missing parens.
3282
3283Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3284
3285 * configure.in: Call AC_HEADER_SYS_WAIT.
3286
3287 * pexecute.c: Include sys/wait.h when !IN_GCC.
3288
3289Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3290
3291 * pexecute.c: revert back to checking old Cygwin
3292 preprocessor symbol until some time has passed.
3293
3294Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3295
3296 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3297 since it will now support similar constructs.
3298
3299Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3300
3301 * configure.in: Check for calloc.
3302
3303 * calloc.c: New file.
3304
3305 * xmalloc.c (xcalloc): New function.
3306
3307Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3308
3309 *cplus-dem.c (demangle_prefix): Use the last "__"
3310 in the mangled name when looking for the signature. This allows
3311 template names to begin with "__".
3312
33131998-11-08 Mark Mitchell <mark@markmitchell.com>
3314
3315 * cplus-dem.c (type_kind_t): Add tk_reference.
3316 (demangle_template_value_parm): Handle it.
3317 (do_type): Use it for references, instead of tk_pointer.
3318
3319 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3320 not internal_cplus_demangle.
3321
3322Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3323
3324 * choose-temp.c: Don't include gansidecl.h.
3325 * mkstemp.c: Likewise.
3326 * pexecute.c: Likewise.
3327
3328Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3329
b4fe2683
JM
3330 * configure.in: detect cygwin* instead of cygwin32*
3331 * configure: regenerate
252b5132
RH
3332
3333Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3334
3335 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
3336 whether to include config.h. Possibly include unistd.h in the
3337 !IN_GCC case. Define VFORK_STRING as a printable function call
3338 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3339 defined, include vfork.h. If VMS is defined, define vfork()
3340 appropriately. Remove vfork check on USG, we're using autoconf.
3341 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3342 locally what string to use.
252b5132
RH
3343
33441998-10-26 Mark Mitchell <mark@markmitchell.com>
3345
3346 * splay-tree.c: Tweak include directives to make sure declarations of
3347 xmalloc and free are available.
3348
33491998-10-25 Mark Mitchell <mark@markmitchell.com>
3350
3351 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3352 anonymous namespaces.
3353
33541998-10-23 Mark Mitchell <mark@markmitchell.com>
3355
3356 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3357 with type_quals.
3358 (TYPE_UNQUALIFIED): New macro.
3359 (TYPE_QUAL_CONST): Likewise.
3360 (TYPE_QUAL_VOLATILE): Likewise.
3361 (TYPE_QUAL_RESTRICT): Likewise.
3362 (code_for_qualifier): New function.
3363 (qualifier_string): Likewise.
3364 (demangle_qualifier): Likewise.
3365 (internal_cplus_demangle): Use them.
3366 (demangle_signature): Likewise.
3367 (demangle_template_value_parm): Likewise.
3368 (do_type): Likewise.
3369 (demangle_fund_type)): Likewise.
3370
3371Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3372
3373 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3374 to match prototype.
3375
33761998-10-21 Mark Mitchell <mark@markmitchell.com>
3377
3378 * splay-tree.c: New file.
3379 * Makefile.in (CFILES): Add it.
3380 (REQUIRED_OFILES): Likewise.
3381 (splay-tree.o): Add dependencies.
3382
3383Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3384
3385 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3386 range of 'K' index.
3387
3388Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3389
3390 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3391
3392 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3393 `unsigned char'.
3394 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3395 comparing against one.
3396 (cplus_mangle_opname): Likewise.
3397 (demangle_integral_value): Cast argument of ctype macro to
3398 `unsigned char'.
3399 (demangle_template_value_parm): Likewise.
3400 (demangle_template): Initialize variable `bindex'. Cast the
3401 result of `strlen' to (int) when comparing against one. Remove
3402 unused variable `start_of_value_parm'.
3403 (demangle_class_name): Cast the result of `strlen' to (int) when
3404 comparing against one.
3405 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3406 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3407 when comparing against one.
3408 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3409 (get_count): Likewise.
3410 (do_type): Likewise. Cast the result of `strlen' to (int) when
3411 comparing against one.
3412 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3413 (demangle_function_name): Cast the result of `strlen' to (int)
3414 when comparing against one.
3415
3416 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3417 comparing against one.
3418
3419Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3420
b4fe2683
JM
3421 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3422 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3423 * config.in, configure: Rebuilt.
252b5132
RH
3424
3425 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3426 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3427 * config.in, configure: Rebuilt.
3428
3429Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3430
b4fe2683 3431 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
3432
3433Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3434
3435 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3436
3437Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3438
3439 * Merge egcs & devo libiberty.
3440