*** empty log message ***
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
58670637
DD
12004-03-09 Hans-Peter Nilsson <hp@axis.com>
2
3 * configure: Regenerate for config/accross.m4 correction.
4
758d77be
DD
52004-03-07 Andreas Jaeger <aj@suse.de>
6
7 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
8 prototypes.
9 (main): Initialize style.
10
74aee4eb
DD
112004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
12
2d733211
DD
13 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
14 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
15 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
16 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
17 short types to D_PRINT_DEFAULT. Change other integer types to use
18 new D_PRINT_* values where appropriate. Change float types to
19 D_PRINT_FLOAT.
20 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
21 values.
22 * testsuite/demangle-expected: Adjust two test cases.
23
24 * cp-demangle.c (d_print_function_type): Print a space before the
25 parenthesis around the function type in more cases.
26 * testsuite/demangle-expected: Adjust one test case.
27
099f84cf
DD
28 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
29 parentheses around a cast.
30 * testsuite/demangle-expected: Adjust two test cases to match new
31 output.
32
74aee4eb
DD
33 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
34
35 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
36 push more than one of the same CV-qualifier on the top of the
37 stack.
38 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
39 move the CV-qualifiers to apply to the element type instead.
40 (d_print_array_type): When checking the modifiers, keep looking
41 past ones which have been printed already.
42 * testsuite/demangle-expected: Add three test cases.
43
442004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
45
46 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
47 empty string correctly.
48
49 * cp-demangle.c (__cxa_demangle): It is not an error if status is
50 not NULL. It is an error if the mangled name is the same as a
51 built-in type name.
52 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
53 than cplus_demangle_v3.
54
55 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
56 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
57
f9375305
DD
582004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
59
60 * regex.c: Include <ansidecl.h>.
61 (regcomp): Cast i to int.
62 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
63
cbf0ee79
DD
642004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
65
66 * configure.ac: Add m4_pattern_allow(LIBOBJS).
67 * configure: Regenerate.
68
37254c9a
DD
692004-01-22 DJ Delorie <dj@redhat.com>
70
71 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
72 with explicit build rules.
73 (VPATH): Remove.
74 (.c.o): Poison.
75 * configure.ac (pexecute, LIBOBJS): Add ./ .
76 * maint-tool: Build dependencies with explicit rules.
77
211333f6
DD
782004-01-15 Kazu Hirata <kazu@cs.umass.edu>
79
80 * strdup.c (strdup): Constify the argument.
81
3795d586
DD
822004-01-14 Loren J. Rittle <ljrittle@acm.org>
83
84 * Makefile.in (distclean): Remove config.cache.
85
2d6520ee
DJ
862004-01-13 Daniel Jacobowitz <drow@mvista.com>
87
88 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
89 takes two parameters.
90 * cp-demint.c (cplus_demangle_fill_component): Likewise.
91
59727473
DD
922004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
93
94 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
95 defined, rename some functions which are to become static via
96 #define.
97 (CP_STATIC_IF_GLIBCPP_V3): Define.
98 (struct d_operator_info): Move definition to cp-demangle.h, and
99 rename to demangle_operator_info. Change all uses.
100 (enum d_builtin_type_print): Move definition to cp-demangle.h.
101 (struct d_builtin_type_info): Move definition to cp-demangle.h,
102 and rename to demangle_builtin_type_info. Change all uses.
103 (enum d_comp_type): Move definition to include/demangle.h, and
104 rename to demangle_component_type, and change all enums to start
105 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
106 (struct d_comp): Move definition to include/demangle.h, and rename
107 to demangle_component. Change all uses.
108 (struct d_info): Move definition to cp-demangle.h.
109 (cplus_demangle_fill_name): New function.
110 (cplus_demangle_fill_extended_operator): New function.
111 (cplus_demangle_fill_ctor): New function.
112 (cplus_demangle_fill_dtor): New function.
113 (d_make_empty): Remove type parameter. Change all callers.
114 (d_make_name): Use cplus_demangle_fill_name.
115 (d_make_extended_operator): Use
116 cplus_demangle_fill_extended_operator.
117 (d_make_ctor): Use cplus_demangle_fill_ctor.
118 (d_make_dtor): Use cplus_demangle_fill_dtor.
119 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
120 non-static by default. Change all callers.
121 (cplus_demangle_operators): Rename from d_operators. Change all
122 uses. Make non-static by default. Add sentinel at end of array.
123 (d_operator_name): Adjust initialization of high for new sentinel
124 in cplus_demangle_operators.
125 (cplus_demangle_builtin_types): Rename from d_builtin_types.
126 Change all uses. Make non-static by default. Change initializer
127 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
128 (cplus_demangle_type): Rename from d_type. Make non-static by
129 default. Change all callers.
130 (cplus_demangle_init_info): Rename from d_init_info. Make
131 non-static by default. Change all callers.
132 * cp-demangle.h: New file.
133 * cp-demint.c: New file.
134 * Makefile.in: Rebuild dependencies.
135 (CFILES): Add cp-demint.c.
136 (REQUIRED_OFILES): Add cp-demint.o.
137
1a79b024
DD
1382004-01-09 Kelley Cook <kcook@gcc.gnu.org>
139
140 * configure.in: Rename file to ...
141 * configure.ac: ... this.
142 * Makefile.in: Update a comment for above change.
143 * README: Likewise.
144 * config.in: Regenerate.
145
820542c9
DD
1462004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
147
148 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
149 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
150 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
151 demangling template parameters.
152 * testsuite/test-demangle.c (fail): New static function.
153 (main): Support new options in input file: --no-params,
154 --is-v3-ctor, and --is-v3-dtor.
155 * testsuite/demangle-expected: Add --no-params to most tests, and
156 add the correct result when parameters are not demangled. Add
157 some simple tests for V3 constructor/destructor recognition.
158
2f9c4058
DD
1592003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
160
161 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
162
4fd47f10
DJ
1632003-12-22 Daniel Jacobowitz <drow@mvista.com>
164
165 PR debug/13272
166 * Makefile.in (lbasename.o): Depend on filenames.h.
167 * lbasename.c: Include "filenames.h" instead of defining
168 its macros locally.
169
b6fb00c0
DD
1702003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
171
172 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
173 dynamic arrays.
174 (struct d_operator_info): Add len field.
175 (struct d_builtin_type_info): Add len and java_len fields.
176 (struct d_standard_sub_info): Add simple_len, full_len, and
177 set_last_name_len fields.
178 (struct d_comp): Add len field to s_string.
179 (struct d_info): Add send, did_subs, and expansion fields.
180 (d_append_string_constant): Define.
181 (d_append_string): Remove. Change all users to use
182 d_append_string_constant or d_append_buffer instead.
183 (d_make_sub): Add len parameter. Change all callers.
184 (d_name): Increase expansion when substituting std::.
185 (d_unqualified_name): Increase expansion for an operator.
186 (d_number): Don't use multiplication for negative numbers.
187 (d_identifier): Make sure there are enough characters in the
188 string for the specified length. Adjust expansion for an
189 anonymous namespace.
190 (d_operators): Initialize len field.
191 (d_special_name, d_ctor_dtor_name): Increase expansion.
192 (d_builtin_types): Initialize len and java_len fields.
193 (d_type): Increase expansion for a builtin type.
194 (d_cv_qualifiers): Increase expansion for each qualifier.
195 (d_bare_function_type): Decrease expansion when removing single
196 void parameter.
197 (d_template_param): Increment did_subs.
198 (d_expression): Increase expansion for an operator.
199 (d_expr_primary): Decrease expansion for a type we will print
200 specially.
201 (standard_subs): Initialize new fields.
202 (d_substitution): Increment did_subs when doing a normal
203 substitution. Increase expansion for a special substitution.
204 (d_print): Add estimate parameter. Change all callers.
205 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
206 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
207 (d_print_java_identifier): Rename from d_print_identifier. Handle
208 only Java case. Change caller.
209 (d_init_info): Change return type to void. Change all callers.
210 Initialize send, did_subs, and expansion fields. Do not
211 initialize comps and subs fields.
212 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
213 arrays on stack. Make an estimate of the length of the demangled
214 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
215 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
216 subs arrays on stack.
217
2730f651
DD
2182003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
219
220 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
221 after the identifier.
222 * testsuite/demangle-expected: Add test case.
223
d4edd112
DD
2242003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
225
226 Fix for PR c++/13447:
227 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
228 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
229 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
230 D_COMP_QUAL_NAME.
231 (is_ctor_or_dtor): Likewise.
232 (d_local_name): Use D_COMP_LOCAL_NAME rather than
233 D_COMP_QUAL_NAME.
234 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
235 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
236 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
237 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
238 * testsuite/demangle-expected: Add two test cases.
239
240 * cp-demangle.c (d_print_function_type): Clear the global modifier
241 list when printing the modifiers, not just when printing the
242 function parameters.
243 * testsuite/demangle-expected: Add two test cases.
244
d35d0cd4
DD
2452003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
246
247 * cp-demangle.c (d_print_function_type): Print the function
248 parameters with no modifiers.
249 * testsuite/demangle-expected: Add test case.
250
251 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
252 expect that we've read the entire string.
253 (is_ctor_or_dtor): Don't expect that we've read the entire
254 string--reverse patch of 2003-11-29.
255
09e9708c
DD
2562003-12-15 Brendan Kehoe <brendan@zen.org>
257
258 * libiberty/Makefile.in (floatformat.o): Add dependency on
259 config.h to accompany change of 2003-12-03.
260
97ceaf5b
DD
2612003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
262
263 Fix handling of constructor/destructor of standard substitution:
264 * cp-demangle.c (struct d_standard_sub_info): Define.
265 (d_substitution): Add prefix argument. Change all callers.
266 Rework handling of standard substitutions to print full name when
267 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
268 * testsuite/demangle-expected: Add test case.
269
270 Fix handling of negative literal constants:
271 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
272 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
273 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
274 (d_print_comp): Handle D_COMP_LITERAL_NEG.
275 * testsuite/demangle-expected: Add test case.
276
858b45cf
DD
2772003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
278
279 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
280 (d_last_char): Define new macro.
281 (d_make_name): Reject an empty name.
282 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
283 (d_substitution, d_print_identifier): Likewise.
284 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
285 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
286 (d_print_mod) Use new d_last_char macro.
287 (d_print_cast): Use new d_last_char macro.
288 (is_ctor_or_dtor): Don't leak memory.
289
290 Fix handling of member function modifiers:
291 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
292 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
293 (d_dump): Dump new d_comp_type values.
294 (d_make_comp): Accept new d_comp_type values.
295 (has_return_type): Only accept _THIS variants of qualifiers.
296 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
297 qualifiers.
298 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
299 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
300 qualifiers and printing them at the end, add _THIS qualifiers to
301 the modifier list.
302 (d_print_comp) [D_COMP_*_THIS]: New cases.
303 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
304 qualifiers.
305 (d_print_mod_list): Add suffix parameter. Change all callers.
306 Keep walking the list even if the current modifier has been
307 printed.
308 (d_print_mod): Handle new _THIS qualifiers.
309 (d_print_function_type): Handle new _THIS qualifiers when deciding
310 whether to print a parenthesis. Put a space before the
311 parenthesis in some cases. Call d_print_mod_list again at the
312 end, passing suffix as 1.
313 (is_ctor_or_dtor): Look for new _THIS qualifiers.
314 * testsuite/demangle-expected: Add test case.
315
316 Fix for PR gcc/13304:
317 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
318 before the '<' is itself a '<', insert a space.
319 (d_print_cast): Likewise.
320 * testsuite/demangle-expected: Add test case.
321
322 Fix for PR gcc/13244:
323 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
324 which uses the '>' operator in an extra layer of parens.
325 * testsuite/demangle-expected: Add test case.
326
b52927b7
DD
3272003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
328
329 * floatformat.c: Include "config.h" and <string.h> if available.
330 (INFINITY, NAN): Define if not defined by <math.h>.
331 (floatformat_to_double): Handle NaN, infinity, and denormalized
332 numbers.
333 (floatformat_from_double): Likewise.
334 (ieee_test): In debugging code, use little endian rather than big
335 endian. Correct tests to handle NaN and to check correct sign of
336 zero. Omit m68k extended test.
337 (main): Add more debugging cases.
338
24afc00d
DD
3392003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
340
341 * cp-demangle.c (d_demangle): Only return success if we consumed
342 the entire demangled string.
343 (is_ctor_or_dtor): Likewise.
344
345 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
346 to restore expected result of EDG test case to original expected
347 result.
348
331c3da2
DD
3492003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
350
351 * cp-demangle.c (struct d_print_mod): Add templates field.
352 (d_make_builtin_type): Check for NULL type.
353 (d_make_extended_operator): Check for NULL name.
354 (d_make_ctor, d_make_dtor): Likewise.
355 (d_mangled_name): Add top_level parameter. Change all callers.
356 (d_encoding): If DMGL_PARAMS is not set, strip off initial
357 CV-qualifiers.
358 (d_type): Check some return values we rely on.
359 (d_bare_function_type, d_array_type): Likewise.
360 (d_pointer_to_member_type, d_template_args): Likewise.
361 (d_add_substitution): Fail if argument is NULL.
362 (d_print_resize): Check whether buf is NULL.
363 (d_print_comp): Save current templates list with each modifier.
364 Don't pass the modifier list down when printing a template.
365 (d_print_cast): Don't pass the modifier list down when printing a
366 template.
367 (d_print_mod_list): Temporarily set templates list while printing
368 a modifier.
369 (d_print_mod): Check that buf is not NULL before using it.
370 (d_print_function_type): Print parens if there is no modifier.
371 (d_init_info): Permit as many substitutions as there are
372 characters in the mangled name.
373 * testsuite/demangle-expected: Add two new test cases.
374
51948b34
DD
3752003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
376
377 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
378 d_demangle.
379
6d95373e
DD
3802003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
381
382 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
383 callers.
384 (print_usage): Display new -p option.
385 (long_options): Add --no-params.
386 (main): Accept and handle -p.
387
54a962d9
DD
3882003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
389
390 * cp-demangle.c (has_return_type): Skip qualifiers when checking
391 whether we have a template.
392 * testsuite/demangle-expected: Add four new tests.
393
8fe0d347
DD
3942003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
395
396 * testsuite/demangle-expected: Minor changes to match output of
397 new demangler: adjust whitespace in four tests, and change order
398 of qualifiers in one test.
399
400 * cp-demangle.c: Complete rewrite.
401
dd9d4b48
DD
4022003-11-19 Mark Mitchell <mark@codesourcery.com>
403
404 * cp-demangle.c (demangle_type): Correct thinko in substitution
405 processing.
406
0976f6a7
DD
4072003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
408
409 * cp-demangle.c (demangle_operator_name): Remove space before
410 "sizeof".
411 (demangle_type_ptr): Put qualifiers in the right place. Handle
412 qualifiers in pointer to member specially.
413 (demangle_type): Handle qualifiers for pointer or reference
414 specially. Handle function type.
415 (demangle_local_name): Save and restore caret around demangling of
416 initial encoding.
417
418 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
419 cplus_demangle.
420
421 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
422
e7e6980b
DD
4232003-10-31 Andreas Jaeger <aj@suse.de>
424
425 * floatformat.c (floatformat_always_valid): Add unused attribute.
426
97ceaf5b
DD
4272003-10-30 Josef Zlomek <zlomekj@suse.cz>
428
429 Jan Hubicka <jh@suse.cz>
430 * vasprintf.c (int_vasprintf): Pass va_list by value.
431 Use va_copy for copying va_list.
432 (vasprintf): Pass va_list by value.
433
686e72d7
DD
4342003-10-30 Josef Zlomek <zlomekj@suse.cz>
435
436 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
437 instead of increasing n_elements when inserting to deleted slot.
438
eec65ede
JB
4392003-10-20 J. Brobecker <brobecker@gnat.com>
440
441 * cplus-dem.c (demangle_template): Register a new Btype only
442 when needed.
443 * testsuite/demangle-expected: Add a new test.
444
cd275bff
L
4452003-10-16 H.J. Lu <hongjiu.lu@intel.com>
446
447 * testsuite/demangle-expected: Update the expected output of
448 _GLOBAL__I__Z2fnv.
449
e3b1168e
DJ
4502003-10-02 Daniel Jacobowitz <drow@mvista.com>
451
452 * strerror.c: Revert last change. Declare static sys_nerr
453 and sys_errlist using different names.
454
efb150d5
DJ
4552003-10-01 Daniel Jacobowitz <drow@mvista.com>
456
457 * strerror.c: Don't provide or reference sys_errlist if
458 strerror is available.
459
b7ca9213
L
4602003-10-01 H.J. Lu <hongjiu.lu@intel.com>
461
462 * configure.in: Check if $MAKEINFO is missing.
463 * configure: Regenerated.
464
8ddbb593
DJ
4652003-09-24 Daniel Jacobowitz <drow@mvista.com>
466
467 * configure.in: Use AC_PROG_CPP_WERROR.
468 * configure: Regenerated.
469
5324d185
AC
4702003-09-22 Andrew Cagney <cagney@redhat.com>
471
472 * floatformat.c (floatformat_i387_ext_is_valid): New function.
473 (floatformat_always_valid): New function.
474 (floatformat_i387_ext): Initialize new "is_valid" field to
475 "floatformat_i387_ext_is_valid".
476 (floatformat_ieee_single_little): Initialize "is_valid" field to
477 floatformat_always_valid.
478 (floatformat_ieee_double_big): Ditto.
479 (floatformat_ieee_double_little): Ditto.
480 (floatformat_ieee_double_little): Ditto.
481 (floatformat_ieee_double_littlebyte_bigword): Ditto.
482 (floatformat_i960_ext): Ditto.
483 (floatformat_m88110_ext): Ditto.
484 (floatformat_m88110_harris_ext): Ditto.
485 (floatformat_arm_ext_big): Ditto.
486 (floatformat_arm_ext_littlebyte_bigword): Ditto.
487 (floatformat_ia64_spill_big): Ditto.
488 (floatformat_ia64_spill_little): Ditto.
489 (floatformat_ia64_quad_big): Ditto.
490 (floatformat_ia64_quad_little): Ditto.
491 (floatformat_ia64_quad_little): Ditto.
492 (floatformat_is_valid): Call "is_valid".
493
34f4a113
AC
4942003-09-15 Andrew Cagney <cagney@redhat.com>
495
496 * floatformat.c (get_field): Make "data" constant.
497 (floatformat_is_valid, floatformat_to_double): Make "from"
498 constant, fix casts.
499 (floatformat_from_double): Make "from" constant.
500
3f2aacaf
DJ
5012003-09-15 Daniel Jacobowitz <drow@mvista.com>
502
503 * floatformat.c (floatformat_is_valid): New function.
504 (get_field, put_field): Correct comments.
505
aae66b9f
DD
5062003-09-06 Josef Zlomek <zlomekj@suse.cz>
507
508 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
509 FIBHEAPKEY_T.
510
60b04ee8
DD
5112003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
512
513 PR bootstrap/12100
514 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
515 * configure: Rebuilt.
516
2299a76d
DJ
5172003-08-27 Daniel Jacobowitz <drow@mvista.com>
518
519 * aclocal.m4: Include acx.m4 and no-executables.m4.
520 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
521 (LIB_AC_PROG_CC): Remove.
522 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
523 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
524 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
525 performing link tests.
526 * configure: Regenerated.
527
9ad1aa29
DD
5282003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
529
530 * cp-demangle.c: Clarify what package(s) this is part of.
531
dbb9d0f3
DD
5322003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
533
534 * pex-win32.c (pexecute): Mark parameters this_pname and
535 temp_base as unused. Remove unused variables retries,
536 sleep_interval. Initialize org_stdin, org_stdout.
537 (pwait): Mark parameter flags as unused.
538
5392003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
540
541 * pex-win32.c (fix_argv): Ensure that the executable pathname
542 uses Win32 backslashes.
543 (pexecute): Cast away constness when assigning *errmsg_arg.
544
78c5b0a5
L
5452003-06-26 H.J. Lu <hongjiu.lu@intel.com>
546
547 * testsuite/demangle-expected: Add more GNU V3 testcases.
548
70ecf948
DD
5492003-06-22 Zack Weinberg <zack@codesourcery.com>
550
551 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
552 not HC_ASCII and HC_EBCDIC.
553 Add documentation in form expected by gather-docs.
554 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
555 * Makefile.in, functions.texi: Regenerate.
556
cbc0188b
DD
5572003-06-21 Zack Weinberg <zack@codesourcery.com>
558
559 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
560 for charset determination.
561
5f73c378
DD
5622003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
563
564 * configure.in: Add check for malloc.h needed by
565 m68k for function free().
566 * configure: Regenerated.
567 * config.in: Add HAVE_MALLOC_H.
568 * hashtab.c: include malloc.h were available for
569 free().
570
e69f6c8c 5712003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 572
e69f6c8c
DD
573 PR bootstrap/10974
574 * physmem.c: Update comment.
575 * configure.in: Modify test for _system_configuration for older
576 AIX systems.
577
578 * config.in, configure: Regenerated.
cbc0188b 579
54c60684
DD
5802003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
581
582 PR other/10810
583 * test-demangle.c (getline): Fix fence-post error.
584
5a4e47bd
NC
5852003-06-03 Nick Clifton <nickc@redhat.com>
586
587 * asprintf.c: Change comment to note that -1 is returned upon
588 error.
589 * vasprintf.c: Likewise.
590 (vasprintf): Return -1 upon error.
591 * functions.texi: Document changes to asprintf and vasprintf.
592
916f5d13
DD
5932003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
594
595 * config.table: Accept i[345867]86 variant.
596
e4f79046
JB
5972003-05-15 Jim Blandy <jimb@redhat.com>
598
599 * hex.c (_hex_value): Make this unsigned.
600 (hex_value): Update documentation for new return type. hex_value
601 now expands to an unsigned int expression, to avoid unexpected
602 sign extension when we store it in a bfd_vma, which is larger than
603 int on some platforms.
604 * functions.texi: Regenerated.
605
0f3538e7
DD
6062003-05-07 Josef Zlomek <zlomekj@suse.cz>
607
608 * splay-tree.c (splay_tree_predecessor): Fix comment.
609 (splay_tree_successor): Fix comment.
610
7108c5dc
JM
6112003-05-07 Jason Merrill <jason@redhat.com>
612
eafaf5eb 613 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
614 * configure.in: Add AC_C_BIGENDIAN_CROSS.
615 * aclocal.m4: Include accross.m4.
616 * configure, config.in: Regenerate.
617
0b555173
DD
6182003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
619
620 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
621 * configure: Regenerate.
622
8730135a
DD
6232003-05-03 Carlo Wood <carlo@alinoe.com>
624
625 * cp-demangle.c: Fix typo in "char_traints" string-literal.
626
341eccbc
DD
6272003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
628
629 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
630 (main): Test that we don't write too much data.
631
2ed1e5cc
DD
6322003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
633
634 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
635 vsnprintf.
636 * snprintf.c, vsnprintf.c: New files.
637 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
638 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
639 Regenerate dependencies.
640
641 * functions.texi, configure, config.in: Regenerated.
642
10b57b38
DD
6432003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
644
645 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
646 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
647 and stpncpy.
648 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
649 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
650 Regenerate dependencies.
651
652 * functions.texi, configure, config.in: Regenerated.
653
ff773b85
DD
6542003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
655
656 * argv.c: Fix comments.
657 * calloc.c: Don't unnecessarily include "libiberty.h".
658 (bzero): Add prototype.
659 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
660 * getcwd.c (getcwd): Use standard definition to avoid conflicts
661 with system headers.
662 * hashtab.c (htab_traverse): Delete unused variables.
663 * rename.c: Include "ansidecl.h".
664 (rename): Use standard definition to avoid conflicts with system
665 headers.
666 * strsignal.c: Rely on ANSI_PROTOTYPES.
667 * strstr.c: Check GNUC >= 2, not GNUC == 2.
668 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
669 * vprintf.c: Include "ansidecl.h" earlier, rely on
670 ANSI_PROTOTYPES.
671 * vsprintf.c: Include "ansidecl.h" earlier, rely on
672 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 673
ff773b85
DD
674 * Makefile.in: Regenerate dependencies.
675
bb325820
DD
6762003-04-15 DJ Delorie <dj@redhat.com>
677
678 * maint-tool (deps): Scan for headers in $srcdir also.
679
258a4893
DD
6802003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
681
682 PR target/10338
683 PR bootstrap/10198
684 PR bootstrap/10140
685 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
686 __mempcpy.
687 * regex.c (regerror): Likewise.
688
ff773b85
DD
6892003-04-14 Roger Sayle <roger@eyesopen.com>
690
691 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
692 * memchr.c: Likewise.
693 * strcasecmp.c: Likewise.
694 * strncasecmp.c: Likewise.
695 * strncmp.c: Likewise.
696 * xatexit.c: Likewise.
697 * xmalloc.c: Likewise.
698
699 * copysign.c: Use traditional function declaration instead of DEFUN.
700 * sigsetmask.c: Likewise.
701
702 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
703 * memset.c: Likewise.
704
705 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
706 * memmove.c: Likewise.
707
eec539c7
DD
7082003-04-14 Roger Sayle <roger@eyesopen.com>
709
710 * strdup.c (strdup): Tweak implementation to use memcpy.
711
daf7c4ad
DD
7122003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
713
714 * configure.in (HAVE_UINTPTR_T): Always define.
715 * configure: Regenerated.
716
aa072e59
AO
7172003-03-23 Alexandre Oliva <aoliva@redhat.com>
718
719 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
720 instead of $$CC alone.
721 (install_to_tooldir): Use it.
722
f77ed96c
DD
7232003-17-03 Jan Hubicka <jh@suse.cz>
724
725 * hashtab.c (htab_traverse_noresize): Break out from ...
726 * hashtab.c (htab_traverse): ... here.
727
2336e177
DD
7282003-12-03 Jan Hubicka <jh@suse.cz>
729
730 * hashtab.c (htab_expand): Fix warning.
731
732 * hashtab.c (htab_expand): Compute the size of hashtable based
733 on the number of elements actually used.
734 (htab_traverse): Call htab_expand when table is too empty.
735
d8cbbf95
DD
7362003-03-11 Carlo Wood <carlo@gnu.org>
737
738 * cplus-dem.c (demangle_integral_value): Correction to reflect
739 patch of 2002-01-10 in order to also make negative multi-digits
740 without leading underscore work.
741
a01fefeb
DD
7422003-03-03 Mark Mitchell <mark@codesourcery.com>
743
744 * cplus-dem.c: Add license exception to copyright notice.
745
638ceb1a
DD
7462003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
747
748 * physmem.c: Formatting changes from upstream.
749
ef803806
DD
7502003-02-24 Danny Smith <dannysmith@users.source.forge.net>
751
752 * physmem.c (physmem_total): Add _WIN32 support.
753 (physmem_available): Likewise.
754
181fa229
DD
7552003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
756
757 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
758 GSI_PHYSMEM.
759 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
760
cc529274
DD
7612003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
762
763 * configure.in: Check for sys/systemcfg.h and
764 _system_configuration.
765 * physmem.c: Add support for AIX. Tweek formatting as per
766 upstream coreutils beta.
767
7682003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
769 Richard Earnshaw <rearnsha@arm.com>
770 Geoffrey Keating <geoffk@apple.com>
cbc0188b 771
cc529274
DD
772 * configure.in: Check for sys/sysctl.h and sysctl.
773 * physmem.c: Add support for *bsd and darwin.
774 * Makefile.in: Generate depedency for physmem.o.
775
192cbe66
DD
7762003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
777
778 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
779 Tru64 UNIX.
780 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
781 Tru64 UNIX.
782
783 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
784 machine/hal_sysinfo.h, sys/table.h.
785 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
786 * configure, config.in: Regenerate.
787
ff773b85
DD
7882003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
789
790 * configure.in: Check for sys/sysmp.h and sysmp.
791 * physmem.c: Pull upstream copy, add support for irix6.
792
793 * config.in, configure: Regenerated.
794
900d2082
DD
7952003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
796
797 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
798 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
799 pstat_getdynamic.
cbc0188b 800
4938384a
DD
8012003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
802
803 * Makefile.in (CFILES): Add physmem.c.
804 (REQUIRED_OFILES): Add physmem.o.
805 * configure.in: Check for sys/pstat.h.
806 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
807 * physmem.c: New file, copied from textutils.
808
809 * config.in, configure: Regenerated.
810
ba61a412
DJ
8112003-02-20 Daniel Jacobowitz <drow@mvista.com>
812
813 * Makefile.in (CFILES): Add lrealpath.c.
814 (REQUIRED_OFILES): Add lrealpath.o.
815 (lrealpath.o): Add rule.
816 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
817 * configure.in: Add realpath and canonicalize_file_name to
818 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
819 for canonicalize_file_name.
820 * lrealpath.c: New file.
821 * make-relative-prefix.c: Update documentation.
822 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
823 * config.in: Regenerated.
824 * configure: Regenerated.
825 * functions.texi: Regenerated.
826
25dfe0ac
DD
8272003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
828
829 * cplus_dem.c: Fix typo: intializes -> initializes.
830
8b90eef4
AO
8312003-02-20 Alexandre Oliva <aoliva@redhat.com>
832
833 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
834 config.status.
835 * configure: Rebuilt.
836
fcd7c7c9
DD
8372003-02-13 Daniel Jacobowitz <drow@mvista.com>
838
839 Fix PR c++/7612.
840 * cplus-dem.c (demangle_signature): Call string_delete.
841 Remove extra string_init.
842 (demangle_arm_hp_template): Call string_delete instead of
843 string_clear. Add missing string_delete call.
844 (demangle_qualified): Add missing string_delete call.
845 (do_type): Remove unused variable btype. Add missing string_delete
846 call. Call string_delete instead of string_clear.
847 (demangle_fund_type): Move variable btype inside of the switch
848 statement. Add missing string_delete call.
849 (do_arg): Call string_delete instead of string_clear. Remove extra
850 string_init.
851 (demangle_nested_args): Free work->previous_argument.
852
073c427b
DD
8532003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
854
855 * acconfig.h: New file. Add uintptr_t.
856 * config.in: Regenerated.
857
f8bd3000
DD
8582003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
859
860 * libiberty.texi: Update to GFDL 1.2.
861
85b9a938
DD
8622003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
863
864 * Makefile.in (libiberty_topdir): New subst.
865 (mkinstalldirs): Redefine in terms of the above.
866 * configure.in: AC_SUBST it.
867 * configure: Regenerate.
868
578460f2
AO
8692003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
870
871 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
872 (info-subdir, install-info-subdir, clean-info-subdir)
873 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
874 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
875 Pass $(FLAGS_TO_PASS).
876
7f285245
AO
8772003-01-27 Alexandre Oliva <aoliva@redhat.com>
878
879 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
880 /`$$CC -print-multi-os-directory`.
881
5f9624e3
DJ
8822003-01-26 Daniel Jacobowitz <drow@mvista.com>
883
884 * hashtab.c (htab_create_alloc_ex): New function.
885 (hatab_set_functions_ex): New function.
886 (htab_delete, htab_expand): Support alternate allocation functions.
887
9c2259b8
DD
8882003-01-24 Christopher Faylor <cgf@redhat.com>
889
890 * configure.in: Remove special pex-cygwin consideration.
891 * configure: Regenerate.
892 * pex-cygwin.c: Remove.
893 * Makefile.in: Remove pex-cygwin.[co] lines.
894
5a17353c
DD
8952003-01-24 Zack Weinberg <zack@codesourcery.com>
896
897 * Makefile.in (CFILES): Add pex-*.c.
898 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
899 (CONFIGURED_OFILES): Add pex-*.o.
900 (TEXIFILES): Add pexecute.txh.
901 (pexecute.o): Delete rule.
902 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
903 pex-unix.o, pex-win32.o): New rules.
904 * configure.in: Change AC_INIT argument to xmalloc.c.
905 Compute appropriate pexecute implementation and substitute it
906 as @pexecute@.
907
908 * pexecute.c: Split up into...
909 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
910 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
911 new files.
912
913 * functions.texi: Regenerate.
914 * configure: Regenerate.
915
eed2b28c
DD
9162003-01-20 Josef Zlomek <zlomekj@suse.cz>
917
918 * hashtab.c (htab_expand): Fix allocation of new entries.
919
27a39a5f
DD
9202003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
921
922 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
923
924 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
925 mkinstalldirs command.
926
b51c1553
DD
9272002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
928
929 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
930 Define for hosts with HOST_EXECUTABLE_SUFFIX.
931
756954c3
DD
9322002-11-24 Nick Clifton <nickc@redhat.com>
933
934 * make-relative-prefix.c (make_relative_prefix): Ensure return
935 string is empty before using strcat to construct it.
936
2a80c0a4
DD
9372002-11-22 Daniel Jacobowitz <drow@mvista.com>
938
939 * Makefile.in: Add make-relative-prefix.c.
940 * make-relative-prefix.c: New file.
941 * functions.texi: Rebuilt.
942
768b20d8
JJ
9432002-11-16 Jakub Jelinek <jakub@redhat.com>
944
945 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
946 used with arguments in traditional C' warnings.
947
f52d1d64
JJ
9482002-10-16 Jakub Jelinek <jakub@redhat.com>
949
950 * config.table: Use mh-s390pic for s390x too.
951
0d3deb8d
DD
9522002-10-06 Andreas Jaeger <aj@suse.de>
953
954 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
955 variable and of strict-aliasing warning.
956 (grow_vect): Use char as first parameter.
957
1b67de92
DD
9582002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
959
960 * Makefile.in (all): Fix multilib parallel build.
961
585cc78f
DD
9622002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
963
964 * cp-demangle.c (demangling_new): Cast 0 to enum.
965 (demangle_char): Cast return of strdup to char *.
966 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
967 (is_gnu_v3_mangled_dtor): Likewise.
968 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
969 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
970 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
971 * md5.c (md5_process_bytes): Cast results back to const void *.
972 (md5_process_block): Add cast to const md5_uint32 *.
973 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
974 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
975 unsigned short.
976 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
977 to void *.
978 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
979
e21b0cc1
NC
9802002-09-19 Nick Clifton <nickc@redhat.com>
981
982 * README: Update email addresses for bugs and patches.
983
a54ba43f
DD
9842002-09-10 Mike Stump <mrs@apple.com>
985
986 * splay-tree.c (splay_tree_successor): Fix comments.
987
9882002-09-11 Zack Weinberg <zack@codesourcery.com>
989
990 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
991 * testsuite/Makefile.in: Adjust for test-demangle.
992 * testsuite/regress-demangle: Deleted.
993 * testsuite/test-demangle.c: New file.
994 * testsuite/demangle-expected: Change \$ to $ throughout, now that
995 this file is not being read by a shell script.
996
01cea699
DD
9972002-09-05 Roger Sayle <roger@eyesopen.com>
998
999 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1000
a2832523
DD
10012002-08-07 DJ Delorie <dj@redhat.com>
1002
1003 * regex.c (re_error_msgid): Just use a simple array of strings.
1004 (re_compile_pattern): Compensate.
1005 (re_comp): Likewise.
1006 (re_comp): Likewise.
1007 (regerror): Likewise.
1008
1e3f0be0
DD
10092002-07-29 Neil Booth <neil@daikokuya.co.uk>
1010
1011 * cplus-dem.c (PREPEND_BLANK): Remove.
1012
b851d07b
DD
10132002-07-10 Jason Merrill <jason@redhat.com>
1014
1015 * cp-demangle.c (demangle_identifier): Support extended Unicode
1016 characters.
1017
2a9dffbf
DD
10182002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1019
1020 * cp-demangle.c (demangle_v3_with_details): Wrap in
1021 !defined IN_GLIBCPP_V3.
1022
793011ca
DD
10232002-07-01 Mark Mitchell <mark@codesourcery.com>
1024
1025 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1026 Set it for the "st" operator.
1027 (demangle_expression): Handle expressions with types as arguments.
1028
b39b76b8
DD
10292002-06-30 Douglas Rupp <rupp@gnat.com>
1030
1031 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1032 * Makefile.in (OUTPUT_OPTION): Use.
1033
4748c6d8
DD
10342002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1035
1036 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1037 (install_to_tooldir): Likewise.
1038
f9c3326a
DD
10392002-06-17 Douglas Rupp <rupp@gnat.com>
1040
1041 * lbasename.c: Add 2002 to copyright.
1042 (IS_DIR_SEPARATOR): Remove VMS junk.
1043
18893690
DD
10442002-06-05 Geoffrey Keating <geoffk@redhat.com>
1045
1046 * hashtab.c (htab_create): New stub function for backward
1047 compatibility.
1048 (htab_try_create): Likewise.
1049
10502002-06-03 Geoffrey Keating <geoffk@redhat.com>
1051
1052 * hashtab.c (htab_create): Delete.
1053 (htab_try_create): Delete.
1054 (htab_create_alloc): New.
1055 (htab_delete): Support user-specified memory allocation.
1056 (htab_expand): Likewise.
1057
10582002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1059
1060 * configure.in: Fix typo in the code checking for sys_errlist.
1061 * configure: Regenerated.
1062
9296c8b2
DD
10632002-05-13 Andreas Schwab <schwab@suse.de>
1064
1065 * config.table: Use mh-x86pic also for x86-64.
1066
52d98c2d
DD
10672002-05-08 Alexandre Oliva <aoliva@redhat.com>
1068
1069 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1070 script entry, and set LD to it when configuring multilibs.
1071 * configure: Rebuilt.
1072
cafa3917
DD
10732002-05-07 Mark Mitchell <mark@codesourcery.com>
1074
1075 * configure.in (AC_TYPE_PID_T): Use it.
1076 * configure: Regenerated.
1077 * getruntime.c: Include <sys/types.h>.
1078 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1079
b1c933fc
RH
10802002-04-09 Richard Henderson <rth@redhat.com>
1081
1082 * hashtab.c (higher_prime_number): Use 7 as minimum.
1083 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1084 (htab_find_slot_with_hash): Likewise.
1085
0c4460bb
DD
10862002-04-01 Phil Edwards <pme@gcc.gnu.org>
1087
1088 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1089 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1090 not compile if IN_GLIBCPP_V3 defined.
1091 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1092
f2160d2b
DD
10932002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1094
3ebf1f59 1095 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1096 if it is NULL.
1097
7dd4d42a
DD
10982002-03-27 DJ Delorie <dj@redhat.com>
1099
1100 * hex.c: Add documentation.
1101 (_hex_value): Provide non-ASCII empty table.
1102 (hex_init): Initialize the non-ASCII table.
1103 * functions.texi: Regenerate.
1104
38e57a35
DD
11052002-03-27 Mark Mitchell <mark@codesourcery.com>
1106
1107 * dyn-string.c: Add libgcc exception to copyright notice.
1108
cfed0715
DD
11092002-03-26 H.J. Lu (hjl@gnu.org)
1110
1111 * config.table: Support --with-build-subdir.
1112 * configure.in: Likewise.
1113 * configure: Rebuild.
1114
1504972f
DD
11152002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1116
1117 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1118 seen.
1119
35efcd67
DD
11202002-03-12 Mark Mitchell <mark@codesourcery.com>
1121
1122 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1123 notice.
1124
dabc64ea
DD
11252002-03-11 Douglas B Rupp <rupp@gnat.com>
1126
1127 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1128
3ddbd84c
JB
11292002-03-06 Jim Blandy <jimb@redhat.com>
1130
1131 * splay-tree.c (splay_tree_xmalloc_allocate,
1132 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1133 prototyped definitions. Mark `data' arguments as unused.
1134
efdab807
AC
11352002-03-06 Andrew Cagney <ac131313@redhat.com>
1136
1137 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1138
50d4562d
DD
11392002-03-04 Phil Edwards <pme@gcc.gnu.org>
1140
1141 * configure.in: Add --enable-install-libiberty option.
1142 * Makefile.in (INSTALLED_HEADERS): New variable.
1143 (install_to_libdir): Possibly also copy headers.
1144 * configure: Regenerated.
1145
11462002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1147
1148 * xmalloc.c (xmalloc_fail): Clarify error message further.
1149
6e9980f5
DD
11502002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1151
1152 * xmalloc.c (xmalloc_fail): Clarify error message.
1153
18893690 11542002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
1155
1156 * splay-tree.c (splay_tree_xmalloc_allocate,
1157 splay_tree_xmalloc_deallocate): New functions.
1158 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1159 above functions and a dummy data pointer.
1160 (splay_tree_new_with_allocator): New function.
1161 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1162 splay_tree_remove): Use the splay tree's allocation and
1163 deallocation functions.
1164
59ea9fe7
DD
11652002-02-19 Scott Snyder <snyder@fnal.gov>
1166
1167 * testsuite/demangle-expected: Add test case for infinite loop in
1168 demangler.
1169 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1170 if do_type() doesn't make any progress --- prevents an infinite
1171 loop.
1172
6f848550
DD
11732002-02-18 Carlo Wood <carlo@gnu.org>
1174
1175 PR c++/5390
1176 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1177 numbers that do not start with an underscore; This is needed
1178 for integer template parameters. This doesn't break anything
1179 because multi-digit numbers are never followed by a digit.
1180 * testsuite/demangle-expected: Corrected all mangled test
1181 cases with multi-digit template parameters: g++ 2.95.x does
1182 not generate underscores around these parameters.
1183
44354ae1
DD
11842002-02-05 Jason Merrill <jason@redhat.com>
1185
1186 * cplus-dem.c (flags): Add DMGL_VERBOSE
1187 (cplus_demangle_v3_p): Remove.
1188 (demangle_it): Add DMGL_TYPES to passed flags.
1189 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1190 (cplus_demangle_v3_type): Remove.
1191 (cplus_demangle_v3): Add options parm.
1192
42da15d6
DD
11932002-02-02 H.J. Lu (hjl@gnu.org)
1194
1195 * cp-demangle.c (cp_demangle_type): Do not protect with
1196 IN_LIBGCC2.
1197 (cplus_demangle_v3_all): New.
1198 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1199 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1200
1201 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1202 Initialized to cplus_demangle_v3.
1203 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1204 of cplus_demangle_v3.
1205 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1206 command line symbol.
1207
1208 * testsuite/regress-demangle: Pass the mangled name at the
1209 command line.
1210
b117c158
DD
12112002-02-01 H.J. Lu <hjl@gnu.org>
1212
1213 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1214 DMGL_GNU_V3.
1215
c78d91b1
DD
12162002-01-31 Phil Edwards <pme@gcc.gnu.org>
1217
1218 * cp-demangle.c: Revert yesterday's change.
1219
bef8b55d
DD
12202002-01-31 Adam Megacz <adam@xwt.org>
1221
1222 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1223 wrt HAVE_SYS_ERRLIST.
1224
2c955b8b
DD
12252002-01-30 Phil Edwards <pme@gcc.gnu.org>
1226
1227 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1228 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1229 cp_demangle_type.
1230 * testsuite/demangle-expected: New gnu-v3 test.
1231
58b1717a
RH
12322002-01-22 Momchil Velikov <velco@fadata.bg>
1233
1234 * configure.in (variable detection): Use arrays of unspecified
1235 size instead of plain integers.
1236
cc096b71
DD
12372002-01-18 DJ Delorie <dj@redhat.com>
1238
1239 * Makefile.in (TESTLIB): New. This library is for future
1240 testsuites.
1241 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1242 break down by letter.
1243 (REQUIRED_OFILES): List long-to-compile files first.
1244 (maint-deps): New, target for updating dependencies.
1245 (dependencies): Update.
1246 * maint-tool: Add dependency-generating option.
1247 * configure.in: Check for _doprnt even if we're not providing it.
1248 * configure: Regenerate.
1249
1250 * _doprnt.c: Modifications to allow compiling on any platform.
1251 * copysign.c: Likewise.
1252 * putenv.c: Likewise.
1253 * setenv.c: Likewise.
1254 * vsprintf.c: Likewise.
1255
12562002-01-15 Douglas B Rupp <rupp@gnat.com>
1257
1258 * mkstemps.c (mkstemps): On VMS, open temp file with option
1259 that causes it to be deleted when closed.
1260
20d54542
DD
12612002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1262
c23795e2
DD
1263 * cp-demangle.c (long_options): Const-ify.
1264 * cplus-dem.c (long_options): Likewise.
1265
20d54542
DD
1266 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1267 strstr instead.
1268
f348a7b1
DD
12692001-12-31 Ira Ruben <ira@apple.com>
1270
1271 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1272 * configure: Regenerated.
1273
d86cd745
DD
12742001-12-24 Douglas B. Rupp <rupp@gnat.com>
1275
1276 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1277 * configure: Regenerated.
1278
ae533646
DD
12792001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1280
1281 PR other/2719
1282 * cplus-dem.c (consume_count): Treat negative count as an error.
1283 * testsuite/demangle-expected: Added testcase.
1284
c0eb281b
DD
1285Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1286
1287 * configure.in: Hardcode that vfork works on VMS host.
1288 * configure: Regenerated.
1289
2da4c07f
RH
12902001-12-06 Richard Henderson <rth@redhat.com>
1291
1292 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1293 (cplus_demangle): Support no_demangling.
1294
24acd898
DD
12952001-11-27 Zack Weinberg <zack@codesourcery.com>
1296
1297 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1298 in libiberty context. Fix typo in leading comment.
1299 * configure.in: Fix various AC_DEFINEs so autoheader works.
1300 If any of vprintf, vsprintf, vfprintf is missing from libc,
1301 then AC_REPLACE_FUNCS(_doprnt).
1302
fec50157 13032001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 1304 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
1305
1306 * Makefile.in (stamp-h): Depend on Makefile for proper
1307 serialization.
1308 (*-subdir): Depend on config.h for proper serialization.
1309
5527febf
DD
13102001-11-26 DJ Delorie <dj@redhat.com>
1311
1312 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1313 * configure: Regenerate.
1314 * config.h: Add HAVE_ALLOCA_H.
1315
941d74a0
DD
13162001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1317
1318 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1319 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1320 is available.
1321
dc579051
DD
1322Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1323
1324 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1325 * configure.in (HAVE_UINTPTR_T): Test for system defining
1326 uintptr_t and define HAVE_UINTPTR_T appropriately.
1327 * regex.c (uintptr_t): Do not provide a definition if the
1328 system provided one.
1329
1330 * regex.c (PREFIX): Provide an alternate definition for
1331 non-ANSI/ISO compilers.
1332 (ARG_PREFIX): Likewise.
1333
1a78a35a
DD
13342001-11-12 Jim Meyering <meyering@lucent.com>
1335
1336 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1337 this code would end up calling gettext even in packages built
1338 with --disable-nls.
1339 * getopt.c (_): Likewise.
1340 * regex.c (_): Likewise.
1341
4e55c4b6
DD
13422001-11-03 Alan Modra <amodra@bigpond.net.au>
1343
1344 * configure.in: Cope with missing makeinfo.
1345 * configure: Regenerate.
1346
d311a83a
DD
13472001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1348
1349 * hex.c (hex_init): Provide empty stub.
1350
1351 * hex.c (hex_init): Delete.
1352 (_hex_value): Const-ify and initialize at compile-time.
1353
3bc62f91
DD
13542001-10-19 H.J. Lu <hjl@gnu.org>
1355
1356 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1357 necessary.
1358
5d852400
DD
13592001-10-17 DJ Delorie <dj@redhat.com>
1360
1361 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1362 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 1363 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
1364 Improve manual formatting.
1365 * functions.texi: Regenerate.
1366
ba19b94f
DD
13672001-10-15 DJ Delorie <dj@redhat.com>
1368
1369 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1370 (maint-undoc): New.
1371 maint-tool: Add "undoc" tool.
1372 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1373 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1374 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1375 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1376 documentation.
1377 * fnmatch.txh: New.
1378 * functions.texi: Regenerate.
1379
56056af5
DD
13802001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1381
1382 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1383 * strtod.c: Use "ISO C" instead of "ANSI C".
1384 * functions.texi: Regenerate.
1385
99b58139
DD
13862001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1387
1388 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1389 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1390 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1391 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1392 spelling. Give names to function arguments in documentation. Use
1393 (void) prototypes in documentation.
1394 * functions.texi: Regenerate.
1395
e6450fe5
DD
13962001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1397
1398 * argv.c (buildargv, tests, main): Const-ify.
1399 * cp-demangle.c (operator_code): Likewise.
1400 * cplus-dem.c (optable, libiberty_demanglers,
1401 cplus_demangle_set_style, cplus_demangle_name_to_style,
1402 print_demangler_list): Likewise.
1403 * hashtab.c (higher_prime_number): Likewise.
1404 * strcasecmp.c (charmap): Likewise.
1405 * strerror.c (error_info, strerror, main): Likewise.
1406 * strncasecmp.c (charmap): Likewise.
1407 * strsignal.c (signal_info): Likewise.
1408
da191b5b
DD
14092001-09-29 DJ Delorie <dj@redhat.com>
1410
1411 * configure: Regenerate.
1412
916aaa12
DD
14132001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1414
1415 * concat.c: Include stdlib.h.
1416
fa9f0e33
DD
14172001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1418
1419 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1420 @dircategory and @direntry directives. Add @finalout.
1421 (many nodes): Lose the next,prev,up pointers on the @nide line.
1422 (Using, Supplemental Functions, Replacement Functions): Fix
1423 markup.
1424 (Functions): Move around, to allow makeinfo to build the manual
1425 without next,prev,up pointers in thye node lines.
1426 (Licenses): Fix typos.
1427
1428 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1429 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1430 * functions.texi: Regenerate.
1431
1432 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1433 line.
1434
14352001-09-27 DJ Delorie <dj@redhat.com>
1436
1437 * configure.in: Don't use in-tree texinfo, because libiberty must
1438 be built before it. Check for makeinfo version 4 or higher.
1439 * functions.texi: Regenerate.
1440
39423523
DD
14412001-09-20 DJ Delorie <dj@redhat.com>
1442 Phil Edwards <pedwards@disaster.jaj.com>
1443
1444 * configure.in (MAKEINFO, PERL): Detect these.
1445 (--enable-maintainer-mode): Add.
1446 * configure: Regenerate.
1447 * Makefile.in (MAKEINFO, PERL): Define.
1448 (libiberty.info, libiberty.dvi, libiberty.html): New.
1449 (CFILES): Add bsearch.c.
1450 (CONFIGURED_OFILES): New, list of objects configure might add.
1451 (maint-missing, maint-buildall): New, for maintainers only.
1452 (clean, mostlyclean): Add info/dvi/html files.
1453 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1454 * gather-docs: New, for maintainers.
1455 * maint-tool: New, for maintainers.
1456 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1457 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1458 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1459 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1460 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1461 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1462 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1463 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1464 documentation.
1465
66c94e19
DD
14662001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1467
1468 * concat.c (reconcat): Fix for traditional C.
1469
99ee3a8f
DD
14702001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1471
1472 * concat.c (reconcat): New function.
1473
54c20242
DD
14742001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1475
1476 * concat.c (vconcat_length, vconcat_copy, concat_length,
1477 concat_copy, concat_copy2): New functions.
1478 (concat): Use vconcat_length/vconcat_copy.
1479
1480 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1481 Define.
1482
843f21be
DD
14832001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1484
1485 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1486 VA_FIXEDARG & VA_CLOSE.
1487
1488 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1489 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1490 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1491
8a423cb3
DD
14922001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1493
1494 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1495
dc676635
DD
14962001-08-23 Ulrich Drepper <drepper@redhat.com>
1497
1498 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1499
15002001-08-23 Ulrich Drepper <drepper@redhat.com>
1501
1502 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1503 instead of mbrtowc.
1504 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1505 wcslen, and __wcscoll instead of wcscoll.
1506
f080c76d
DD
15072001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1508
3ebf1f59
DD
1509 * fibheap.c (fibheap_init, fibnode_init): Remove.
1510 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1511 initialize memory.
1512 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1513
f01b59ed
DD
15142001-08-21 Richard Henderson <rth@redhat.com>
1515
1516 * Makefile.in (fibheap.o): Depend on config.h.
1517 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1518 functions for inlining.
1519
1520Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1521
1522 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1523 hosting on cygwin.
1524 * configure: Regenerate.
1525
eb828599
AC
15262001-08-20 Andrew Cagney <ac131313@redhat.com>
1527
1528 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1529 HARRIS_FLOAT_FORMAT.
1530 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1531 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1532 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1533 (floatformat_m88110_harris_ext): New float formats.
1534
4e55c4b6
DD
15352001-08-20 Daniel Berlin <dan@cgsoftware.com>
1536
1537 * fibheap.c: New file. Fibonacci heap.
1538
1539 * Makefile.in (CFILES): Add fibheap.c.
1540 (REQUIRED_OFILES): Add fibheap.o.
1541 (fibheap.o): Add dependencies for fibheap.o.
1542
68a41de7
DD
15432001-08-17 Christopher Faylor <cgf@cygnus.com>
1544
1545 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1546 * configure: Regenerate.
1547
8fc34799
DD
15482001-08-16 Richard Henderson <rth@redhat.com>
1549
1550 * hashtab.c (htab_hash_string): New.
1551
16bad250
AC
15522001-08-13 Andrew Cagney <ac131313@redhat.com>
1553
1554 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1555 name.
1556
a9022147
DD
15572001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1558
1559 * regex.c (wcs_regex_compile): Use appropriate string
1560 to compare with collating element.
1561 Fix the padding for the alignment.
1562
8aefe91a 15632001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1564
1565 * lbasename.c (lbasename): Change function definition to return a
1566 const char pointer.
1567
e7e9b069
DD
15682001-08-07 Jason Merrill <jason_merrill@redhat.com>
1569
1570 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1571 for".
1572
cc5144f8
DD
15732001-08-03 Richard Henderson <rth@redhat.com>
1574
1575 * Makefile.in (concat.o): Depend on config.h.
1576
8aefe91a
DD
15772001-07-30 Andreas Jaeger <aj@suse.de>
1578
1579 * concat.c: Include "config.h".
1580
86710ce2
DD
15812001-07-30 Andreas Jaeger <aj@suse.de>
1582
1583 * regex.c: Declare wcs functions only if compiling with
1584 MBS_SUPPORT.
1585 Don't use #elif for traditional C.
1586
15872001-07-23 Ulrich Drepper <drepper@redhat.com>
1588
1589 * regex.c: Revamp memory allocation for WCHAR functions to
1590 not use too much stack.
1591
15922001-07-30 Andreas Jaeger <aj@suse.de>
1593
1594 * regex.c: Declare wcs functions only if compiling with
1595 MBS_SUPPORT.
1596 Don't use #elif for traditional C.
1597
a5d8f731
DD
15982001-07-25 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * Makefile.in (regex.o): Add dependency on config.h.
1601
6ad8a379
DD
16022001-07-18 Andreas Schwab <schwab@suse.de>
1603
1604 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1605 underscore character.
1606
16072001-07-18 Ulrich Drepper <drepper@redhat.com>
1608
1609 * regex.c: Limit string length printed in debug messages to 100
1610 chars.
1611
16122001-07-18 Andreas Jaeger <aj@suse.de>
1613
1614 * regex.c: Place under LGPL version 2.1.
1615
2a6ef469
DD
16162001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1617
1618 * Makefile.in: Add support for regex code.
1619 * regex.c: New file.
1620
7b78baae
DD
16212001-07-05 Mark Klein <mklein@dis.com>
1622
1623 * Makefile.in: Add ffs.c dependency.
1624 * configure.in: Add ffs.c.
1625 * ffs.c: New file.
1626
926150e2
DD
16272001-06-18 Richard Henderson <rth@redhat.com>
1628
1629 * concat.c: Include <sys/types.h>.
1630
11f6f21d
DD
16312001-06-11 Loren J. Rittle <ljrittle@acm.org>
1632
1633 bootstrap/3106
1634 * strerror.c (sys_nerr): Hide the OS header version.
1635 * strsignal.c (sys_nsig): Likewise.
1636
d42dae6c
DD
16372001-06-10 Richard Henderson <rth@redhat.com>
1638
1639 * concat.c: Include string.h. Fix int vs size_t usage.
1640 Simplify the iteration loops. Use memcpy.
1641
e05c6d27
DD
16422001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1643
1644 * partition.c: Fix misspelling of `implementation'.
1645
b50c4073
DD
16462001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1647
1648 * md5.c (md5_init_ctx): Declare constants as unsigned.
1649 (md5_process_block): Likewise.
1650
457161bf
DD
16512001-05-07 Zack Weinberg <zackw@stanford.edu>
1652
1653 * cp-demangle.c (demangle_v3_with_details,
1654 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1655 function definition.
1656 * ternary.c: Use K+R style function definitions. Use PTR, not
1657 void *. Make arguments constant where possible.
1658
e00bc6a7
DD
16592001-05-07 Mark Mitchell <mark@codesourcery.com>
1660
1661 * splay-tree.h (splay_tree_max): New function.
1662 (splay_tree_min): Likewise.
1663
400ee7e1
DB
16642001-04-15 Daniel Berlin <dan@cgsoftware.com>
1665
1666 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1667
1668 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1669
d9697354
DD
16702001-04-03 Zack Weinberg <zackw@stanford.edu>
1671
1672 * make-temp-file.c (try): Inline.
1673
a7bf099b
DD
16742001-02-28 Richard Henderson <rth@redhat.com>
1675
1676 * Makefile.in (make-temp-file.o): Depend on config.h.
1677
30a1def2
DD
16782001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1679
1680 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1681
079c672a
DD
16822001-03-23 Jakub Jelinek <jakub@redhat.com>
1683
1684 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1685 `_' not followed by a digit is invalid.
1686
a88e356a
JB
16872001-03-22 Jim Blandy <jimb@redhat.com>
1688
1689 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1690 instead of free, to free the contents as well as the string
1691 structure.
1692
1dffcc66
DD
16932001-03-21 Zack Weinberg <zackw@stanford.edu>
1694
1695 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1696 Don't default P_tmpdir to anything. Try /var/tmp before
1697 /usr/tmp.
1698
16992001-03-20 Zack Weinberg <zackw@stanford.edu>
1700
1701 * choose-temp.c: Split off make_temp_file, and the code
1702 duplicated between it and choose_temp_base, into...
1703 * make-temp-file.c: ... here; new file.
1704
1705 * Makefile.in (CFILES): Add make-temp-file.c.
1706 (REQUIRED_OFILES): Add make-temp-file.o.
1707
e61231f1
JB
17082001-03-20 Jim Blandy <jimb@redhat.com>
1709
1710 * cp-demangle.c (struct demangling_def): New fields:
1711 is_constructor and is_destructor.
1712 (demangling_new): Initialize them.
1713 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1714 or destructor.
1715 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1716 is_gnu_v3_mangled_dtor): New functions.
1717
a9cbbe6d
DD
17182001-03-20 Jason Merrill <jason@redhat.com>
1719
1720 * cplus-dem.c (main): Skip initial $.
1721
b1e51b3c
DD
17222001-03-15 Michael Meissner <meissner@redhat.com>
1723
1724 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1725 might be a signed integer under pre-ISO C systems.
1726
8aa30e60 17272001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1728 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1729
8aa30e60
DD
1730 * libiberty/lbasename.c: New file.
1731 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1732
30673bf5
DD
17332001-03-06 Zack Weinberg <zackw@stanford.edu>
1734
1735 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1736 * configure.in: Replace all alloca logic with a simple use of
1737 the above new macro.
1738 * config.table: Kill *-*-beos* entry.
1739 * config/mh-beos: Delete.
1740 * configure, config.in: Regenerate.
fa03f0a7 1741
30673bf5
DD
1742 * Makefile.in (ALLOCA, HFILES): Kill.
1743 (REQUIRED_OFILES): Add alloca.o.
1744 (alloca.o): Depend on libiberty.h.
1745 (argv.o): Don't depend on alloca-conf.h.
1746 * alloca-conf.h: Delete.
1747 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1748 blocks. Provide the C alloca unconditionally. Use PTR where
1749 appropriate. Make i00afunc static.
1750 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1751
5810f394
DD
17522001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1753
1754 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1755
a9db032a
DD
17562001-02-16 Loren J. Rittle <ljrittle@acm.org>
1757
1758 * cplus-dem.c (main): Initialize style.
fa03f0a7 1759
8aefe91a
DD
17602001-02-02 Phil Edwards <pme@sources.redhat.com>
1761
1762 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1763
bc9bf259
DD
17642001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1765
1766 Add support for Java demangling under the v3 ABI:
1767 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1768 (struct demangling_def): Add `style' field.
1769 (demangling_new): New parameter `style'. Set it in demangling_t.
1770 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1771 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1772 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1773 (main): Call cp_demangle with extra parameter.
1774 (java_demangle_v3): New function.
1775 (java_builtin_type_names): New. Table of primitive type names used
1776 for Java demangling.
1777 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1778 Java output.
1779 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1780 demangling.
1781 (long_options): Remove obsolete `java' option.
1782 (main): Remove explicit handling of `java' option. Instead, pass style
1783 parameter in cplus_demangle flags as gdb does.
1784 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 1785
f6528837
DD
17862000-12-29 DJ Delorie <dj@redhat.com>
1787
1788 * fnmatch.c: Make the note about the origins of this file more
1789 accurate, at least until we can sync with glibc.
1790 * getopt.c: Ditto.
1791 * getopt1.c: Ditto.
1792 * md5.c: Ditto.
1793 * obstack.c: Ditto.
9d969b59 1794
c6da642e
DD
17952000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1796
1797 * bsearch.c: New file.
1798 * configure.in (funcs): Add bsearch.
1799 (AC_CHECK_FUNCS): Likewise.
1800 * configure, config.in: Regenerate.
1801
ae7d06ad 18022000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1803
1804 * safe-ctype.c: #include "ansidecl.h".
1805 * strtod.c: Likewise.
1806
ae7d06ad 18072000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
1808
1809 * strtoul.c: Include safe-ctype.h, not ctype.h.
1810
ac424eb3
DD
18112000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1812
1813 * safe-ctype.c: New file.
1814 * Makefile.in (CFILES): Add safe-ctype.c.
1815 (REQUIRED_OFILES): Add safe-ctype.o.
1816
1817 * argv.c: Define ISBLANK and use it, not isspace.
1818 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1819 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1820 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1821 before calling TOLOWER(c)/TOUPPER(c).
1822
4415a860
DD
18232000-12-07 Mike Stump <mrs@wrs.com>
1824
1825 * Makefile.in (distclean): When cleaning, remove testsuite.
1826
849ee224
DD
18272000-12-05 Jason Merrill <jason@redhat.com>
1828
1829 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1830 name before allocating the dyn_string.
1831
ae7d06ad 18322000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
1833
1834 * cp-demangle.c: s/new_abi/v3/.
1835 * cplus-dem.c: Likewise.
1836 (current_demangling_style): Now auto_demangling.
1837 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 1838 (main): Use standard symbol chars for auto_demangling.
e49a569c 1839
ae7d06ad 18402000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
1841
1842 * hashtab.c (higher_prime_number): Use a table, rather than a
1843 seive, to find the next prime.
ae7d06ad
NC
1844
18452000-11-22 H.J. Lu <hjl@gnu.org>
1846
1847 * cplus-dem.c (main): Handle gnat_demangling.
1848
18492000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
1850
1851 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1852 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1853 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1854 argument form of AC_DEFINE in dummy definitions block. Use
1855 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1856 in dummy block. Preload cache variables instead of bypassing
1857 tests, where possible.
1858 * acconfig.h: Removed.
ae7d06ad 1859
2ea7befd
DD
1860 * xmalloc.c (xmalloc_failed): New function, does error
1861 reporting on failed allocation.
1862 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 1863
f1775526
HPN
18642000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1865
1866 * cplus-dem.c (cplus_demangle): Fix formatting.
1867 (grow_vect): Ditto.
1868 (ada_demangle): Ditto.
1869 (internal_cplus_demangle): Ditto.
1870 (mop_up): Ditto.
1871
18722000-11-21 H.J. Lu <hjl@gnu.org>
1873
1874 * cplus-dem.c (main): Handle java_demangling.
1875
ae7d06ad 18762000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
1877
1878 * cplus-dem.c (grow_vect): Prototype.
1879 (ada_demangle): Cast the arg of ctype macros to unsigned char.
1880
5dd42ef4
HPN
18812000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
1882
1883 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
1884 parameter `option'.
1885
296731c1
DD
18862000-11-15 Kenneth Block <kenneth.block@compaq.com>
1887
8944fb9d 1888 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
1889 be used in GCC.
1890
6e53a714 18912000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 1892
5dd42ef4 1893 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
1894 list.
1895
99a4c1bd
HPN
18962000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
1897
1898 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
1899 xcalloc depending on htab->return_allocation_failure. Return zero
1900 if calloc fails.
99a4c1bd
HPN
1901 (htab_create): Update comment to cover memory allocation.
1902 (htab_try_create): New.
1903 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 1904 Update comment to cover this.
99a4c1bd 1905
e0f3df8f
HPN
19062000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
1907
1908 * hashtab.c: Change void * to PTR where necessary.
1909 (htab_create, htab_expand): Correct formatting of comment before
1910 function.
1911
ae7d06ad 19122000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
1913
1914 * cp-demangle.c (string_list_def): Add caret_position and comments.
1915 (result_caret_pos): New macro.
1916 (result_append_string): Rename to...
1917 (result_add_string): ... this, and insert at caret position.
ae7d06ad 1918 Rename throughout.
59666b35
DD
1919 (result_append): Rename to...
1920 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 1921 throughout.
59666b35
DD
1922 (result_append_char): Rename to...
1923 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 1924 throughout.
59666b35
DD
1925 (result_append_space): Remove.
1926 (string_list_new): Initialize caret position.
1927 (result_add_separated_char): Use caret position.
1928 (result_get_caret): New funtion.
1929 (result_set_caret): Likewise.
1930 (result_shift_caret): Likewise.
1931 (result_previous_char_is_space): Likewise.
1932 (substitution_start): Use caret position.
1933 (substitution_add): Likewise.
1934 (demangling_new): Initialize caret position.
1935 (demangle_encoding): Use caret position.
ae7d06ad 1936 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
1937 (demangle_type_ptr): Use switch statement. Handle pointers to
1938 arrays. Don't use result_append_space. Use caret position.
1939 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
1940 call to demangle_array_type.
1941 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 1942
ae7d06ad 19432000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1944
1945 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
1946
19472000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1948
1949 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
1950
19512000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1952
1953 * splay-tree.c: #include <stdio.h>.
1954
19552000-09-14 Hans-Peter Nilsson <hp@axis.com>
1956
1957 * testsuite/demangle-expected: Add two tests for anonymous
1958 namespaces.
1959 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
1960
19612000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
1962
1963 * splay-tree.c (splay_tree_predecessor): New function.
1964 (splay_tree_successor): Likewise.
ae7d06ad
NC
1965
19662000-09-10 Hans-Peter Nilsson <hp@axis.com>
1967
1968 * testsuite/demangle-expected: Add four tests for type_info
1969 mangling.
1970 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
1971 for a non-template non-qualified type_info function or node.
1972
19732000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1974
1975 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
1976
19772000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1978
1979 * md5.c: #include "ansidecl.h".
1980
19812000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1982
1983 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
1984 (demangle_type): Handle substitution candidates correctly in the
1985 face of special substitutions.
ae7d06ad
NC
1986
19872000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
1988
1989 * cp-demangle.c (demangle_encoding): Rename variable.
1990 (demangle_name): Rename parameter. Handle return type
1991 suppression.
1992 (demangle_nested_name): Rename parameter.
1993 (demangle_prefix): Likewise. Change return type suppression.
1994 (demangle_unqualified_name): Add parameter. Flag constructors and
1995 conversion operators.
1996 (demangle_special_name): Fix comment.
1997 (demangle_type): Rename variable.
1998 (demangle_bare_function_type): Check for missing return type and
1999 parameter.
2000 (demangle_class_enum_type): Rename parameter.
2001 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
2002
20032000-08-31 DJ Delorie <dj@redhat.com>
2004
2005 * configure.in (Cygwin): special case cygwin only when we're
2006 building cygwin, not when we're hosting cygwin.
2007
20082000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2009
2010 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2011 <expression>.
ae7d06ad
NC
2012
20132000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2014
2015 * cp-demangle.c (demangle_type_ptr): Increment position past
2016 pointer and reference characters.
ae7d06ad
NC
2017
20182000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2019
2020 * cp-demangle.c (demangle_nv_offset): New function.
2021 (demangle_v_offset): Likewise.
2022 (demangle_call_offset): Likewise.
2023 (demangle_special_name): Update thunk demangling to comply with
2024 ABI changes.
ae7d06ad
NC
2025
20262000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2027
2028 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2029 (substitution_def): Remove template_parm_number.
2030 (NOT_TEMPLATE_PARM): Remove.
2031 (result_insert_string): New macro.
2032 (result_insert): Likewise.
2033 (result_insert_char): Likewise.
2034 (substitution_add): Remove last parameter. Don't store template
2035 parm number.
2036 (BFT_NO_RETURN_TYPE): Define as NULL.
2037 (demangle_encoding): Adjust call to demangle_bare_function_type.
2038 (demangle_name): Adjust substitution. Adjust call to
2039 substitution_add.
2040 (demangle_prefix): Adjust call to substitution_add.
2041 (demangle_identifier): Handle anonymous namespaces.
2042 (demangle_operator_name): Change demangling of vendor-extended
2043 operator to match ABI changes.
2044 (demangle_type_ptr): Change parameters. Make recursive. Handle
2045 substitutions here.
2046 (demangle_type): Adjust calls to demangle_template_param,
2047 substitution_add, and demangle_type_ptr. Fix substitution of
2048 templated types.
2049 (demangle_function_type): Change parameter to a pointer.
2050 (demangle_bare_function_type): Likewise. Adjust insertion point.
2051 (demangle_template_param): Remove last parameter.
2052 (demangle_expr_primary): Remove unused variable. Adjust call to
2053 demangle_template_param.
2054 (is_mangled_char): Accept `$' and `.'.
2055 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2056 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
2057
20582000-08-31 Hans-Peter Nilsson <hp@axis.com>
2059
2060 * testsuite/demangle-expected: Add nine tests for
2061 underscore-after-number followed by five tests for name-signature
2062 delimiter.
2063
20642000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2065
2066 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2067
20682000-08-28 Jason Merrill <jason@redhat.com>
2069
2070 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2071 (CFILES): Add md5.c.
2072 * md5.c: New file.
2073
20742000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2075
2076 * cp-demangle.c (demangle_name): Initialize template_p in local
2077 name case. Don't re-add substitutions as candidates.
2078 (demangle_nested_name): Use <unqualified-name>.
2079 (demangle_prefix): Likewise. Don't add template names as
2080 substitution candidates twice, or re-add a substitution or the
2081 last prefix component.
2082 (demangle_local_name): Adjust output format.
ae7d06ad
NC
2083
20842000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2085
2086 * cp-demangle.c (result_add_separated_char): Change parameter to
2087 int.
2088 (substitution_add): Don't check for duplicates. Check if
2089 previously allocated size is zero.
2090 (demangle_name): Remove duplicate check for std substitution.
2091 Clear template flag appropriately.
2092 (demangle_prefix): Remove argument to demangle_substitution.
2093 Don't check that template flag is already set.
2094 (demangle_operator_name): Add pt operator.
2095 (demangle_type): Don't treat r as built-in type. Remove argument
2096 to demangle_substitution. Fix substitution candidate mechanics.
2097 Handle <template-template-parm>s. Improve comments.
2098 (demangle_template_param): Don't handle template arg lists here.
2099 (demangle_substitution): Remove parameter.
2100 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
2101
21022000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2103
2104 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2105
21062000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2107
2108 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2109 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2110 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
2111
21122000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2113
2114 * cp-demangle.c (result_close_template_list): Remove function.
2115 (result_add_separated_char): New function.
2116 (result_open_template_list): New macro.
2117 (result_close_template_list): Likewise.
2118 (demangle_prefix): Don't set template_p if the
2119 prefix ends with a ctor name.
2120 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2121 (demangle_type): Check for template args after substitution.
2122 (demangle_template_args): Use result_open_template_list.
d3e85005 2123
ae7d06ad 21242000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2125
ae7d06ad 2126 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2127
ae7d06ad 21282000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2129
2130 * config/mh-openedition.h: Added -DLE370 definition.
2131
a9f34fb6
JL
21322000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2133
2134 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2135 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2136 Cast program to 'char *' in errmsg_arg assignment.
2137 (PWAIT_ERROR): Define.
2138 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2139 to DJGPP's WIF* macros.
2140
90aaccd1 21412000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2142 Jeff Law <law@cygnus.com>
90aaccd1 2143
ae7d06ad 2144 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2145
90aaccd1 2146 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2147 * rename.c: Include config.h, unistd.h
2148 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2149
6ef554e3
HPN
21502000-07-24 Hans-Peter Nilsson <hp@axis.com>
2151
2152 * cplus-dem.c (work_stuff_copy_to_from): New.
2153 (delete_non_B_K_work_stuff): New.
2154 (delete_work_stuff): New.
2155 (mop_up): Break out work_stuff partly destruction to
2156 delete_non_B_K_work_stuff.
2157 (iterate_demangle_function): New.
2158 (demangle_prefix): Call iterate_demangle_function instead of
2159 demangle_function_name. Leave handling of name-signature
2160 __-delimiters to iterate_demangle_function.
2161 (demangle_integral_value): Strip an optional
2162 following underscore cautiously. Handle negative numbers.
2163
ae7d06ad 21642000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2165
ae7d06ad 2166 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2167 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2168
ae7d06ad
NC
21692000-07-21 Alex Samuel <samuel@codesourcery.com>
2170
2171 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2172 allocating ctor mangling.
2173 (demangle_array_type): Handle empty and non-constant array length.
2174
b1233257 21752000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
2176 Jeff Law <law@cygnus.com>
2177
2178 * configure.in (AC_CHECK_HEADERS): Add time.h.
2179 (AC_HEADER_TIME): Add check.
2180 * configure, config.in: Regenerate.
2181 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2182
2183 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2184 * configure, config.in: Regenerate.
2185 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2186 * strtol.c, strtoul.c: #include "config.h". Portably #include
2187 <limits.h> and/or <sys/param.h>.
2188 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 2189
7d3ffcaf
JL
2190 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2191 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2192 * configure, config.in: Regenerate.
2193 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2194
b1233257
JL
2195 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2196
ae7d06ad
NC
21972000-07-21 Mike Stump <mrs@wrs.com>
2198
2199 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
2200 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
2201
22022000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2203
2204 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2205
2206 * setenv.c (setenv): Initialize variable `ep'.
2207
2208 * sigsetmask.c (abort): Prototype.
2209
2210 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2211 __STDC__ for stdarg.h include.
2212 (int_vasprintf): Prototype.
2213 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2214 definition. Cast `global_total_width' in comparison.
2215 (main): Prototype. Return a value.
2216
2217 * vfork.c (fork): Prototype.
2218
2219 * xexit.c: Include config.h.
2220
9adf30b2
JL
22212000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2222
2223 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2224 and print it with %u.
2225
2ed78d1b
HPN
22262000-07-17 Hans-Peter Nilsson <hp@axis.com>
2227
2228 * testsuite/regress-demangle (failed test): Show result and
2229 expected output.
2230
0473bdf7
AH
22312000-07-07 Andrew Haley <aph@cygnus.com>
2232
2233 * cplus-dem.c (main): fflush() after emitting last char before
2234 waiting for input.
2235
03d5f569
JM
22362000-06-28 Alex Samuel <samuel@codesourcery.com>
2237
2238 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2239 (demangle_name): Handle <substitution> followed by
2240 <unqualified-template-name>.
2241 (demangle_type): Follow special substitutions with
2242 <class-enum-type>
2243 (demangle_subtitution): Set template_p for special substitutions.
2244 (main): Fix typos.
ae7d06ad 2245
03d5f569
JM
22462000-06-27 Alex Samuel <samuel@codesourcery.com>
2247
2248 * cp-demangle.c (demangle_special_name): Swap base and derived
2249 class when demangling construction vtables.
2250
22512000-06-21 Alex Samuel <samuel@codesourcery.com>
2252
2253 * cp-demangle.c: Don't include ctype.h.
2254 (IS_DIGIT): New macro.
2255 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2256 instead of isdigit and isalpanum.
2257 (demangling_def): Make name and next const pointers.
2258 (STATUS_ALLOCATION_FAILED): New status code.
2259 (dyn_string_append_space): Handle failure in
2260 dyn_string_append_char.
2261 (int_to_dyn_string): Likewise. Change return value to status_t.
2262 (string_list_new): Handle failure of dyn_string_init.
2263 (result_close_template_list): Change return type to status_t.
2264 Handle failure in dyn_string_append.
2265 (result_push): Change return value to status_t. Handle failure in
2266 string_list_new. Handle failure of result_push throughout.
2267 (substitution_add): Change return value to status_t. Handle
2268 dyn_string failures. Handle failure of substitution_add
2269 throughout.
2270 (template_arg_list_new): Return NULL on allocation failure.
2271 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2272 Handle error result throughout.
2273 (result_append): Likewise.
2274 (result_append_char): Likewise.
2275 (result_append_space): Likewise.
2276 (demangling_new): Make argument a const pointer. Handle
2277 allocation failures.
2278 (demangle_template_args): Handle failure in template_arg_list_new
2279 and result_close_template_list.
2280 (demangle_discriminator): Return if int_to_dyn_string fails.
2281 (cp_demangle): Likewise.
2282 (cp_demangle_type): New function.
2283 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2284 memory allocation failure.
2285 (main): Likewise.
2286 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2287 IN_LIBGCC2.
2288 (dyn_string_init): Change return value to int. Handle
2289 RETURN_ON_ALLOCATION_FAILURE case.
2290 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2291 (dyn_string_release): Delete the dyn_string.
2292 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2293 (dyn_string_copy): Change return type to int.
2294 (dyn_string_copy_cstr): Likewise.
2295 (dyn_string_prepend): Likewise.
2296 (dyn_string_prepend_cstr): Likewise.
2297 (dyn_string_insert): Likewise.
2298 (dyn_string_insert_cstr): Likewise.
2299 (dyn_string_append): Likewise.
2300 (dyn_string_append_cstr): Likewise.
2301 (dyn_string_append_char): Likewise.
2302 (dyn_string_substring): Likewise.
ae7d06ad 2303
eb383413 23042000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 2305
eb383413
L
2306 * cp-demangle.c (demangle_operator_name): Add spaces before
2307 names beginning with a letter: delete, delete[], new, new[],
2308 sizeof.
2309 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 2310
eb383413
L
2311Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2312
2313 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2314
2315Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2316
2317 * cp-demangle.c (stdio.h): File included unconditionaly.
2318 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2319 * dyn-string.c (stdio.h): File included.
2320 * partition.c (partition_print): No `&' needed to take the address of
2321 a function.
2322
23232000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2324
2325 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 2326
eb383413
L
2327 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2328
2329 * cp-demangle.c (demangle_char): Change parameter from char to int.
2330 (demangle_expression, demangle_expr_primary): Remove extra
2331 semi-colon in prototype.
2332
2333 * dyn-string.c (dyn_string_append_char): Change parameter from
2334 char to int.
2335
2336 * memcmp.c (memcmp): Constify.
2337
2338 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2339 __extension__.
2340
2341 * partition.c (elem_compare): Prototype. Don't cast away
2342 const-ness.
2343
2344 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 2345
eb383413
L
23462000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2347
2348 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2349
2350 * cp-demangle.c: Include demangle.h.
2351 (template_arg_list_new): DeANSIfy.
2352 (cp_demangle): Make static and add prototype.
2353 (operator_code, operators): Constify.
2354 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2355
23562000-06-05 Alex Samuel <samuel@codesourcery.com>
2357
2358 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2359 unsigned char.
2360 (demangle_unqualified_name): Likewise.
2361 (demangle_number_literally): Likewise.
2362 (demangle_type): Likewise.
2363 (demangle_substitution): Likewise.
2364 (is_mangled_char): Likewise, for isalnum.
2365
23662000-06-04 Alex Samuel <samuel@codesourcery.com>
2367
2368 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2369 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2370 (cp-demangle.o): New dependency.
2371 (dyn-string.o): Likewise.
2372
2373 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2374
2375 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2376 demangler.
2377 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2378 demangling mode.
2379 (gnu_new_abi_symbol_characters): New function.
2380 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2381 file.
2382 * cp-demangle.c: New file.
ae7d06ad 2383
f03aa80d
AC
2384Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2385
2386 * floatformat.c: Add name to each floatformat field.
2387
77bfb694
JL
2388Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2389
2390 * Makefile.in (objalloc.o): Depend on config.h
2391
5c82d20a
ZW
23922000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2393
eb383413 2394 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2395 if HAVE_STRING_H.
2396 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2397 * objalloc.c: Include config.h. Include stdlib.h and don't
2398 declare malloc or free if HAVE_STDLIB_H.
2399 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2400 else declare malloc without prototype. Include string.h if
2401 HAVE_STRING_H, else declare memset without prototype. Don't
2402 include stddef.h.
2403
eb383413
L
24042000-05-23 Mike Stump <mrs@wrs.com>
2405
2406 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2407 -j3.
eb383413
L
2408
24092000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2410
2411 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2412
24132000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2414
ae7d06ad 2415 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2416 probably zero, also eliminate a warning on alpha.
2417
24182000-05-15 David Edelsohn <edelsohn@gnu.org>
2419
2420 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2421 on $(enable_shared).
2422
24232000-05-10 Jakub Jelinek <jakub@redhat.com>
2424
2425 * config.table: Use mh-sparcpic for sparc*-*-*.
2426
24272000-05-08 Nick Clifton <nickc@cygnus.com>
2428
2429 * Makefile.in (CFILES): Add strncmp.c.
2430 (NEEDED): Add strncmp.
2431
24322000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2433
eb383413
L
2434 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2435 Cast the arguments to `islower' to `unsigned char'.
2436 (print_demangler_list): Prototype.
2437
2438Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2439
2440 * sort.c (UCHAR_MAX): Provide fallback definition.
2441
24422000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2443
2444 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2445 SUBDIRS.
2446
eb383413
L
24472000-04-28 Kenneth Block <block@zk3.dec.com>
2448 Jason Merrill <jason@casey.cygnus.com>
2449
ae7d06ad
NC
2450 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2451 (cplus_demangle_set_style): New function for setting style.
2452 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2453
24542000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2455
2456 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2457
2458 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2459 (libiberty_AC_FUNC_STRNCMP): Invoke.
2460
2461 * strncmp.c: New file.
2462
2463Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2464
2465 * hashtab.c (htab_expand): Add prototype.
2466 (find_empty_slot_for_expand): Likewise.
2467
24682000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2469
2470 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2471 match prototype.
2472 (htab_expand): Cast the return value of xcalloc.
2473
24742000-04-24 Mark Mitchell <mark@codesourcery.com>
2475
2476 * hashtab.c (hash_pointer): New function.
2477 (eq_pointer): Likewise.
2478 (htab_hash_pointer): New variable.
2479 (htab_eq_pointer): Likewise.
2480
24812000-04-23 Mark Mitchell <mark@codesourcery.com>
2482
2483 * sort.c (sort_pointers): Fix endianness bugs.
2484
2485 * sort.c: New file.
2486 * Makefile.in (CFILES): Add sort.c
2487 (REQUIRED_OFILES): Add sort.o.
2488 (sort.o): New target.
2489
19be4303
JL
24902000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2491
2492 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2493 4.3BSD systems.
2494
eb383413
L
2495Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2496
2497 * hashtab.c: Various minor cleanups.
2498 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2499 (htab_find_slot): Likewise.
2500
25012000-04-16 Dave Pitts <dpitts@cozx.com>
2502
2503 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2504
afe36a78
RH
25052000-04-05 Richard Henderson <rth@cygnus.com>
2506
2507 * splay-tree.c (splay_tree_remove): New.
2508
eb383413
L
25092000-03-30 Mark Mitchell <mark@codesourcery.com>
2510
2511 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2512 codes.
2513 (htab_find_with_hash): Likewise.
2514 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2515
eb383413
L
25162000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2517
2518 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2519 unless it will be used. Rearrange loop for better
2520 optimization.
2521 (higher_prime_number): Add static prototype.
2522
b4fe2683
JM
2523Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2524
2525 * Makefile.in (partition.o): Depend on config.h
2526
25272000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2528
2529 * hashtab.c (find_empty_slot_for_expand): New function.
2530 (htab_expand): Use it instead of htab_find_slot.
2531 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2532 argument HASH.
2533 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2534 (htab_find): New wrapper function.
2535 (htab_find_slot): Likewise.
2536 (htab_traverse): Pass slot, not entry, to called function.
2537
25382000-03-09 Alex Samuel <samuel@codesourcery.com>
2539
2540 * Makefile.in (CFILES): Add partition.c.
2541 (REQUIRED_OFILES): Add partition.o.
2542 (partition.o): New rule.
2543 * partition.c: New file.
ae7d06ad 2544
b4fe2683
JM
25452000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2546
2547 * hashtab.c (htab_create): Set del_f.
2548 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2549 Use it.
2550
25512000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2552
2553 * hashtab.c: Remove debugging variables (all_searches,
2554 all_collisions, all_expansions). Delete
2555 all_hash_table_collisions.
2556 (create_hash_table, delete_hash_table, empty_hash_table,
2557 find_hash_table_entry, remove_element_from_hash_table_entry,
2558 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2559 hash_table_elements_number, hash_table_collisions): Rename to:
2560 htab_create, htab_delete, htab_empty, htab_find_slot,
2561 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2562 htab_elements, htab_collisions.
2563 (htab_find): New function, handles common case where you don't
2564 plan to add or delete an entry.
2565 (htab_expand): Don't create a whole new table, just a new
2566 entry vector.
2567 (htab_find_slot): Simplify logic.
2568
08372f14
ILT
25691999-08-03 Ian Lance Taylor <ian@zembu.com>
2570
2571 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2572 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2573
2574 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2575 $(TARGETLIB)n so it works on MSDOS.
2576 (install_to_tooldir): Likewise.
2577
9c8ac5a9
ILT
25781999-07-21 Ian Lance Taylor <ian@zembu.com>
2579
2580 From Mark Elbrecht:
2581 * makefile.dos: Remove; obsolete.
8f36e47c 2582 * configure.bat: Remove; obsolete.
9c8ac5a9 2583
0c0a36a4
ILT
25841999-07-11 Ian Lance Taylor <ian@zembu.com>
2585
2586 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2587 warning.
2588
25892000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2590
2591 * pexecute.c: Conditionally include string.h.
b4fe2683 2592 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2593
25942000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2595
2596 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2597 we're using gcc.
2598
2599 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2600
26011999-12-27 Geoff Keating <geoffk@cygnus.com>
2602
2603 * vasprintf.c (int_vasprintf): Don't re-read the format character
2604 as this mishandles strings like '%%s'.
2605
26061999-12-05 Mark Mitchell <mark@codesourcery.com>
2607
2608 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2609 rather than struct splay_tree_node.
2610 (splay_tree_insert): Use struct splay_tree_s rather than struct
2611 splay_tree.
2612
2613Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2614
2615 * hashtab.c (sys/types.h): File included.
2616
26171999-11-22 Jason Merrill <jason@casey.cygnus.com>
2618
2619 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2620 BSD license, pursuant with
2621
2622 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2623
2624Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2625
2626 * hashtab.c: Include stdio.h.
2627
2628Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2629
2630 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2631
2632Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2633
2634 * xstrdup (sys/types.h): Include this file.
2635
26361999-10-28 Nathan Sidwell <nathan@acm.org>
2637
2638 * Makefile.in (SUBDIRS): New macro.
2639 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2640 avoid multiple subdirectory cleaning.
2641 (*-subdir): Use SUBDIRS.
2642
26431999-10-25 Jim Kingdon <http://developer.redhat.com/>
2644
2645 * cplus-dem.c: Move declarations of standard_symbol_characters and
2646 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2647 warnings.
2648
26491999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2650
2651 * hashtab.c (find_hash_table_entry): When returning a
2652 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2653 (clear_hash_table_slot): New function which deletes an entry
2654 by its position in the table, not its value.
2655 (traverse_hash_table): New function which calls a hook
2656 function for every live entry in the table.
2657
26581999-10-19 Mark Mitchell <mark@codesourcery.com>
2659
2660 * cplus-dem.c (INTBUF_SIZE): New macro.
2661 (string_append_template_idx): New function.
2662 (demangle_expression): Likewise.
2663 (demangle_integral_value): Use it.
2664 (demangle_real_value): New function, split out from ...
2665 (demangle_template_value_parm): ... here. Use
2666 string_append_template_idx. Use demangle_real_value.
2667 (demangle_template): Use string_append_template_idx.
2668 (demangle_qualified): Use consume_count_with_underscores.
2669 (get_count): Tweak formatting.
2670 (do_type): Use string_append_template_idx.
b4fe2683 2671
0c0a36a4
ILT
26721999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2673
2674 * calloc.c: Add a public domain notice.
2675
2676Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2677
2678 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2679
2680Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2681
2682 * Makefile.in (CFILES): Add hashtab.c
2683 (REQUIRED_OFILES): Add hashtab.o
2684 (hashtab.o): Add dependencies.
2685 * hashtab.c: New file
2686
2687Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2688
2689 * basename.c (DIR_SEPARATOR): New macro.
2690 (DIR_SEPARATOR_2): Likewise.
2691 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2692 (IS_DIR_SEPARATOR): Likewise.
2693 (main): Handle MSDOS style pathname.
2694
26951999-10-11 Mark Mitchell <mark@codesourcery.com>
2696
2697 * cplus-dem.c (do_type): Handle pointer to member types whose
2698 enclosing classes have namespace scope.
2699
2700Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2701
2702 * config.table: Provide a backup shell for executing move-if-change.
2703
27041999-10-02 Mark Mitchell <mark@codesourcery.com>
2705
2706 * xmalloc.c (xmalloc): Fix spelling error.
2707 (xcalloc, xrealloc): Likewise.
2708
27091999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2710
2711 * cplus-dem.c (fancy_abort, demangle_integral_value,
2712 demangle_arm_hp_template, recursively_demangle,
2713 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2714 (program_name, program_version, fatal): Constify a char*.
2715 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2716 (main): Call return, not exit.
2717
27181999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2719
2720 * choose-temp.c: Remove obsolete comment about gcc.
2721 (make_temp_file): Constify a char*.
2722
2723Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2724
2725 * xmemdup.c: Include sys/types.h.
2726
27271999-09-07 Jeff Garzik <jgarzik@pobox.com>
2728
2729 * xmemdup.c: New xmemdup function.
2730 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2731
2732Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2733
b4fe2683 2734 * config.table: Add openedition target.
0c0a36a4
ILT
2735 * config/mh-openedition: New file.
2736
2737Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2738
2739 * pexecute.c (pexecute): Fill in temp_base when needed.
2740
27411999-08-31 Richard Henderson <rth@cygnus.com>
2742
2743 * getpwd.c: Check HAVE_GETCWD before defining it away.
2744
27451999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2746
2747 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2748 (REQUIRED_OFILES): Add getpwd.o.
2749 (getpwd.o): Add target.
2750
2751 * configure.in (AC_PREREQ): Bump to 2.13.
2752 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2753
2754 * getpwd.c: New file, moved here from gcc.
2755
27561999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2757
2758 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2759 comparing against a signed quantity.
2760 (arm_special): Likewise.
2761 (demangle_fund_type): Likewise.
2762 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2763 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2764 (main): Constify variable `valid_symbols'.
2765
2766Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2767
2768 * strtoul.c (strtoul): Add parentheses around && within ||.
2769
2770Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2771
2772 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2773 libdir, libsubdir and tooldir.
2774
27751999-08-01 Mark Mitchell <mark@codesourcery.com>
2776
2777 * splay-tree.c (splay_tree_insert): Return the new node.
2778
35ca97ea
RH
27791999-07-14 Richard Henderson <rth@cygnus.com>
2780
b4fe2683 2781 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
2782 prototyping directly.
2783 * choose-temp.c: Conditionally include string.h.
2784
0c0a36a4
ILT
27851999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2786
2787 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2788
af32ff69
ILT
27891999-07-11 Ian Lance Taylor <ian@zembu.com>
2790
2791 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2792 warning.
2793
0c0a36a4
ILT
27941999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2795
2796 * Makefile.in (needed-list): Only include stuff we actually need
2797 for libstdc++.
2798
27991999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2800
2801 * configure.in (checkfuncs): Add gettimeofday.
2802 * config.in, configure: Regenerated.
2803
2804Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2805
2806 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2807 the test fails.
2808 * configure: Regenerate.
2809
28101999-06-10 Mike Stump <mrs@wrs.com>
2811
2812 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2813 parallel builds.
2814
28151999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2816
2817 * putenv.c: Include ansidecl.h to define `const'.
2818 * setenv.c: Likewise.
2819
2820Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2821
2822 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2823 * configure.in (funcs): Add putenv and setenv.
2824 (AC_CHECK_FUNCS): Check for putenv and setenv.
2825 * configure: Rebuilt.
2826 * putenv.c setenv.c: New files.
2827
2828 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2829 bytes of space using malloc.
2830
2831Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2832
2833 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2834 the *mangled pointer beyond the end of the string. Clean up code to
2835 match prevailing coding style.
2836
28371999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2838
2839 * tmpnam.c (L_tmpnam): Fix typo.
2840
2841Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2842
2843 * cplus-dem.c (standard_symbol_characters): Renamed from
2844 standard_symbol_alphabet. No longer modify TABLE.
2845 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2846 modify TABLE.
2847 (main): Corresponding changes. Use strchr to determine if a
2848 character is valid.
2849
e9868447
JB
28501999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2851
2852 * cplus-dem.c (main): Use table lookup to distinguish identifier
2853 characters from non-identifier characters.
2854 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2855
33fbbfbc
RH
2856Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2857
2858 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2859 * getruntime.c: Only attempt to include sys/resource.h and
2860 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2861 are defined.
2862
0c0a36a4
ILT
2863Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2864
2865 * configure.in (alloca detection): Handle alloca directly for interix.
2866 * configure: Rebuilt.
2867
2868Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2869
2870 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2871
252b5132
RH
28721999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2873
2874 Fix from Dale Hawkins:
b4fe2683 2875 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
2876 reallocated properly if we use it again.
2877
2878 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
2879 stricter about syntax. Always null-terminate string.
2880
c1687039
ILT
2881Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
2882
2883 * configure.in (checkfuncs): Check for sbrk.
2884 * config.in: Rebuilt.
2885 * configure: Likewise.
2886 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
2887
0c0a36a4
ILT
28881999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
2889
2890 Fix from Marcus Daniels:
2891 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
2892 identifier looking for another underscore.
2893
2894Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
2895
2896 * pexecute.c: Change all references to __UWIN__ to _UWIN.
2897 * xmalloc.c: Likewise.
2898 (xcalloc): UWIN has sbrk.
2899 (xrealloc): Fix guard macro.
2900
252b5132
RH
29011999-04-11 Richard Henderson <rth@cygnus.com>
2902
2903 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
2904 or <alloca.h>.
2905 * clock.c (GNU_HZ): New definition.
2906 (clock): Use it.
2907 * getruntime.c: Likewise.
2908
2909 * config.table: Use mh-beos.
2910 * config/mh-beos: New file.
2911
0c0a36a4
ILT
29121999-04-11 Mark Mitchell <mark@codesourcery.com>
2913
2914 * cplus-dem.c (demangle_template_value_parm): Handle
2915 pointers-to-members.
2916 (do_type): Handle template parameters as qualifiers.
2917
252b5132
RH
29181999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
2919
2920 * cplus-dem.c: Attempt to handle overflows in counts with some
2921 semblance of grace.
2922 (consume_count): Detect overflows. Return -1 to indicate errors,
2923 instead of zero.
2924 (demangle_template_value_parm, demangle_template): Handle change
2925 to consume_count's return convention.
2926
0c0a36a4
ILT
29271999-04-05 Tom Tromey <tromey@cygnus.com>
2928
2929 * testsuite/regress-demangle: New file.
2930 * testsuite/demangle-expected: New file.
252b5132 2931
0c0a36a4
ILT
2932 * Makefile.in (all, check, installcheck, info, install-info,
2933 clean-info, dvi, install, etags, tags, mostlyclean, clean,
2934 distclean, maintainer-clean, realclean): Depend on corresponding
2935 `-subdir' target.
2936 (all-subdir check-subdir installcheck-subdir info-subdir
2937 install-info-subdir clean-info-subdir dvi-subdir
2938 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
2939 distclean-subdir maintainer-clean-subdir): New target.
2940 * testsuite/Makefile.in: New file.
2941 * configure: Rebuilt.
2942 * configure.in: Create testsuite/Makefile.
252b5132
RH
2943
29441999-04-02 Mark Mitchell <mark@codesourcery.com>
2945
2946 * splay-tree.h (splay_tree_compare_pointers): Define.
2947
29481999-03-30 Mark Mitchell <mark@codesourcery.com>
2949
2950 * splay-tree.c (splay_tree_compare_ints): Define.
2951
29521999-03-30 Tom Tromey <tromey@cygnus.com>
2953
2954 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
2955 don't advance input pointer.
2956 (demangle_class_name): If consume_count didn't find a count, do
2957 nothing. Don't bother with `strlen' sanity check; consume_count
2958 does it for us.
2959
29601999-03-16 Stan Shebs <shebs@andros.cygnus.com>
2961
2962 From Art Haas <ahaas@neosoft.com>:
2963 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
2964 when doing arm or hp style.
2965 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 2966
252b5132
RH
2967Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
2968
2969 * pexecute.c (__CYGWIN32__): Rename to
2970 (__CYGWIN__): this.
2971 * xmalloc.c: Likewise.
2972
2973 Changes to support i386-pc-uwin.
2974 * configure.in (*-*-uwin*): Workaround for vfork bug.
2975 * configure: Regenerate.
2976 * pexecute.c (pexecute): Be like standard Unix.
2977 (pwait): Likewise.
2978 * xmalloc.c (first_break): Define.
2979 (xmalloc_set_program_name): Use.
2980 (xmalloc): Use.
2981
2982Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2983
2984 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
2985
2986Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
2987
2988 * config.table: Check cygwin*, not cygwin32*.
2989
2990Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
2991
2992 * Makefile.in: Change mkstemp -> mkstemps.
2993
2994Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
2995
2996 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
2997 * configure.in (funcs): Check for and conditionally add mkstemps to
2998 the list of functions libiberty will provide.
2999 * configure: Rebuilt.
b4fe2683 3000
252b5132
RH
3001Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3002
b4fe2683 3003 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3004 platforms that don't have HZ.
3005 * getruntime.c (HZ): Likewise.
3006
3007Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3008
3009 * Makefile.in (xstrdup.o): Depend on config.h.
3010
3011Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3012
3013 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3014 freeing it.
3015
3016Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3017
3018 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3019
3020Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3021
3022 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3023 splay-tree.o.
3024
30251999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3026
3027 * configure.in: Require autoconf 2.12.1 or higher.
3028
30291998-12-30 Michael Meissner <meissner@cygnus.com>
3030
3031 * random.c (NULL): Don't redefine NULL if it is already defined.
3032
3033Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3034
3035 * argv.c (buildargv): Cast the result of alloca in assignment.
3036
3037 * choose-temp.c: Include stdlib.h.
3038
3039 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
3040 (snarf_numeric_literal): Constify first parameter.
3041 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3042 int, not a char.
252b5132
RH
3043 (demangle_qualifier): Likewise.
3044 (demangle_signature): Cast the argument of a ctype function to
3045 unsigned char.
3046 (arm_pt): Add parens around assignment used as truth value.
3047 (demangle_arm_hp_template): Constify variable `args'.
3048 (do_hpacc_template_const_value): Cast the argument of a ctype
3049 function to unsigned char.
3050 (do_hpacc_template_literal): Remove unused variable `i'.
3051 (snarf_numeric_literal): Constify parameter `args'.
3052 Cast the argument of a ctype function to unsigned char.
3053
3054 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 3055 avoid ambiguous `else'.
252b5132
RH
3056
3057 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3058 `cstart' and `cend' to unsigned char. Cast the argument of macro
3059 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3060
3061 * objalloc.c (free): Add prototype.
3062
3063Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3064
3065 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3066
3067Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3068
3069 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3070 doesn't exist.
252b5132 3071 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3072
252b5132
RH
3073Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3074
3075 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3076 bumping the pointer we read from. Also prepend these codes,
3077 as we do in other places.
3078
30791998-12-18 Nick Clifton <nickc@cygnus.com>
3080
3081 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3082 'const char *' in order to match its usage when calling siblings.
3083 (snarf_numeric_literal): Make first arg 'const char **' in order
3084 to match usage.
3085
3086Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3087
3088 * choose-temp.c: Don't check IN_GCC anymore.
3089
3090 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3091 * memchr.c (memchr): Likewise.
3092 * memcpy.c (memcpy): Likewise.
3093 * memmove.c (memmove): Likewise.
3094
3095 * mkstemp.c: Don't check IN_GCC anymore.
3096 * pexecute.c: Likewise.
3097 * splay-tree.c: Likewise.
3098
3099 * strchr.c (strchr): Use `const', not `CONST'.
3100 * strrchr.c (strrchr): Likewise.
3101 * strtol.c (strtol): Likewise.
3102 * strtoul.c (strtoul): Likewise.
3103
3104Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3105 Elena Zannoni <ezannoni@cygnus.com>
3106 Stan Shebs <shebs@cygnus.com>
3107 Edith Epstein <eepstein@cygnus.com>
3108 Andres MacLeod <amacleod@cygnus.com>
3109 Satish Pai <pai@apollo.hp.com>
3110
3111 * HP aCC demangling support.
3112 * cplus-dem.c
3113 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
3114 demangling correctly when -edg specified; set the demangling style
3115 when user specifies 'edg'. Set strip_underscore to
3116 prepends_underscore, if not HPUXHPPA. Set
3117 current_demangling_style to hp_demangling if HPUXHPPA. Set
3118 current demangling style correctly if the switch is hp. Read
3119 label correctly also in the HP style case.
252b5132 3120 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3121 function.
252b5132 3122 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3123 style for this case is the same as ARM.
252b5132
RH
3124 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3125 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
3126 demangle_arm_pt.); check and set value of temp_start field in
3127 multiple places. Also, when ceching for end of template args,
3128 check to see if at end of static member of template class.
252b5132 3129 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3130 include template args in string defining class.
252b5132
RH
3131 (demangle_class_name): use demangel_arm_hp_template.
3132 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
3133 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3134 Handle EDG_DEMANGLING style. Handle constructor and destructor
3135 ops for HP style.
252b5132 3136 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3137 styles. global destructor and constructor for HP style are same
3138 as for ARM style. Same for local variables.
252b5132
RH
3139 (demangle_qualified): handle EDG_DEMANGLING style.
3140 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
3141 cases '1' - '9' : initialize the temp_start field to -1 and handle
3142 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3143 and AUTO_DEMANGLING styles. If expecting a function and managed
3144 to demangle the funct args, then handle the LUCID_DEMANGLING,
3145 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3146 class name after "Lnnn_ in HP style case. HP style too needs to
3147 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 3148 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3149 value param for HP/aCC.
252b5132 3150 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3151 literal parameter for HP aCC.
252b5132
RH
3152 (recursively_demangle): new function
3153 (snarf_numeric_literal): new function.
3154 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3155 to message.
252b5132
RH
3156
3157Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3158
3159 * pexecute.c: Remove obsolete ifdefed cygwin code.
3160
3161Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3162
3163 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3164 * cplus-dem.c: Likewise. Conform to libiberty.h.
3165 * pexecute.c: Likewise.
3166 * splay-tree.c: Likewise.
3167
31681998-11-25 Mike Stump <mrs@wrs.com>
3169
3170 * Makefile.in (splay-tree.o): Add config.h dependency.
3171
3172Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3173
3174 * configure.in: Use AC_PREREQ(2.12.1).
3175
31761998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3177
b4fe2683 3178 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3179
3180Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3181
3182 * mpw.c (mpw_access): Add missing parens.
3183
3184Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3185
3186 * configure.in: Call AC_HEADER_SYS_WAIT.
3187
3188 * pexecute.c: Include sys/wait.h when !IN_GCC.
3189
3190Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3191
3192 * pexecute.c: revert back to checking old Cygwin
3193 preprocessor symbol until some time has passed.
3194
3195Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3196
3197 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3198 since it will now support similar constructs.
3199
3200Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3201
3202 * configure.in: Check for calloc.
3203
3204 * calloc.c: New file.
3205
3206 * xmalloc.c (xcalloc): New function.
3207
3208Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3209
3210 *cplus-dem.c (demangle_prefix): Use the last "__"
3211 in the mangled name when looking for the signature. This allows
3212 template names to begin with "__".
3213
32141998-11-08 Mark Mitchell <mark@markmitchell.com>
3215
3216 * cplus-dem.c (type_kind_t): Add tk_reference.
3217 (demangle_template_value_parm): Handle it.
3218 (do_type): Use it for references, instead of tk_pointer.
3219
3220 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3221 not internal_cplus_demangle.
3222
3223Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3224
3225 * choose-temp.c: Don't include gansidecl.h.
3226 * mkstemp.c: Likewise.
3227 * pexecute.c: Likewise.
3228
3229Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3230
b4fe2683
JM
3231 * configure.in: detect cygwin* instead of cygwin32*
3232 * configure: regenerate
252b5132
RH
3233
3234Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3235
3236 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
3237 whether to include config.h. Possibly include unistd.h in the
3238 !IN_GCC case. Define VFORK_STRING as a printable function call
3239 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3240 defined, include vfork.h. If VMS is defined, define vfork()
3241 appropriately. Remove vfork check on USG, we're using autoconf.
3242 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3243 locally what string to use.
252b5132
RH
3244
32451998-10-26 Mark Mitchell <mark@markmitchell.com>
3246
3247 * splay-tree.c: Tweak include directives to make sure declarations of
3248 xmalloc and free are available.
3249
32501998-10-25 Mark Mitchell <mark@markmitchell.com>
3251
3252 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3253 anonymous namespaces.
3254
32551998-10-23 Mark Mitchell <mark@markmitchell.com>
3256
3257 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3258 with type_quals.
3259 (TYPE_UNQUALIFIED): New macro.
3260 (TYPE_QUAL_CONST): Likewise.
3261 (TYPE_QUAL_VOLATILE): Likewise.
3262 (TYPE_QUAL_RESTRICT): Likewise.
3263 (code_for_qualifier): New function.
3264 (qualifier_string): Likewise.
3265 (demangle_qualifier): Likewise.
3266 (internal_cplus_demangle): Use them.
3267 (demangle_signature): Likewise.
3268 (demangle_template_value_parm): Likewise.
3269 (do_type): Likewise.
3270 (demangle_fund_type)): Likewise.
3271
3272Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3273
3274 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3275 to match prototype.
3276
32771998-10-21 Mark Mitchell <mark@markmitchell.com>
3278
3279 * splay-tree.c: New file.
3280 * Makefile.in (CFILES): Add it.
3281 (REQUIRED_OFILES): Likewise.
3282 (splay-tree.o): Add dependencies.
3283
3284Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3285
3286 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3287 range of 'K' index.
3288
3289Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3290
3291 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3292
3293 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3294 `unsigned char'.
3295 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3296 comparing against one.
3297 (cplus_mangle_opname): Likewise.
3298 (demangle_integral_value): Cast argument of ctype macro to
3299 `unsigned char'.
3300 (demangle_template_value_parm): Likewise.
3301 (demangle_template): Initialize variable `bindex'. Cast the
3302 result of `strlen' to (int) when comparing against one. Remove
3303 unused variable `start_of_value_parm'.
3304 (demangle_class_name): Cast the result of `strlen' to (int) when
3305 comparing against one.
3306 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3307 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3308 when comparing against one.
3309 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3310 (get_count): Likewise.
3311 (do_type): Likewise. Cast the result of `strlen' to (int) when
3312 comparing against one.
3313 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3314 (demangle_function_name): Cast the result of `strlen' to (int)
3315 when comparing against one.
3316
3317 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3318 comparing against one.
3319
3320Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3321
b4fe2683
JM
3322 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3323 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3324 * config.in, configure: Rebuilt.
252b5132
RH
3325
3326 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3327 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3328 * config.in, configure: Rebuilt.
3329
3330Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3331
b4fe2683 3332 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
3333
3334Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3335
3336 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3337
3338Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3339
3340 * Merge egcs & devo libiberty.
3341