* as.h (assert): Warning fix.
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
aca9a742
JM
12005-02-13 Jason Merrill <jason@redhat.com>
2
3 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
4 arguments.
5
b5c3b3de
DD
62005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
7
8 * hex.c (hex_value): Group 'unsigned int' together to get correct
9 markup.
10 * functions.texi: Regenerated.
11
46a10049
DD
122004-12-27 H.J. Lu <hongjiu.lu@intel.com>
13
14 * Makefile.in: Undo to 2004-12-17.
15 * aclocal.m4: Likewise.
16 * config.table: Likewise.
17 * configure.ac: Likewise.
18 * maint-tool: Likewise.
19 * configure: Likewise.
20
fbfdf750
DD
212004-12-19 H.J. Lu <hongjiu.lu@intel.com>
22
23 PR bootstrap/19072
24 * Makefile.in (enable_shared): New substitute.
25 (LTTARGETLIB): New.
26 (PREFIXTARGETLIB): New.
27 (LTTESTLIB): New.
28 (PREFIXTESTLIB): New.
29 (CCLD): New.
30 (LINK): New.
31 ($(TARGETLIB)): Use $(LINK) to create libraries and create
32 targets by hand.
33 ($(TESTLIB)): Likewise.
34 (mostlyclean): Don't remove .libs. Remove the libtool object
35 directory.
36
37 * config.table (enable_shared): Removed.
38
39 * configure.ac (enable_static): Set to yes.
40 (AC_PROG_LIBTOOL): Removed.
41 (AM_DISABLE_SHARED): Uncommented.
42 (AM_PROG_LIBTOOL): Likewise.
43 (LIBOBJS): Add `./' to avoid VPATH.
44 (LTLIBOBJS): Likewise.
45 (enable_shared): Substitute.
46 * configure: Regenerated.
47
96e00b33
L
482004-12-18 H.J. Lu <hongjiu.lu@intel.com>
49
50 * Makefile.in (top_builddir): Set to `.'.
51 (OUTPUT_OPTION): Removed.
52 (LIBTOOL): New.
53 (LTLIBOBJS): New.
54 (EXTRA_LTOFILES): New.
55 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
56 (all): Remove stamp-picdir.
57 (LTCOMPILE): New.
58 (.c.lo): New rule.
59 (REQUIRED_LTOFILES): New.
60 (CONFIGURED_LTOFILES): New.
61 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
62 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
63 (stamp-picdir): Completely removed.
64 (maint-missing): Pass $(REQUIRED_LTOFILES)
65 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
66 $(CONFIGURED_OFILES)
67 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
68 $(CONFIGURED_LTOFILES).
69 (mostlyclean): Also remove *.lo .libs.
70 Run "make maint-deps".
71
72 * aclocal.m4: Include ../libtool.m4.
73
74 * config.table: Don't check --enable-shared.
75
76 * configure.ac (AC_PROG_LIBTOOL): Add.
77 (AC_PROG_CC_C_O): Removed.
78 (OUTPUT_OPTION): Removed.
79 (NO_MINUS_C_MINUS_O): Removed.
80 (ltpexecute): New substitute.
81 (LIBOBJS): Cleanup.
82 * configure: Regenerated.
83
84 * maint-tool: Updated for .lo/libtool.
85
40a59a4c
DD
862004-12-11 Ben Elliston <bje@au.ibm.com>
87
88 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
89 * configure: Regenerate.
90 * config.in: Likewise.
91
9923bc33
DD
922004-12-07 DJ Delorie <dj@redhat.com>
93
94 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
95 that recursion (and thus large stack space) is not needed.
96
70615d15
DD
972004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
98
99 * pex-unix.c: Fix the spelling of longjmp.
100
eb129e35
DD
1012004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
102
103 PR other/18623
104 * cp-demangle.c (d_call_offset): Remove useless local variables
105 offset and virtual_offset.
106 * cplus-dem.c (ada_demangle): Remove useless local variable
107 at_start_name.
108 (demangle_template): Remove useless local variable start.
109
3e0f1404
DD
1102004-11-19 Roger Sayle <roger@eyesopen.com>
111
112 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
113 "ansidecl.h" to avoid redeclaration errors with native compilers.
114 * regex.c: Protect config.h from multiple inclusion.
115
6cfb3176
DD
1162004-11-12 Mike Stump <mrs@apple.com>
117
118 * Makefile.in (libiberty.html): Fix html generation.
119
f9b4e353
DD
1202004-09-08 Adam Nemet <anemet@lnxw.com>
121
122 * vasprintf.c: Accept __va_copy in addition to va_copy.
123
c7efc4d5
PB
1242004-09-03 Paolo Bonzini <bonzini@gnu.org>
125
126 * configure: Regenerate.
127
f5396bbe
PB
1282004-09-02 Paolo Bonzini <bonzini@gnu.org>
129
130 * configure.ac: Do not enable multilibs for build-side libiberty.
131
950ad202
DD
1322004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
133
134 * lrealpath.c (lrealpath): Add _WIN32 support.
135
a21da8bf
DD
1362004-06-28 Zack Weinberg <zack@codesourcery.com>
137
138 * cp-demangle.h: Declare cplus_demangle_operators,
139 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
140 cplus_demangle_type as static if IN_GLIBCPP_V3.
141
1422004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
143
144 PR other/16240
145 * cp-demangle.c (d_expr_primary): Check for a failure return from
146 cplus_demangle_type.
147 * testsuite/demangle-expected: Add test case.
148
9f7d3e7d
DD
1492004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
150
151 * pex-win32.c (fix_argv): Expand comment.
152
0cb2db3a
DD
1532004-05-25 Daniel Jacobowitz <drow@false.org>
154
155 * Makefile.in: Add .NOEXPORT.
156
25319993
DD
1572004-04-29 Douglas B Rupp <rupp@gnat.com>
158
159 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
160 copyright.
161
7e9f5c71
DD
1622004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
163
164 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
165 * configure: Regenerate.
166
bb6a587d
DD
1672004-04-22 Richard Henderson <rth@redhat.com>
168
169 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
170 (CHAR_BIT): Provide default.
171 (struct prime_ent, prime_tab): New.
172 (higher_prime_index): Rename from higher_prime_number, return index.
173 (htab_mod_1): New.
174 (htab_mod, htab_mod_m2): Use it.
175 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
176 (htab_expand): Likewise.
177 * configure.ac: Check for stdint.h.
178 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
179 * config.in, configure: Rebuild.
180
53239e41
DD
1812004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
182
183 * strerror.c: Include config.h, and redefine sys_nerr and
184 sys_errlist, before including ansidecl.h and libiberty.h.
185
d6ea4e80
DD
1862004-04-13 Jeff Law <law@redhat.com>
187
188 * hashtab.c (htab_remove_elt_with_hash): New function.
189 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
190
fe046a17
DD
1912004-03-31 Richard Henderson <rth@redhat.com>
192
193 * hashtab.c (htab_size): Move to top of file; mark inline.
194 (htab_elements): Likewise.
195 (htab_mod, htab_mod_m2): New.
196 (htab_delete): Refactor htab->size and htab->entries.
197 (htab_empty): Likewise.
198 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
199 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
200 (htab_clear_slot): Use htab_size, htab_elements.
201 (htab_traverse_noresize, htab_traverse): Likewise.
202
e0c148a7
DD
2032004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
204
12a7367e
DD
205 * pex-unix.c (pexecute): Use vfork instead of fork, with
206 appropriate changes to make this safe.
207 * pex-common.h (STDERR_FILE_NO): Define.
208
e0c148a7
DD
209 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
210 an 80 column screen. Run maint-deps.
211
85f969cd
DD
2122004-03-09 Kelley Cook <kcook@gcc.gnu.org>
213
214 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
215 * acconfig.h: Delete redundant file.
216 * config.in: Regenerate.
217 * configure: Regenerate.
218
58670637
DD
2192004-03-09 Hans-Peter Nilsson <hp@axis.com>
220
221 * configure: Regenerate for config/accross.m4 correction.
222
758d77be
DD
2232004-03-07 Andreas Jaeger <aj@suse.de>
224
225 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
226 prototypes.
227 (main): Initialize style.
228
74aee4eb
DD
2292004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
230
2d733211
DD
231 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
232 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
233 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
234 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
235 short types to D_PRINT_DEFAULT. Change other integer types to use
236 new D_PRINT_* values where appropriate. Change float types to
237 D_PRINT_FLOAT.
238 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
239 values.
240 * testsuite/demangle-expected: Adjust two test cases.
241
242 * cp-demangle.c (d_print_function_type): Print a space before the
243 parenthesis around the function type in more cases.
244 * testsuite/demangle-expected: Adjust one test case.
245
099f84cf
DD
246 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
247 parentheses around a cast.
248 * testsuite/demangle-expected: Adjust two test cases to match new
249 output.
250
74aee4eb
DD
251 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
252
253 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
254 push more than one of the same CV-qualifier on the top of the
255 stack.
256 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
257 move the CV-qualifiers to apply to the element type instead.
258 (d_print_array_type): When checking the modifiers, keep looking
259 past ones which have been printed already.
260 * testsuite/demangle-expected: Add three test cases.
261
2622004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
263
264 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
265 empty string correctly.
266
267 * cp-demangle.c (__cxa_demangle): It is not an error if status is
268 not NULL. It is an error if the mangled name is the same as a
269 built-in type name.
270 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
271 than cplus_demangle_v3.
272
273 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
274 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
275
f9375305
DD
2762004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
277
278 * regex.c: Include <ansidecl.h>.
279 (regcomp): Cast i to int.
280 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
281
cbf0ee79
DD
2822004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
283
284 * configure.ac: Add m4_pattern_allow(LIBOBJS).
285 * configure: Regenerate.
286
37254c9a
DD
2872004-01-22 DJ Delorie <dj@redhat.com>
288
289 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
290 with explicit build rules.
291 (VPATH): Remove.
292 (.c.o): Poison.
293 * configure.ac (pexecute, LIBOBJS): Add ./ .
294 * maint-tool: Build dependencies with explicit rules.
295
211333f6
DD
2962004-01-15 Kazu Hirata <kazu@cs.umass.edu>
297
298 * strdup.c (strdup): Constify the argument.
299
3795d586
DD
3002004-01-14 Loren J. Rittle <ljrittle@acm.org>
301
302 * Makefile.in (distclean): Remove config.cache.
303
2d6520ee
DJ
3042004-01-13 Daniel Jacobowitz <drow@mvista.com>
305
306 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
307 takes two parameters.
308 * cp-demint.c (cplus_demangle_fill_component): Likewise.
309
59727473
DD
3102004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
311
312 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
313 defined, rename some functions which are to become static via
314 #define.
315 (CP_STATIC_IF_GLIBCPP_V3): Define.
316 (struct d_operator_info): Move definition to cp-demangle.h, and
317 rename to demangle_operator_info. Change all uses.
318 (enum d_builtin_type_print): Move definition to cp-demangle.h.
319 (struct d_builtin_type_info): Move definition to cp-demangle.h,
320 and rename to demangle_builtin_type_info. Change all uses.
321 (enum d_comp_type): Move definition to include/demangle.h, and
322 rename to demangle_component_type, and change all enums to start
323 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
324 (struct d_comp): Move definition to include/demangle.h, and rename
325 to demangle_component. Change all uses.
326 (struct d_info): Move definition to cp-demangle.h.
327 (cplus_demangle_fill_name): New function.
328 (cplus_demangle_fill_extended_operator): New function.
329 (cplus_demangle_fill_ctor): New function.
330 (cplus_demangle_fill_dtor): New function.
331 (d_make_empty): Remove type parameter. Change all callers.
332 (d_make_name): Use cplus_demangle_fill_name.
333 (d_make_extended_operator): Use
334 cplus_demangle_fill_extended_operator.
335 (d_make_ctor): Use cplus_demangle_fill_ctor.
336 (d_make_dtor): Use cplus_demangle_fill_dtor.
337 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
338 non-static by default. Change all callers.
339 (cplus_demangle_operators): Rename from d_operators. Change all
340 uses. Make non-static by default. Add sentinel at end of array.
341 (d_operator_name): Adjust initialization of high for new sentinel
342 in cplus_demangle_operators.
343 (cplus_demangle_builtin_types): Rename from d_builtin_types.
344 Change all uses. Make non-static by default. Change initializer
345 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
346 (cplus_demangle_type): Rename from d_type. Make non-static by
347 default. Change all callers.
348 (cplus_demangle_init_info): Rename from d_init_info. Make
349 non-static by default. Change all callers.
350 * cp-demangle.h: New file.
351 * cp-demint.c: New file.
352 * Makefile.in: Rebuild dependencies.
353 (CFILES): Add cp-demint.c.
354 (REQUIRED_OFILES): Add cp-demint.o.
355
1a79b024
DD
3562004-01-09 Kelley Cook <kcook@gcc.gnu.org>
357
358 * configure.in: Rename file to ...
359 * configure.ac: ... this.
360 * Makefile.in: Update a comment for above change.
361 * README: Likewise.
362 * config.in: Regenerate.
363
820542c9
DD
3642004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
365
366 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
367 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
368 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
369 demangling template parameters.
370 * testsuite/test-demangle.c (fail): New static function.
371 (main): Support new options in input file: --no-params,
372 --is-v3-ctor, and --is-v3-dtor.
373 * testsuite/demangle-expected: Add --no-params to most tests, and
374 add the correct result when parameters are not demangled. Add
375 some simple tests for V3 constructor/destructor recognition.
376
2f9c4058
DD
3772003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
378
379 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
380
4fd47f10
DJ
3812003-12-22 Daniel Jacobowitz <drow@mvista.com>
382
383 PR debug/13272
384 * Makefile.in (lbasename.o): Depend on filenames.h.
385 * lbasename.c: Include "filenames.h" instead of defining
386 its macros locally.
387
b6fb00c0
DD
3882003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
389
390 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
391 dynamic arrays.
392 (struct d_operator_info): Add len field.
393 (struct d_builtin_type_info): Add len and java_len fields.
394 (struct d_standard_sub_info): Add simple_len, full_len, and
395 set_last_name_len fields.
396 (struct d_comp): Add len field to s_string.
397 (struct d_info): Add send, did_subs, and expansion fields.
398 (d_append_string_constant): Define.
399 (d_append_string): Remove. Change all users to use
400 d_append_string_constant or d_append_buffer instead.
401 (d_make_sub): Add len parameter. Change all callers.
402 (d_name): Increase expansion when substituting std::.
403 (d_unqualified_name): Increase expansion for an operator.
404 (d_number): Don't use multiplication for negative numbers.
405 (d_identifier): Make sure there are enough characters in the
406 string for the specified length. Adjust expansion for an
407 anonymous namespace.
408 (d_operators): Initialize len field.
409 (d_special_name, d_ctor_dtor_name): Increase expansion.
410 (d_builtin_types): Initialize len and java_len fields.
411 (d_type): Increase expansion for a builtin type.
412 (d_cv_qualifiers): Increase expansion for each qualifier.
413 (d_bare_function_type): Decrease expansion when removing single
414 void parameter.
415 (d_template_param): Increment did_subs.
416 (d_expression): Increase expansion for an operator.
417 (d_expr_primary): Decrease expansion for a type we will print
418 specially.
419 (standard_subs): Initialize new fields.
420 (d_substitution): Increment did_subs when doing a normal
421 substitution. Increase expansion for a special substitution.
422 (d_print): Add estimate parameter. Change all callers.
423 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
424 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
425 (d_print_java_identifier): Rename from d_print_identifier. Handle
426 only Java case. Change caller.
427 (d_init_info): Change return type to void. Change all callers.
428 Initialize send, did_subs, and expansion fields. Do not
429 initialize comps and subs fields.
430 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
431 arrays on stack. Make an estimate of the length of the demangled
432 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
433 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
434 subs arrays on stack.
435
2730f651
DD
4362003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
437
438 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
439 after the identifier.
440 * testsuite/demangle-expected: Add test case.
441
d4edd112
DD
4422003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
443
444 Fix for PR c++/13447:
445 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
446 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
447 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
448 D_COMP_QUAL_NAME.
449 (is_ctor_or_dtor): Likewise.
450 (d_local_name): Use D_COMP_LOCAL_NAME rather than
451 D_COMP_QUAL_NAME.
452 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
453 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
454 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
455 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
456 * testsuite/demangle-expected: Add two test cases.
457
458 * cp-demangle.c (d_print_function_type): Clear the global modifier
459 list when printing the modifiers, not just when printing the
460 function parameters.
461 * testsuite/demangle-expected: Add two test cases.
462
d35d0cd4
DD
4632003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
464
465 * cp-demangle.c (d_print_function_type): Print the function
466 parameters with no modifiers.
467 * testsuite/demangle-expected: Add test case.
468
469 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
470 expect that we've read the entire string.
471 (is_ctor_or_dtor): Don't expect that we've read the entire
472 string--reverse patch of 2003-11-29.
473
09e9708c
DD
4742003-12-15 Brendan Kehoe <brendan@zen.org>
475
476 * libiberty/Makefile.in (floatformat.o): Add dependency on
477 config.h to accompany change of 2003-12-03.
478
97ceaf5b
DD
4792003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
480
481 Fix handling of constructor/destructor of standard substitution:
482 * cp-demangle.c (struct d_standard_sub_info): Define.
483 (d_substitution): Add prefix argument. Change all callers.
484 Rework handling of standard substitutions to print full name when
485 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
486 * testsuite/demangle-expected: Add test case.
487
488 Fix handling of negative literal constants:
489 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
490 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
491 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
492 (d_print_comp): Handle D_COMP_LITERAL_NEG.
493 * testsuite/demangle-expected: Add test case.
494
858b45cf
DD
4952003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
496
497 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
498 (d_last_char): Define new macro.
499 (d_make_name): Reject an empty name.
500 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
501 (d_substitution, d_print_identifier): Likewise.
502 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
503 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
504 (d_print_mod) Use new d_last_char macro.
505 (d_print_cast): Use new d_last_char macro.
506 (is_ctor_or_dtor): Don't leak memory.
507
508 Fix handling of member function modifiers:
509 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
510 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
511 (d_dump): Dump new d_comp_type values.
512 (d_make_comp): Accept new d_comp_type values.
513 (has_return_type): Only accept _THIS variants of qualifiers.
514 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
515 qualifiers.
516 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
517 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
518 qualifiers and printing them at the end, add _THIS qualifiers to
519 the modifier list.
520 (d_print_comp) [D_COMP_*_THIS]: New cases.
521 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
522 qualifiers.
523 (d_print_mod_list): Add suffix parameter. Change all callers.
524 Keep walking the list even if the current modifier has been
525 printed.
526 (d_print_mod): Handle new _THIS qualifiers.
527 (d_print_function_type): Handle new _THIS qualifiers when deciding
528 whether to print a parenthesis. Put a space before the
529 parenthesis in some cases. Call d_print_mod_list again at the
530 end, passing suffix as 1.
531 (is_ctor_or_dtor): Look for new _THIS qualifiers.
532 * testsuite/demangle-expected: Add test case.
533
534 Fix for PR gcc/13304:
535 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
536 before the '<' is itself a '<', insert a space.
537 (d_print_cast): Likewise.
538 * testsuite/demangle-expected: Add test case.
539
540 Fix for PR gcc/13244:
541 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
542 which uses the '>' operator in an extra layer of parens.
543 * testsuite/demangle-expected: Add test case.
544
b52927b7
DD
5452003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
546
547 * floatformat.c: Include "config.h" and <string.h> if available.
548 (INFINITY, NAN): Define if not defined by <math.h>.
549 (floatformat_to_double): Handle NaN, infinity, and denormalized
550 numbers.
551 (floatformat_from_double): Likewise.
552 (ieee_test): In debugging code, use little endian rather than big
553 endian. Correct tests to handle NaN and to check correct sign of
554 zero. Omit m68k extended test.
555 (main): Add more debugging cases.
556
24afc00d
DD
5572003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
558
559 * cp-demangle.c (d_demangle): Only return success if we consumed
560 the entire demangled string.
561 (is_ctor_or_dtor): Likewise.
562
563 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
564 to restore expected result of EDG test case to original expected
565 result.
566
331c3da2
DD
5672003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
568
569 * cp-demangle.c (struct d_print_mod): Add templates field.
570 (d_make_builtin_type): Check for NULL type.
571 (d_make_extended_operator): Check for NULL name.
572 (d_make_ctor, d_make_dtor): Likewise.
573 (d_mangled_name): Add top_level parameter. Change all callers.
574 (d_encoding): If DMGL_PARAMS is not set, strip off initial
575 CV-qualifiers.
576 (d_type): Check some return values we rely on.
577 (d_bare_function_type, d_array_type): Likewise.
578 (d_pointer_to_member_type, d_template_args): Likewise.
579 (d_add_substitution): Fail if argument is NULL.
580 (d_print_resize): Check whether buf is NULL.
581 (d_print_comp): Save current templates list with each modifier.
582 Don't pass the modifier list down when printing a template.
583 (d_print_cast): Don't pass the modifier list down when printing a
584 template.
585 (d_print_mod_list): Temporarily set templates list while printing
586 a modifier.
587 (d_print_mod): Check that buf is not NULL before using it.
588 (d_print_function_type): Print parens if there is no modifier.
589 (d_init_info): Permit as many substitutions as there are
590 characters in the mangled name.
591 * testsuite/demangle-expected: Add two new test cases.
592
51948b34
DD
5932003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
594
595 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
596 d_demangle.
597
6d95373e
DD
5982003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
599
600 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
601 callers.
602 (print_usage): Display new -p option.
603 (long_options): Add --no-params.
604 (main): Accept and handle -p.
605
54a962d9
DD
6062003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
607
608 * cp-demangle.c (has_return_type): Skip qualifiers when checking
609 whether we have a template.
610 * testsuite/demangle-expected: Add four new tests.
611
8fe0d347
DD
6122003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
613
614 * testsuite/demangle-expected: Minor changes to match output of
615 new demangler: adjust whitespace in four tests, and change order
616 of qualifiers in one test.
617
618 * cp-demangle.c: Complete rewrite.
619
dd9d4b48
DD
6202003-11-19 Mark Mitchell <mark@codesourcery.com>
621
622 * cp-demangle.c (demangle_type): Correct thinko in substitution
623 processing.
624
0976f6a7
DD
6252003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
626
627 * cp-demangle.c (demangle_operator_name): Remove space before
628 "sizeof".
629 (demangle_type_ptr): Put qualifiers in the right place. Handle
630 qualifiers in pointer to member specially.
631 (demangle_type): Handle qualifiers for pointer or reference
632 specially. Handle function type.
633 (demangle_local_name): Save and restore caret around demangling of
634 initial encoding.
635
636 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
637 cplus_demangle.
638
639 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
640
e7e6980b
DD
6412003-10-31 Andreas Jaeger <aj@suse.de>
642
643 * floatformat.c (floatformat_always_valid): Add unused attribute.
644
97ceaf5b
DD
6452003-10-30 Josef Zlomek <zlomekj@suse.cz>
646
647 Jan Hubicka <jh@suse.cz>
648 * vasprintf.c (int_vasprintf): Pass va_list by value.
649 Use va_copy for copying va_list.
650 (vasprintf): Pass va_list by value.
651
686e72d7
DD
6522003-10-30 Josef Zlomek <zlomekj@suse.cz>
653
654 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
655 instead of increasing n_elements when inserting to deleted slot.
656
eec65ede
JB
6572003-10-20 J. Brobecker <brobecker@gnat.com>
658
659 * cplus-dem.c (demangle_template): Register a new Btype only
660 when needed.
661 * testsuite/demangle-expected: Add a new test.
662
cd275bff
L
6632003-10-16 H.J. Lu <hongjiu.lu@intel.com>
664
665 * testsuite/demangle-expected: Update the expected output of
666 _GLOBAL__I__Z2fnv.
667
e3b1168e
DJ
6682003-10-02 Daniel Jacobowitz <drow@mvista.com>
669
670 * strerror.c: Revert last change. Declare static sys_nerr
671 and sys_errlist using different names.
672
efb150d5
DJ
6732003-10-01 Daniel Jacobowitz <drow@mvista.com>
674
675 * strerror.c: Don't provide or reference sys_errlist if
676 strerror is available.
677
b7ca9213
L
6782003-10-01 H.J. Lu <hongjiu.lu@intel.com>
679
680 * configure.in: Check if $MAKEINFO is missing.
681 * configure: Regenerated.
682
8ddbb593
DJ
6832003-09-24 Daniel Jacobowitz <drow@mvista.com>
684
685 * configure.in: Use AC_PROG_CPP_WERROR.
686 * configure: Regenerated.
687
5324d185
AC
6882003-09-22 Andrew Cagney <cagney@redhat.com>
689
690 * floatformat.c (floatformat_i387_ext_is_valid): New function.
691 (floatformat_always_valid): New function.
692 (floatformat_i387_ext): Initialize new "is_valid" field to
693 "floatformat_i387_ext_is_valid".
694 (floatformat_ieee_single_little): Initialize "is_valid" field to
695 floatformat_always_valid.
696 (floatformat_ieee_double_big): Ditto.
697 (floatformat_ieee_double_little): Ditto.
698 (floatformat_ieee_double_little): Ditto.
699 (floatformat_ieee_double_littlebyte_bigword): Ditto.
700 (floatformat_i960_ext): Ditto.
701 (floatformat_m88110_ext): Ditto.
702 (floatformat_m88110_harris_ext): Ditto.
703 (floatformat_arm_ext_big): Ditto.
704 (floatformat_arm_ext_littlebyte_bigword): Ditto.
705 (floatformat_ia64_spill_big): Ditto.
706 (floatformat_ia64_spill_little): Ditto.
707 (floatformat_ia64_quad_big): Ditto.
708 (floatformat_ia64_quad_little): Ditto.
709 (floatformat_ia64_quad_little): Ditto.
710 (floatformat_is_valid): Call "is_valid".
711
34f4a113
AC
7122003-09-15 Andrew Cagney <cagney@redhat.com>
713
714 * floatformat.c (get_field): Make "data" constant.
715 (floatformat_is_valid, floatformat_to_double): Make "from"
716 constant, fix casts.
717 (floatformat_from_double): Make "from" constant.
718
3f2aacaf
DJ
7192003-09-15 Daniel Jacobowitz <drow@mvista.com>
720
721 * floatformat.c (floatformat_is_valid): New function.
722 (get_field, put_field): Correct comments.
723
aae66b9f
DD
7242003-09-06 Josef Zlomek <zlomekj@suse.cz>
725
726 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
727 FIBHEAPKEY_T.
728
60b04ee8
DD
7292003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
730
731 PR bootstrap/12100
732 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
733 * configure: Rebuilt.
734
2299a76d
DJ
7352003-08-27 Daniel Jacobowitz <drow@mvista.com>
736
737 * aclocal.m4: Include acx.m4 and no-executables.m4.
738 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
739 (LIB_AC_PROG_CC): Remove.
740 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
741 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
742 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
743 performing link tests.
744 * configure: Regenerated.
745
9ad1aa29
DD
7462003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
747
a21da8bf 748 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 749
dbb9d0f3
DD
7502003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
751
752 * pex-win32.c (pexecute): Mark parameters this_pname and
753 temp_base as unused. Remove unused variables retries,
754 sleep_interval. Initialize org_stdin, org_stdout.
755 (pwait): Mark parameter flags as unused.
756
7572003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
758
759 * pex-win32.c (fix_argv): Ensure that the executable pathname
760 uses Win32 backslashes.
761 (pexecute): Cast away constness when assigning *errmsg_arg.
762
78c5b0a5
L
7632003-06-26 H.J. Lu <hongjiu.lu@intel.com>
764
765 * testsuite/demangle-expected: Add more GNU V3 testcases.
766
70ecf948
DD
7672003-06-22 Zack Weinberg <zack@codesourcery.com>
768
769 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
770 not HC_ASCII and HC_EBCDIC.
771 Add documentation in form expected by gather-docs.
772 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
773 * Makefile.in, functions.texi: Regenerate.
774
cbc0188b
DD
7752003-06-21 Zack Weinberg <zack@codesourcery.com>
776
777 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
778 for charset determination.
779
5f73c378
DD
7802003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
781
782 * configure.in: Add check for malloc.h needed by
783 m68k for function free().
784 * configure: Regenerated.
785 * config.in: Add HAVE_MALLOC_H.
786 * hashtab.c: include malloc.h were available for
787 free().
788
e69f6c8c 7892003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 790
e69f6c8c
DD
791 PR bootstrap/10974
792 * physmem.c: Update comment.
793 * configure.in: Modify test for _system_configuration for older
794 AIX systems.
795
796 * config.in, configure: Regenerated.
cbc0188b 797
54c60684
DD
7982003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
799
800 PR other/10810
801 * test-demangle.c (getline): Fix fence-post error.
802
5a4e47bd
NC
8032003-06-03 Nick Clifton <nickc@redhat.com>
804
805 * asprintf.c: Change comment to note that -1 is returned upon
806 error.
807 * vasprintf.c: Likewise.
808 (vasprintf): Return -1 upon error.
809 * functions.texi: Document changes to asprintf and vasprintf.
810
916f5d13
DD
8112003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
812
813 * config.table: Accept i[345867]86 variant.
814
e4f79046
JB
8152003-05-15 Jim Blandy <jimb@redhat.com>
816
817 * hex.c (_hex_value): Make this unsigned.
818 (hex_value): Update documentation for new return type. hex_value
819 now expands to an unsigned int expression, to avoid unexpected
820 sign extension when we store it in a bfd_vma, which is larger than
821 int on some platforms.
822 * functions.texi: Regenerated.
823
0f3538e7
DD
8242003-05-07 Josef Zlomek <zlomekj@suse.cz>
825
826 * splay-tree.c (splay_tree_predecessor): Fix comment.
827 (splay_tree_successor): Fix comment.
828
7108c5dc
JM
8292003-05-07 Jason Merrill <jason@redhat.com>
830
eafaf5eb 831 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
832 * configure.in: Add AC_C_BIGENDIAN_CROSS.
833 * aclocal.m4: Include accross.m4.
834 * configure, config.in: Regenerate.
835
0b555173
DD
8362003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
837
838 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
839 * configure: Regenerate.
840
8730135a
DD
8412003-05-03 Carlo Wood <carlo@alinoe.com>
842
843 * cp-demangle.c: Fix typo in "char_traints" string-literal.
844
341eccbc
DD
8452003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
846
847 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
848 (main): Test that we don't write too much data.
849
2ed1e5cc
DD
8502003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
851
852 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
853 vsnprintf.
854 * snprintf.c, vsnprintf.c: New files.
855 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
856 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
857 Regenerate dependencies.
858
859 * functions.texi, configure, config.in: Regenerated.
860
10b57b38
DD
8612003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
862
863 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
864 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
865 and stpncpy.
866 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
867 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
868 Regenerate dependencies.
869
870 * functions.texi, configure, config.in: Regenerated.
871
ff773b85
DD
8722003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
873
874 * argv.c: Fix comments.
875 * calloc.c: Don't unnecessarily include "libiberty.h".
876 (bzero): Add prototype.
877 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
878 * getcwd.c (getcwd): Use standard definition to avoid conflicts
879 with system headers.
880 * hashtab.c (htab_traverse): Delete unused variables.
881 * rename.c: Include "ansidecl.h".
882 (rename): Use standard definition to avoid conflicts with system
883 headers.
884 * strsignal.c: Rely on ANSI_PROTOTYPES.
885 * strstr.c: Check GNUC >= 2, not GNUC == 2.
886 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
887 * vprintf.c: Include "ansidecl.h" earlier, rely on
888 ANSI_PROTOTYPES.
889 * vsprintf.c: Include "ansidecl.h" earlier, rely on
890 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 891
ff773b85
DD
892 * Makefile.in: Regenerate dependencies.
893
bb325820
DD
8942003-04-15 DJ Delorie <dj@redhat.com>
895
896 * maint-tool (deps): Scan for headers in $srcdir also.
897
258a4893
DD
8982003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
899
900 PR target/10338
901 PR bootstrap/10198
902 PR bootstrap/10140
903 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
904 __mempcpy.
905 * regex.c (regerror): Likewise.
906
ff773b85
DD
9072003-04-14 Roger Sayle <roger@eyesopen.com>
908
909 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
910 * memchr.c: Likewise.
911 * strcasecmp.c: Likewise.
912 * strncasecmp.c: Likewise.
913 * strncmp.c: Likewise.
914 * xatexit.c: Likewise.
915 * xmalloc.c: Likewise.
916
917 * copysign.c: Use traditional function declaration instead of DEFUN.
918 * sigsetmask.c: Likewise.
919
920 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
921 * memset.c: Likewise.
922
923 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
924 * memmove.c: Likewise.
925
eec539c7
DD
9262003-04-14 Roger Sayle <roger@eyesopen.com>
927
928 * strdup.c (strdup): Tweak implementation to use memcpy.
929
daf7c4ad
DD
9302003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
931
932 * configure.in (HAVE_UINTPTR_T): Always define.
933 * configure: Regenerated.
934
aa072e59
AO
9352003-03-23 Alexandre Oliva <aoliva@redhat.com>
936
937 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
938 instead of $$CC alone.
939 (install_to_tooldir): Use it.
940
f77ed96c
DD
9412003-17-03 Jan Hubicka <jh@suse.cz>
942
943 * hashtab.c (htab_traverse_noresize): Break out from ...
944 * hashtab.c (htab_traverse): ... here.
945
2336e177
DD
9462003-12-03 Jan Hubicka <jh@suse.cz>
947
948 * hashtab.c (htab_expand): Fix warning.
949
950 * hashtab.c (htab_expand): Compute the size of hashtable based
951 on the number of elements actually used.
952 (htab_traverse): Call htab_expand when table is too empty.
953
d8cbbf95
DD
9542003-03-11 Carlo Wood <carlo@gnu.org>
955
956 * cplus-dem.c (demangle_integral_value): Correction to reflect
957 patch of 2002-01-10 in order to also make negative multi-digits
958 without leading underscore work.
959
a01fefeb
DD
9602003-03-03 Mark Mitchell <mark@codesourcery.com>
961
962 * cplus-dem.c: Add license exception to copyright notice.
963
638ceb1a
DD
9642003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
965
966 * physmem.c: Formatting changes from upstream.
967
ef803806
DD
9682003-02-24 Danny Smith <dannysmith@users.source.forge.net>
969
970 * physmem.c (physmem_total): Add _WIN32 support.
971 (physmem_available): Likewise.
972
181fa229
DD
9732003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
974
975 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
976 GSI_PHYSMEM.
977 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
978
cc529274
DD
9792003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
980
981 * configure.in: Check for sys/systemcfg.h and
982 _system_configuration.
983 * physmem.c: Add support for AIX. Tweek formatting as per
984 upstream coreutils beta.
985
9862003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
987 Richard Earnshaw <rearnsha@arm.com>
988 Geoffrey Keating <geoffk@apple.com>
cbc0188b 989
cc529274
DD
990 * configure.in: Check for sys/sysctl.h and sysctl.
991 * physmem.c: Add support for *bsd and darwin.
992 * Makefile.in: Generate depedency for physmem.o.
993
192cbe66
DD
9942003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
995
996 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
997 Tru64 UNIX.
998 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
999 Tru64 UNIX.
1000
1001 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
1002 machine/hal_sysinfo.h, sys/table.h.
1003 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
1004 * configure, config.in: Regenerate.
1005
ff773b85
DD
10062003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1007
1008 * configure.in: Check for sys/sysmp.h and sysmp.
1009 * physmem.c: Pull upstream copy, add support for irix6.
1010
1011 * config.in, configure: Regenerated.
1012
900d2082
DD
10132003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014
1015 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
1016 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
1017 pstat_getdynamic.
cbc0188b 1018
4938384a
DD
10192003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1020
1021 * Makefile.in (CFILES): Add physmem.c.
1022 (REQUIRED_OFILES): Add physmem.o.
1023 * configure.in: Check for sys/pstat.h.
1024 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
1025 * physmem.c: New file, copied from textutils.
1026
1027 * config.in, configure: Regenerated.
1028
ba61a412
DJ
10292003-02-20 Daniel Jacobowitz <drow@mvista.com>
1030
1031 * Makefile.in (CFILES): Add lrealpath.c.
1032 (REQUIRED_OFILES): Add lrealpath.o.
1033 (lrealpath.o): Add rule.
1034 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
1035 * configure.in: Add realpath and canonicalize_file_name to
1036 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
1037 for canonicalize_file_name.
1038 * lrealpath.c: New file.
1039 * make-relative-prefix.c: Update documentation.
1040 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
1041 * config.in: Regenerated.
1042 * configure: Regenerated.
1043 * functions.texi: Regenerated.
1044
25dfe0ac
DD
10452003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1046
1047 * cplus_dem.c: Fix typo: intializes -> initializes.
1048
8b90eef4
AO
10492003-02-20 Alexandre Oliva <aoliva@redhat.com>
1050
1051 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
1052 config.status.
1053 * configure: Rebuilt.
1054
fcd7c7c9
DD
10552003-02-13 Daniel Jacobowitz <drow@mvista.com>
1056
1057 Fix PR c++/7612.
1058 * cplus-dem.c (demangle_signature): Call string_delete.
1059 Remove extra string_init.
1060 (demangle_arm_hp_template): Call string_delete instead of
1061 string_clear. Add missing string_delete call.
1062 (demangle_qualified): Add missing string_delete call.
1063 (do_type): Remove unused variable btype. Add missing string_delete
1064 call. Call string_delete instead of string_clear.
1065 (demangle_fund_type): Move variable btype inside of the switch
1066 statement. Add missing string_delete call.
1067 (do_arg): Call string_delete instead of string_clear. Remove extra
1068 string_init.
1069 (demangle_nested_args): Free work->previous_argument.
1070
073c427b
DD
10712003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1072
1073 * acconfig.h: New file. Add uintptr_t.
1074 * config.in: Regenerated.
1075
f8bd3000
DD
10762003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
1077
1078 * libiberty.texi: Update to GFDL 1.2.
1079
85b9a938
DD
10802003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1081
1082 * Makefile.in (libiberty_topdir): New subst.
1083 (mkinstalldirs): Redefine in terms of the above.
1084 * configure.in: AC_SUBST it.
1085 * configure: Regenerate.
1086
578460f2
AO
10872003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1088
1089 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
1090 (info-subdir, install-info-subdir, clean-info-subdir)
1091 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
1092 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
1093 Pass $(FLAGS_TO_PASS).
1094
7f285245
AO
10952003-01-27 Alexandre Oliva <aoliva@redhat.com>
1096
1097 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1098 /`$$CC -print-multi-os-directory`.
1099
5f9624e3
DJ
11002003-01-26 Daniel Jacobowitz <drow@mvista.com>
1101
1102 * hashtab.c (htab_create_alloc_ex): New function.
1103 (hatab_set_functions_ex): New function.
1104 (htab_delete, htab_expand): Support alternate allocation functions.
1105
9c2259b8
DD
11062003-01-24 Christopher Faylor <cgf@redhat.com>
1107
1108 * configure.in: Remove special pex-cygwin consideration.
1109 * configure: Regenerate.
1110 * pex-cygwin.c: Remove.
1111 * Makefile.in: Remove pex-cygwin.[co] lines.
1112
5a17353c
DD
11132003-01-24 Zack Weinberg <zack@codesourcery.com>
1114
1115 * Makefile.in (CFILES): Add pex-*.c.
1116 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1117 (CONFIGURED_OFILES): Add pex-*.o.
1118 (TEXIFILES): Add pexecute.txh.
1119 (pexecute.o): Delete rule.
1120 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1121 pex-unix.o, pex-win32.o): New rules.
1122 * configure.in: Change AC_INIT argument to xmalloc.c.
1123 Compute appropriate pexecute implementation and substitute it
1124 as @pexecute@.
1125
1126 * pexecute.c: Split up into...
1127 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1128 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1129 new files.
1130
1131 * functions.texi: Regenerate.
1132 * configure: Regenerate.
1133
eed2b28c
DD
11342003-01-20 Josef Zlomek <zlomekj@suse.cz>
1135
1136 * hashtab.c (htab_expand): Fix allocation of new entries.
1137
27a39a5f
DD
11382003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1139
1140 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1141
1142 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1143 mkinstalldirs command.
1144
b51c1553
DD
11452002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1146
1147 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1148 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1149
756954c3
DD
11502002-11-24 Nick Clifton <nickc@redhat.com>
1151
1152 * make-relative-prefix.c (make_relative_prefix): Ensure return
1153 string is empty before using strcat to construct it.
1154
2a80c0a4
DD
11552002-11-22 Daniel Jacobowitz <drow@mvista.com>
1156
1157 * Makefile.in: Add make-relative-prefix.c.
1158 * make-relative-prefix.c: New file.
1159 * functions.texi: Rebuilt.
1160
768b20d8
JJ
11612002-11-16 Jakub Jelinek <jakub@redhat.com>
1162
1163 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1164 used with arguments in traditional C' warnings.
1165
f52d1d64
JJ
11662002-10-16 Jakub Jelinek <jakub@redhat.com>
1167
1168 * config.table: Use mh-s390pic for s390x too.
1169
0d3deb8d
DD
11702002-10-06 Andreas Jaeger <aj@suse.de>
1171
1172 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1173 variable and of strict-aliasing warning.
1174 (grow_vect): Use char as first parameter.
1175
1b67de92
DD
11762002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1177
1178 * Makefile.in (all): Fix multilib parallel build.
1179
585cc78f
DD
11802002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1181
1182 * cp-demangle.c (demangling_new): Cast 0 to enum.
1183 (demangle_char): Cast return of strdup to char *.
1184 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1185 (is_gnu_v3_mangled_dtor): Likewise.
1186 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1187 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1188 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1189 * md5.c (md5_process_bytes): Cast results back to const void *.
1190 (md5_process_block): Add cast to const md5_uint32 *.
1191 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1192 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1193 unsigned short.
1194 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1195 to void *.
1196 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1197
e21b0cc1
NC
11982002-09-19 Nick Clifton <nickc@redhat.com>
1199
1200 * README: Update email addresses for bugs and patches.
1201
a54ba43f
DD
12022002-09-10 Mike Stump <mrs@apple.com>
1203
1204 * splay-tree.c (splay_tree_successor): Fix comments.
1205
12062002-09-11 Zack Weinberg <zack@codesourcery.com>
1207
1208 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
1209 * testsuite/Makefile.in: Adjust for test-demangle.
1210 * testsuite/regress-demangle: Deleted.
1211 * testsuite/test-demangle.c: New file.
1212 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1213 this file is not being read by a shell script.
1214
01cea699
DD
12152002-09-05 Roger Sayle <roger@eyesopen.com>
1216
1217 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1218
a2832523
DD
12192002-08-07 DJ Delorie <dj@redhat.com>
1220
1221 * regex.c (re_error_msgid): Just use a simple array of strings.
1222 (re_compile_pattern): Compensate.
1223 (re_comp): Likewise.
1224 (re_comp): Likewise.
1225 (regerror): Likewise.
1226
1e3f0be0
DD
12272002-07-29 Neil Booth <neil@daikokuya.co.uk>
1228
1229 * cplus-dem.c (PREPEND_BLANK): Remove.
1230
b851d07b
DD
12312002-07-10 Jason Merrill <jason@redhat.com>
1232
1233 * cp-demangle.c (demangle_identifier): Support extended Unicode
1234 characters.
1235
2a9dffbf
DD
12362002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1237
1238 * cp-demangle.c (demangle_v3_with_details): Wrap in
1239 !defined IN_GLIBCPP_V3.
1240
793011ca
DD
12412002-07-01 Mark Mitchell <mark@codesourcery.com>
1242
1243 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1244 Set it for the "st" operator.
1245 (demangle_expression): Handle expressions with types as arguments.
1246
b39b76b8
DD
12472002-06-30 Douglas Rupp <rupp@gnat.com>
1248
1249 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1250 * Makefile.in (OUTPUT_OPTION): Use.
1251
4748c6d8
DD
12522002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1253
1254 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1255 (install_to_tooldir): Likewise.
1256
f9c3326a
DD
12572002-06-17 Douglas Rupp <rupp@gnat.com>
1258
1259 * lbasename.c: Add 2002 to copyright.
1260 (IS_DIR_SEPARATOR): Remove VMS junk.
1261
18893690
DD
12622002-06-05 Geoffrey Keating <geoffk@redhat.com>
1263
1264 * hashtab.c (htab_create): New stub function for backward
1265 compatibility.
1266 (htab_try_create): Likewise.
1267
12682002-06-03 Geoffrey Keating <geoffk@redhat.com>
1269
1270 * hashtab.c (htab_create): Delete.
1271 (htab_try_create): Delete.
1272 (htab_create_alloc): New.
1273 (htab_delete): Support user-specified memory allocation.
1274 (htab_expand): Likewise.
1275
12762002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1277
1278 * configure.in: Fix typo in the code checking for sys_errlist.
1279 * configure: Regenerated.
1280
9296c8b2
DD
12812002-05-13 Andreas Schwab <schwab@suse.de>
1282
1283 * config.table: Use mh-x86pic also for x86-64.
1284
52d98c2d
DD
12852002-05-08 Alexandre Oliva <aoliva@redhat.com>
1286
1287 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1288 script entry, and set LD to it when configuring multilibs.
1289 * configure: Rebuilt.
1290
cafa3917
DD
12912002-05-07 Mark Mitchell <mark@codesourcery.com>
1292
1293 * configure.in (AC_TYPE_PID_T): Use it.
1294 * configure: Regenerated.
1295 * getruntime.c: Include <sys/types.h>.
1296 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1297
b1c933fc
RH
12982002-04-09 Richard Henderson <rth@redhat.com>
1299
1300 * hashtab.c (higher_prime_number): Use 7 as minimum.
1301 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1302 (htab_find_slot_with_hash): Likewise.
1303
0c4460bb
DD
13042002-04-01 Phil Edwards <pme@gcc.gnu.org>
1305
1306 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1307 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1308 not compile if IN_GLIBCPP_V3 defined.
1309 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1310
f2160d2b
DD
13112002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1312
3ebf1f59 1313 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
1314 if it is NULL.
1315
7dd4d42a
DD
13162002-03-27 DJ Delorie <dj@redhat.com>
1317
1318 * hex.c: Add documentation.
1319 (_hex_value): Provide non-ASCII empty table.
1320 (hex_init): Initialize the non-ASCII table.
1321 * functions.texi: Regenerate.
1322
38e57a35
DD
13232002-03-27 Mark Mitchell <mark@codesourcery.com>
1324
1325 * dyn-string.c: Add libgcc exception to copyright notice.
1326
cfed0715
DD
13272002-03-26 H.J. Lu (hjl@gnu.org)
1328
1329 * config.table: Support --with-build-subdir.
1330 * configure.in: Likewise.
1331 * configure: Rebuild.
1332
1504972f
DD
13332002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1334
1335 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1336 seen.
1337
35efcd67
DD
13382002-03-12 Mark Mitchell <mark@codesourcery.com>
1339
1340 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1341 notice.
1342
dabc64ea
DD
13432002-03-11 Douglas B Rupp <rupp@gnat.com>
1344
1345 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1346
3ddbd84c
JB
13472002-03-06 Jim Blandy <jimb@redhat.com>
1348
1349 * splay-tree.c (splay_tree_xmalloc_allocate,
1350 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1351 prototyped definitions. Mark `data' arguments as unused.
1352
efdab807
AC
13532002-03-06 Andrew Cagney <ac131313@redhat.com>
1354
1355 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1356
50d4562d
DD
13572002-03-04 Phil Edwards <pme@gcc.gnu.org>
1358
1359 * configure.in: Add --enable-install-libiberty option.
1360 * Makefile.in (INSTALLED_HEADERS): New variable.
1361 (install_to_libdir): Possibly also copy headers.
1362 * configure: Regenerated.
1363
13642002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1365
1366 * xmalloc.c (xmalloc_fail): Clarify error message further.
1367
6e9980f5
DD
13682002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1369
1370 * xmalloc.c (xmalloc_fail): Clarify error message.
1371
18893690 13722002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
1373
1374 * splay-tree.c (splay_tree_xmalloc_allocate,
1375 splay_tree_xmalloc_deallocate): New functions.
1376 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1377 above functions and a dummy data pointer.
1378 (splay_tree_new_with_allocator): New function.
1379 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1380 splay_tree_remove): Use the splay tree's allocation and
1381 deallocation functions.
1382
59ea9fe7
DD
13832002-02-19 Scott Snyder <snyder@fnal.gov>
1384
1385 * testsuite/demangle-expected: Add test case for infinite loop in
1386 demangler.
1387 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1388 if do_type() doesn't make any progress --- prevents an infinite
1389 loop.
1390
6f848550
DD
13912002-02-18 Carlo Wood <carlo@gnu.org>
1392
1393 PR c++/5390
1394 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1395 numbers that do not start with an underscore; This is needed
1396 for integer template parameters. This doesn't break anything
1397 because multi-digit numbers are never followed by a digit.
1398 * testsuite/demangle-expected: Corrected all mangled test
1399 cases with multi-digit template parameters: g++ 2.95.x does
1400 not generate underscores around these parameters.
1401
44354ae1
DD
14022002-02-05 Jason Merrill <jason@redhat.com>
1403
1404 * cplus-dem.c (flags): Add DMGL_VERBOSE
1405 (cplus_demangle_v3_p): Remove.
1406 (demangle_it): Add DMGL_TYPES to passed flags.
1407 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1408 (cplus_demangle_v3_type): Remove.
1409 (cplus_demangle_v3): Add options parm.
1410
42da15d6
DD
14112002-02-02 H.J. Lu (hjl@gnu.org)
1412
1413 * cp-demangle.c (cp_demangle_type): Do not protect with
1414 IN_LIBGCC2.
1415 (cplus_demangle_v3_all): New.
1416 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1417 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1418
1419 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1420 Initialized to cplus_demangle_v3.
1421 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1422 of cplus_demangle_v3.
1423 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1424 command line symbol.
1425
1426 * testsuite/regress-demangle: Pass the mangled name at the
1427 command line.
1428
b117c158
DD
14292002-02-01 H.J. Lu <hjl@gnu.org>
1430
1431 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1432 DMGL_GNU_V3.
1433
c78d91b1
DD
14342002-01-31 Phil Edwards <pme@gcc.gnu.org>
1435
1436 * cp-demangle.c: Revert yesterday's change.
1437
bef8b55d
DD
14382002-01-31 Adam Megacz <adam@xwt.org>
1439
1440 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1441 wrt HAVE_SYS_ERRLIST.
1442
2c955b8b
DD
14432002-01-30 Phil Edwards <pme@gcc.gnu.org>
1444
1445 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1446 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1447 cp_demangle_type.
1448 * testsuite/demangle-expected: New gnu-v3 test.
1449
58b1717a
RH
14502002-01-22 Momchil Velikov <velco@fadata.bg>
1451
1452 * configure.in (variable detection): Use arrays of unspecified
1453 size instead of plain integers.
1454
cc096b71
DD
14552002-01-18 DJ Delorie <dj@redhat.com>
1456
1457 * Makefile.in (TESTLIB): New. This library is for future
1458 testsuites.
1459 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1460 break down by letter.
1461 (REQUIRED_OFILES): List long-to-compile files first.
1462 (maint-deps): New, target for updating dependencies.
1463 (dependencies): Update.
1464 * maint-tool: Add dependency-generating option.
1465 * configure.in: Check for _doprnt even if we're not providing it.
1466 * configure: Regenerate.
1467
1468 * _doprnt.c: Modifications to allow compiling on any platform.
1469 * copysign.c: Likewise.
1470 * putenv.c: Likewise.
1471 * setenv.c: Likewise.
1472 * vsprintf.c: Likewise.
1473
14742002-01-15 Douglas B Rupp <rupp@gnat.com>
1475
1476 * mkstemps.c (mkstemps): On VMS, open temp file with option
1477 that causes it to be deleted when closed.
1478
20d54542
DD
14792002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1480
c23795e2
DD
1481 * cp-demangle.c (long_options): Const-ify.
1482 * cplus-dem.c (long_options): Likewise.
1483
20d54542
DD
1484 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1485 strstr instead.
1486
f348a7b1
DD
14872001-12-31 Ira Ruben <ira@apple.com>
1488
1489 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1490 * configure: Regenerated.
1491
d86cd745
DD
14922001-12-24 Douglas B. Rupp <rupp@gnat.com>
1493
1494 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1495 * configure: Regenerated.
1496
ae533646
DD
14972001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1498
1499 PR other/2719
1500 * cplus-dem.c (consume_count): Treat negative count as an error.
1501 * testsuite/demangle-expected: Added testcase.
1502
c0eb281b
DD
1503Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1504
1505 * configure.in: Hardcode that vfork works on VMS host.
1506 * configure: Regenerated.
1507
2da4c07f
RH
15082001-12-06 Richard Henderson <rth@redhat.com>
1509
1510 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1511 (cplus_demangle): Support no_demangling.
1512
24acd898
DD
15132001-11-27 Zack Weinberg <zack@codesourcery.com>
1514
1515 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1516 in libiberty context. Fix typo in leading comment.
1517 * configure.in: Fix various AC_DEFINEs so autoheader works.
1518 If any of vprintf, vsprintf, vfprintf is missing from libc,
1519 then AC_REPLACE_FUNCS(_doprnt).
1520
fec50157 15212001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 1522 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
1523
1524 * Makefile.in (stamp-h): Depend on Makefile for proper
1525 serialization.
1526 (*-subdir): Depend on config.h for proper serialization.
1527
5527febf
DD
15282001-11-26 DJ Delorie <dj@redhat.com>
1529
1530 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1531 * configure: Regenerate.
1532 * config.h: Add HAVE_ALLOCA_H.
1533
941d74a0
DD
15342001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1535
1536 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1537 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1538 is available.
1539
dc579051
DD
1540Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1541
1542 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1543 * configure.in (HAVE_UINTPTR_T): Test for system defining
1544 uintptr_t and define HAVE_UINTPTR_T appropriately.
1545 * regex.c (uintptr_t): Do not provide a definition if the
1546 system provided one.
1547
1548 * regex.c (PREFIX): Provide an alternate definition for
1549 non-ANSI/ISO compilers.
1550 (ARG_PREFIX): Likewise.
1551
1a78a35a
DD
15522001-11-12 Jim Meyering <meyering@lucent.com>
1553
1554 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1555 this code would end up calling gettext even in packages built
1556 with --disable-nls.
1557 * getopt.c (_): Likewise.
1558 * regex.c (_): Likewise.
1559
4e55c4b6
DD
15602001-11-03 Alan Modra <amodra@bigpond.net.au>
1561
1562 * configure.in: Cope with missing makeinfo.
1563 * configure: Regenerate.
1564
d311a83a
DD
15652001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1566
1567 * hex.c (hex_init): Provide empty stub.
1568
1569 * hex.c (hex_init): Delete.
1570 (_hex_value): Const-ify and initialize at compile-time.
1571
3bc62f91
DD
15722001-10-19 H.J. Lu <hjl@gnu.org>
1573
1574 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1575 necessary.
1576
5d852400
DD
15772001-10-17 DJ Delorie <dj@redhat.com>
1578
1579 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1580 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 1581 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
1582 Improve manual formatting.
1583 * functions.texi: Regenerate.
1584
ba19b94f
DD
15852001-10-15 DJ Delorie <dj@redhat.com>
1586
1587 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1588 (maint-undoc): New.
1589 maint-tool: Add "undoc" tool.
1590 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1591 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1592 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1593 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1594 documentation.
1595 * fnmatch.txh: New.
1596 * functions.texi: Regenerate.
1597
56056af5
DD
15982001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1599
1600 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1601 * strtod.c: Use "ISO C" instead of "ANSI C".
1602 * functions.texi: Regenerate.
1603
99b58139
DD
16042001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1605
1606 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1607 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1608 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1609 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1610 spelling. Give names to function arguments in documentation. Use
1611 (void) prototypes in documentation.
1612 * functions.texi: Regenerate.
1613
e6450fe5
DD
16142001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1615
1616 * argv.c (buildargv, tests, main): Const-ify.
1617 * cp-demangle.c (operator_code): Likewise.
1618 * cplus-dem.c (optable, libiberty_demanglers,
1619 cplus_demangle_set_style, cplus_demangle_name_to_style,
1620 print_demangler_list): Likewise.
1621 * hashtab.c (higher_prime_number): Likewise.
1622 * strcasecmp.c (charmap): Likewise.
1623 * strerror.c (error_info, strerror, main): Likewise.
1624 * strncasecmp.c (charmap): Likewise.
1625 * strsignal.c (signal_info): Likewise.
1626
da191b5b
DD
16272001-09-29 DJ Delorie <dj@redhat.com>
1628
1629 * configure: Regenerate.
1630
916aaa12
DD
16312001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1632
1633 * concat.c: Include stdlib.h.
1634
fa9f0e33
DD
16352001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1636
1637 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1638 @dircategory and @direntry directives. Add @finalout.
1639 (many nodes): Lose the next,prev,up pointers on the @nide line.
1640 (Using, Supplemental Functions, Replacement Functions): Fix
1641 markup.
1642 (Functions): Move around, to allow makeinfo to build the manual
1643 without next,prev,up pointers in thye node lines.
1644 (Licenses): Fix typos.
1645
1646 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1647 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1648 * functions.texi: Regenerate.
1649
1650 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1651 line.
1652
16532001-09-27 DJ Delorie <dj@redhat.com>
1654
1655 * configure.in: Don't use in-tree texinfo, because libiberty must
1656 be built before it. Check for makeinfo version 4 or higher.
1657 * functions.texi: Regenerate.
1658
39423523
DD
16592001-09-20 DJ Delorie <dj@redhat.com>
1660 Phil Edwards <pedwards@disaster.jaj.com>
1661
1662 * configure.in (MAKEINFO, PERL): Detect these.
1663 (--enable-maintainer-mode): Add.
1664 * configure: Regenerate.
1665 * Makefile.in (MAKEINFO, PERL): Define.
1666 (libiberty.info, libiberty.dvi, libiberty.html): New.
1667 (CFILES): Add bsearch.c.
1668 (CONFIGURED_OFILES): New, list of objects configure might add.
1669 (maint-missing, maint-buildall): New, for maintainers only.
1670 (clean, mostlyclean): Add info/dvi/html files.
1671 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1672 * gather-docs: New, for maintainers.
1673 * maint-tool: New, for maintainers.
1674 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1675 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1676 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1677 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1678 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1679 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1680 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1681 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1682 documentation.
1683
66c94e19
DD
16842001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1685
1686 * concat.c (reconcat): Fix for traditional C.
1687
99ee3a8f
DD
16882001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1689
1690 * concat.c (reconcat): New function.
1691
54c20242
DD
16922001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1693
1694 * concat.c (vconcat_length, vconcat_copy, concat_length,
1695 concat_copy, concat_copy2): New functions.
1696 (concat): Use vconcat_length/vconcat_copy.
1697
1698 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1699 Define.
1700
843f21be
DD
17012001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1702
1703 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1704 VA_FIXEDARG & VA_CLOSE.
1705
1706 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1707 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1708 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1709
8a423cb3
DD
17102001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1711
1712 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1713
dc676635
DD
17142001-08-23 Ulrich Drepper <drepper@redhat.com>
1715
1716 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1717
17182001-08-23 Ulrich Drepper <drepper@redhat.com>
1719
1720 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1721 instead of mbrtowc.
1722 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1723 wcslen, and __wcscoll instead of wcscoll.
1724
f080c76d
DD
17252001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1726
3ebf1f59
DD
1727 * fibheap.c (fibheap_init, fibnode_init): Remove.
1728 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1729 initialize memory.
1730 (fibheap_insert): Remove check for node allocation failure.
f080c76d 1731
f01b59ed
DD
17322001-08-21 Richard Henderson <rth@redhat.com>
1733
1734 * Makefile.in (fibheap.o): Depend on config.h.
1735 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1736 functions for inlining.
1737
1738Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1739
1740 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1741 hosting on cygwin.
1742 * configure: Regenerate.
1743
eb828599
AC
17442001-08-20 Andrew Cagney <ac131313@redhat.com>
1745
1746 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1747 HARRIS_FLOAT_FORMAT.
1748 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1749 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1750 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1751 (floatformat_m88110_harris_ext): New float formats.
1752
4e55c4b6
DD
17532001-08-20 Daniel Berlin <dan@cgsoftware.com>
1754
1755 * fibheap.c: New file. Fibonacci heap.
1756
1757 * Makefile.in (CFILES): Add fibheap.c.
1758 (REQUIRED_OFILES): Add fibheap.o.
1759 (fibheap.o): Add dependencies for fibheap.o.
1760
68a41de7
DD
17612001-08-17 Christopher Faylor <cgf@cygnus.com>
1762
1763 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1764 * configure: Regenerate.
1765
8fc34799
DD
17662001-08-16 Richard Henderson <rth@redhat.com>
1767
1768 * hashtab.c (htab_hash_string): New.
1769
16bad250
AC
17702001-08-13 Andrew Cagney <ac131313@redhat.com>
1771
1772 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1773 name.
1774
a9022147
DD
17752001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1776
1777 * regex.c (wcs_regex_compile): Use appropriate string
1778 to compare with collating element.
1779 Fix the padding for the alignment.
1780
8aefe91a 17812001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
1782
1783 * lbasename.c (lbasename): Change function definition to return a
1784 const char pointer.
1785
e7e9b069
DD
17862001-08-07 Jason Merrill <jason_merrill@redhat.com>
1787
1788 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1789 for".
1790
cc5144f8
DD
17912001-08-03 Richard Henderson <rth@redhat.com>
1792
1793 * Makefile.in (concat.o): Depend on config.h.
1794
8aefe91a
DD
17952001-07-30 Andreas Jaeger <aj@suse.de>
1796
1797 * concat.c: Include "config.h".
1798
86710ce2
DD
17992001-07-30 Andreas Jaeger <aj@suse.de>
1800
1801 * regex.c: Declare wcs functions only if compiling with
1802 MBS_SUPPORT.
1803 Don't use #elif for traditional C.
1804
18052001-07-23 Ulrich Drepper <drepper@redhat.com>
1806
1807 * regex.c: Revamp memory allocation for WCHAR functions to
1808 not use too much stack.
1809
18102001-07-30 Andreas Jaeger <aj@suse.de>
1811
1812 * regex.c: Declare wcs functions only if compiling with
1813 MBS_SUPPORT.
1814 Don't use #elif for traditional C.
1815
a5d8f731
DD
18162001-07-25 Daniel Jacobowitz <drow@mvista.com>
1817
1818 * Makefile.in (regex.o): Add dependency on config.h.
1819
6ad8a379
DD
18202001-07-18 Andreas Schwab <schwab@suse.de>
1821
1822 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1823 underscore character.
1824
18252001-07-18 Ulrich Drepper <drepper@redhat.com>
1826
1827 * regex.c: Limit string length printed in debug messages to 100
1828 chars.
1829
18302001-07-18 Andreas Jaeger <aj@suse.de>
1831
1832 * regex.c: Place under LGPL version 2.1.
1833
2a6ef469
DD
18342001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1835
1836 * Makefile.in: Add support for regex code.
1837 * regex.c: New file.
1838
7b78baae
DD
18392001-07-05 Mark Klein <mklein@dis.com>
1840
1841 * Makefile.in: Add ffs.c dependency.
1842 * configure.in: Add ffs.c.
1843 * ffs.c: New file.
1844
926150e2
DD
18452001-06-18 Richard Henderson <rth@redhat.com>
1846
1847 * concat.c: Include <sys/types.h>.
1848
11f6f21d
DD
18492001-06-11 Loren J. Rittle <ljrittle@acm.org>
1850
1851 bootstrap/3106
1852 * strerror.c (sys_nerr): Hide the OS header version.
1853 * strsignal.c (sys_nsig): Likewise.
1854
d42dae6c
DD
18552001-06-10 Richard Henderson <rth@redhat.com>
1856
1857 * concat.c: Include string.h. Fix int vs size_t usage.
1858 Simplify the iteration loops. Use memcpy.
1859
e05c6d27
DD
18602001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1861
1862 * partition.c: Fix misspelling of `implementation'.
1863
b50c4073
DD
18642001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1865
1866 * md5.c (md5_init_ctx): Declare constants as unsigned.
1867 (md5_process_block): Likewise.
1868
457161bf
DD
18692001-05-07 Zack Weinberg <zackw@stanford.edu>
1870
1871 * cp-demangle.c (demangle_v3_with_details,
1872 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1873 function definition.
1874 * ternary.c: Use K+R style function definitions. Use PTR, not
1875 void *. Make arguments constant where possible.
1876
e00bc6a7
DD
18772001-05-07 Mark Mitchell <mark@codesourcery.com>
1878
1879 * splay-tree.h (splay_tree_max): New function.
1880 (splay_tree_min): Likewise.
1881
400ee7e1
DB
18822001-04-15 Daniel Berlin <dan@cgsoftware.com>
1883
1884 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
1885
1886 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 1887
d9697354
DD
18882001-04-03 Zack Weinberg <zackw@stanford.edu>
1889
1890 * make-temp-file.c (try): Inline.
1891
a7bf099b
DD
18922001-02-28 Richard Henderson <rth@redhat.com>
1893
1894 * Makefile.in (make-temp-file.o): Depend on config.h.
1895
30a1def2
DD
18962001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1897
1898 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1899
079c672a
DD
19002001-03-23 Jakub Jelinek <jakub@redhat.com>
1901
1902 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1903 `_' not followed by a digit is invalid.
1904
a88e356a
JB
19052001-03-22 Jim Blandy <jimb@redhat.com>
1906
1907 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1908 instead of free, to free the contents as well as the string
1909 structure.
1910
1dffcc66
DD
19112001-03-21 Zack Weinberg <zackw@stanford.edu>
1912
1913 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1914 Don't default P_tmpdir to anything. Try /var/tmp before
1915 /usr/tmp.
1916
19172001-03-20 Zack Weinberg <zackw@stanford.edu>
1918
1919 * choose-temp.c: Split off make_temp_file, and the code
1920 duplicated between it and choose_temp_base, into...
1921 * make-temp-file.c: ... here; new file.
1922
1923 * Makefile.in (CFILES): Add make-temp-file.c.
1924 (REQUIRED_OFILES): Add make-temp-file.o.
1925
e61231f1
JB
19262001-03-20 Jim Blandy <jimb@redhat.com>
1927
1928 * cp-demangle.c (struct demangling_def): New fields:
1929 is_constructor and is_destructor.
1930 (demangling_new): Initialize them.
1931 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1932 or destructor.
1933 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1934 is_gnu_v3_mangled_dtor): New functions.
1935
a9cbbe6d
DD
19362001-03-20 Jason Merrill <jason@redhat.com>
1937
1938 * cplus-dem.c (main): Skip initial $.
1939
b1e51b3c
DD
19402001-03-15 Michael Meissner <meissner@redhat.com>
1941
1942 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1943 might be a signed integer under pre-ISO C systems.
1944
8aa30e60 19452001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 1946 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 1947
8aa30e60
DD
1948 * libiberty/lbasename.c: New file.
1949 * libiberty/Makefile.in: Update for lbasename.
8aefe91a 1950
30673bf5
DD
19512001-03-06 Zack Weinberg <zackw@stanford.edu>
1952
1953 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1954 * configure.in: Replace all alloca logic with a simple use of
1955 the above new macro.
1956 * config.table: Kill *-*-beos* entry.
1957 * config/mh-beos: Delete.
1958 * configure, config.in: Regenerate.
fa03f0a7 1959
30673bf5
DD
1960 * Makefile.in (ALLOCA, HFILES): Kill.
1961 (REQUIRED_OFILES): Add alloca.o.
1962 (alloca.o): Depend on libiberty.h.
1963 (argv.o): Don't depend on alloca-conf.h.
1964 * alloca-conf.h: Delete.
1965 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1966 blocks. Provide the C alloca unconditionally. Use PTR where
1967 appropriate. Make i00afunc static.
1968 * argv.c: Don't include alloca-conf.h.
fa03f0a7 1969
5810f394
DD
19702001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1971
1972 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 1973
a9db032a
DD
19742001-02-16 Loren J. Rittle <ljrittle@acm.org>
1975
1976 * cplus-dem.c (main): Initialize style.
fa03f0a7 1977
8aefe91a
DD
19782001-02-02 Phil Edwards <pme@sources.redhat.com>
1979
1980 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1981
bc9bf259
DD
19822001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1983
1984 Add support for Java demangling under the v3 ABI:
1985 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1986 (struct demangling_def): Add `style' field.
1987 (demangling_new): New parameter `style'. Set it in demangling_t.
1988 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1989 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1990 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1991 (main): Call cp_demangle with extra parameter.
1992 (java_demangle_v3): New function.
1993 (java_builtin_type_names): New. Table of primitive type names used
1994 for Java demangling.
1995 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1996 Java output.
1997 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1998 demangling.
1999 (long_options): Remove obsolete `java' option.
2000 (main): Remove explicit handling of `java' option. Instead, pass style
2001 parameter in cplus_demangle flags as gdb does.
2002 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 2003
f6528837
DD
20042000-12-29 DJ Delorie <dj@redhat.com>
2005
2006 * fnmatch.c: Make the note about the origins of this file more
2007 accurate, at least until we can sync with glibc.
2008 * getopt.c: Ditto.
2009 * getopt1.c: Ditto.
2010 * md5.c: Ditto.
2011 * obstack.c: Ditto.
9d969b59 2012
c6da642e
DD
20132000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2014
2015 * bsearch.c: New file.
2016 * configure.in (funcs): Add bsearch.
2017 (AC_CHECK_FUNCS): Likewise.
2018 * configure, config.in: Regenerate.
2019
ae7d06ad 20202000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2021
2022 * safe-ctype.c: #include "ansidecl.h".
2023 * strtod.c: Likewise.
2024
ae7d06ad 20252000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
2026
2027 * strtoul.c: Include safe-ctype.h, not ctype.h.
2028
ac424eb3
DD
20292000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
2030
2031 * safe-ctype.c: New file.
2032 * Makefile.in (CFILES): Add safe-ctype.c.
2033 (REQUIRED_OFILES): Add safe-ctype.o.
2034
2035 * argv.c: Define ISBLANK and use it, not isspace.
2036 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
2037 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
2038 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
2039 before calling TOLOWER(c)/TOUPPER(c).
2040
4415a860
DD
20412000-12-07 Mike Stump <mrs@wrs.com>
2042
2043 * Makefile.in (distclean): When cleaning, remove testsuite.
2044
849ee224
DD
20452000-12-05 Jason Merrill <jason@redhat.com>
2046
2047 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
2048 name before allocating the dyn_string.
2049
ae7d06ad 20502000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
2051
2052 * cp-demangle.c: s/new_abi/v3/.
2053 * cplus-dem.c: Likewise.
2054 (current_demangling_style): Now auto_demangling.
2055 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 2056 (main): Use standard symbol chars for auto_demangling.
e49a569c 2057
ae7d06ad 20582000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
2059
2060 * hashtab.c (higher_prime_number): Use a table, rather than a
2061 seive, to find the next prime.
ae7d06ad
NC
2062
20632000-11-22 H.J. Lu <hjl@gnu.org>
2064
2065 * cplus-dem.c (main): Handle gnat_demangling.
2066
20672000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
2068
2069 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
2070 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
2071 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
2072 argument form of AC_DEFINE in dummy definitions block. Use
2073 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
2074 in dummy block. Preload cache variables instead of bypassing
2075 tests, where possible.
2076 * acconfig.h: Removed.
ae7d06ad 2077
2ea7befd
DD
2078 * xmalloc.c (xmalloc_failed): New function, does error
2079 reporting on failed allocation.
2080 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 2081
f1775526
HPN
20822000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
2083
2084 * cplus-dem.c (cplus_demangle): Fix formatting.
2085 (grow_vect): Ditto.
2086 (ada_demangle): Ditto.
2087 (internal_cplus_demangle): Ditto.
2088 (mop_up): Ditto.
2089
20902000-11-21 H.J. Lu <hjl@gnu.org>
2091
2092 * cplus-dem.c (main): Handle java_demangling.
2093
ae7d06ad 20942000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
2095
2096 * cplus-dem.c (grow_vect): Prototype.
2097 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2098
5dd42ef4
HPN
20992000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2100
2101 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2102 parameter `option'.
2103
296731c1
DD
21042000-11-15 Kenneth Block <kenneth.block@compaq.com>
2105
8944fb9d 2106 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
2107 be used in GCC.
2108
6e53a714 21092000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 2110
5dd42ef4 2111 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
2112 list.
2113
99a4c1bd
HPN
21142000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2115
2116 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
2117 xcalloc depending on htab->return_allocation_failure. Return zero
2118 if calloc fails.
99a4c1bd
HPN
2119 (htab_create): Update comment to cover memory allocation.
2120 (htab_try_create): New.
2121 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 2122 Update comment to cover this.
99a4c1bd 2123
e0f3df8f
HPN
21242000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2125
2126 * hashtab.c: Change void * to PTR where necessary.
2127 (htab_create, htab_expand): Correct formatting of comment before
2128 function.
2129
ae7d06ad 21302000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
2131
2132 * cp-demangle.c (string_list_def): Add caret_position and comments.
2133 (result_caret_pos): New macro.
2134 (result_append_string): Rename to...
2135 (result_add_string): ... this, and insert at caret position.
ae7d06ad 2136 Rename throughout.
59666b35
DD
2137 (result_append): Rename to...
2138 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 2139 throughout.
59666b35
DD
2140 (result_append_char): Rename to...
2141 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 2142 throughout.
59666b35
DD
2143 (result_append_space): Remove.
2144 (string_list_new): Initialize caret position.
2145 (result_add_separated_char): Use caret position.
2146 (result_get_caret): New funtion.
2147 (result_set_caret): Likewise.
2148 (result_shift_caret): Likewise.
2149 (result_previous_char_is_space): Likewise.
2150 (substitution_start): Use caret position.
2151 (substitution_add): Likewise.
2152 (demangling_new): Initialize caret position.
2153 (demangle_encoding): Use caret position.
ae7d06ad 2154 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
2155 (demangle_type_ptr): Use switch statement. Handle pointers to
2156 arrays. Don't use result_append_space. Use caret position.
2157 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
2158 call to demangle_array_type.
2159 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 2160
ae7d06ad 21612000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2162
2163 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
2164
21652000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2166
2167 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
2168
21692000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2170
2171 * splay-tree.c: #include <stdio.h>.
2172
21732000-09-14 Hans-Peter Nilsson <hp@axis.com>
2174
2175 * testsuite/demangle-expected: Add two tests for anonymous
2176 namespaces.
2177 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2178
21792000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
2180
2181 * splay-tree.c (splay_tree_predecessor): New function.
2182 (splay_tree_successor): Likewise.
ae7d06ad
NC
2183
21842000-09-10 Hans-Peter Nilsson <hp@axis.com>
2185
2186 * testsuite/demangle-expected: Add four tests for type_info
2187 mangling.
2188 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2189 for a non-template non-qualified type_info function or node.
2190
21912000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2192
2193 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
2194
21952000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2196
2197 * md5.c: #include "ansidecl.h".
2198
21992000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2200
2201 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2202 (demangle_type): Handle substitution candidates correctly in the
2203 face of special substitutions.
ae7d06ad
NC
2204
22052000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2206
2207 * cp-demangle.c (demangle_encoding): Rename variable.
2208 (demangle_name): Rename parameter. Handle return type
2209 suppression.
2210 (demangle_nested_name): Rename parameter.
2211 (demangle_prefix): Likewise. Change return type suppression.
2212 (demangle_unqualified_name): Add parameter. Flag constructors and
2213 conversion operators.
2214 (demangle_special_name): Fix comment.
2215 (demangle_type): Rename variable.
2216 (demangle_bare_function_type): Check for missing return type and
2217 parameter.
2218 (demangle_class_enum_type): Rename parameter.
2219 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
2220
22212000-08-31 DJ Delorie <dj@redhat.com>
2222
2223 * configure.in (Cygwin): special case cygwin only when we're
2224 building cygwin, not when we're hosting cygwin.
2225
22262000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2227
2228 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
2229 <expression>.
ae7d06ad
NC
2230
22312000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2232
2233 * cp-demangle.c (demangle_type_ptr): Increment position past
2234 pointer and reference characters.
ae7d06ad
NC
2235
22362000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2237
2238 * cp-demangle.c (demangle_nv_offset): New function.
2239 (demangle_v_offset): Likewise.
2240 (demangle_call_offset): Likewise.
2241 (demangle_special_name): Update thunk demangling to comply with
2242 ABI changes.
ae7d06ad
NC
2243
22442000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2245
2246 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2247 (substitution_def): Remove template_parm_number.
2248 (NOT_TEMPLATE_PARM): Remove.
2249 (result_insert_string): New macro.
2250 (result_insert): Likewise.
2251 (result_insert_char): Likewise.
2252 (substitution_add): Remove last parameter. Don't store template
2253 parm number.
2254 (BFT_NO_RETURN_TYPE): Define as NULL.
2255 (demangle_encoding): Adjust call to demangle_bare_function_type.
2256 (demangle_name): Adjust substitution. Adjust call to
2257 substitution_add.
2258 (demangle_prefix): Adjust call to substitution_add.
2259 (demangle_identifier): Handle anonymous namespaces.
2260 (demangle_operator_name): Change demangling of vendor-extended
2261 operator to match ABI changes.
2262 (demangle_type_ptr): Change parameters. Make recursive. Handle
2263 substitutions here.
2264 (demangle_type): Adjust calls to demangle_template_param,
2265 substitution_add, and demangle_type_ptr. Fix substitution of
2266 templated types.
2267 (demangle_function_type): Change parameter to a pointer.
2268 (demangle_bare_function_type): Likewise. Adjust insertion point.
2269 (demangle_template_param): Remove last parameter.
2270 (demangle_expr_primary): Remove unused variable. Adjust call to
2271 demangle_template_param.
2272 (is_mangled_char): Accept `$' and `.'.
2273 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2274 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
2275
22762000-08-31 Hans-Peter Nilsson <hp@axis.com>
2277
2278 * testsuite/demangle-expected: Add nine tests for
2279 underscore-after-number followed by five tests for name-signature
2280 delimiter.
2281
22822000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
2283
2284 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
2285
22862000-08-28 Jason Merrill <jason@redhat.com>
2287
2288 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2289 (CFILES): Add md5.c.
2290 * md5.c: New file.
2291
22922000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2293
2294 * cp-demangle.c (demangle_name): Initialize template_p in local
2295 name case. Don't re-add substitutions as candidates.
2296 (demangle_nested_name): Use <unqualified-name>.
2297 (demangle_prefix): Likewise. Don't add template names as
2298 substitution candidates twice, or re-add a substitution or the
2299 last prefix component.
2300 (demangle_local_name): Adjust output format.
ae7d06ad
NC
2301
23022000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2303
2304 * cp-demangle.c (result_add_separated_char): Change parameter to
2305 int.
2306 (substitution_add): Don't check for duplicates. Check if
2307 previously allocated size is zero.
2308 (demangle_name): Remove duplicate check for std substitution.
2309 Clear template flag appropriately.
2310 (demangle_prefix): Remove argument to demangle_substitution.
2311 Don't check that template flag is already set.
2312 (demangle_operator_name): Add pt operator.
2313 (demangle_type): Don't treat r as built-in type. Remove argument
2314 to demangle_substitution. Fix substitution candidate mechanics.
2315 Handle <template-template-parm>s. Improve comments.
2316 (demangle_template_param): Don't handle template arg lists here.
2317 (demangle_substitution): Remove parameter.
2318 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
2319
23202000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2321
2322 * libiberty/random.c (end_ptr): Revert previous change.
ae7d06ad
NC
2323
23242000-08-24 Greg McGary <greg@mcgary.org>
74bcd529
DD
2325
2326 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2327 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2328 * libiberty/random.c (end_ptr): Likewise.
ae7d06ad
NC
2329
23302000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
2331
2332 * cp-demangle.c (result_close_template_list): Remove function.
2333 (result_add_separated_char): New function.
2334 (result_open_template_list): New macro.
2335 (result_close_template_list): Likewise.
2336 (demangle_prefix): Don't set template_p if the
2337 prefix ends with a ctor name.
2338 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2339 (demangle_type): Check for template args after substitution.
2340 (demangle_template_args): Use result_open_template_list.
d3e85005 2341
ae7d06ad 23422000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 2343
ae7d06ad 2344 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 2345
ae7d06ad 23462000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
2347
2348 * config/mh-openedition.h: Added -DLE370 definition.
2349
a9f34fb6
JL
23502000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2351
2352 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2353 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2354 Cast program to 'char *' in errmsg_arg assignment.
2355 (PWAIT_ERROR): Define.
2356 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2357 to DJGPP's WIF* macros.
2358
90aaccd1 23592000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 2360 Jeff Law <law@cygnus.com>
90aaccd1 2361
ae7d06ad 2362 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 2363
90aaccd1 2364 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
2365 * rename.c: Include config.h, unistd.h
2366 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 2367
6ef554e3
HPN
23682000-07-24 Hans-Peter Nilsson <hp@axis.com>
2369
2370 * cplus-dem.c (work_stuff_copy_to_from): New.
2371 (delete_non_B_K_work_stuff): New.
2372 (delete_work_stuff): New.
2373 (mop_up): Break out work_stuff partly destruction to
2374 delete_non_B_K_work_stuff.
2375 (iterate_demangle_function): New.
2376 (demangle_prefix): Call iterate_demangle_function instead of
2377 demangle_function_name. Leave handling of name-signature
2378 __-delimiters to iterate_demangle_function.
2379 (demangle_integral_value): Strip an optional
2380 following underscore cautiously. Handle negative numbers.
2381
ae7d06ad 23822000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 2383
ae7d06ad 2384 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
2385 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2386
ae7d06ad
NC
23872000-07-21 Alex Samuel <samuel@codesourcery.com>
2388
2389 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2390 allocating ctor mangling.
2391 (demangle_array_type): Handle empty and non-constant array length.
2392
b1233257 23932000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
2394 Jeff Law <law@cygnus.com>
2395
2396 * configure.in (AC_CHECK_HEADERS): Add time.h.
2397 (AC_HEADER_TIME): Add check.
2398 * configure, config.in: Regenerate.
2399 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2400
2401 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2402 * configure, config.in: Regenerate.
2403 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2404 * strtol.c, strtoul.c: #include "config.h". Portably #include
2405 <limits.h> and/or <sys/param.h>.
2406 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 2407
7d3ffcaf
JL
2408 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2409 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2410 * configure, config.in: Regenerate.
2411 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2412
b1233257
JL
2413 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2414
ae7d06ad
NC
24152000-07-21 Mike Stump <mrs@wrs.com>
2416
2417 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
2418 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
2419
24202000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2421
2422 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2423
2424 * setenv.c (setenv): Initialize variable `ep'.
2425
2426 * sigsetmask.c (abort): Prototype.
2427
2428 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2429 __STDC__ for stdarg.h include.
2430 (int_vasprintf): Prototype.
2431 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2432 definition. Cast `global_total_width' in comparison.
2433 (main): Prototype. Return a value.
2434
2435 * vfork.c (fork): Prototype.
2436
2437 * xexit.c: Include config.h.
2438
9adf30b2
JL
24392000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2440
2441 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2442 and print it with %u.
2443
2ed78d1b
HPN
24442000-07-17 Hans-Peter Nilsson <hp@axis.com>
2445
2446 * testsuite/regress-demangle (failed test): Show result and
2447 expected output.
2448
0473bdf7
AH
24492000-07-07 Andrew Haley <aph@cygnus.com>
2450
2451 * cplus-dem.c (main): fflush() after emitting last char before
2452 waiting for input.
2453
03d5f569
JM
24542000-06-28 Alex Samuel <samuel@codesourcery.com>
2455
2456 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2457 (demangle_name): Handle <substitution> followed by
2458 <unqualified-template-name>.
2459 (demangle_type): Follow special substitutions with
2460 <class-enum-type>
2461 (demangle_subtitution): Set template_p for special substitutions.
2462 (main): Fix typos.
ae7d06ad 2463
03d5f569
JM
24642000-06-27 Alex Samuel <samuel@codesourcery.com>
2465
2466 * cp-demangle.c (demangle_special_name): Swap base and derived
2467 class when demangling construction vtables.
2468
24692000-06-21 Alex Samuel <samuel@codesourcery.com>
2470
2471 * cp-demangle.c: Don't include ctype.h.
2472 (IS_DIGIT): New macro.
2473 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2474 instead of isdigit and isalpanum.
2475 (demangling_def): Make name and next const pointers.
2476 (STATUS_ALLOCATION_FAILED): New status code.
2477 (dyn_string_append_space): Handle failure in
2478 dyn_string_append_char.
2479 (int_to_dyn_string): Likewise. Change return value to status_t.
2480 (string_list_new): Handle failure of dyn_string_init.
2481 (result_close_template_list): Change return type to status_t.
2482 Handle failure in dyn_string_append.
2483 (result_push): Change return value to status_t. Handle failure in
2484 string_list_new. Handle failure of result_push throughout.
2485 (substitution_add): Change return value to status_t. Handle
2486 dyn_string failures. Handle failure of substitution_add
2487 throughout.
2488 (template_arg_list_new): Return NULL on allocation failure.
2489 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2490 Handle error result throughout.
2491 (result_append): Likewise.
2492 (result_append_char): Likewise.
2493 (result_append_space): Likewise.
2494 (demangling_new): Make argument a const pointer. Handle
2495 allocation failures.
2496 (demangle_template_args): Handle failure in template_arg_list_new
2497 and result_close_template_list.
2498 (demangle_discriminator): Return if int_to_dyn_string fails.
2499 (cp_demangle): Likewise.
2500 (cp_demangle_type): New function.
2501 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2502 memory allocation failure.
2503 (main): Likewise.
2504 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2505 IN_LIBGCC2.
2506 (dyn_string_init): Change return value to int. Handle
2507 RETURN_ON_ALLOCATION_FAILURE case.
2508 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2509 (dyn_string_release): Delete the dyn_string.
2510 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2511 (dyn_string_copy): Change return type to int.
2512 (dyn_string_copy_cstr): Likewise.
2513 (dyn_string_prepend): Likewise.
2514 (dyn_string_prepend_cstr): Likewise.
2515 (dyn_string_insert): Likewise.
2516 (dyn_string_insert_cstr): Likewise.
2517 (dyn_string_append): Likewise.
2518 (dyn_string_append_cstr): Likewise.
2519 (dyn_string_append_char): Likewise.
2520 (dyn_string_substring): Likewise.
ae7d06ad 2521
eb383413 25222000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 2523
eb383413
L
2524 * cp-demangle.c (demangle_operator_name): Add spaces before
2525 names beginning with a letter: delete, delete[], new, new[],
2526 sizeof.
2527 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 2528
eb383413
L
2529Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2530
2531 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2532
2533Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2534
2535 * cp-demangle.c (stdio.h): File included unconditionaly.
2536 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2537 * dyn-string.c (stdio.h): File included.
2538 * partition.c (partition_print): No `&' needed to take the address of
2539 a function.
2540
25412000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2542
2543 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 2544
eb383413
L
2545 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2546
2547 * cp-demangle.c (demangle_char): Change parameter from char to int.
2548 (demangle_expression, demangle_expr_primary): Remove extra
2549 semi-colon in prototype.
2550
2551 * dyn-string.c (dyn_string_append_char): Change parameter from
2552 char to int.
2553
2554 * memcmp.c (memcmp): Constify.
2555
2556 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2557 __extension__.
2558
2559 * partition.c (elem_compare): Prototype. Don't cast away
2560 const-ness.
2561
2562 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 2563
eb383413
L
25642000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2565
2566 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2567
2568 * cp-demangle.c: Include demangle.h.
2569 (template_arg_list_new): DeANSIfy.
2570 (cp_demangle): Make static and add prototype.
2571 (operator_code, operators): Constify.
2572 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2573
25742000-06-05 Alex Samuel <samuel@codesourcery.com>
2575
2576 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2577 unsigned char.
2578 (demangle_unqualified_name): Likewise.
2579 (demangle_number_literally): Likewise.
2580 (demangle_type): Likewise.
2581 (demangle_substitution): Likewise.
2582 (is_mangled_char): Likewise, for isalnum.
2583
25842000-06-04 Alex Samuel <samuel@codesourcery.com>
2585
2586 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2587 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2588 (cp-demangle.o): New dependency.
2589 (dyn-string.o): Likewise.
2590
2591 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2592
2593 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2594 demangler.
2595 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2596 demangling mode.
2597 (gnu_new_abi_symbol_characters): New function.
2598 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2599 file.
2600 * cp-demangle.c: New file.
ae7d06ad 2601
f03aa80d
AC
2602Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2603
2604 * floatformat.c: Add name to each floatformat field.
2605
77bfb694
JL
2606Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2607
2608 * Makefile.in (objalloc.o): Depend on config.h
2609
5c82d20a
ZW
26102000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2611
eb383413 2612 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
2613 if HAVE_STRING_H.
2614 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2615 * objalloc.c: Include config.h. Include stdlib.h and don't
2616 declare malloc or free if HAVE_STDLIB_H.
2617 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2618 else declare malloc without prototype. Include string.h if
2619 HAVE_STRING_H, else declare memset without prototype. Don't
2620 include stddef.h.
2621
eb383413
L
26222000-05-23 Mike Stump <mrs@wrs.com>
2623
2624 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 2625 -j3.
eb383413
L
2626
26272000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2628
2629 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2630
26312000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2632
ae7d06ad 2633 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
2634 probably zero, also eliminate a warning on alpha.
2635
26362000-05-15 David Edelsohn <edelsohn@gnu.org>
2637
2638 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
2639 on $(enable_shared).
2640
26412000-05-10 Jakub Jelinek <jakub@redhat.com>
2642
2643 * config.table: Use mh-sparcpic for sparc*-*-*.
2644
26452000-05-08 Nick Clifton <nickc@cygnus.com>
2646
2647 * Makefile.in (CFILES): Add strncmp.c.
2648 (NEEDED): Add strncmp.
2649
26502000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 2651
eb383413
L
2652 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2653 Cast the arguments to `islower' to `unsigned char'.
2654 (print_demangler_list): Prototype.
2655
2656Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2657
2658 * sort.c (UCHAR_MAX): Provide fallback definition.
2659
26602000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
2661
2662 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2663 SUBDIRS.
2664
eb383413
L
26652000-04-28 Kenneth Block <block@zk3.dec.com>
2666 Jason Merrill <jason@casey.cygnus.com>
2667
ae7d06ad
NC
2668 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2669 (cplus_demangle_set_style): New function for setting style.
2670 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
2671
26722000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2673
2674 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2675
2676 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2677 (libiberty_AC_FUNC_STRNCMP): Invoke.
2678
2679 * strncmp.c: New file.
2680
2681Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2682
2683 * hashtab.c (htab_expand): Add prototype.
2684 (find_empty_slot_for_expand): Likewise.
2685
26862000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2687
2688 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2689 match prototype.
2690 (htab_expand): Cast the return value of xcalloc.
2691
26922000-04-24 Mark Mitchell <mark@codesourcery.com>
2693
2694 * hashtab.c (hash_pointer): New function.
2695 (eq_pointer): Likewise.
2696 (htab_hash_pointer): New variable.
2697 (htab_eq_pointer): Likewise.
2698
26992000-04-23 Mark Mitchell <mark@codesourcery.com>
2700
2701 * sort.c (sort_pointers): Fix endianness bugs.
2702
2703 * sort.c: New file.
2704 * Makefile.in (CFILES): Add sort.c
2705 (REQUIRED_OFILES): Add sort.o.
2706 (sort.o): New target.
2707
19be4303
JL
27082000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2709
2710 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2711 4.3BSD systems.
2712
eb383413
L
2713Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2714
2715 * hashtab.c: Various minor cleanups.
2716 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2717 (htab_find_slot): Likewise.
2718
27192000-04-16 Dave Pitts <dpitts@cozx.com>
2720
2721 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 2722
afe36a78
RH
27232000-04-05 Richard Henderson <rth@cygnus.com>
2724
2725 * splay-tree.c (splay_tree_remove): New.
2726
eb383413
L
27272000-03-30 Mark Mitchell <mark@codesourcery.com>
2728
2729 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2730 codes.
2731 (htab_find_with_hash): Likewise.
2732 (htab_find_slot_with_hash): Likewise.
ae7d06ad 2733
eb383413
L
27342000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2735
2736 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2737 unless it will be used. Rearrange loop for better
2738 optimization.
2739 (higher_prime_number): Add static prototype.
2740
b4fe2683
JM
2741Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2742
2743 * Makefile.in (partition.o): Depend on config.h
2744
27452000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2746
2747 * hashtab.c (find_empty_slot_for_expand): New function.
2748 (htab_expand): Use it instead of htab_find_slot.
2749 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2750 argument HASH.
2751 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2752 (htab_find): New wrapper function.
2753 (htab_find_slot): Likewise.
2754 (htab_traverse): Pass slot, not entry, to called function.
2755
27562000-03-09 Alex Samuel <samuel@codesourcery.com>
2757
2758 * Makefile.in (CFILES): Add partition.c.
2759 (REQUIRED_OFILES): Add partition.o.
2760 (partition.o): New rule.
2761 * partition.c: New file.
ae7d06ad 2762
b4fe2683
JM
27632000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2764
2765 * hashtab.c (htab_create): Set del_f.
2766 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2767 Use it.
2768
27692000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2770
2771 * hashtab.c: Remove debugging variables (all_searches,
2772 all_collisions, all_expansions). Delete
2773 all_hash_table_collisions.
2774 (create_hash_table, delete_hash_table, empty_hash_table,
2775 find_hash_table_entry, remove_element_from_hash_table_entry,
2776 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2777 hash_table_elements_number, hash_table_collisions): Rename to:
2778 htab_create, htab_delete, htab_empty, htab_find_slot,
2779 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2780 htab_elements, htab_collisions.
2781 (htab_find): New function, handles common case where you don't
2782 plan to add or delete an entry.
2783 (htab_expand): Don't create a whole new table, just a new
2784 entry vector.
2785 (htab_find_slot): Simplify logic.
2786
08372f14
ILT
27871999-08-03 Ian Lance Taylor <ian@zembu.com>
2788
2789 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2790 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2791
2792 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2793 $(TARGETLIB)n so it works on MSDOS.
2794 (install_to_tooldir): Likewise.
2795
9c8ac5a9
ILT
27961999-07-21 Ian Lance Taylor <ian@zembu.com>
2797
2798 From Mark Elbrecht:
2799 * makefile.dos: Remove; obsolete.
8f36e47c 2800 * configure.bat: Remove; obsolete.
9c8ac5a9 2801
0c0a36a4
ILT
28021999-07-11 Ian Lance Taylor <ian@zembu.com>
2803
2804 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2805 warning.
2806
28072000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2808
2809 * pexecute.c: Conditionally include string.h.
b4fe2683 2810 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
2811
28122000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2813
2814 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2815 we're using gcc.
2816
2817 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2818
28191999-12-27 Geoff Keating <geoffk@cygnus.com>
2820
2821 * vasprintf.c (int_vasprintf): Don't re-read the format character
2822 as this mishandles strings like '%%s'.
2823
28241999-12-05 Mark Mitchell <mark@codesourcery.com>
2825
2826 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2827 rather than struct splay_tree_node.
2828 (splay_tree_insert): Use struct splay_tree_s rather than struct
2829 splay_tree.
2830
2831Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2832
2833 * hashtab.c (sys/types.h): File included.
2834
28351999-11-22 Jason Merrill <jason@casey.cygnus.com>
2836
2837 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2838 BSD license, pursuant with
2839
2840 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2841
2842Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2843
2844 * hashtab.c: Include stdio.h.
2845
2846Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2847
2848 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2849
2850Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2851
2852 * xstrdup (sys/types.h): Include this file.
2853
28541999-10-28 Nathan Sidwell <nathan@acm.org>
2855
2856 * Makefile.in (SUBDIRS): New macro.
2857 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2858 avoid multiple subdirectory cleaning.
2859 (*-subdir): Use SUBDIRS.
2860
28611999-10-25 Jim Kingdon <http://developer.redhat.com/>
2862
2863 * cplus-dem.c: Move declarations of standard_symbol_characters and
2864 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2865 warnings.
2866
28671999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2868
2869 * hashtab.c (find_hash_table_entry): When returning a
2870 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2871 (clear_hash_table_slot): New function which deletes an entry
2872 by its position in the table, not its value.
2873 (traverse_hash_table): New function which calls a hook
2874 function for every live entry in the table.
2875
28761999-10-19 Mark Mitchell <mark@codesourcery.com>
2877
2878 * cplus-dem.c (INTBUF_SIZE): New macro.
2879 (string_append_template_idx): New function.
2880 (demangle_expression): Likewise.
2881 (demangle_integral_value): Use it.
2882 (demangle_real_value): New function, split out from ...
2883 (demangle_template_value_parm): ... here. Use
2884 string_append_template_idx. Use demangle_real_value.
2885 (demangle_template): Use string_append_template_idx.
2886 (demangle_qualified): Use consume_count_with_underscores.
2887 (get_count): Tweak formatting.
2888 (do_type): Use string_append_template_idx.
b4fe2683 2889
0c0a36a4
ILT
28901999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2891
2892 * calloc.c: Add a public domain notice.
2893
2894Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2895
2896 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2897
2898Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2899
2900 * Makefile.in (CFILES): Add hashtab.c
2901 (REQUIRED_OFILES): Add hashtab.o
2902 (hashtab.o): Add dependencies.
2903 * hashtab.c: New file
2904
2905Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2906
2907 * basename.c (DIR_SEPARATOR): New macro.
2908 (DIR_SEPARATOR_2): Likewise.
2909 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2910 (IS_DIR_SEPARATOR): Likewise.
2911 (main): Handle MSDOS style pathname.
2912
29131999-10-11 Mark Mitchell <mark@codesourcery.com>
2914
2915 * cplus-dem.c (do_type): Handle pointer to member types whose
2916 enclosing classes have namespace scope.
2917
2918Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2919
2920 * config.table: Provide a backup shell for executing move-if-change.
2921
29221999-10-02 Mark Mitchell <mark@codesourcery.com>
2923
2924 * xmalloc.c (xmalloc): Fix spelling error.
2925 (xcalloc, xrealloc): Likewise.
2926
29271999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2928
2929 * cplus-dem.c (fancy_abort, demangle_integral_value,
2930 demangle_arm_hp_template, recursively_demangle,
2931 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2932 (program_name, program_version, fatal): Constify a char*.
2933 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2934 (main): Call return, not exit.
2935
29361999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2937
2938 * choose-temp.c: Remove obsolete comment about gcc.
2939 (make_temp_file): Constify a char*.
2940
2941Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2942
2943 * xmemdup.c: Include sys/types.h.
2944
29451999-09-07 Jeff Garzik <jgarzik@pobox.com>
2946
2947 * xmemdup.c: New xmemdup function.
2948 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2949
2950Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2951
b4fe2683 2952 * config.table: Add openedition target.
0c0a36a4
ILT
2953 * config/mh-openedition: New file.
2954
2955Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2956
2957 * pexecute.c (pexecute): Fill in temp_base when needed.
2958
29591999-08-31 Richard Henderson <rth@cygnus.com>
2960
2961 * getpwd.c: Check HAVE_GETCWD before defining it away.
2962
29631999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2964
2965 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2966 (REQUIRED_OFILES): Add getpwd.o.
2967 (getpwd.o): Add target.
2968
2969 * configure.in (AC_PREREQ): Bump to 2.13.
2970 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2971
2972 * getpwd.c: New file, moved here from gcc.
2973
29741999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2975
2976 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2977 comparing against a signed quantity.
2978 (arm_special): Likewise.
2979 (demangle_fund_type): Likewise.
2980 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 2981 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
2982 (main): Constify variable `valid_symbols'.
2983
2984Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2985
2986 * strtoul.c (strtoul): Add parentheses around && within ||.
2987
2988Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2989
2990 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2991 libdir, libsubdir and tooldir.
2992
29931999-08-01 Mark Mitchell <mark@codesourcery.com>
2994
2995 * splay-tree.c (splay_tree_insert): Return the new node.
2996
35ca97ea
RH
29971999-07-14 Richard Henderson <rth@cygnus.com>
2998
b4fe2683 2999 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
3000 prototyping directly.
3001 * choose-temp.c: Conditionally include string.h.
3002
0c0a36a4
ILT
30031999-07-12 Jason Merrill <jason@yorick.cygnus.com>
3004
3005 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
3006
af32ff69
ILT
30071999-07-11 Ian Lance Taylor <ian@zembu.com>
3008
3009 * splay-tree.c (splay_tree_insert): Add initialization to avoid
3010 warning.
3011
0c0a36a4
ILT
30121999-07-07 Jason Merrill <jason@yorick.cygnus.com>
3013
3014 * Makefile.in (needed-list): Only include stuff we actually need
3015 for libstdc++.
3016
30171999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3018
3019 * configure.in (checkfuncs): Add gettimeofday.
3020 * config.in, configure: Regenerated.
3021
3022Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
3023
3024 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
3025 the test fails.
3026 * configure: Regenerate.
3027
30281999-06-10 Mike Stump <mrs@wrs.com>
3029
3030 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
3031 parallel builds.
3032
30331999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3034
3035 * putenv.c: Include ansidecl.h to define `const'.
3036 * setenv.c: Likewise.
3037
3038Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
3039
3040 * Makefile.in (CFILES): Add putenv.c and setenv.c.
3041 * configure.in (funcs): Add putenv and setenv.
3042 (AC_CHECK_FUNCS): Check for putenv and setenv.
3043 * configure: Rebuilt.
3044 * putenv.c setenv.c: New files.
3045
3046 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
3047 bytes of space using malloc.
3048
3049Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
3050
3051 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
3052 the *mangled pointer beyond the end of the string. Clean up code to
3053 match prevailing coding style.
3054
30551999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3056
3057 * tmpnam.c (L_tmpnam): Fix typo.
3058
3059Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
3060
3061 * cplus-dem.c (standard_symbol_characters): Renamed from
3062 standard_symbol_alphabet. No longer modify TABLE.
3063 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
3064 modify TABLE.
3065 (main): Corresponding changes. Use strchr to determine if a
3066 character is valid.
3067
e9868447
JB
30681999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
3069
3070 * cplus-dem.c (main): Use table lookup to distinguish identifier
3071 characters from non-identifier characters.
3072 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
3073
33fbbfbc
RH
3074Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
3075
3076 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
3077 * getruntime.c: Only attempt to include sys/resource.h and
3078 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
3079 are defined.
3080
0c0a36a4
ILT
3081Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
3082
3083 * configure.in (alloca detection): Handle alloca directly for interix.
3084 * configure: Rebuilt.
3085
3086Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
3087
3088 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
3089
252b5132
RH
30901999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
3091
3092 Fix from Dale Hawkins:
b4fe2683 3093 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
3094 reallocated properly if we use it again.
3095
3096 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3097 stricter about syntax. Always null-terminate string.
3098
c1687039
ILT
3099Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3100
3101 * configure.in (checkfuncs): Check for sbrk.
3102 * config.in: Rebuilt.
3103 * configure: Likewise.
3104 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3105
0c0a36a4
ILT
31061999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3107
3108 Fix from Marcus Daniels:
3109 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3110 identifier looking for another underscore.
3111
3112Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3113
3114 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3115 * xmalloc.c: Likewise.
3116 (xcalloc): UWIN has sbrk.
3117 (xrealloc): Fix guard macro.
3118
252b5132
RH
31191999-04-11 Richard Henderson <rth@cygnus.com>
3120
3121 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3122 or <alloca.h>.
3123 * clock.c (GNU_HZ): New definition.
3124 (clock): Use it.
3125 * getruntime.c: Likewise.
3126
3127 * config.table: Use mh-beos.
3128 * config/mh-beos: New file.
3129
0c0a36a4
ILT
31301999-04-11 Mark Mitchell <mark@codesourcery.com>
3131
3132 * cplus-dem.c (demangle_template_value_parm): Handle
3133 pointers-to-members.
3134 (do_type): Handle template parameters as qualifiers.
3135
252b5132
RH
31361999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3137
3138 * cplus-dem.c: Attempt to handle overflows in counts with some
3139 semblance of grace.
3140 (consume_count): Detect overflows. Return -1 to indicate errors,
3141 instead of zero.
3142 (demangle_template_value_parm, demangle_template): Handle change
3143 to consume_count's return convention.
3144
0c0a36a4
ILT
31451999-04-05 Tom Tromey <tromey@cygnus.com>
3146
3147 * testsuite/regress-demangle: New file.
3148 * testsuite/demangle-expected: New file.
252b5132 3149
0c0a36a4
ILT
3150 * Makefile.in (all, check, installcheck, info, install-info,
3151 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3152 distclean, maintainer-clean, realclean): Depend on corresponding
3153 `-subdir' target.
3154 (all-subdir check-subdir installcheck-subdir info-subdir
3155 install-info-subdir clean-info-subdir dvi-subdir
3156 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3157 distclean-subdir maintainer-clean-subdir): New target.
3158 * testsuite/Makefile.in: New file.
3159 * configure: Rebuilt.
3160 * configure.in: Create testsuite/Makefile.
252b5132
RH
3161
31621999-04-02 Mark Mitchell <mark@codesourcery.com>
3163
3164 * splay-tree.h (splay_tree_compare_pointers): Define.
3165
31661999-03-30 Mark Mitchell <mark@codesourcery.com>
3167
3168 * splay-tree.c (splay_tree_compare_ints): Define.
3169
31701999-03-30 Tom Tromey <tromey@cygnus.com>
3171
3172 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3173 don't advance input pointer.
3174 (demangle_class_name): If consume_count didn't find a count, do
3175 nothing. Don't bother with `strlen' sanity check; consume_count
3176 does it for us.
3177
31781999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3179
3180 From Art Haas <ahaas@neosoft.com>:
3181 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3182 when doing arm or hp style.
3183 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 3184
252b5132
RH
3185Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3186
3187 * pexecute.c (__CYGWIN32__): Rename to
3188 (__CYGWIN__): this.
3189 * xmalloc.c: Likewise.
3190
3191 Changes to support i386-pc-uwin.
3192 * configure.in (*-*-uwin*): Workaround for vfork bug.
3193 * configure: Regenerate.
3194 * pexecute.c (pexecute): Be like standard Unix.
3195 (pwait): Likewise.
3196 * xmalloc.c (first_break): Define.
3197 (xmalloc_set_program_name): Use.
3198 (xmalloc): Use.
3199
3200Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3201
3202 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3203
3204Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3205
3206 * config.table: Check cygwin*, not cygwin32*.
3207
3208Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3209
3210 * Makefile.in: Change mkstemp -> mkstemps.
3211
3212Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3213
3214 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3215 * configure.in (funcs): Check for and conditionally add mkstemps to
3216 the list of functions libiberty will provide.
3217 * configure: Rebuilt.
b4fe2683 3218
252b5132
RH
3219Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3220
b4fe2683 3221 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
3222 platforms that don't have HZ.
3223 * getruntime.c (HZ): Likewise.
3224
3225Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3226
3227 * Makefile.in (xstrdup.o): Depend on config.h.
3228
3229Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3230
3231 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3232 freeing it.
3233
3234Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3235
3236 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3237
3238Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3239
3240 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3241 splay-tree.o.
3242
32431999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3244
3245 * configure.in: Require autoconf 2.12.1 or higher.
3246
32471998-12-30 Michael Meissner <meissner@cygnus.com>
3248
3249 * random.c (NULL): Don't redefine NULL if it is already defined.
3250
3251Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3252
3253 * argv.c (buildargv): Cast the result of alloca in assignment.
3254
3255 * choose-temp.c: Include stdlib.h.
3256
3257 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
3258 (snarf_numeric_literal): Constify first parameter.
3259 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3260 int, not a char.
252b5132
RH
3261 (demangle_qualifier): Likewise.
3262 (demangle_signature): Cast the argument of a ctype function to
3263 unsigned char.
3264 (arm_pt): Add parens around assignment used as truth value.
3265 (demangle_arm_hp_template): Constify variable `args'.
3266 (do_hpacc_template_const_value): Cast the argument of a ctype
3267 function to unsigned char.
3268 (do_hpacc_template_literal): Remove unused variable `i'.
3269 (snarf_numeric_literal): Constify parameter `args'.
3270 Cast the argument of a ctype function to unsigned char.
3271
3272 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 3273 avoid ambiguous `else'.
252b5132
RH
3274
3275 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
3276 `cstart' and `cend' to unsigned char. Cast the argument of macro
3277 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
3278
3279 * objalloc.c (free): Add prototype.
3280
3281Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3282
3283 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3284
3285Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3286
3287 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 3288 doesn't exist.
252b5132 3289 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 3290
252b5132
RH
3291Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3292
3293 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3294 bumping the pointer we read from. Also prepend these codes,
3295 as we do in other places.
3296
32971998-12-18 Nick Clifton <nickc@cygnus.com>
3298
3299 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3300 'const char *' in order to match its usage when calling siblings.
3301 (snarf_numeric_literal): Make first arg 'const char **' in order
3302 to match usage.
3303
3304Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3305
3306 * choose-temp.c: Don't check IN_GCC anymore.
3307
3308 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3309 * memchr.c (memchr): Likewise.
3310 * memcpy.c (memcpy): Likewise.
3311 * memmove.c (memmove): Likewise.
3312
3313 * mkstemp.c: Don't check IN_GCC anymore.
3314 * pexecute.c: Likewise.
3315 * splay-tree.c: Likewise.
3316
3317 * strchr.c (strchr): Use `const', not `CONST'.
3318 * strrchr.c (strrchr): Likewise.
3319 * strtol.c (strtol): Likewise.
3320 * strtoul.c (strtoul): Likewise.
3321
3322Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3323 Elena Zannoni <ezannoni@cygnus.com>
3324 Stan Shebs <shebs@cygnus.com>
3325 Edith Epstein <eepstein@cygnus.com>
3326 Andres MacLeod <amacleod@cygnus.com>
3327 Satish Pai <pai@apollo.hp.com>
3328
3329 * HP aCC demangling support.
3330 * cplus-dem.c
3331 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
3332 demangling correctly when -edg specified; set the demangling style
3333 when user specifies 'edg'. Set strip_underscore to
3334 prepends_underscore, if not HPUXHPPA. Set
3335 current_demangling_style to hp_demangling if HPUXHPPA. Set
3336 current demangling style correctly if the switch is hp. Read
3337 label correctly also in the HP style case.
252b5132 3338 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 3339 function.
252b5132 3340 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 3341 style for this case is the same as ARM.
252b5132
RH
3342 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3343 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
3344 demangle_arm_pt.); check and set value of temp_start field in
3345 multiple places. Also, when ceching for end of template args,
3346 check to see if at end of static member of template class.
252b5132 3347 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 3348 include template args in string defining class.
252b5132
RH
3349 (demangle_class_name): use demangel_arm_hp_template.
3350 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
3351 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3352 Handle EDG_DEMANGLING style. Handle constructor and destructor
3353 ops for HP style.
252b5132 3354 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
3355 styles. global destructor and constructor for HP style are same
3356 as for ARM style. Same for local variables.
252b5132
RH
3357 (demangle_qualified): handle EDG_DEMANGLING style.
3358 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
3359 cases '1' - '9' : initialize the temp_start field to -1 and handle
3360 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3361 and AUTO_DEMANGLING styles. If expecting a function and managed
3362 to demangle the funct args, then handle the LUCID_DEMANGLING,
3363 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3364 class name after "Lnnn_ in HP style case. HP style too needs to
3365 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 3366 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 3367 value param for HP/aCC.
252b5132 3368 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 3369 literal parameter for HP aCC.
252b5132
RH
3370 (recursively_demangle): new function
3371 (snarf_numeric_literal): new function.
3372 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 3373 to message.
252b5132
RH
3374
3375Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3376
3377 * pexecute.c: Remove obsolete ifdefed cygwin code.
3378
3379Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3380
3381 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3382 * cplus-dem.c: Likewise. Conform to libiberty.h.
3383 * pexecute.c: Likewise.
3384 * splay-tree.c: Likewise.
3385
33861998-11-25 Mike Stump <mrs@wrs.com>
3387
3388 * Makefile.in (splay-tree.o): Add config.h dependency.
3389
3390Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3391
3392 * configure.in: Use AC_PREREQ(2.12.1).
3393
33941998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3395
b4fe2683 3396 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
3397
3398Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3399
3400 * mpw.c (mpw_access): Add missing parens.
3401
3402Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3403
3404 * configure.in: Call AC_HEADER_SYS_WAIT.
3405
3406 * pexecute.c: Include sys/wait.h when !IN_GCC.
3407
3408Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3409
3410 * pexecute.c: revert back to checking old Cygwin
3411 preprocessor symbol until some time has passed.
3412
3413Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3414
3415 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3416 since it will now support similar constructs.
3417
3418Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3419
3420 * configure.in: Check for calloc.
3421
3422 * calloc.c: New file.
3423
3424 * xmalloc.c (xcalloc): New function.
3425
3426Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3427
3428 *cplus-dem.c (demangle_prefix): Use the last "__"
3429 in the mangled name when looking for the signature. This allows
3430 template names to begin with "__".
3431
34321998-11-08 Mark Mitchell <mark@markmitchell.com>
3433
3434 * cplus-dem.c (type_kind_t): Add tk_reference.
3435 (demangle_template_value_parm): Handle it.
3436 (do_type): Use it for references, instead of tk_pointer.
3437
3438 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3439 not internal_cplus_demangle.
3440
3441Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3442
3443 * choose-temp.c: Don't include gansidecl.h.
3444 * mkstemp.c: Likewise.
3445 * pexecute.c: Likewise.
3446
3447Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3448
b4fe2683
JM
3449 * configure.in: detect cygwin* instead of cygwin32*
3450 * configure: regenerate
252b5132
RH
3451
3452Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3453
3454 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
3455 whether to include config.h. Possibly include unistd.h in the
3456 !IN_GCC case. Define VFORK_STRING as a printable function call
3457 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3458 defined, include vfork.h. If VMS is defined, define vfork()
3459 appropriately. Remove vfork check on USG, we're using autoconf.
3460 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3461 locally what string to use.
252b5132
RH
3462
34631998-10-26 Mark Mitchell <mark@markmitchell.com>
3464
3465 * splay-tree.c: Tweak include directives to make sure declarations of
3466 xmalloc and free are available.
3467
34681998-10-25 Mark Mitchell <mark@markmitchell.com>
3469
3470 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3471 anonymous namespaces.
3472
34731998-10-23 Mark Mitchell <mark@markmitchell.com>
3474
3475 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3476 with type_quals.
3477 (TYPE_UNQUALIFIED): New macro.
3478 (TYPE_QUAL_CONST): Likewise.
3479 (TYPE_QUAL_VOLATILE): Likewise.
3480 (TYPE_QUAL_RESTRICT): Likewise.
3481 (code_for_qualifier): New function.
3482 (qualifier_string): Likewise.
3483 (demangle_qualifier): Likewise.
3484 (internal_cplus_demangle): Use them.
3485 (demangle_signature): Likewise.
3486 (demangle_template_value_parm): Likewise.
3487 (do_type): Likewise.
3488 (demangle_fund_type)): Likewise.
3489
3490Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3491
3492 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3493 to match prototype.
3494
34951998-10-21 Mark Mitchell <mark@markmitchell.com>
3496
3497 * splay-tree.c: New file.
3498 * Makefile.in (CFILES): Add it.
3499 (REQUIRED_OFILES): Likewise.
3500 (splay-tree.o): Add dependencies.
3501
3502Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3503
3504 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3505 range of 'K' index.
3506
3507Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3508
3509 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3510
3511 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3512 `unsigned char'.
3513 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3514 comparing against one.
3515 (cplus_mangle_opname): Likewise.
3516 (demangle_integral_value): Cast argument of ctype macro to
3517 `unsigned char'.
3518 (demangle_template_value_parm): Likewise.
3519 (demangle_template): Initialize variable `bindex'. Cast the
3520 result of `strlen' to (int) when comparing against one. Remove
3521 unused variable `start_of_value_parm'.
3522 (demangle_class_name): Cast the result of `strlen' to (int) when
3523 comparing against one.
3524 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3525 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3526 when comparing against one.
3527 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3528 (get_count): Likewise.
3529 (do_type): Likewise. Cast the result of `strlen' to (int) when
3530 comparing against one.
3531 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3532 (demangle_function_name): Cast the result of `strlen' to (int)
3533 when comparing against one.
3534
3535 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3536 comparing against one.
3537
3538Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3539
b4fe2683
JM
3540 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3541 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3542 * config.in, configure: Rebuilt.
252b5132
RH
3543
3544 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3545 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3546 * config.in, configure: Rebuilt.
3547
3548Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3549
b4fe2683 3550 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
3551
3552Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3553
3554 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3555
3556Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3557
3558 * Merge egcs & devo libiberty.
3559