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