]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
* config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
8682c630 12004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
2
3 * pex-unix.c: Fix the spelling of longjmp.
4
0aef8b79 52004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
6
7 PR other/18623
8 * cp-demangle.c (d_call_offset): Remove useless local variables
9 offset and virtual_offset.
10 * cplus-dem.c (ada_demangle): Remove useless local variable
11 at_start_name.
12 (demangle_template): Remove useless local variable start.
13
ad1a4db8 142004-11-19 Roger Sayle <roger@eyesopen.com>
15
16 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
17 "ansidecl.h" to avoid redeclaration errors with native compilers.
18 * regex.c: Protect config.h from multiple inclusion.
19
f6069ff0 202004-11-12 Mike Stump <mrs@apple.com>
21
52ae5fe7 22 * Makefile.in (libiberty.html): Fix html generation.
23
6f2cd531 242004-09-08 Adam Nemet <anemet@lnxw.com>
25
26 * vasprintf.c: Accept __va_copy in addition to va_copy.
27
b279e2c1 282004-09-03 Paolo Bonzini <bonzini@gnu.org>
29
30 * configure: Regenerate.
31
ee0c04f5 322004-09-02 Paolo Bonzini <bonzini@gnu.org>
33
34 * configure.ac: Do not enable multilibs for build-side libiberty.
35
c295e612 362004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
37
38 * lrealpath.c (lrealpath): Add _WIN32 support.
39
78f7fe68 402004-06-28 Zack Weinberg <zack@codesourcery.com>
41
42 * cp-demangle.h: Declare cplus_demangle_operators,
43 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
44 cplus_demangle_type as static if IN_GLIBCPP_V3.
45
a2e044d6 462004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
47
48 PR other/16240
49 * cp-demangle.c (d_expr_primary): Check for a failure return from
50 cplus_demangle_type.
16795cfb 51 * testsuite/demangle-expected: Add test case.
a2e044d6 52
155c5d86 532004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
54
55 * pex-win32.c (fix_argv): Expand comment.
56
428b4753 572004-05-25 Daniel Jacobowitz <drow@false.org>
58
59 * Makefile.in: Add .NOEXPORT.
60
767efd18 612004-04-29 Douglas B Rupp <rupp@gnat.com>
62
63 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
64 copyright.
65
b6b1fbb6 662004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
67
68 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
69 * configure: Regenerate.
70
6c13736f 712004-04-22 Richard Henderson <rth@redhat.com>
72
73 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
74 (CHAR_BIT): Provide default.
75 (struct prime_ent, prime_tab): New.
76 (higher_prime_index): Rename from higher_prime_number, return index.
77 (htab_mod_1): New.
78 (htab_mod, htab_mod_m2): Use it.
79 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
80 (htab_expand): Likewise.
81 * configure.ac: Check for stdint.h.
82 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
83 * config.in, configure: Rebuild.
84
4d0c11d1 852004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
86
87 * strerror.c: Include config.h, and redefine sys_nerr and
88 sys_errlist, before including ansidecl.h and libiberty.h.
89
14c235d9 902004-04-13 Jeff Law <law@redhat.com>
91
92 * hashtab.c (htab_remove_elt_with_hash): New function.
93 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
94
dd070f65 952004-03-31 Richard Henderson <rth@redhat.com>
96
97 * hashtab.c (htab_size): Move to top of file; mark inline.
98 (htab_elements): Likewise.
99 (htab_mod, htab_mod_m2): New.
100 (htab_delete): Refactor htab->size and htab->entries.
101 (htab_empty): Likewise.
102 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
103 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
104 (htab_clear_slot): Use htab_size, htab_elements.
105 (htab_traverse_noresize, htab_traverse): Likewise.
106
fa714a54 1072004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
108
e1e51a4a 109 * pex-unix.c (pexecute): Use vfork instead of fork, with
110 appropriate changes to make this safe.
111 * pex-common.h (STDERR_FILE_NO): Define.
112
fa714a54 113 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
114 an 80 column screen. Run maint-deps.
115
7f759422 1162004-03-09 Kelley Cook <kcook@gcc.gnu.org>
117
118 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
119 * acconfig.h: Delete redundant file.
120 * config.in: Regenerate.
121 * configure: Regenerate.
122
ac09b42b 1232004-03-09 Hans-Peter Nilsson <hp@axis.com>
124
125 * configure: Regenerate for config/accross.m4 correction.
126
daf4fdb0 1272004-03-07 Andreas Jaeger <aj@suse.de>
128
129 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
130 prototypes.
131 (main): Initialize style.
132
6ff4434d 1332004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
134
a86aec34 135 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
136 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
137 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
138 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
139 short types to D_PRINT_DEFAULT. Change other integer types to use
140 new D_PRINT_* values where appropriate. Change float types to
141 D_PRINT_FLOAT.
142 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
143 values.
144 * testsuite/demangle-expected: Adjust two test cases.
145
146 * cp-demangle.c (d_print_function_type): Print a space before the
147 parenthesis around the function type in more cases.
148 * testsuite/demangle-expected: Adjust one test case.
149
1649ae17 150 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
151 parentheses around a cast.
152 * testsuite/demangle-expected: Adjust two test cases to match new
153 output.
154
d87adc77 155 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
156
6ff4434d 157 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
158 push more than one of the same CV-qualifier on the top of the
159 stack.
160 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
161 move the CV-qualifiers to apply to the element type instead.
162 (d_print_array_type): When checking the modifiers, keep looking
163 past ones which have been printed already.
164 * testsuite/demangle-expected: Add three test cases.
165
0765a988 1662004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
167
f356b171 168 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
169 empty string correctly.
170
dbe9febb 171 * cp-demangle.c (__cxa_demangle): It is not an error if status is
172 not NULL. It is an error if the mangled name is the same as a
173 built-in type name.
174 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
175 than cplus_demangle_v3.
176
0765a988 177 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
178 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
179
b8f2aeef 1802004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
181
182 * regex.c: Include <ansidecl.h>.
183 (regcomp): Cast i to int.
184 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
185
bcf8d2c0 1862004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
187
188 * configure.ac: Add m4_pattern_allow(LIBOBJS).
189 * configure: Regenerate.
190
acecd7dc 1912004-01-22 DJ Delorie <dj@redhat.com>
192
193 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
194 with explicit build rules.
195 (VPATH): Remove.
196 (.c.o): Poison.
197 * configure.ac (pexecute, LIBOBJS): Add ./ .
198 * maint-tool: Build dependencies with explicit rules.
199
37350d39 2002004-01-15 Kazu Hirata <kazu@cs.umass.edu>
201
202 * strdup.c (strdup): Constify the argument.
203
2ee927a4 2042004-01-14 Loren J. Rittle <ljrittle@acm.org>
205
206 * Makefile.in (distclean): Remove config.cache.
207
a79e1701 2082004-01-13 Daniel Jacobowitz <drow@mvista.com>
209
210 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
211 takes two parameters.
212 * cp-demint.c (cplus_demangle_fill_component): Likewise.
213
f95cb811 2142004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
215
216 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
217 defined, rename some functions which are to become static via
218 #define.
219 (CP_STATIC_IF_GLIBCPP_V3): Define.
220 (struct d_operator_info): Move definition to cp-demangle.h, and
221 rename to demangle_operator_info. Change all uses.
222 (enum d_builtin_type_print): Move definition to cp-demangle.h.
223 (struct d_builtin_type_info): Move definition to cp-demangle.h,
224 and rename to demangle_builtin_type_info. Change all uses.
225 (enum d_comp_type): Move definition to include/demangle.h, and
226 rename to demangle_component_type, and change all enums to start
227 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
228 (struct d_comp): Move definition to include/demangle.h, and rename
229 to demangle_component. Change all uses.
230 (struct d_info): Move definition to cp-demangle.h.
231 (cplus_demangle_fill_name): New function.
232 (cplus_demangle_fill_extended_operator): New function.
233 (cplus_demangle_fill_ctor): New function.
234 (cplus_demangle_fill_dtor): New function.
235 (d_make_empty): Remove type parameter. Change all callers.
236 (d_make_name): Use cplus_demangle_fill_name.
237 (d_make_extended_operator): Use
238 cplus_demangle_fill_extended_operator.
239 (d_make_ctor): Use cplus_demangle_fill_ctor.
240 (d_make_dtor): Use cplus_demangle_fill_dtor.
241 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
242 non-static by default. Change all callers.
243 (cplus_demangle_operators): Rename from d_operators. Change all
244 uses. Make non-static by default. Add sentinel at end of array.
245 (d_operator_name): Adjust initialization of high for new sentinel
246 in cplus_demangle_operators.
247 (cplus_demangle_builtin_types): Rename from d_builtin_types.
248 Change all uses. Make non-static by default. Change initializer
249 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
250 (cplus_demangle_type): Rename from d_type. Make non-static by
251 default. Change all callers.
252 (cplus_demangle_init_info): Rename from d_init_info. Make
253 non-static by default. Change all callers.
254 * cp-demangle.h: New file.
255 * cp-demint.c: New file.
256 * Makefile.in: Rebuild dependencies.
257 (CFILES): Add cp-demint.c.
258 (REQUIRED_OFILES): Add cp-demint.o.
259
a1e9c76c 2602004-01-09 Kelley Cook <kcook@gcc.gnu.org>
261
262 * configure.in: Rename file to ...
263 * configure.ac: ... this.
264 * Makefile.in: Update a comment for above change.
265 * README: Likewise.
266 * config.in: Regenerate.
267
f2c17d01 2682004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
269
270 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
271 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
272 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
273 demangling template parameters.
274 * testsuite/test-demangle.c (fail): New static function.
275 (main): Support new options in input file: --no-params,
276 --is-v3-ctor, and --is-v3-dtor.
277 * testsuite/demangle-expected: Add --no-params to most tests, and
278 add the correct result when parameters are not demangled. Add
279 some simple tests for V3 constructor/destructor recognition.
280
a5731f2a 2812003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
282
283 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
284
7b2b97f9 2852003-12-22 Daniel Jacobowitz <drow@mvista.com>
286
287 PR debug/13272
288 * Makefile.in (lbasename.o): Depend on filenames.h.
289 * lbasename.c: Include "filenames.h" instead of defining
290 its macros locally.
291
2c0843db 2922003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
293
294 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
295 dynamic arrays.
296 (struct d_operator_info): Add len field.
297 (struct d_builtin_type_info): Add len and java_len fields.
298 (struct d_standard_sub_info): Add simple_len, full_len, and
299 set_last_name_len fields.
300 (struct d_comp): Add len field to s_string.
301 (struct d_info): Add send, did_subs, and expansion fields.
302 (d_append_string_constant): Define.
303 (d_append_string): Remove. Change all users to use
304 d_append_string_constant or d_append_buffer instead.
305 (d_make_sub): Add len parameter. Change all callers.
306 (d_name): Increase expansion when substituting std::.
307 (d_unqualified_name): Increase expansion for an operator.
308 (d_number): Don't use multiplication for negative numbers.
309 (d_identifier): Make sure there are enough characters in the
310 string for the specified length. Adjust expansion for an
311 anonymous namespace.
312 (d_operators): Initialize len field.
313 (d_special_name, d_ctor_dtor_name): Increase expansion.
314 (d_builtin_types): Initialize len and java_len fields.
315 (d_type): Increase expansion for a builtin type.
316 (d_cv_qualifiers): Increase expansion for each qualifier.
317 (d_bare_function_type): Decrease expansion when removing single
318 void parameter.
319 (d_template_param): Increment did_subs.
320 (d_expression): Increase expansion for an operator.
321 (d_expr_primary): Decrease expansion for a type we will print
322 specially.
323 (standard_subs): Initialize new fields.
324 (d_substitution): Increment did_subs when doing a normal
325 substitution. Increase expansion for a special substitution.
326 (d_print): Add estimate parameter. Change all callers.
327 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
328 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
329 (d_print_java_identifier): Rename from d_print_identifier. Handle
330 only Java case. Change caller.
331 (d_init_info): Change return type to void. Change all callers.
332 Initialize send, did_subs, and expansion fields. Do not
333 initialize comps and subs fields.
334 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
335 arrays on stack. Make an estimate of the length of the demangled
336 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
337 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
338 subs arrays on stack.
339
abe6933a 3402003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
341
342 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
343 after the identifier.
344 * testsuite/demangle-expected: Add test case.
345
77097adf 3462003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
347
348 Fix for PR c++/13447:
349 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
350 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
351 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
352 D_COMP_QUAL_NAME.
353 (is_ctor_or_dtor): Likewise.
354 (d_local_name): Use D_COMP_LOCAL_NAME rather than
355 D_COMP_QUAL_NAME.
356 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
357 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
358 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
359 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
360 * testsuite/demangle-expected: Add two test cases.
361
362 * cp-demangle.c (d_print_function_type): Clear the global modifier
363 list when printing the modifiers, not just when printing the
364 function parameters.
365 * testsuite/demangle-expected: Add two test cases.
366
08d5ae10 3672003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
368
8ef443ab 369 * cp-demangle.c (d_print_function_type): Print the function
370 parameters with no modifiers.
371 * testsuite/demangle-expected: Add test case.
372
08d5ae10 373 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
374 expect that we've read the entire string.
375 (is_ctor_or_dtor): Don't expect that we've read the entire
376 string--reverse patch of 2003-11-29.
377
11037b2e 3782003-12-15 Brendan Kehoe <brendan@zen.org>
379
380 * libiberty/Makefile.in (floatformat.o): Add dependency on
381 config.h to accompany change of 2003-12-03.
382
b69d25f7 3832003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
384
385 Fix handling of constructor/destructor of standard substitution:
386 * cp-demangle.c (struct d_standard_sub_info): Define.
387 (d_substitution): Add prefix argument. Change all callers.
388 Rework handling of standard substitutions to print full name when
389 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
390 * testsuite/demangle-expected: Add test case.
391
392 Fix handling of negative literal constants:
393 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
394 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
395 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
396 (d_print_comp): Handle D_COMP_LITERAL_NEG.
397 * testsuite/demangle-expected: Add test case.
398
3c87c5c3 3992003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
400
401 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
402 (d_last_char): Define new macro.
403 (d_make_name): Reject an empty name.
404 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
405 (d_substitution, d_print_identifier): Likewise.
406 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
407 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
408 (d_print_mod) Use new d_last_char macro.
409 (d_print_cast): Use new d_last_char macro.
410 (is_ctor_or_dtor): Don't leak memory.
411
412 Fix handling of member function modifiers:
413 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
414 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
415 (d_dump): Dump new d_comp_type values.
416 (d_make_comp): Accept new d_comp_type values.
417 (has_return_type): Only accept _THIS variants of qualifiers.
418 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
419 qualifiers.
420 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
421 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
422 qualifiers and printing them at the end, add _THIS qualifiers to
423 the modifier list.
424 (d_print_comp) [D_COMP_*_THIS]: New cases.
425 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
426 qualifiers.
427 (d_print_mod_list): Add suffix parameter. Change all callers.
428 Keep walking the list even if the current modifier has been
429 printed.
430 (d_print_mod): Handle new _THIS qualifiers.
431 (d_print_function_type): Handle new _THIS qualifiers when deciding
432 whether to print a parenthesis. Put a space before the
433 parenthesis in some cases. Call d_print_mod_list again at the
434 end, passing suffix as 1.
435 (is_ctor_or_dtor): Look for new _THIS qualifiers.
436 * testsuite/demangle-expected: Add test case.
437
438 Fix for PR gcc/13304:
439 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
440 before the '<' is itself a '<', insert a space.
441 (d_print_cast): Likewise.
442 * testsuite/demangle-expected: Add test case.
443
444 Fix for PR gcc/13244:
445 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
446 which uses the '>' operator in an extra layer of parens.
447 * testsuite/demangle-expected: Add test case.
448
fa152dff 4492003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
450
451 * floatformat.c: Include "config.h" and <string.h> if available.
452 (INFINITY, NAN): Define if not defined by <math.h>.
453 (floatformat_to_double): Handle NaN, infinity, and denormalized
454 numbers.
455 (floatformat_from_double): Likewise.
456 (ieee_test): In debugging code, use little endian rather than big
457 endian. Correct tests to handle NaN and to check correct sign of
458 zero. Omit m68k extended test.
459 (main): Add more debugging cases.
460
72983aaa 4612003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
462
463 * cp-demangle.c (d_demangle): Only return success if we consumed
464 the entire demangled string.
465 (is_ctor_or_dtor): Likewise.
466
467 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
468 to restore expected result of EDG test case to original expected
469 result.
470
c1ea6f0c 4712003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
472
473 * cp-demangle.c (struct d_print_mod): Add templates field.
474 (d_make_builtin_type): Check for NULL type.
475 (d_make_extended_operator): Check for NULL name.
476 (d_make_ctor, d_make_dtor): Likewise.
477 (d_mangled_name): Add top_level parameter. Change all callers.
478 (d_encoding): If DMGL_PARAMS is not set, strip off initial
479 CV-qualifiers.
480 (d_type): Check some return values we rely on.
481 (d_bare_function_type, d_array_type): Likewise.
482 (d_pointer_to_member_type, d_template_args): Likewise.
483 (d_add_substitution): Fail if argument is NULL.
484 (d_print_resize): Check whether buf is NULL.
485 (d_print_comp): Save current templates list with each modifier.
486 Don't pass the modifier list down when printing a template.
487 (d_print_cast): Don't pass the modifier list down when printing a
488 template.
489 (d_print_mod_list): Temporarily set templates list while printing
490 a modifier.
491 (d_print_mod): Check that buf is not NULL before using it.
492 (d_print_function_type): Print parens if there is no modifier.
493 (d_init_info): Permit as many substitutions as there are
494 characters in the mangled name.
495 * testsuite/demangle-expected: Add two new test cases.
496
8a238b4d 4972003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
498
499 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
500 d_demangle.
501
55faa696 5022003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
503
504 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
505 callers.
506 (print_usage): Display new -p option.
507 (long_options): Add --no-params.
508 (main): Accept and handle -p.
509
7522af2a 5102003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
511
512 * cp-demangle.c (has_return_type): Skip qualifiers when checking
513 whether we have a template.
514 * testsuite/demangle-expected: Add four new tests.
515
1b4974e7 5162003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
517
3365aca7 518 * testsuite/demangle-expected: Minor changes to match output of
519 new demangler: adjust whitespace in four tests, and change order
520 of qualifiers in one test.
521
1b4974e7 522 * cp-demangle.c: Complete rewrite.
523
c8f6de64 5242003-11-19 Mark Mitchell <mark@codesourcery.com>
525
526 * cp-demangle.c (demangle_type): Correct thinko in substitution
527 processing.
528
0d45f4fe 5292003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
530
6b45c28d 531 * cp-demangle.c (demangle_operator_name): Remove space before
532 "sizeof".
533 (demangle_type_ptr): Put qualifiers in the right place. Handle
534 qualifiers in pointer to member specially.
535 (demangle_type): Handle qualifiers for pointer or reference
536 specially. Handle function type.
537 (demangle_local_name): Save and restore caret around demangling of
538 initial encoding.
539
28277092 540 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
541 cplus_demangle.
542
0d45f4fe 543 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
544
04bf85aa 5452003-10-31 Andreas Jaeger <aj@suse.de>
546
547 * floatformat.c (floatformat_always_valid): Add unused attribute.
548
82ac7060 5492003-10-30 Josef Zlomek <zlomekj@suse.cz>
550
551 Jan Hubicka <jh@suse.cz>
552 * vasprintf.c (int_vasprintf): Pass va_list by value.
553 Use va_copy for copying va_list.
554 (vasprintf): Pass va_list by value.
555
f324afe5 5562003-10-30 Josef Zlomek <zlomekj@suse.cz>
557
558 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
559 instead of increasing n_elements when inserting to deleted slot.
560
147ca737 5612003-10-20 J. Brobecker <brobecker@gnat.com>
562
563 * cplus-dem.c (demangle_template): Register a new Btype only
564 when needed.
565 * testsuite/demangle-expected: Add a new test.
566
12440823 5672003-10-16 H.J. Lu <hongjiu.lu@intel.com>
568
569 * testsuite/demangle-expected: Update the expected output of
570 _GLOBAL__I__Z2fnv.
571
c5eb53ab 5722003-10-02 Daniel Jacobowitz <drow@mvista.com>
573
574 * strerror.c: Revert last change. Declare static sys_nerr
575 and sys_errlist using different names.
576
704579f5 5772003-10-01 Daniel Jacobowitz <drow@mvista.com>
578
579 * strerror.c: Don't provide or reference sys_errlist if
580 strerror is available.
581
40a84a93 5822003-10-01 H.J. Lu <hongjiu.lu@intel.com>
583
584 * configure.in: Check if $MAKEINFO is missing.
585 * configure: Regenerated.
586
90305aaf 5872003-09-24 Daniel Jacobowitz <drow@mvista.com>
588
589 * configure.in: Use AC_PROG_CPP_WERROR.
590 * configure: Regenerated.
591
63cb126c 5922003-09-22 Andrew Cagney <cagney@redhat.com>
593
594 * floatformat.c (floatformat_i387_ext_is_valid): New function.
595 (floatformat_always_valid): New function.
596 (floatformat_i387_ext): Initialize new "is_valid" field to
597 "floatformat_i387_ext_is_valid".
598 (floatformat_ieee_single_little): Initialize "is_valid" field to
599 floatformat_always_valid.
600 (floatformat_ieee_double_big): Ditto.
601 (floatformat_ieee_double_little): Ditto.
602 (floatformat_ieee_double_little): Ditto.
603 (floatformat_ieee_double_littlebyte_bigword): Ditto.
604 (floatformat_i960_ext): Ditto.
605 (floatformat_m88110_ext): Ditto.
606 (floatformat_m88110_harris_ext): Ditto.
607 (floatformat_arm_ext_big): Ditto.
608 (floatformat_arm_ext_littlebyte_bigword): Ditto.
609 (floatformat_ia64_spill_big): Ditto.
610 (floatformat_ia64_spill_little): Ditto.
611 (floatformat_ia64_quad_big): Ditto.
612 (floatformat_ia64_quad_little): Ditto.
613 (floatformat_ia64_quad_little): Ditto.
614 (floatformat_is_valid): Call "is_valid".
615
8d083f49 6162003-09-15 Andrew Cagney <cagney@redhat.com>
617
618 * floatformat.c (get_field): Make "data" constant.
619 (floatformat_is_valid, floatformat_to_double): Make "from"
620 constant, fix casts.
621 (floatformat_from_double): Make "from" constant.
622
8109b385 6232003-09-15 Daniel Jacobowitz <drow@mvista.com>
624
625 * floatformat.c (floatformat_is_valid): New function.
626 (get_field, put_field): Correct comments.
627
76b64c1c 6282003-09-06 Josef Zlomek <zlomekj@suse.cz>
629
630 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
631 FIBHEAPKEY_T.
632
71babb92 6332003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
fc139dea 634
635 PR bootstrap/12100
636 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
637 * configure: Rebuilt.
638
a6089b1e 6392003-08-27 Daniel Jacobowitz <drow@mvista.com>
640
641 * aclocal.m4: Include acx.m4 and no-executables.m4.
642 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
643 (LIB_AC_PROG_CC): Remove.
644 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
645 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
646 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
647 performing link tests.
648 * configure: Regenerated.
649
484e4040 6502003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
651
78f7fe68 652 * cp-demangle.c: Clarify what package(s) this is part of.
484e4040 653
945220d6 6542003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
655
656 * pex-win32.c (pexecute): Mark parameters this_pname and
657 temp_base as unused. Remove unused variables retries,
658 sleep_interval. Initialize org_stdin, org_stdout.
659 (pwait): Mark parameter flags as unused.
660
6612003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
eeaf6b14 662
663 * pex-win32.c (fix_argv): Ensure that the executable pathname
664 uses Win32 backslashes.
665 (pexecute): Cast away constness when assigning *errmsg_arg.
666
de885da0 6672003-06-26 H.J. Lu <hongjiu.lu@intel.com>
668
669 * testsuite/demangle-expected: Add more GNU V3 testcases.
670
b60500ad 6712003-06-22 Zack Weinberg <zack@codesourcery.com>
672
673 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
674 not HC_ASCII and HC_EBCDIC.
675 Add documentation in form expected by gather-docs.
676 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
677 * Makefile.in, functions.texi: Regenerate.
678
05b93640 6792003-06-21 Zack Weinberg <zack@codesourcery.com>
680
681 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
682 for charset determination.
683
c08775b2 6842003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
685
686 * configure.in: Add check for malloc.h needed by
687 m68k for function free().
688 * configure: Regenerated.
689 * config.in: Add HAVE_MALLOC_H.
690 * hashtab.c: include malloc.h were available for
691 free().
692
5e90539e 6932003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
05b93640 694
5e90539e 695 PR bootstrap/10974
696 * physmem.c: Update comment.
697 * configure.in: Modify test for _system_configuration for older
698 AIX systems.
699
700 * config.in, configure: Regenerated.
05b93640 701
b4c6b6f4 7022003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
703
704 PR other/10810
705 * test-demangle.c (getline): Fix fence-post error.
706
5958dc33 7072003-06-03 Nick Clifton <nickc@redhat.com>
708
709 * asprintf.c: Change comment to note that -1 is returned upon
710 error.
711 * vasprintf.c: Likewise.
712 (vasprintf): Return -1 upon error.
713 * functions.texi: Document changes to asprintf and vasprintf.
714
f11036bc 7152003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
716
717 * config.table: Accept i[345867]86 variant.
718
ffa082ba 7192003-05-15 Jim Blandy <jimb@redhat.com>
720
721 * hex.c (_hex_value): Make this unsigned.
722 (hex_value): Update documentation for new return type. hex_value
723 now expands to an unsigned int expression, to avoid unexpected
724 sign extension when we store it in a bfd_vma, which is larger than
725 int on some platforms.
726 * functions.texi: Regenerated.
727
d6dfdca2 7282003-05-07 Josef Zlomek <zlomekj@suse.cz>
729
730 * splay-tree.c (splay_tree_predecessor): Fix comment.
731 (splay_tree_successor): Fix comment.
732
b3552be1 7332003-05-07 Jason Merrill <jason@redhat.com>
734
24bfa234 735 * hashtab.c (iterative_hash): New fn.
b3552be1 736 * configure.in: Add AC_C_BIGENDIAN_CROSS.
737 * aclocal.m4: Include accross.m4.
738 * configure, config.in: Regenerate.
739
9bb0a517 7402003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
741
742 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
743 * configure: Regenerate.
744
ddb6bca9 7452003-05-03 Carlo Wood <carlo@alinoe.com>
746
747 * cp-demangle.c: Fix typo in "char_traints" string-literal.
748
8806a402 7492003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
750
751 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
752 (main): Test that we don't write too much data.
753
09fd37ef 7542003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
755
756 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
757 vsnprintf.
758 * snprintf.c, vsnprintf.c: New files.
759 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
760 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
761 Regenerate dependencies.
762
763 * functions.texi, configure, config.in: Regenerated.
764
79d940a3 7652003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
766
767 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
768 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
769 and stpncpy.
770 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
771 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
772 Regenerate dependencies.
773
774 * functions.texi, configure, config.in: Regenerated.
775
ca3ccdf6 7762003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
777
778 * argv.c: Fix comments.
779 * calloc.c: Don't unnecessarily include "libiberty.h".
780 (bzero): Add prototype.
781 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
782 * getcwd.c (getcwd): Use standard definition to avoid conflicts
783 with system headers.
784 * hashtab.c (htab_traverse): Delete unused variables.
785 * rename.c: Include "ansidecl.h".
786 (rename): Use standard definition to avoid conflicts with system
787 headers.
788 * strsignal.c: Rely on ANSI_PROTOTYPES.
789 * strstr.c: Check GNUC >= 2, not GNUC == 2.
790 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
791 * vprintf.c: Include "ansidecl.h" earlier, rely on
792 ANSI_PROTOTYPES.
793 * vsprintf.c: Include "ansidecl.h" earlier, rely on
794 ANSI_PROTOTYPES and possibly include <stdarg.h>.
05b93640 795
ca3ccdf6 796 * Makefile.in: Regenerate dependencies.
797
6b5ad644 7982003-04-15 DJ Delorie <dj@redhat.com>
799
800 * maint-tool (deps): Scan for headers in $srcdir also.
801
d526b550 8022003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
803
804 PR target/10338
805 PR bootstrap/10198
806 PR bootstrap/10140
807 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
808 __mempcpy.
809 * regex.c (regerror): Likewise.
810
83f85421 8112003-04-14 Roger Sayle <roger@eyesopen.com>
812
813 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
814 * memchr.c: Likewise.
815 * strcasecmp.c: Likewise.
816 * strncasecmp.c: Likewise.
817 * strncmp.c: Likewise.
818 * xatexit.c: Likewise.
819 * xmalloc.c: Likewise.
820
821 * copysign.c: Use traditional function declaration instead of DEFUN.
822 * sigsetmask.c: Likewise.
823
824 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
825 * memset.c: Likewise.
826
827 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
828 * memmove.c: Likewise.
829
68acb842 8302003-04-14 Roger Sayle <roger@eyesopen.com>
831
832 * strdup.c (strdup): Tweak implementation to use memcpy.
833
b5e94eb4 8342003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
835
836 * configure.in (HAVE_UINTPTR_T): Always define.
837 * configure: Regenerated.
838
62133c30 8392003-03-23 Alexandre Oliva <aoliva@redhat.com>
840
841 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
842 instead of $$CC alone.
843 (install_to_tooldir): Use it.
844
6d05ae35 8452003-17-03 Jan Hubicka <jh@suse.cz>
846
847 * hashtab.c (htab_traverse_noresize): Break out from ...
848 * hashtab.c (htab_traverse): ... here.
849
b9af005f 8502003-12-03 Jan Hubicka <jh@suse.cz>
851
6d4061d0 852 * hashtab.c (htab_expand): Fix warning.
853
b9af005f 854 * hashtab.c (htab_expand): Compute the size of hashtable based
855 on the number of elements actually used.
856 (htab_traverse): Call htab_expand when table is too empty.
857
68f6f1d9 8582003-03-11 Carlo Wood <carlo@gnu.org>
859
860 * cplus-dem.c (demangle_integral_value): Correction to reflect
861 patch of 2002-01-10 in order to also make negative multi-digits
862 without leading underscore work.
863
ac5e00d3 8642003-03-03 Mark Mitchell <mark@codesourcery.com>
865
866 * cplus-dem.c: Add license exception to copyright notice.
867
df4b17bf 8682003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
869
870 * physmem.c: Formatting changes from upstream.
871
eafe92ea 8722003-02-24 Danny Smith <dannysmith@users.source.forge.net>
873
874 * physmem.c (physmem_total): Add _WIN32 support.
875 (physmem_available): Likewise.
876
5833978f 8772003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
878
879 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
880 GSI_PHYSMEM.
881 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
882
4195ec6a 8832003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
884
885 * configure.in: Check for sys/systemcfg.h and
886 _system_configuration.
887 * physmem.c: Add support for AIX. Tweek formatting as per
888 upstream coreutils beta.
889
0991d38e 8902003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
891 Richard Earnshaw <rearnsha@arm.com>
892 Geoffrey Keating <geoffk@apple.com>
05b93640 893
0991d38e 894 * configure.in: Check for sys/sysctl.h and sysctl.
895 * physmem.c: Add support for *bsd and darwin.
896 * Makefile.in: Generate depedency for physmem.o.
897
622d92fb 8982003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
899
900 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
901 Tru64 UNIX.
902 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
903 Tru64 UNIX.
904
905 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
906 machine/hal_sysinfo.h, sys/table.h.
907 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
908 * configure, config.in: Regenerate.
909
8f3b8386 9102003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
911
912 * configure.in: Check for sys/sysmp.h and sysmp.
913 * physmem.c: Pull upstream copy, add support for irix6.
914
915 * config.in, configure: Regenerated.
916
25b160f7 9172003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
918
919 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
920 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
921 pstat_getdynamic.
05b93640 922
5cf67f1b 9232003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
924
925 * Makefile.in (CFILES): Add physmem.c.
926 (REQUIRED_OFILES): Add physmem.o.
927 * configure.in: Check for sys/pstat.h.
928 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
929 * physmem.c: New file, copied from textutils.
930
931 * config.in, configure: Regenerated.
932
846a645c 9332003-02-20 Daniel Jacobowitz <drow@mvista.com>
934
935 * Makefile.in (CFILES): Add lrealpath.c.
936 (REQUIRED_OFILES): Add lrealpath.o.
937 (lrealpath.o): Add rule.
938 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
939 * configure.in: Add realpath and canonicalize_file_name to
940 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
941 for canonicalize_file_name.
942 * lrealpath.c: New file.
943 * make-relative-prefix.c: Update documentation.
944 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
945 * config.in: Regenerated.
946 * configure: Regenerated.
947 * functions.texi: Regenerated.
948
82561650 9492003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
950
951 * cplus_dem.c: Fix typo: intializes -> initializes.
952
e4e6363f 9532003-02-20 Alexandre Oliva <aoliva@redhat.com>
954
955 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
956 config.status.
957 * configure: Rebuilt.
958
cc720498 9592003-02-13 Daniel Jacobowitz <drow@mvista.com>
960
961 Fix PR c++/7612.
962 * cplus-dem.c (demangle_signature): Call string_delete.
963 Remove extra string_init.
964 (demangle_arm_hp_template): Call string_delete instead of
965 string_clear. Add missing string_delete call.
966 (demangle_qualified): Add missing string_delete call.
967 (do_type): Remove unused variable btype. Add missing string_delete
968 call. Call string_delete instead of string_clear.
969 (demangle_fund_type): Move variable btype inside of the switch
970 statement. Add missing string_delete call.
971 (do_arg): Call string_delete instead of string_clear. Remove extra
972 string_init.
973 (demangle_nested_args): Free work->previous_argument.
974
d94d977c 9752003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
976
977 * acconfig.h: New file. Add uintptr_t.
978 * config.in: Regenerated.
979
5533bc76 9802003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
981
982 * libiberty.texi: Update to GFDL 1.2.
983
7f13318a 9842003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
985
986 * Makefile.in (libiberty_topdir): New subst.
987 (mkinstalldirs): Redefine in terms of the above.
988 * configure.in: AC_SUBST it.
989 * configure: Regenerate.
990
9d2299ec 9912003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
992
993 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
994 (info-subdir, install-info-subdir, clean-info-subdir)
995 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
996 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
997 Pass $(FLAGS_TO_PASS).
998
49f7db63 9992003-01-27 Alexandre Oliva <aoliva@redhat.com>
1000
1001 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
1002 /`$$CC -print-multi-os-directory`.
1003
a21acbbb 10042003-01-26 Daniel Jacobowitz <drow@mvista.com>
1005
1006 * hashtab.c (htab_create_alloc_ex): New function.
1007 (hatab_set_functions_ex): New function.
1008 (htab_delete, htab_expand): Support alternate allocation functions.
1009
8c171144 10102003-01-24 Christopher Faylor <cgf@redhat.com>
1011
1012 * configure.in: Remove special pex-cygwin consideration.
1013 * configure: Regenerate.
1014 * pex-cygwin.c: Remove.
1015 * Makefile.in: Remove pex-cygwin.[co] lines.
1016
8cb0536d 10172003-01-24 Zack Weinberg <zack@codesourcery.com>
1018
1019 * Makefile.in (CFILES): Add pex-*.c.
1020 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
1021 (CONFIGURED_OFILES): Add pex-*.o.
1022 (TEXIFILES): Add pexecute.txh.
1023 (pexecute.o): Delete rule.
1024 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
1025 pex-unix.o, pex-win32.o): New rules.
1026 * configure.in: Change AC_INIT argument to xmalloc.c.
1027 Compute appropriate pexecute implementation and substitute it
1028 as @pexecute@.
1029
1030 * pexecute.c: Split up into...
1031 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
1032 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
1033 new files.
1034
1035 * functions.texi: Regenerate.
1036 * configure: Regenerate.
1037
aa5761b7 10382003-01-20 Josef Zlomek <zlomekj@suse.cz>
1039
1040 * hashtab.c (htab_expand): Fix allocation of new entries.
1041
71aad3b8 10422003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
1043
1044 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
1045
2e6a336d 1046 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
1047 mkinstalldirs command.
1048
e162e528 10492002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
1050
1051 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
1052 Define for hosts with HOST_EXECUTABLE_SUFFIX.
1053
aba68506 10542002-11-24 Nick Clifton <nickc@redhat.com>
1055
1056 * make-relative-prefix.c (make_relative_prefix): Ensure return
1057 string is empty before using strcat to construct it.
1058
5feeeb38 10592002-11-22 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * Makefile.in: Add make-relative-prefix.c.
1062 * make-relative-prefix.c: New file.
1063 * functions.texi: Rebuilt.
1064
d7022963 10652002-11-16 Jakub Jelinek <jakub@redhat.com>
1066
1067 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
1068 used with arguments in traditional C' warnings.
1069
dacb9fcc 10702002-10-16 Jakub Jelinek <jakub@redhat.com>
1071
1072 * config.table: Use mh-s390pic for s390x too.
1073
ff02de61 10742002-10-06 Andreas Jaeger <aj@suse.de>
1075
1076 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
1077 variable and of strict-aliasing warning.
1078 (grow_vect): Use char as first parameter.
1079
5f7912d8 10802002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1081
1082 * Makefile.in (all): Fix multilib parallel build.
1083
05455547 10842002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
1085
1086 * cp-demangle.c (demangling_new): Cast 0 to enum.
1087 (demangle_char): Cast return of strdup to char *.
1088 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
1089 (is_gnu_v3_mangled_dtor): Likewise.
1090 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
1091 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
1092 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
1093 * md5.c (md5_process_bytes): Cast results back to const void *.
1094 (md5_process_block): Add cast to const md5_uint32 *.
1095 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
1096 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
1097 unsigned short.
1098 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
1099 to void *.
1100 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
1101
bd5d1805 11022002-09-19 Nick Clifton <nickc@redhat.com>
1103
1104 * README: Update email addresses for bugs and patches.
1105
0fe3478a 11062002-09-10 Mike Stump <mrs@apple.com>
1107
1108 * splay-tree.c (splay_tree_successor): Fix comments.
1109
65e49ff1 11102002-09-11 Zack Weinberg <zack@codesourcery.com>
1111
808b5085 1112 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
65e49ff1 1113 * testsuite/Makefile.in: Adjust for test-demangle.
1114 * testsuite/regress-demangle: Deleted.
1115 * testsuite/test-demangle.c: New file.
1116 * testsuite/demangle-expected: Change \$ to $ throughout, now that
1117 this file is not being read by a shell script.
1118
5ca95c55 11192002-09-05 Roger Sayle <roger@eyesopen.com>
1120
1121 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
1122
b251a88a 11232002-08-07 DJ Delorie <dj@redhat.com>
1124
1125 * regex.c (re_error_msgid): Just use a simple array of strings.
1126 (re_compile_pattern): Compensate.
1127 (re_comp): Likewise.
1128 (re_comp): Likewise.
1129 (regerror): Likewise.
1130
f4e29b4a 11312002-07-29 Neil Booth <neil@daikokuya.co.uk>
1132
1133 * cplus-dem.c (PREPEND_BLANK): Remove.
ff02de61 1134
abcf0552 11352002-07-10 Jason Merrill <jason@redhat.com>
1136
1137 * cp-demangle.c (demangle_identifier): Support extended Unicode
1138 characters.
1139
c62ef5b5 11402002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1141
1142 * cp-demangle.c (demangle_v3_with_details): Wrap in
ff02de61 1143 !defined IN_GLIBCPP_V3.
c62ef5b5 1144
74c75ba5 11452002-07-01 Mark Mitchell <mark@codesourcery.com>
1146
1147 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
1148 Set it for the "st" operator.
1149 (demangle_expression): Handle expressions with types as arguments.
1150
b2835908 11512002-06-30 Douglas Rupp <rupp@gnat.com>
1152
1153 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
1154 * Makefile.in (OUTPUT_OPTION): Use.
1155
c75cb827 11562002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
1157
1158 * Makefile.in (install_to_libdir): Add $(DESTDIR).
1159 (install_to_tooldir): Likewise.
1160
55fc5d04 11612002-06-17 Douglas Rupp <rupp@gnat.com>
1162
1163 * lbasename.c: Add 2002 to copyright.
1164 (IS_DIR_SEPARATOR): Remove VMS junk.
1165
8d24e548 11662002-06-05 Geoffrey Keating <geoffk@redhat.com>
1167
1168 * hashtab.c (htab_create): New stub function for backward
1169 compatibility.
1170 (htab_try_create): Likewise.
1171
1f3233d1 11722002-06-03 Geoffrey Keating <geoffk@redhat.com>
1173
1174 * hashtab.c (htab_create): Delete.
1175 (htab_try_create): Delete.
1176 (htab_create_alloc): New.
1177 (htab_delete): Support user-specified memory allocation.
1178 (htab_expand): Likewise.
1179
daa2cd64 11802002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
1181
1182 * configure.in: Fix typo in the code checking for sys_errlist.
1183 * configure: Regenerated.
1184
70102259 11852002-05-13 Andreas Schwab <schwab@suse.de>
1186
1187 * config.table: Use mh-x86pic also for x86-64.
1188
0b045cf7 11892002-05-08 Alexandre Oliva <aoliva@redhat.com>
1190
1191 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
1192 script entry, and set LD to it when configuring multilibs.
1193 * configure: Rebuilt.
1194
63e428d5 11952002-05-07 Mark Mitchell <mark@codesourcery.com>
1196
1197 * configure.in (AC_TYPE_PID_T): Use it.
1198 * configure: Regenerated.
1199 * getruntime.c: Include <sys/types.h>.
1200 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
1201
8c8eb750 12022002-04-09 Richard Henderson <rth@redhat.com>
1203
1204 * hashtab.c (higher_prime_number): Use 7 as minimum.
1205 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
1206 (htab_find_slot_with_hash): Likewise.
1207
5acfe29d 12082002-04-01 Phil Edwards <pme@gcc.gnu.org>
1209
1210 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
1211 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
1212 not compile if IN_GLIBCPP_V3 defined.
1213 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
1214
87591c4a 12152002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
1216
ff02de61 1217 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
87591c4a 1218 if it is NULL.
1219
b8327a91 12202002-03-27 DJ Delorie <dj@redhat.com>
1221
1222 * hex.c: Add documentation.
1223 (_hex_value): Provide non-ASCII empty table.
1224 (hex_init): Initialize the non-ASCII table.
1225 * functions.texi: Regenerate.
1226
baf716a5 12272002-03-27 Mark Mitchell <mark@codesourcery.com>
1228
1229 * dyn-string.c: Add libgcc exception to copyright notice.
1230
60d10194 12312002-03-26 H.J. Lu (hjl@gnu.org)
1232
1233 * config.table: Support --with-build-subdir.
1234 * configure.in: Likewise.
1235 * configure: Rebuild.
1236
8b7d2865 12372002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
1238
1239 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
1240 seen.
1241
8916275c 12422002-03-12 Mark Mitchell <mark@codesourcery.com>
1243
1244 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
1245 notice.
1246
241f7b9c 12472002-03-11 Douglas B Rupp <rupp@gnat.com>
1248
1249 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
1250
bc95356d 12512002-03-06 Jim Blandy <jimb@redhat.com>
1252
1253 * splay-tree.c (splay_tree_xmalloc_allocate,
1254 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
1255 prototyped definitions. Mark `data' arguments as unused.
1256
5a3c5094 12572002-03-06 Andrew Cagney <ac131313@redhat.com>
1258
1259 * floatformat.c (floatformat_arm_ext_big): Delete definition.
1260
9123512a 12612002-03-04 Phil Edwards <pme@gcc.gnu.org>
1262
1263 * configure.in: Add --enable-install-libiberty option.
1264 * Makefile.in (INSTALLED_HEADERS): New variable.
1265 (install_to_libdir): Possibly also copy headers.
1266 * configure: Regenerated.
1267
5e571023 12682002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
1269
1270 * xmalloc.c (xmalloc_fail): Clarify error message further.
1271
323c06f5 12722002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
1273
1274 * xmalloc.c (xmalloc_fail): Clarify error message.
1275
a3af3ae8 12762002-02-22 Jim Blandy <jimb@redhat.com>
1277
1278 * splay-tree.c (splay_tree_xmalloc_allocate,
1279 splay_tree_xmalloc_deallocate): New functions.
1280 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
1281 above functions and a dummy data pointer.
1282 (splay_tree_new_with_allocator): New function.
1283 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
1284 splay_tree_remove): Use the splay tree's allocation and
1285 deallocation functions.
1286
080f842c 12872002-02-19 Scott Snyder <snyder@fnal.gov>
1288
1289 * testsuite/demangle-expected: Add test case for infinite loop in
1290 demangler.
1291 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
1292 if do_type() doesn't make any progress --- prevents an infinite
1293 loop.
1294
a9e05c62 12952002-02-18 Carlo Wood <carlo@gnu.org>
1296
1297 PR c++/5390
1298 * cplus-dem.c (demangle_integral_value): Accept multi-digit
1299 numbers that do not start with an underscore; This is needed
1300 for integer template parameters. This doesn't break anything
1301 because multi-digit numbers are never followed by a digit.
1302 * testsuite/demangle-expected: Corrected all mangled test
1303 cases with multi-digit template parameters: g++ 2.95.x does
1304 not generate underscores around these parameters.
1305
c6d86b63 13062002-02-05 Jason Merrill <jason@redhat.com>
1307
1308 * cplus-dem.c (flags): Add DMGL_VERBOSE
1309 (cplus_demangle_v3_p): Remove.
1310 (demangle_it): Add DMGL_TYPES to passed flags.
1311 * cp-demangle.c (cplus_demangle_v3_all): Remove.
1312 (cplus_demangle_v3_type): Remove.
1313 (cplus_demangle_v3): Add options parm.
1314
9bd54051 13152002-02-02 H.J. Lu (hjl@gnu.org)
1316
1317 * cp-demangle.c (cp_demangle_type): Do not protect with
1318 IN_LIBGCC2.
1319 (cplus_demangle_v3_all): New.
1320 (cplus_demangle_v3): Call cplus_demangle_v3_all.
1321 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
1322
1323 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
1324 Initialized to cplus_demangle_v3.
1325 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
1326 of cplus_demangle_v3.
1327 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
1328 command line symbol.
1329
1330 * testsuite/regress-demangle: Pass the mangled name at the
1331 command line.
1332
db248273 13332002-02-01 H.J. Lu <hjl@gnu.org>
1334
1335 * cp-demangle.c (cp_demangle_type): Call demangling_new with
1336 DMGL_GNU_V3.
1337
89a5385c 13382002-01-31 Phil Edwards <pme@gcc.gnu.org>
1339
1340 * cp-demangle.c: Revert yesterday's change.
1341
da383dd4 13422002-01-31 Adam Megacz <adam@xwt.org>
1343
1344 * gcc/libiberty/configure.in: Treat mingw the same as cywin
1345 wrt HAVE_SYS_ERRLIST.
1346
1e72f309 13472002-01-30 Phil Edwards <pme@gcc.gnu.org>
1348
1349 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
1350 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
1351 cp_demangle_type.
1352 * testsuite/demangle-expected: New gnu-v3 test.
1353
2c79f170 13542002-01-22 Momchil Velikov <velco@fadata.bg>
1355
1356 * configure.in (variable detection): Use arrays of unspecified
1357 size instead of plain integers.
1358
98b6fc70 13592002-01-18 DJ Delorie <dj@redhat.com>
1360
1361 * Makefile.in (TESTLIB): New. This library is for future
1362 testsuites.
1363 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
1364 break down by letter.
1365 (REQUIRED_OFILES): List long-to-compile files first.
1366 (maint-deps): New, target for updating dependencies.
1367 (dependencies): Update.
1368 * maint-tool: Add dependency-generating option.
1369 * configure.in: Check for _doprnt even if we're not providing it.
1370 * configure: Regenerate.
1371
1372 * _doprnt.c: Modifications to allow compiling on any platform.
1373 * copysign.c: Likewise.
1374 * putenv.c: Likewise.
1375 * setenv.c: Likewise.
1376 * vsprintf.c: Likewise.
1377
b4eac72f 13782002-01-15 Douglas B Rupp <rupp@gnat.com>
1379
1380 * mkstemps.c (mkstemps): On VMS, open temp file with option
1381 that causes it to be deleted when closed.
1382
7806d7a4 13832002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1384
c077395f 1385 * cp-demangle.c (long_options): Const-ify.
1386 * cplus-dem.c (long_options): Likewise.
1387
7806d7a4 1388 * cplus-dem.c (mystrstr): Delete. All callers changed to use
1389 strstr instead.
1390
936c37fd 13912001-12-31 Ira Ruben <ira@apple.com>
1392
1393 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
1394 * configure: Regenerated.
e9894157 1395
13962001-12-24 Douglas B. Rupp <rupp@gnat.com>
1397
1398 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
1399 * configure: Regenerated.
936c37fd 1400
4e3ed534 14012001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
1402
1403 PR other/2719
1404 * cplus-dem.c (consume_count): Treat negative count as an error.
1405 * testsuite/demangle-expected: Added testcase.
1406
8f966bdb 1407Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
1408
1409 * configure.in: Hardcode that vfork works on VMS host.
1410 * configure: Regenerated.
1411
8d87ccec 14122001-12-06 Richard Henderson <rth@redhat.com>
1413
1414 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
1415 (cplus_demangle): Support no_demangling.
1416
31972771 14172001-11-27 Zack Weinberg <zack@codesourcery.com>
1418
1419 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
1420 in libiberty context. Fix typo in leading comment.
1421 * configure.in: Fix various AC_DEFINEs so autoheader works.
1422 If any of vprintf, vsprintf, vfprintf is missing from libc,
1423 then AC_REPLACE_FUNCS(_doprnt).
1424
8e198eb2 14252001-11-26 DJ Delorie <dj@redhat.com>
31972771 1426 Daniel Jacobowitz <drow@mvista.com>
8e198eb2 1427
1428 * Makefile.in (stamp-h): Depend on Makefile for proper
1429 serialization.
1430 (*-subdir): Depend on config.h for proper serialization.
1431
c660fab8 14322001-11-26 DJ Delorie <dj@redhat.com>
1433
1434 * configure.in: Check for alloca.h (for regex.c and putenv.c).
1435 * configure: Regenerate.
1436 * config.h: Add HAVE_ALLOCA_H.
1437
43eb13f7 14382001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1439
81cea2ab 1440 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
1441 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
1442 is available.
43eb13f7 1443
e9fb7b39 1444Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
1445
7b190504 1446 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
1447 * configure.in (HAVE_UINTPTR_T): Test for system defining
1448 uintptr_t and define HAVE_UINTPTR_T appropriately.
1449 * regex.c (uintptr_t): Do not provide a definition if the
1450 system provided one.
1451
e9fb7b39 1452 * regex.c (PREFIX): Provide an alternate definition for
1453 non-ANSI/ISO compilers.
1454 (ARG_PREFIX): Likewise.
1455
448378fc 14562001-11-12 Jim Meyering <meyering@lucent.com>
1457
1458 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
1459 this code would end up calling gettext even in packages built
1460 with --disable-nls.
1461 * getopt.c (_): Likewise.
1462 * regex.c (_): Likewise.
1463
7c9e70dd 14642001-11-03 Alan Modra <amodra@bigpond.net.au>
1465
1466 * configure.in: Cope with missing makeinfo.
ebfeb892 1467 * configure: Regenerate.
7c9e70dd 1468
a3493641 14692001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1470
e500d428 1471 * hex.c (hex_init): Provide empty stub.
1472
a3493641 1473 * hex.c (hex_init): Delete.
1474 (_hex_value): Const-ify and initialize at compile-time.
1475
3de15244 14762001-10-19 H.J. Lu <hjl@gnu.org>
1477
1478 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
1479 necessary.
1480
f0ed5ac1 14812001-10-17 DJ Delorie <dj@redhat.com>
1482
1483 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
1484 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
0af1044a 1485 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
f0ed5ac1 1486 Improve manual formatting.
1487 * functions.texi: Regenerate.
1488
349e8276 14892001-10-15 DJ Delorie <dj@redhat.com>
1490
1491 * Makefile.in (TEXIFILES): Add fnmatch.txh.
1492 (maint-undoc): New.
1493 maint-tool: Add "undoc" tool.
1494 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
1495 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
1496 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
1497 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
1498 documentation.
1499 * fnmatch.txh: New.
1500 * functions.texi: Regenerate.
8cc9ccc9 1501
8a630ee4 15022001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
1503
1504 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
1505 * strtod.c: Use "ISO C" instead of "ANSI C".
1506 * functions.texi: Regenerate.
1507
a3a8a3df 15082001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
1509
1510 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
1511 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
1512 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
1513 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
1514 spelling. Give names to function arguments in documentation. Use
1515 (void) prototypes in documentation.
1516 * functions.texi: Regenerate.
1517
542e9271 15182001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1519
1520 * argv.c (buildargv, tests, main): Const-ify.
1521 * cp-demangle.c (operator_code): Likewise.
1522 * cplus-dem.c (optable, libiberty_demanglers,
1523 cplus_demangle_set_style, cplus_demangle_name_to_style,
1524 print_demangler_list): Likewise.
1525 * hashtab.c (higher_prime_number): Likewise.
1526 * strcasecmp.c (charmap): Likewise.
1527 * strerror.c (error_info, strerror, main): Likewise.
1528 * strncasecmp.c (charmap): Likewise.
1529 * strsignal.c (signal_info): Likewise.
1530
5b7836cc 15312001-09-29 DJ Delorie <dj@redhat.com>
1532
1533 * configure: Regenerate.
1534
e7faea46 15352001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1536
1537 * concat.c: Include stdlib.h.
1538
997fdf4a 15392001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
1540
1541 * libiberty.texi: (Top level): Add syncodeindex pg. Add
1542 @dircategory and @direntry directives. Add @finalout.
1543 (many nodes): Lose the next,prev,up pointers on the @nide line.
1544 (Using, Supplemental Functions, Replacement Functions): Fix
1545 markup.
1546 (Functions): Move around, to allow makeinfo to build the manual
1547 without next,prev,up pointers in thye node lines.
1548 (Licenses): Fix typos.
1549
1550 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
1551 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
1552 * functions.texi: Regenerate.
1553
1554 * copying-lib.texi: Lose the next,prev,up pointers on the @node
1555 line.
1556
eb765d0c 15572001-09-27 DJ Delorie <dj@redhat.com>
1558
1559 * configure.in: Don't use in-tree texinfo, because libiberty must
1560 be built before it. Check for makeinfo version 4 or higher.
1561 * functions.texi: Regenerate.
8cc9ccc9 1562
614a23c6 15632001-09-20 DJ Delorie <dj@redhat.com>
1564 Phil Edwards <pedwards@disaster.jaj.com>
8cc9ccc9 1565
614a23c6 1566 * configure.in (MAKEINFO, PERL): Detect these.
1567 (--enable-maintainer-mode): Add.
1568 * configure: Regenerate.
1569 * Makefile.in (MAKEINFO, PERL): Define.
1570 (libiberty.info, libiberty.dvi, libiberty.html): New.
1571 (CFILES): Add bsearch.c.
1572 (CONFIGURED_OFILES): New, list of objects configure might add.
1573 (maint-missing, maint-buildall): New, for maintainers only.
1574 (clean, mostlyclean): Add info/dvi/html files.
1575 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
1576 * gather-docs: New, for maintainers.
1577 * maint-tool: New, for maintainers.
1578 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
1579 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
1580 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
1581 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
1582 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
1583 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
1584 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
1585 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
1586 documentation.
8cc9ccc9 1587
92f03c00 15882001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1589
1590 * concat.c (reconcat): Fix for traditional C.
1591
0be2ebc7 15922001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1593
1594 * concat.c (reconcat): New function.
1595
add62f6a 15962001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1597
9659201a 1598 * concat.c (vconcat_length, vconcat_copy, concat_length,
1599 concat_copy, concat_copy2): New functions.
1600 (concat): Use vconcat_length/vconcat_copy.
1601
add62f6a 1602 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
1603 Define.
1604
2bfbbd2b 16052001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1606
1607 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
1608 VA_FIXEDARG & VA_CLOSE.
8cc9ccc9 1609
2bfbbd2b 1610 * vasprintf.c: Check HAVE_STRING_H when including string.h.
1611 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
1612 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
1613
68036f05 16142001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1615
1616 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
1617
958cb671 16182001-08-23 Ulrich Drepper <drepper@redhat.com>
1619
1620 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
1621
16222001-08-23 Ulrich Drepper <drepper@redhat.com>
1623
1624 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
1625 instead of mbrtowc.
1626 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
1627 wcslen, and __wcscoll instead of wcscoll.
1628
b266b68b 16292001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1630
ff02de61 1631 * fibheap.c (fibheap_init, fibnode_init): Remove.
1632 (fibheap_new, fibnode_new): Use xcalloc to allocate and
1633 initialize memory.
1634 (fibheap_insert): Remove check for node allocation failure.
b266b68b 1635
c6028964 16362001-08-21 Richard Henderson <rth@redhat.com>
1637
1638 * Makefile.in (fibheap.o): Depend on config.h.
1639 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
1640 functions for inlining.
1641
3652f680 1642Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
1643
1644 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
1645 hosting on cygwin.
1646 * configure: Regenerate.
1647
95f0a124 16482001-08-20 Andrew Cagney <ac131313@redhat.com>
1649
1650 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
1651 HARRIS_FLOAT_FORMAT.
1652 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
1653 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
1654 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
1655 (floatformat_m88110_harris_ext): New float formats.
1656
522a00cd 16572001-08-20 Daniel Berlin <dan@cgsoftware.com>
1658
1659 * fibheap.c: New file. Fibonacci heap.
1660
1661 * Makefile.in (CFILES): Add fibheap.c.
1662 (REQUIRED_OFILES): Add fibheap.o.
1663 (fibheap.o): Add dependencies for fibheap.o.
1664
6a51e4c4 16652001-08-17 Christopher Faylor <cgf@cygnus.com>
1666
1667 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
1668 * configure: Regenerate.
1669
80f07f6c 16702001-08-16 Richard Henderson <rth@redhat.com>
1671
1672 * hashtab.c (htab_hash_string): New.
1673
e9106811 16742001-08-13 Andrew Cagney <ac131313@redhat.com>
1675
1676 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
1677 name.
1678
458e9fd0 16792001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
1680
1681 * regex.c (wcs_regex_compile): Use appropriate string
1682 to compare with collating element.
1683 Fix the padding for the alignment.
1684
da8a7320 16852001-08-10 Andrew Cagney <ac131313@redhat.com>
2bce2a69 1686
1687 * lbasename.c (lbasename): Change function definition to return a
1688 const char pointer.
1689
6539a5d8 16902001-08-07 Jason Merrill <jason_merrill@redhat.com>
1691
1692 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
1693 for".
1694
2644ae20 16952001-08-03 Richard Henderson <rth@redhat.com>
1696
1697 * Makefile.in (concat.o): Depend on config.h.
1698
6c9ffcbc 16992001-07-30 Andreas Jaeger <aj@suse.de>
1700
1701 * concat.c: Include "config.h".
1702
9f21bac8 17032001-07-30 Andreas Jaeger <aj@suse.de>
1704
1705 * regex.c: Declare wcs functions only if compiling with
1706 MBS_SUPPORT.
1707 Don't use #elif for traditional C.
1708
17092001-07-23 Ulrich Drepper <drepper@redhat.com>
1710
1711 * regex.c: Revamp memory allocation for WCHAR functions to
1712 not use too much stack.
1713
17142001-07-30 Andreas Jaeger <aj@suse.de>
1715
1716 * regex.c: Declare wcs functions only if compiling with
1717 MBS_SUPPORT.
1718 Don't use #elif for traditional C.
1719
2bbbdf1a 17202001-07-25 Daniel Jacobowitz <drow@mvista.com>
1721
1722 * Makefile.in (regex.o): Add dependency on config.h.
1723
b92e80db 17242001-07-18 Andreas Schwab <schwab@suse.de>
1725
1726 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
1727 underscore character.
1728
17292001-07-18 Ulrich Drepper <drepper@redhat.com>
1730
1731 * regex.c: Limit string length printed in debug messages to 100
1732 chars.
1733
17342001-07-18 Andreas Jaeger <aj@suse.de>
1735
1736 * regex.c: Place under LGPL version 2.1.
1737
7703a7de 17382001-07-10 Jeff Johnston <jjohnstn@redhat.com>
1739
1740 * Makefile.in: Add support for regex code.
1741 * regex.c: New file.
1742
8568af22 17432001-07-05 Mark Klein <mklein@dis.com>
1744
1745 * Makefile.in: Add ffs.c dependency.
1746 * configure.in: Add ffs.c.
1747 * ffs.c: New file.
1748
c1a60b7d 17492001-06-18 Richard Henderson <rth@redhat.com>
1750
1751 * concat.c: Include <sys/types.h>.
1752
66806be2 17532001-06-11 Loren J. Rittle <ljrittle@acm.org>
1754
2778f1dc 1755 bootstrap/3106
66806be2 1756 * strerror.c (sys_nerr): Hide the OS header version.
1757 * strsignal.c (sys_nsig): Likewise.
1758
222ce6b9 17592001-06-10 Richard Henderson <rth@redhat.com>
1760
1761 * concat.c: Include string.h. Fix int vs size_t usage.
1762 Simplify the iteration loops. Use memcpy.
1763
cb6758b9 17642001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
1765
1766 * partition.c: Fix misspelling of `implementation'.
1767
091eef96 17682001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1769
1770 * md5.c (md5_init_ctx): Declare constants as unsigned.
1771 (md5_process_block): Likewise.
1772
e5f55ef4 17732001-05-07 Zack Weinberg <zackw@stanford.edu>
1774
1775 * cp-demangle.c (demangle_v3_with_details,
1776 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
1777 function definition.
1778 * ternary.c: Use K+R style function definitions. Use PTR, not
1779 void *. Make arguments constant where possible.
1780
c99b4ef9 17812001-05-07 Mark Mitchell <mark@codesourcery.com>
1782
1783 * splay-tree.h (splay_tree_max): New function.
1784 (splay_tree_min): Likewise.
1785
eec19420 17862001-04-15 Daniel Berlin <dan@cgsoftware.com>
1787
1788 * ternary.c: New file - Ternary search tree implementation.
1789
1790 * Makefile.in: Add ternary.o, and ternary.c dependencies.
1791
673b6e5a 17922001-04-03 Zack Weinberg <zackw@stanford.edu>
1793
1794 * make-temp-file.c (try): Inline.
1795
b8f02fb2 17962001-02-28 Richard Henderson <rth@redhat.com>
1797
1798 * Makefile.in (make-temp-file.o): Depend on config.h.
1799
b130ede9 18002001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1801
1802 * memchr.c (memchr): Adjust condition to avoid infinite loop.
1803
5a4fcef0 18042001-03-23 Jakub Jelinek <jakub@redhat.com>
1805
1806 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
1807 `_' not followed by a digit is invalid.
1808
c83c8218 18092001-03-22 Jim Blandy <jimb@redhat.com>
1810
1811 * cp-demangle.c (string_list_delete): Use dyn_string_delete
1812 instead of free, to free the contents as well as the string
1813 structure.
1814
7e660a1b 18152001-03-21 Zack Weinberg <zackw@stanford.edu>
1816
1817 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
1818 Don't default P_tmpdir to anything. Try /var/tmp before
1819 /usr/tmp.
1820
e6351181 18212001-03-20 Zack Weinberg <zackw@stanford.edu>
1822
1823 * choose-temp.c: Split off make_temp_file, and the code
1824 duplicated between it and choose_temp_base, into...
1825 * make-temp-file.c: ... here; new file.
1826
1827 * Makefile.in (CFILES): Add make-temp-file.c.
1828 (REQUIRED_OFILES): Add make-temp-file.o.
1829
3a18c9fc 18302001-03-20 Jim Blandy <jimb@redhat.com>
1831
1832 * cp-demangle.c (struct demangling_def): New fields:
1833 is_constructor and is_destructor.
1834 (demangling_new): Initialize them.
1835 (demangle_ctor_dtor_name): Set them, if we detect a constructor
1836 or destructor.
1837 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
1838 is_gnu_v3_mangled_dtor): New functions.
1839
d219f684 18402001-03-20 Jason Merrill <jason@redhat.com>
1841
1842 * cplus-dem.c (main): Skip initial $.
1843
dfc58e62 18442001-03-15 Michael Meissner <meissner@redhat.com>
1845
1846 * hashtab.c (higher_prime_number): Silence warning that 4294967291
1847 might be a signed integer under pre-ISO C systems.
1848
0bce9b89 18492001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
1850 John David Anglin <dave@hiauly1.hia.nrc.ca>
1851
1852 * libiberty/lbasename.c: New file.
1853 * libiberty/Makefile.in: Update for lbasename.
1854
012f1707 18552001-03-06 Zack Weinberg <zackw@stanford.edu>
1856
1857 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
1858 * configure.in: Replace all alloca logic with a simple use of
1859 the above new macro.
1860 * config.table: Kill *-*-beos* entry.
1861 * config/mh-beos: Delete.
1862 * configure, config.in: Regenerate.
1863
1864 * Makefile.in (ALLOCA, HFILES): Kill.
1865 (REQUIRED_OFILES): Add alloca.o.
1866 (alloca.o): Depend on libiberty.h.
1867 (argv.o): Don't depend on alloca-conf.h.
1868 * alloca-conf.h: Delete.
1869 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
1870 blocks. Provide the C alloca unconditionally. Use PTR where
1871 appropriate. Make i00afunc static.
1872 * argv.c: Don't include alloca-conf.h.
1873
163369e7 18742001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
1875
1876 * cplus-dem.c (main): Cast enum style to int.
1877
39fb1bb6 18782001-02-16 Loren J. Rittle <ljrittle@acm.org>
1879
1880 * cplus-dem.c (main): Initialize style.
1881
bace101a 18822001-02-02 Phil Edwards <pme@sources.redhat.com>
1883
1884 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
1885
1c1033dd 18862001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
1887
1888 Add support for Java demangling under the v3 ABI:
1889 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
1890 (struct demangling_def): Add `style' field.
1891 (demangling_new): New parameter `style'. Set it in demangling_t.
1892 (demangle_prefix): Use NAMESPACE_SEPARATOR.
1893 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
1894 (cp_demangle): New parameter `style'. Pass it to demangling_new().
1895 (main): Call cp_demangle with extra parameter.
1896 (java_demangle_v3): New function.
1897 (java_builtin_type_names): New. Table of primitive type names used
1898 for Java demangling.
1899 (demangle_builtin_type): Look up in java_builtin_type_names if doing
1900 Java output.
012f1707 1901 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
1c1033dd 1902 demangling.
1903 (long_options): Remove obsolete `java' option.
1904 (main): Remove explicit handling of `java' option. Instead, pass style
1905 parameter in cplus_demangle flags as gdb does.
1906 * testsuite/demangle.expected: Add some Java test cases.
1907
fec9182b 19082000-12-29 DJ Delorie <dj@redhat.com>
1909
1910 * fnmatch.c: Make the note about the origins of this file more
1911 accurate, at least until we can sync with glibc.
1912 * getopt.c: Ditto.
1913 * getopt1.c: Ditto.
1914 * md5.c: Ditto.
1915 * obstack.c: Ditto.
1916
5b9c32cc 19172000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1918
1919 * bsearch.c: New file.
1920 * configure.in (funcs): Add bsearch.
1921 (AC_CHECK_FUNCS): Likewise.
1922 * configure, config.in: Regenerate.
1923
a973e2b1 19242000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1925
1926 * safe-ctype.c: #include "ansidecl.h".
1927 * strtod.c: Likewise.
1928
14282c1a 19292000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1930
1931 * strtoul.c: Include safe-ctype.h, not ctype.h.
1932
93ce8ce4 19332000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
1934
1935 * safe-ctype.c: New file.
1936 * Makefile.in (CFILES): Add safe-ctype.c.
1937 (REQUIRED_OFILES): Add safe-ctype.o.
1938
1939 * argv.c: Define ISBLANK and use it, not isspace.
1940 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
1941 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
1942 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
1943 before calling TOLOWER(c)/TOUPPER(c).
1944
be6afa8f 19452000-12-07 Mike Stump <mrs@wrs.com>
e5fb0a98 1946
1947 * Makefile.in (distclean): When cleaning, remove testsuite.
1948
cf0ad6a8 19492000-12-05 Jason Merrill <jason@redhat.com>
1950
1951 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
1952 name before allocating the dyn_string.
1953
bb505139 19542000-12-04 Jason Merrill <jason@redhat.com>
1955
1956 * cp-demangle.c: s/new_abi/v3/.
1957 * cplus-dem.c: Likewise.
1958 (current_demangling_style): Now auto_demangling.
1959 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
93ce8ce4 1960 (main): Use standard symbol chars for auto_demangling.
bb505139 1961
54b3a5af 19622000-11-26 Mark Mitchell <mark@codesourcery.com>
1963
1964 * hashtab.c (higher_prime_number): Use a table, rather than a
1965 seive, to find the next prime.
1966
9628d706 19672000-11-22 H.J. Lu <hjl@gnu.org>
1968
1969 * cplus-dem.c (main): Handle gnat_demangling.
1970
ec255163 19712000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
1972
1973 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
1974 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
1975 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
1976 argument form of AC_DEFINE in dummy definitions block. Use
1977 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
1978 in dummy block. Preload cache variables instead of bypassing
1979 tests, where possible.
1980 * acconfig.h: Removed.
1981
1982 * xmalloc.c (xmalloc_failed): New function, does error
1983 reporting on failed allocation.
1984 (xmalloc, xcalloc, xrealloc): Use it.
1985
626946fb 19862000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
1987
1988 * cplus-dem.c (cplus_demangle): Fix formatting.
1989 (grow_vect): Ditto.
1990 (ada_demangle): Ditto.
1991 (internal_cplus_demangle): Ditto.
1992 (mop_up): Ditto.
1993
19942000-11-21 H.J. Lu <hjl@gnu.org>
1995
1996 * cplus-dem.c (main): Handle java_demangling.
1997
918a89ef 19982000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1999
2000 * cplus-dem.c (grow_vect): Prototype.
2001 (ada_demangle): Cast the arg of ctype macros to unsigned char.
2002
582f72ad 20032000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
2004
2005 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
2006 parameter `option'.
2007
0d6e3c59 20082000-11-15 Kenneth Block <kenneth.block@compaq.com>
2009
42ded3a1 2010 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0d6e3c59 2011 be used in GCC.
2012
9df8b754 20132000-11-15 Kenneth Block <kenneth.block@compaq.com>
d7c1c148 2014
582f72ad 2015 * cplus-dem.c: Add gnat demangler. Add java to demangle style
d7c1c148 2016 list.
2017
e4c2dc6e 20182000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
2019
2020 * hashtab.c (htab_expand): Change to return int. Use calloc or
9f21bac8 2021 xcalloc depending on htab->return_allocation_failure. Return zero
2022 if calloc fails.
e4c2dc6e 2023 (htab_create): Update comment to cover memory allocation.
2024 (htab_try_create): New.
2025 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
9f21bac8 2026 Update comment to cover this.
e4c2dc6e 2027
696d6593 20282000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
2029
2030 * hashtab.c: Change void * to PTR where necessary.
2031 (htab_create, htab_expand): Correct formatting of comment before
2032 function.
2033
8f2b45d4 20342000-10-22 Alex Samuel <samuel@codesourcery.com>
f99edf23 2035
2036 * cp-demangle.c (string_list_def): Add caret_position and comments.
2037 (result_caret_pos): New macro.
2038 (result_append_string): Rename to...
2039 (result_add_string): ... this, and insert at caret position.
ec255163 2040 Rename throughout.
f99edf23 2041 (result_append): Rename to...
2042 (result_add): ... this, and insert at caret position. Rename
ec255163 2043 throughout.
f99edf23 2044 (result_append_char): Rename to...
2045 (result_add_char): ... this, and insert at caret position. Rename
ec255163 2046 throughout.
f99edf23 2047 (result_append_space): Remove.
2048 (string_list_new): Initialize caret position.
2049 (result_add_separated_char): Use caret position.
2050 (result_get_caret): New funtion.
2051 (result_set_caret): Likewise.
2052 (result_shift_caret): Likewise.
2053 (result_previous_char_is_space): Likewise.
2054 (substitution_start): Use caret position.
2055 (substitution_add): Likewise.
2056 (demangling_new): Initialize caret position.
2057 (demangle_encoding): Use caret position.
ec255163 2058 (demanglin_nested_name): Put CV qualifiers after name.
f99edf23 2059 (demangle_type_ptr): Use switch statement. Handle pointers to
2060 arrays. Don't use result_append_space. Use caret position.
2061 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ec255163 2062 call to demangle_array_type.
2063 (demangle_array_type): Add parameter to handle pointers to arrays.
2064
a4e59c31 20652000-10-01 Mark Mitchell <mark@codesourcery.com>
2066
2067 * splay-tree.c (splay_tree_insert): Fix formatting.
2068
e41f0d80 20692000-09-16 Mark Mitchell <mark@codesourcery.com>
2070
2071 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
2072
83d86ada 20732000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2074
2075 * splay-tree.c: #include <stdio.h>.
2076
78631810 20772000-09-14 Hans-Peter Nilsson <hp@axis.com>
2078
2079 * testsuite/demangle-expected: Add two tests for anonymous
2080 namespaces.
2081 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
2082
508f18c8 20832000-09-10 Mark Mitchell <mark@codesourcery.com>
2084
2085 * splay-tree.c (splay_tree_predecessor): New function.
2086 (splay_tree_successor): Likewise.
2087
1a2d2193 20882000-09-10 Hans-Peter Nilsson <hp@axis.com>
2089
2090 * testsuite/demangle-expected: Add four tests for type_info
2091 mangling.
1a2d2193 2092 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
2093 for a non-template non-qualified type_info function or node.
2094
09656987 20952000-09-08 Alex Samuel <samuel@codesourcery.com>
2096
2097 * cp-demangle.c: Fix copyright banner.
2098
7cc2d24b 20992000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2100
2101 * md5.c: #include "ansidecl.h".
2102
b83e8722 21032000-09-06 Alex Samuel <samuel@codesourcery.com>
2104
2105 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
2106 (demangle_type): Handle substitution candidates correctly in the
2107 face of special substitutions.
2108
cf70278e 21092000-09-05 Alex Samuel <samuel@codesourcery.com>
2110
2111 * cp-demangle.c (demangle_encoding): Rename variable.
2112 (demangle_name): Rename parameter. Handle return type
2113 suppression.
2114 (demangle_nested_name): Rename parameter.
2115 (demangle_prefix): Likewise. Change return type suppression.
2116 (demangle_unqualified_name): Add parameter. Flag constructors and
2117 conversion operators.
2118 (demangle_special_name): Fix comment.
2119 (demangle_type): Rename variable.
2120 (demangle_bare_function_type): Check for missing return type and
ec255163 2121 parameter.
cf70278e 2122 (demangle_class_enum_type): Rename parameter.
2123 (demangle_discriminator): Fix misspelling in comment.
2124
4aabc076 21252000-08-31 DJ Delorie <dj@redhat.com>
2126
2127 * configure.in (Cygwin): special case cygwin only when we're
2128 building cygwin, not when we're hosting cygwin.
2129
804ddfd1 21302000-09-04 Alex Samuel <samuel@codesourcery.com>
2131
2132 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
ec255163 2133 <expression>.
2134
e015a852 21352000-09-04 Alex Samuel <samuel@codesourcery.com>
2136
2137 * cp-demangle.c (demangle_type_ptr): Increment position past
2138 pointer and reference characters.
2139
2b6805b4 21402000-09-04 Alex Samuel <samuel@codesourcery.com>
2141
2142 * cp-demangle.c (demangle_nv_offset): New function.
2143 (demangle_v_offset): Likewise.
2144 (demangle_call_offset): Likewise.
2145 (demangle_special_name): Update thunk demangling to comply with
2146 ABI changes.
ec255163 2147
40e00cb0 21482000-09-03 Alex Samuel <samuel@codesourcery.com>
2149
2150 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
2151 (substitution_def): Remove template_parm_number.
2152 (NOT_TEMPLATE_PARM): Remove.
2153 (result_insert_string): New macro.
2154 (result_insert): Likewise.
2155 (result_insert_char): Likewise.
2156 (substitution_add): Remove last parameter. Don't store template
ec255163 2157 parm number.
40e00cb0 2158 (BFT_NO_RETURN_TYPE): Define as NULL.
2159 (demangle_encoding): Adjust call to demangle_bare_function_type.
2160 (demangle_name): Adjust substitution. Adjust call to
ec255163 2161 substitution_add.
40e00cb0 2162 (demangle_prefix): Adjust call to substitution_add.
2163 (demangle_identifier): Handle anonymous namespaces.
2164 (demangle_operator_name): Change demangling of vendor-extended
2165 operator to match ABI changes.
2166 (demangle_type_ptr): Change parameters. Make recursive. Handle
ec255163 2167 substitutions here.
40e00cb0 2168 (demangle_type): Adjust calls to demangle_template_param,
2169 substitution_add, and demangle_type_ptr. Fix substitution of
2170 templated types.
2171 (demangle_function_type): Change parameter to a pointer.
2172 (demangle_bare_function_type): Likewise. Adjust insertion point.
2173 (demangle_template_param): Remove last parameter.
2174 (demangle_expr_primary): Remove unused variable. Adjust call to
ec255163 2175 demangle_template_param.
40e00cb0 2176 (is_mangled_char): Accept `$' and `.'.
2177 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
2178 * dyn-string.c (dyn_string_insert_char): New function.
2179
01f404a2 21802000-08-31 Hans-Peter Nilsson <hp@axis.com>
2181
2182 * testsuite/demangle-expected: Add nine tests for
2183 underscore-after-number followed by five tests for name-signature
2184 delimiter.
2185
d74245d4 21862000-08-28 Richard Henderson <rth@cygnus.com>
2187
2188 * Makefile.in (md5.o): Depend on config.h.
2189
19f716e5 21902000-08-28 Jason Merrill <jason@redhat.com>
2191
2192 * Makefile.in (REQUIRED_OFILES): Add md5.o.
2193 (CFILES): Add md5.c.
2194 * md5.c: New file.
2195
f8aeab41 21962000-08-27 Alex Samuel <samuel@codesourcery.com>
2197
2198 * cp-demangle.c (demangle_name): Initialize template_p in local
2199 name case. Don't re-add substitutions as candidates.
2200 (demangle_nested_name): Use <unqualified-name>.
2201 (demangle_prefix): Likewise. Don't add template names as
2202 substitution candidates twice, or re-add a substitution or the
2203 last prefix component.
2204 (demangle_local_name): Adjust output format.
2205
62c2feed 22062000-08-25 Alex Samuel <samuel@codesourcery.com>
2207
2208 * cp-demangle.c (result_add_separated_char): Change parameter to
2209 int.
2210 (substitution_add): Don't check for duplicates. Check if
2211 previously allocated size is zero.
2212 (demangle_name): Remove duplicate check for std substitution.
2213 Clear template flag appropriately.
2214 (demangle_prefix): Remove argument to demangle_substitution.
2215 Don't check that template flag is already set.
2216 (demangle_operator_name): Add pt operator.
2217 (demangle_type): Don't treat r as built-in type. Remove argument
2218 to demangle_substitution. Fix substitution candidate mechanics.
2219 Handle <template-template-parm>s. Improve comments.
ec255163 2220 (demangle_template_param): Don't handle template arg lists here.
62c2feed 2221 (demangle_substitution): Remove parameter.
2222 (print_usage): Remove extra fprintf option.
2223
ee1d4c3d 22242000-08-24 Greg McGary <greg@mcgary.org>
2225
2226 * libiberty/random.c (end_ptr): Revert previous change.
2227
f0bff53d 22282000-08-24 Greg McGary <greg@mcgary.org>
2229
2230 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2231 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
2232 * libiberty/random.c (end_ptr): Likewise.
2233
c1b316c0 22342000-08-23 Alex Samuel <samuel@codesourcery.com>
2235
2236 * cp-demangle.c (result_close_template_list): Remove function.
2237 (result_add_separated_char): New function.
2238 (result_open_template_list): New macro.
2239 (result_close_template_list): Likewise.
2240 (demangle_prefix): Don't set template_p if the
2241 prefix ends with a ctor name.
2242 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
2243 (demangle_type): Check for template args after substitution.
2244 (demangle_template_args): Use result_open_template_list.
ec255163 2245
385b48fc 22462000-08-02 Zack Weinberg <zack@wolery.cumb.org>
2247
2248 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
2249
ec255163 22502000-07-26 Dave Pitts <dpitts@cozx.com>
ba886691 2251
2252 * config/mh-openedition.h: Added -DLE370 definition.
2253
8fc0efd2 22542000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
2255
2256 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
2257 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
2258 Cast program to 'char *' in errmsg_arg assignment.
2259 (PWAIT_ERROR): Define.
2260 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
2261 to DJGPP's WIF* macros.
2262
a1d4f79a 22632000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
2264 Jeff Law <law@cygnus.com>
2265
98b4c197 2266 * getcwd.c: Include string.h, stdlib.h for prototypes
2267
a1d4f79a 2268 * Makefile.in (rename.o, waitpid.o): Depend on config.h
98b4c197 2269 * rename.c: Include config.h, unistd.h
2270 * waitpid.c: Include config.h, sys/wait.h
a1d4f79a 2271
01f404a2 22722000-07-24 Hans-Peter Nilsson <hp@axis.com>
2273
2274 * cplus-dem.c (work_stuff_copy_to_from): New.
2275 (delete_non_B_K_work_stuff): New.
2276 (delete_work_stuff): New.
2277 (mop_up): Break out work_stuff partly destruction to
2278 delete_non_B_K_work_stuff.
2279 (iterate_demangle_function): New.
2280 (demangle_prefix): Call iterate_demangle_function instead of
2281 demangle_function_name. Leave handling of name-signature
2282 __-delimiters to iterate_demangle_function.
2283 (demangle_integral_value): Strip an optional
2284 following underscore cautiously. Handle negative numbers.
2285
f2e5a608 22862000-07-24 Daniel Berlin <dberlin@redhat.com>
2287
ec255163 2288 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
f2e5a608 2289 if (AUTO_DEMANGLING || GNU_DEMANGLING)
2290
65bcf503 22912000-07-21 Alex Samuel <samuel@codesourcery.com>
2292
2293 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
2294 allocating ctor mangling.
2295 (demangle_array_type): Handle empty and non-constant array length.
2296
68e6b6e1 22972000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
a451eef0 2298 Jeff Law <law@cygnus.com>
2299
1a163ca8 2300 * configure.in (AC_CHECK_HEADERS): Add time.h.
2301 (AC_HEADER_TIME): Add check.
2302 * configure, config.in: Regenerate.
2303 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
2304
a451eef0 2305 * configure.in (AC_CHECK_HEADERS): Add limits.h.
2306 * configure, config.in: Regenerate.
2307 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
2308 * strtol.c, strtoul.c: #include "config.h". Portably #include
2309 <limits.h> and/or <sys/param.h>.
2310 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
68e6b6e1 2311
fb758229 2312 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
2313 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
2314 * configure, config.in: Regenerate.
2315 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
2316
68e6b6e1 2317 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
2318
ad46fec4 23192000-07-21 Mike Stump <mrs@wrs.com>
2320
2321 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7b23d366 2322 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
ad46fec4 2323
bb37062f 23242000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2325
2326 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
2327
2328 * setenv.c (setenv): Initialize variable `ep'.
2329
2330 * sigsetmask.c (abort): Prototype.
2331
2332 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
2333 __STDC__ for stdarg.h include.
2334 (int_vasprintf): Prototype.
2335 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
2336 definition. Cast `global_total_width' in comparison.
2337 (main): Prototype. Return a value.
2338
2339 * vfork.c (fork): Prototype.
2340
2341 * xexit.c: Include config.h.
2342
6cb730c2 23432000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
2344
2345 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
2346 and print it with %u.
2347
e42d7fe1 23482000-07-17 Hans-Peter Nilsson <hp@axis.com>
2349
2350 * testsuite/regress-demangle (failed test): Show result and
2351 expected output.
2352
04ef60ef 23532000-07-07 Andrew Haley <aph@cygnus.com>
2354
2355 * cplus-dem.c (main): fflush() after emitting last char before
2356 waiting for input.
2357
b7f68aff 23582000-06-28 Alex Samuel <samuel@codesourcery.com>
2359
2360 * cp-demangle.c (demangle_encoding): Accept no substitutions.
2361 (demangle_name): Handle <substitution> followed by
2362 <unqualified-template-name>.
2363 (demangle_type): Follow special substitutions with
2364 <class-enum-type>
2365 (demangle_subtitution): Set template_p for special substitutions.
2366 (main): Fix typos.
ec255163 2367
597f928d 23682000-06-27 Alex Samuel <samuel@codesourcery.com>
2369
2370 * cp-demangle.c (demangle_special_name): Swap base and derived
2371 class when demangling construction vtables.
2372
140d75d7 23732000-06-21 Alex Samuel <samuel@codesourcery.com>
2374
2375 * cp-demangle.c: Don't include ctype.h.
2376 (IS_DIGIT): New macro.
2377 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
2378 instead of isdigit and isalpanum.
2379 (demangling_def): Make name and next const pointers.
2380 (STATUS_ALLOCATION_FAILED): New status code.
2381 (dyn_string_append_space): Handle failure in
2382 dyn_string_append_char.
2383 (int_to_dyn_string): Likewise. Change return value to status_t.
2384 (string_list_new): Handle failure of dyn_string_init.
2385 (result_close_template_list): Change return type to status_t.
2386 Handle failure in dyn_string_append.
2387 (result_push): Change return value to status_t. Handle failure in
2388 string_list_new. Handle failure of result_push throughout.
2389 (substitution_add): Change return value to status_t. Handle
2390 dyn_string failures. Handle failure of substitution_add
2391 throughout.
2392 (template_arg_list_new): Return NULL on allocation failure.
2393 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
2394 Handle error result throughout.
2395 (result_append): Likewise.
2396 (result_append_char): Likewise.
2397 (result_append_space): Likewise.
2398 (demangling_new): Make argument a const pointer. Handle
2399 allocation failures.
2400 (demangle_template_args): Handle failure in template_arg_list_new
2401 and result_close_template_list.
2402 (demangle_discriminator): Return if int_to_dyn_string fails.
2403 (cp_demangle): Likewise.
2404 (cp_demangle_type): New function.
2405 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
2406 memory allocation failure.
2407 (main): Likewise.
2408 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
2409 IN_LIBGCC2.
2410 (dyn_string_init): Change return value to int. Handle
2411 RETURN_ON_ALLOCATION_FAILURE case.
2412 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
2413 (dyn_string_release): Delete the dyn_string.
2414 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
2415 (dyn_string_copy): Change return type to int.
2416 (dyn_string_copy_cstr): Likewise.
2417 (dyn_string_prepend): Likewise.
2418 (dyn_string_prepend_cstr): Likewise.
2419 (dyn_string_insert): Likewise.
2420 (dyn_string_insert_cstr): Likewise.
2421 (dyn_string_append): Likewise.
2422 (dyn_string_append_cstr): Likewise.
2423 (dyn_string_append_char): Likewise.
2424 (dyn_string_substring): Likewise.
ec255163 2425
210aba33 24262000-06-09 Zack Weinberg <zack@wolery.cumb.org>
2427
2428 * cp-demangle.c (demangle_operator_name): Add spaces before
2429 names beginning with a letter: delete, delete[], new, new[],
2430 sizeof.
2431 (demangle_special_name): Handle TF <type> and TJ <type>.
2432
0b4450c1 2433Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
2434
2435 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
2436
e5d6924a 2437Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
2438
2439 * cp-demangle.c (stdio.h): File included unconditionaly.
2440 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
2441 * dyn-string.c (stdio.h): File included.
2442 * partition.c (partition_print): No `&' needed to take the address of
2443 a function.
2444
da8bd873 24452000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2446
2447 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ec255163 2448
da8bd873 2449 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
2450
2451 * cp-demangle.c (demangle_char): Change parameter from char to int.
2452 (demangle_expression, demangle_expr_primary): Remove extra
2453 semi-colon in prototype.
2454
2455 * dyn-string.c (dyn_string_append_char): Change parameter from
2456 char to int.
2457
2458 * memcmp.c (memcmp): Constify.
2459
2460 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
2461 __extension__.
2462
2463 * partition.c (elem_compare): Prototype. Don't cast away
2464 const-ness.
2465
2466 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ec255163 2467
4b7bc488 24682000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2469
2470 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
2471
2472 * cp-demangle.c: Include demangle.h.
2473 (template_arg_list_new): DeANSIfy.
2474 (cp_demangle): Make static and add prototype.
2475 (operator_code, operators): Constify.
2476 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
2477
7ae7b54c 24782000-06-05 Alex Samuel <samuel@codesourcery.com>
2479
2480 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
2481 unsigned char.
2482 (demangle_unqualified_name): Likewise.
2483 (demangle_number_literally): Likewise.
2484 (demangle_type): Likewise.
2485 (demangle_substitution): Likewise.
2486 (is_mangled_char): Likewise, for isalnum.
2487
168d63e5 24882000-06-04 Alex Samuel <samuel@codesourcery.com>
2489
2490 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
2491 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
2492 (cp-demangle.o): New dependency.
2493 (dyn-string.o): Likewise.
2494
2495 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
2496
2497 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
2498 demangler.
2499 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
2500 demangling mode.
2501 (gnu_new_abi_symbol_characters): New function.
2502 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
2503 file.
2504 * cp-demangle.c: New file.
ec255163 2505
b5495c1d 2506Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
2507
2508 * floatformat.c: Add name to each floatformat field.
2509
8fab1737 2510Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
2511
2512 * Makefile.in (objalloc.o): Depend on config.h
2513
317ab997 25142000-05-29 Zack Weinberg <zack@wolery.cumb.org>
2515
2516 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
2517 if HAVE_STRING_H.
2518 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
2519 * objalloc.c: Include config.h. Include stdlib.h and don't
2520 declare malloc or free if HAVE_STDLIB_H.
2521 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
2522 else declare malloc without prototype. Include string.h if
2523 HAVE_STRING_H, else declare memset without prototype. Don't
2524 include stddef.h.
2525
874478ba 25262000-05-23 Mike Stump <mrs@wrs.com>
2527
2528 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
9f21bac8 2529 -j3.
874478ba 2530
55de1520 25312000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
2532
2533 * xmalloc.c: Include config.h for HAVE_SBRK definition.
2534
e51b357b 25352000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
2536
ec255163 2537 * hashtab.c (hash_pointer): Delete low-order bits which are
e51b357b 2538 probably zero, also eliminate a warning on alpha.
2539
9e362499 25402000-05-15 David Edelsohn <edelsohn@gnu.org>
2541
e390e838 2542 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
9e362499 2543 on $(enable_shared).
2544
06c6487f 25452000-05-10 Jakub Jelinek <jakub@redhat.com>
2546
2547 * config.table: Use mh-sparcpic for sparc*-*-*.
2548
0baf89fb 25492000-05-08 Nick Clifton <nickc@cygnus.com>
2550
2551 * Makefile.in (CFILES): Add strncmp.c.
2552 (NEEDED): Add strncmp.
2553
59f72e4d 25542000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2555
2556 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
2557 Cast the arguments to `islower' to `unsigned char'.
2558 (print_demangler_list): Prototype.
2559
fb0c90ed 2560Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
2561
2562 * sort.c (UCHAR_MAX): Provide fallback definition.
2563
167a5f18 25642000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2565
2566 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
2567 SUBDIRS.
2568
6f572555 25692000-04-28 Kenneth Block <block@zk3.dec.com>
2570 Jason Merrill <jason@casey.cygnus.com>
2571
ec255163 2572 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
2573 (cplus_demangle_set_style): New function for setting style.
2574 (cplus_demangle_name_to_style): New function to translate name.
6f572555 2575
b3524c8f 25762000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2577
2578 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
2579
2580 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
2581 (libiberty_AC_FUNC_STRNCMP): Invoke.
2582
2583 * strncmp.c: New file.
2584
a5f725a3 2585Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
2586
2587 * hashtab.c (htab_expand): Add prototype.
2588 (find_empty_slot_for_expand): Likewise.
2589
8afd4145 25902000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2591
2592 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
2593 match prototype.
2594 (htab_expand): Cast the return value of xcalloc.
2595
c9dfb8ae 25962000-04-24 Mark Mitchell <mark@codesourcery.com>
2597
2598 * hashtab.c (hash_pointer): New function.
2599 (eq_pointer): Likewise.
2600 (htab_hash_pointer): New variable.
2601 (htab_eq_pointer): Likewise.
2602
85993fc6 26032000-04-23 Mark Mitchell <mark@codesourcery.com>
2604
9517f453 2605 * sort.c (sort_pointers): Fix endianness bugs.
2606
85993fc6 2607 * sort.c: New file.
2608 * Makefile.in (CFILES): Add sort.c
2609 (REQUIRED_OFILES): Add sort.o.
2610 (sort.o): New target.
2611
c9b2f47c 26122000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2613
2614 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
2615 4.3BSD systems.
2616
2b3dbc20 2617Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2618
2619 * hashtab.c: Various minor cleanups.
2620 (htab_find_slot_with_hash): INSERT is now enum insert_option.
2621 (htab_find_slot): Likewise.
2622
6ea8a864 26232000-04-16 Dave Pitts <dpitts@cozx.com>
2624
2625 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ec255163 2626
105211e5 26272000-04-05 Richard Henderson <rth@cygnus.com>
2628
2629 * splay-tree.c (splay_tree_remove): New.
2630
7669680f 26312000-03-30 Mark Mitchell <mark@codesourcery.com>
2632
2633 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
2634 codes.
2635 (htab_find_with_hash): Likewise.
2636 (htab_find_slot_with_hash): Likewise.
ec255163 2637
07c797e3 26382000-03-29 Zack Weinberg <zack@wolery.cumb.org>
2639
2640 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
2641 unless it will be used. Rearrange loop for better
2642 optimization.
2643 (higher_prime_number): Add static prototype.
2644
8ef1b8d1 2645Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
2646
2647 * Makefile.in (partition.o): Depend on config.h
2648
ed26da85 26492000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
2650
2651 * hashtab.c (find_empty_slot_for_expand): New function.
2652 (htab_expand): Use it instead of htab_find_slot.
2653 (htab_find_with_hash): Renamed from htab_find; now accepts extra
2654 argument HASH.
2655 (htab_find_slot_with_hash): Likewise for htab_find_slot.
2656 (htab_find): New wrapper function.
2657 (htab_find_slot): Likewise.
2658 (htab_traverse): Pass slot, not entry, to called function.
2659
dadde703 26602000-03-09 Alex Samuel <samuel@codesourcery.com>
2661
2662 * Makefile.in (CFILES): Add partition.c.
2663 (REQUIRED_OFILES): Add partition.o.
2664 (partition.o): New rule.
2665 * partition.c: New file.
ec255163 2666
3fdd387a 26672000-03-09 Zack Weinberg <zack@wolery.cumb.org>
2668
2669 * hashtab.c (htab_create): Set del_f.
2670 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
2671 Use it.
2672
07c967f9 26732000-03-08 Zack Weinberg <zack@wolery.cumb.org>
2674
2675 * hashtab.c: Remove debugging variables (all_searches,
2676 all_collisions, all_expansions). Delete
2677 all_hash_table_collisions.
2678 (create_hash_table, delete_hash_table, empty_hash_table,
2679 find_hash_table_entry, remove_element_from_hash_table_entry,
2680 clear_hash_table_slot, traverse_hash_table, hash_table_size,
2681 hash_table_elements_number, hash_table_collisions): Rename to:
2682 htab_create, htab_delete, htab_empty, htab_find_slot,
2683 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
2684 htab_elements, htab_collisions.
2685 (htab_find): New function, handles common case where you don't
2686 plan to add or delete an entry.
2687 (htab_expand): Don't create a whole new table, just a new
2688 entry vector.
2689 (htab_find_slot): Simplify logic.
2690
1f33a375 26911999-08-03 Ian Lance Taylor <ian@zembu.com>
2692
2693 * floatformat.c: Add casts to avoid signed/unsigned warnings.
2694 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
2695
2696 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
2697 $(TARGETLIB)n so it works on MSDOS.
2698 (install_to_tooldir): Likewise.
2699
27001999-07-21 Ian Lance Taylor <ian@zembu.com>
2701
2702 From Mark Elbrecht:
2703 * makefile.dos: Remove; obsolete.
2704 * configure.bat: Remove; obsolete.
2705
27061999-07-11 Ian Lance Taylor <ian@zembu.com>
2707
2708 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2709 warning.
2710
b99e5aef 27112000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2712
2713 * pexecute.c: Conditionally include string.h.
07c967f9 2714 (fix_argv): Handle embedded whitespace in args for Mingw32.
b99e5aef 2715
6d93ad38 27162000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2717
2718 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
2719 we're using gcc.
2720
2721 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
2722
59dfb43e 27231999-12-27 Geoff Keating <geoffk@cygnus.com>
2724
2725 * vasprintf.c (int_vasprintf): Don't re-read the format character
2726 as this mishandles strings like '%%s'.
2727
b04bbebb 27281999-12-05 Mark Mitchell <mark@codesourcery.com>
2729
2730 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
2731 rather than struct splay_tree_node.
2732 (splay_tree_insert): Use struct splay_tree_s rather than struct
2733 splay_tree.
2734
d7f8de75 2735Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
2736
2737 * hashtab.c (sys/types.h): File included.
2738
7202ac7d 27391999-11-22 Jason Merrill <jason@casey.cygnus.com>
2740
2741 * strtoul.c, strtol.c, random.c: Remove advertising clause from
2742 BSD license, pursuant with
2743
2744 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
2745
bd41a79e 2746Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
2747
2748 * hashtab.c: Include stdio.h.
2749
b77d3fd0 2750Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
2751
2752 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
2753
1b4391fe 2754Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
2755
2756 * xstrdup (sys/types.h): Include this file.
2757
4bc57096 27581999-10-28 Nathan Sidwell <nathan@acm.org>
2759
2760 * Makefile.in (SUBDIRS): New macro.
2761 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
2762 avoid multiple subdirectory cleaning.
2763 (*-subdir): Use SUBDIRS.
2764
9087cad2 27651999-10-25 Jim Kingdon <http://developer.redhat.com/>
2766
2767 * cplus-dem.c: Move declarations of standard_symbol_characters and
2768 hp_symbol_characters inside #ifdef MAIN to avoid compiler
2769 warnings.
2770
21a7d507 27711999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
2772
2773 * hashtab.c (find_hash_table_entry): When returning a
2774 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
2775 (clear_hash_table_slot): New function which deletes an entry
2776 by its position in the table, not its value.
2777 (traverse_hash_table): New function which calls a hook
2778 function for every live entry in the table.
2779
42c870f1 27801999-10-19 Mark Mitchell <mark@codesourcery.com>
2781
2782 * cplus-dem.c (INTBUF_SIZE): New macro.
2783 (string_append_template_idx): New function.
2784 (demangle_expression): Likewise.
2785 (demangle_integral_value): Use it.
2786 (demangle_real_value): New function, split out from ...
2787 (demangle_template_value_parm): ... here. Use
2788 string_append_template_idx. Use demangle_real_value.
2789 (demangle_template): Use string_append_template_idx.
2790 (demangle_qualified): Use consume_count_with_underscores.
2791 (get_count): Tweak formatting.
2792 (do_type): Use string_append_template_idx.
07c967f9 2793
33b090eb 27941999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2795
2796 * calloc.c: Add a public domain notice.
2797
9879c2ce 2798Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
2799
2800 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
2801
5da6c26f 2802Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
2803
2804 * Makefile.in (CFILES): Add hashtab.c
2805 (REQUIRED_OFILES): Add hashtab.o
2806 (hashtab.o): Add dependencies.
2807 * hashtab.c: New file
2808
be42b79e 2809Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
2810
2811 * basename.c (DIR_SEPARATOR): New macro.
2812 (DIR_SEPARATOR_2): Likewise.
2813 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
2814 (IS_DIR_SEPARATOR): Likewise.
2815 (main): Handle MSDOS style pathname.
2816
6c65e8d7 28171999-10-11 Mark Mitchell <mark@codesourcery.com>
2818
2819 * cplus-dem.c (do_type): Handle pointer to member types whose
2820 enclosing classes have namespace scope.
2821
278929f3 2822Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
2823
2824 * config.table: Provide a backup shell for executing move-if-change.
2825
a7599ac8 28261999-10-02 Mark Mitchell <mark@codesourcery.com>
2827
2828 * xmalloc.c (xmalloc): Fix spelling error.
2829 (xcalloc, xrealloc): Likewise.
2830
4d84eafd 28311999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2832
2833 * cplus-dem.c (fancy_abort, demangle_integral_value,
2834 demangle_arm_hp_template, recursively_demangle,
2835 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
2836 (program_name, program_version, fatal): Constify a char*.
2837 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
2838 (main): Call return, not exit.
2839
8f376364 28401999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2841
2842 * choose-temp.c: Remove obsolete comment about gcc.
2843 (make_temp_file): Constify a char*.
2844
3a4fff76 2845Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2846
2847 * xmemdup.c: Include sys/types.h.
2848
7570bccb 28491999-09-07 Jeff Garzik <jgarzik@pobox.com>
2850
2851 * xmemdup.c: New xmemdup function.
2852 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
2853
b50c7be3 2854Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
2855
07c967f9 2856 * config.table: Add openedition target.
b50c7be3 2857 * config/mh-openedition: New file.
2858
fd0c1d22 2859Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
2860
2861 * pexecute.c (pexecute): Fill in temp_base when needed.
2862
be342bf0 28631999-08-31 Richard Henderson <rth@cygnus.com>
2864
2865 * getpwd.c: Check HAVE_GETCWD before defining it away.
2866
71774460 28671999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2868
2869 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
2870 (REQUIRED_OFILES): Add getpwd.o.
2871 (getpwd.o): Add target.
2872
2873 * configure.in (AC_PREREQ): Bump to 2.13.
2874 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
2875
2876 * getpwd.c: New file, moved here from gcc.
2877
ac126d82 28781999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2879
2880 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
2881 comparing against a signed quantity.
2882 (arm_special): Likewise.
2883 (demangle_fund_type): Likewise.
2884 (do_hpacc_template_const_value): Mark parameter `work' with
07c967f9 2885 ATTRIBUTE_UNUSED.
ac126d82 2886 (main): Constify variable `valid_symbols'.
2887
4f3b4661 2888Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
2889
2890 * strtoul.c (strtoul): Add parentheses around && within ||.
2891
f92ff492 2892Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
2893
2894 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
2895 libdir, libsubdir and tooldir.
2896
a9f46aed 28971999-08-01 Mark Mitchell <mark@codesourcery.com>
2898
2899 * splay-tree.c (splay_tree_insert): Return the new node.
2900
db081298 29011999-07-14 Richard Henderson <rth@cygnus.com>
2902
07c967f9 2903 * argv.c: Include stdlib.h and string.h instead of
db081298 2904 prototyping directly.
2905 * choose-temp.c: Conditionally include string.h.
2906
e5aa3a54 29071999-07-12 Jason Merrill <jason@yorick.cygnus.com>
2908
2909 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
2910
4ef402f7 29111999-07-11 Ian Lance Taylor <ian@zembu.com>
2912
2913 * splay-tree.c (splay_tree_insert): Add initialization to avoid
2914 warning.
2915
d65034bd 29161999-07-07 Jason Merrill <jason@yorick.cygnus.com>
2917
2918 * Makefile.in (needed-list): Only include stuff we actually need
2919 for libstdc++.
2920
18912799 29211999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
2922
2923 * configure.in (checkfuncs): Add gettimeofday.
2924 * config.in, configure: Regenerated.
2925
d96f58b6 2926Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
2927
2928 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
2929 the test fails.
2930 * configure: Regenerate.
2931
4248b202 29321999-06-10 Mike Stump <mrs@wrs.com>
2933
2934 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
2935 parallel builds.
2936
3c243ded 29371999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2938
2939 * putenv.c: Include ansidecl.h to define `const'.
2940 * setenv.c: Likewise.
2941
654c70ae 2942Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
2943
34f75864 2944 * Makefile.in (CFILES): Add putenv.c and setenv.c.
2945 * configure.in (funcs): Add putenv and setenv.
2946 (AC_CHECK_FUNCS): Check for putenv and setenv.
2947 * configure: Rebuilt.
2948 * putenv.c setenv.c: New files.
2949
654c70ae 2950 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
2951 bytes of space using malloc.
2952
41980611 2953Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
2954
2955 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
2956 the *mangled pointer beyond the end of the string. Clean up code to
2957 match prevailing coding style.
2958
08b8ada9 29591999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2960
2961 * tmpnam.c (L_tmpnam): Fix typo.
2962
2fb1c6e9 2963Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
2964
2965 * cplus-dem.c (standard_symbol_characters): Renamed from
2966 standard_symbol_alphabet. No longer modify TABLE.
2967 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
2968 modify TABLE.
2969 (main): Corresponding changes. Use strchr to determine if a
2970 character is valid.
2971
25398e41 29721999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
2973
2974 * cplus-dem.c (main): Use table lookup to distinguish identifier
2975 characters from non-identifier characters.
2976 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
2977
29723d26 2978Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
2979
2980 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
2981 * getruntime.c: Only attempt to include sys/resource.h and
2982 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
2983 are defined.
2984
dde96550 2985Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
2986
2987 * configure.in (alloca detection): Handle alloca directly for interix.
2988 * configure: Rebuilt.
2989
e98ba651 2990Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
2991
2992 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
2993
3460a017 29941999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
2995
2996 Fix from Dale Hawkins:
07c967f9 2997 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
3460a017 2998 reallocated properly if we use it again.
2999
3000 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
3001 stricter about syntax. Always null-terminate string.
3002
b01c0955 3003Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
3004
3005 * configure.in (checkfuncs): Check for sbrk.
3006 * config.in: Rebuilt.
3007 * configure: Likewise.
3008 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
3009
87c2e884 30101999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
3011
3012 Fix from Marcus Daniels:
3013 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
3014 identifier looking for another underscore.
3015
16b8e80f 3016Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
3017
3018 * pexecute.c: Change all references to __UWIN__ to _UWIN.
3019 * xmalloc.c: Likewise.
3020 (xcalloc): UWIN has sbrk.
3021 (xrealloc): Fix guard macro.
3022
4d0cfb7e 30231999-04-11 Richard Henderson <rth@cygnus.com>
3024
3025 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
3026 or <alloca.h>.
3027 * clock.c (GNU_HZ): New definition.
3028 (clock): Use it.
3029 * getruntime.c: Likewise.
3030
3031 * config.table: Use mh-beos.
3032 * config/mh-beos: New file.
3033
0dc64970 30341999-04-11 Mark Mitchell <mark@codesourcery.com>
3035
3036 * cplus-dem.c (demangle_template_value_parm): Handle
3037 pointers-to-members.
3038 (do_type): Handle template parameters as qualifiers.
3039
9fec6063 30401999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
3041
3042 * cplus-dem.c: Attempt to handle overflows in counts with some
3043 semblance of grace.
3044 (consume_count): Detect overflows. Return -1 to indicate errors,
3045 instead of zero.
3046 (demangle_template_value_parm, demangle_template): Handle change
3047 to consume_count's return convention.
3048
715f424c 30491999-04-05 Tom Tromey <tromey@cygnus.com>
3050
3051 * testsuite/regress-demangle: New file.
3052 * testsuite/demangle-expected: New file.
3053
3054 * Makefile.in (all, check, installcheck, info, install-info,
3055 clean-info, dvi, install, etags, tags, mostlyclean, clean,
3056 distclean, maintainer-clean, realclean): Depend on corresponding
3057 `-subdir' target.
3058 (all-subdir check-subdir installcheck-subdir info-subdir
3059 install-info-subdir clean-info-subdir dvi-subdir
3060 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
3061 distclean-subdir maintainer-clean-subdir): New target.
3062 * testsuite/Makefile.in: New file.
3063 * configure: Rebuilt.
3064 * configure.in: Create testsuite/Makefile.
3065
71c5948c 30661999-04-02 Mark Mitchell <mark@codesourcery.com>
3067
3068 * splay-tree.h (splay_tree_compare_pointers): Define.
3069
d1264606 30701999-03-30 Mark Mitchell <mark@codesourcery.com>
3071
3072 * splay-tree.c (splay_tree_compare_ints): Define.
3073
6fd618e7 30741999-03-30 Tom Tromey <tromey@cygnus.com>
3075
3076 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
3077 don't advance input pointer.
3078 (demangle_class_name): If consume_count didn't find a count, do
3079 nothing. Don't bother with `strlen' sanity check; consume_count
3080 does it for us.
3081
bdaa26ad 30821999-03-16 Stan Shebs <shebs@andros.cygnus.com>
3083
3084 From Art Haas <ahaas@neosoft.com>:
3085 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
3086 when doing arm or hp style.
3087 (demangle_nested_args): Decr forgetting_types field when done.
07c967f9 3088
d267f778 3089Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
3090
3091 * pexecute.c (__CYGWIN32__): Rename to
3092 (__CYGWIN__): this.
3093 * xmalloc.c: Likewise.
3094
3095 Changes to support i386-pc-uwin.
3096 * configure.in (*-*-uwin*): Workaround for vfork bug.
3097 * configure: Regenerate.
3098 * pexecute.c (pexecute): Be like standard Unix.
3099 (pwait): Likewise.
3100 * xmalloc.c (first_break): Define.
3101 (xmalloc_set_program_name): Use.
3102 (xmalloc): Use.
3103
90405950 3104Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3105
3106 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
3107
bdaa26ad 3108Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
3109
3110 * config.table: Check cygwin*, not cygwin32*.
3111
e6ed8194 3112Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
3113
3114 * Makefile.in: Change mkstemp -> mkstemps.
3115
301e59c9 3116Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
3117
3118 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
3119 * configure.in (funcs): Check for and conditionally add mkstemps to
3120 the list of functions libiberty will provide.
3121 * configure: Rebuilt.
07c967f9 3122
89e305f9 3123Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
3124
07c967f9 3125 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
89e305f9 3126 platforms that don't have HZ.
3127 * getruntime.c (HZ): Likewise.
3128
ecfe64e7 3129Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
3130
3131 * Makefile.in (xstrdup.o): Depend on config.h.
3132
2e5e2114 3133Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
3134
3135 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
3136 freeing it.
3137
6aa62a59 3138Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3139
3140 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
3141
bdaa26ad 3142Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
3143
3144 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
3145 splay-tree.o.
3146
31471999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
3148
3149 * configure.in: Require autoconf 2.12.1 or higher.
3150
9e1ed734 31511998-12-30 Michael Meissner <meissner@cygnus.com>
3152
3153 * random.c (NULL): Don't redefine NULL if it is already defined.
3154
7c8c70e9 3155Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3156
3157 * argv.c (buildargv): Cast the result of alloca in assignment.
3158
3159 * choose-temp.c: Include stdlib.h.
2e5e2114 3160
7c8c70e9 3161 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
9f21bac8 3162 (snarf_numeric_literal): Constify first parameter.
3163 (code_for_qualifier): Avoid a gcc extension, make the parameter an
3164 int, not a char.
7c8c70e9 3165 (demangle_qualifier): Likewise.
3166 (demangle_signature): Cast the argument of a ctype function to
3167 unsigned char.
3168 (arm_pt): Add parens around assignment used as truth value.
3169 (demangle_arm_hp_template): Constify variable `args'.
3170 (do_hpacc_template_const_value): Cast the argument of a ctype
3171 function to unsigned char.
3172 (do_hpacc_template_literal): Remove unused variable `i'.
3173 (snarf_numeric_literal): Constify parameter `args'.
3174 Cast the argument of a ctype function to unsigned char.
3175
3176 * floatformat.c (floatformat_to_double): Add explicit braces to
9f21bac8 3177 avoid ambiguous `else'.
2e5e2114 3178
7c8c70e9 3179 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
9f21bac8 3180 `cstart' and `cend' to unsigned char. Cast the argument of macro
3181 `FOLD', which uses ctype functions, to unsigned char.
7c8c70e9 3182
3183 * objalloc.c (free): Add prototype.
3184
9070a37e 3185Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
3186
3187 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
3188
bdaa26ad 3189Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
3190
3191 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
9f21bac8 3192 doesn't exist.
bdaa26ad 3193 (do_hpacc_template_literal): remove unused variable `i'.
07c967f9 3194
0a5a5994 3195Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3196
3197 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
3198 bumping the pointer we read from. Also prepend these codes,
3199 as we do in other places.
3200
bdaa26ad 32011998-12-18 Nick Clifton <nickc@cygnus.com>
3202
3203 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
3204 'const char *' in order to match its usage when calling siblings.
3205 (snarf_numeric_literal): Make first arg 'const char **' in order
3206 to match usage.
4ed77eec 3207
50cbddd6 3208Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3209
4ed77eec 3210 * choose-temp.c: Don't check IN_GCC anymore.
3211
3212 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
3213 * memchr.c (memchr): Likewise.
3214 * memcpy.c (memcpy): Likewise.
3215 * memmove.c (memmove): Likewise.
2e5e2114 3216
4ed77eec 3217 * mkstemp.c: Don't check IN_GCC anymore.
3218 * pexecute.c: Likewise.
3219 * splay-tree.c: Likewise.
2e5e2114 3220
4ed77eec 3221 * strchr.c (strchr): Use `const', not `CONST'.
3222 * strrchr.c (strrchr): Likewise.
3223 * strtol.c (strtol): Likewise.
3224 * strtoul.c (strtoul): Likewise.
3225
f75dc4de 3226Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
3227 Elena Zannoni <ezannoni@cygnus.com>
3228 Stan Shebs <shebs@cygnus.com>
3229 Edith Epstein <eepstein@cygnus.com>
3230 Andres MacLeod <amacleod@cygnus.com>
3231 Satish Pai <pai@apollo.hp.com>
3232
3233 * HP aCC demangling support.
3234 * cplus-dem.c
3235 (main): Remove default to HP style demangling, set to EDG
9f21bac8 3236 demangling correctly when -edg specified; set the demangling style
3237 when user specifies 'edg'. Set strip_underscore to
3238 prepends_underscore, if not HPUXHPPA. Set
3239 current_demangling_style to hp_demangling if HPUXHPPA. Set
3240 current demangling style correctly if the switch is hp. Read
3241 label correctly also in the HP style case.
f75dc4de 3242 (work_stuff): add temp_start field; add field for volatile member
9f21bac8 3243 function.
f75dc4de 3244 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
9f21bac8 3245 style for this case is the same as ARM.
f75dc4de 3246 (demangle_args): handle EDG_DEMANGLING style; support HP style.
3247 (demangle_arm_hp_template): new function. (It was
9f21bac8 3248 demangle_arm_pt.); check and set value of temp_start field in
3249 multiple places. Also, when ceching for end of template args,
3250 check to see if at end of static member of template class.
f75dc4de 3251 (demangle_class): new local variable : save_class_name_end Don't
9f21bac8 3252 include template args in string defining class.
f75dc4de 3253 (demangle_class_name): use demangel_arm_hp_template.
3254 (demangle_function_name): handle case where demangling style is
9f21bac8 3255 HP_DEMANGLING and currently point at an 'X' in the mangled name.
3256 Handle EDG_DEMANGLING style. Handle constructor and destructor
3257 ops for HP style.
f75dc4de 3258 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
9f21bac8 3259 styles. global destructor and constructor for HP style are same
3260 as for ARM style. Same for local variables.
f75dc4de 3261 (demangle_qualified): handle EDG_DEMANGLING style.
3262 (demangle_signature): add case for volatile member function. For
9f21bac8 3263 cases '1' - '9' : initialize the temp_start field to -1 and handle
3264 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
3265 and AUTO_DEMANGLING styles. If expecting a function and managed
3266 to demangle the funct args, then handle the LUCID_DEMANGLING,
3267 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
3268 class name after "Lnnn_ in HP style case. HP style too needs to
3269 forget types. _nnn is OK for HP style, so don't report failure.
f75dc4de 3270 (do_hpacc_template_const_value): new function. Handle template's
9f21bac8 3271 value param for HP/aCC.
f75dc4de 3272 (do_hpacc_template_literal): new function. Handle a template's
9f21bac8 3273 literal parameter for HP aCC.
f75dc4de 3274 (recursively_demangle): new function
3275 (snarf_numeric_literal): new function.
3276 (usage): add 'edg' to the list of demangling styles; add hp switch
9f21bac8 3277 to message.
f75dc4de 3278
a5c56042 3279Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
3280
3281 * pexecute.c: Remove obsolete ifdefed cygwin code.
3282
4ae63959 3283Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3284
3285 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
3286 * cplus-dem.c: Likewise. Conform to libiberty.h.
3287 * pexecute.c: Likewise.
3288 * splay-tree.c: Likewise.
3289
b41b6b67 32901998-11-25 Mike Stump <mrs@wrs.com>
3291
3292 * Makefile.in (splay-tree.o): Add config.h dependency.
3293
a1dd5bff 3294Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3295
3296 * configure.in: Use AC_PREREQ(2.12.1).
3297
d54546fb 32981998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
3299
07c967f9 3300 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
d54546fb 3301
9fdb1080 3302Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
3303
3304 * mpw.c (mpw_access): Add missing parens.
3305
1ed7db2f 3306Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3307
3308 * configure.in: Call AC_HEADER_SYS_WAIT.
3309
3310 * pexecute.c: Include sys/wait.h when !IN_GCC.
3311
bdaa26ad 3312Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
3313
3314 * pexecute.c: revert back to checking old Cygwin
3315 preprocessor symbol until some time has passed.
3316
3317Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
3318
3319 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
3320 since it will now support similar constructs.
3321
34fa8831 3322Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3323
3324 * configure.in: Check for calloc.
3325
3326 * calloc.c: New file.
3327
3328 * xmalloc.c (xcalloc): New function.
3329
75ebb412 3330Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
3331
3332 *cplus-dem.c (demangle_prefix): Use the last "__"
3333 in the mangled name when looking for the signature. This allows
3334 template names to begin with "__".
3335
5b546829 33361998-11-08 Mark Mitchell <mark@markmitchell.com>
3337
73bea962 3338 * cplus-dem.c (type_kind_t): Add tk_reference.
3339 (demangle_template_value_parm): Handle it.
3340 (do_type): Use it for references, instead of tk_pointer.
3341
5b546829 3342 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
3343 not internal_cplus_demangle.
3344
0e4558d2 3345Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3346
3347 * choose-temp.c: Don't include gansidecl.h.
3348 * mkstemp.c: Likewise.
3349 * pexecute.c: Likewise.
3350
7b8b8d43 3351Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
3352
07c967f9 3353 * configure.in: detect cygwin* instead of cygwin32*
3354 * configure: regenerate
7b8b8d43 3355
f9a39df1 3356Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3357
3358 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
9f21bac8 3359 whether to include config.h. Possibly include unistd.h in the
3360 !IN_GCC case. Define VFORK_STRING as a printable function call
3361 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
3362 defined, include vfork.h. If VMS is defined, define vfork()
3363 appropriately. Remove vfork check on USG, we're using autoconf.
3364 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
3365 locally what string to use.
f9a39df1 3366
797ba725 33671998-10-26 Mark Mitchell <mark@markmitchell.com>
3368
3369 * splay-tree.c: Tweak include directives to make sure declarations of
3370 xmalloc and free are available.
3371
3662c79b 33721998-10-25 Mark Mitchell <mark@markmitchell.com>
3373
3374 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
3375 anonymous namespaces.
2e5e2114 3376
af5199c0 33771998-10-23 Mark Mitchell <mark@markmitchell.com>
3378
3379 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
3380 with type_quals.
3381 (TYPE_UNQUALIFIED): New macro.
3382 (TYPE_QUAL_CONST): Likewise.
3383 (TYPE_QUAL_VOLATILE): Likewise.
3384 (TYPE_QUAL_RESTRICT): Likewise.
3385 (code_for_qualifier): New function.
3386 (qualifier_string): Likewise.
3387 (demangle_qualifier): Likewise.
3388 (internal_cplus_demangle): Use them.
3389 (demangle_signature): Likewise.
3390 (demangle_template_value_parm): Likewise.
3391 (do_type): Likewise.
3392 (demangle_fund_type)): Likewise.
3662c79b 3393
e61da89d 3394Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3395
3396 * splay-tree.c (splay_tree_foreach_helper): Make definition static
3397 to match prototype.
3398
9a4eb61d 33991998-10-21 Mark Mitchell <mark@markmitchell.com>
3400
3401 * splay-tree.c: New file.
3402 * Makefile.in (CFILES): Add it.
3403 (REQUIRED_OFILES): Likewise.
3404 (splay-tree.o): Add dependencies.
3405
e5d3a45b 3406Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
3407
3408 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
3409 range of 'K' index.
3410
4350e959 3411Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3412
3413 * choose-temp.c: Prototype mkstemps() when IN_GCC.
3414
3415 * cplus-dem.c (consume_count): Cast argument of ctype macro to
3416 `unsigned char'.
3417 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
3418 comparing against one.
3419 (cplus_mangle_opname): Likewise.
3420 (demangle_integral_value): Cast argument of ctype macro to
3421 `unsigned char'.
3422 (demangle_template_value_parm): Likewise.
3423 (demangle_template): Initialize variable `bindex'. Cast the
3424 result of `strlen' to (int) when comparing against one. Remove
3425 unused variable `start_of_value_parm'.
3426 (demangle_class_name): Cast the result of `strlen' to (int) when
3427 comparing against one.
3428 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
3429 (gnu_special): Likewise. Cast the result of `strlen' to (int)
3430 when comparing against one.
3431 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
3432 (get_count): Likewise.
3433 (do_type): Likewise. Cast the result of `strlen' to (int) when
3434 comparing against one.
3435 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
3436 (demangle_function_name): Cast the result of `strlen' to (int)
3437 when comparing against one.
3438
3439 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
3440 comparing against one.
3441
5dfe2c03 3442Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
3443
07c967f9 3444 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
3445 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
3446 * config.in, configure: Rebuilt.
0be6f86d 3447
5dfe2c03 3448 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
3449 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
3450 * config.in, configure: Rebuilt.
3451
7b8b8d43 3452Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
3453
07c967f9 3454 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
7b8b8d43 3455
68b78c88 3456Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
3457
3458 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
3459
804ec1bf 3460Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
3461
3462 * Merge egcs & devo libiberty.
3463
7a1ec54f 3464