OSDN Git Service

2010-04-23 Pedro Alves <pedro@codesourcery.com>
[pf3gnuchains/gcc-fork.git] / libiberty / ChangeLog
1 2010-04-23  Pedro Alves  <pedro@codesourcery.com>
2
3         * lbasename.c (lbasename): Split into ...
4         (unix_lbasename, dos_basename): ... these.
5         (lbasename): ... and reimplement on top of them.
6         * Makefile.in (lbasename.o): Add dependency on
7         $(INCDIR)/filenames.h.
8
9 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
10
11         * regex.c (byte_re_match_2_internal): Avoid set but not used
12         warning.
13
14 2010-03-22  Jason Merrill  <jason@redhat.com>
15
16         * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
17
18 2010-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19
20         * Makefile.in (all): Do not use exec.
21
22 2010-02-04  Tom Tromey  <tromey@redhat.com>
23
24         * testsuite/demangle-expected: Add missing --format=gnu-v3.
25
26 2010-02-03  Jason Merrill  <jason@redhat.com>
27
28         * cp-demangle.c (d_expression): Handle dependent operator name.
29
30         PR c++/12909
31         * cp-demangle.c (d_number_component, d_vector_type): New.
32         (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
33
34 2010-01-25  Ian Lance Taylor  <iant@google.com>
35
36         * cp-demangle.c (cplus_demangle_type): Check for invalid type
37         after "DF".
38         * testsuite/demangle-expected: Add test.
39
40 2010-01-20  Jason Merrill  <jason@redhat.com>
41
42         PR c++/42338
43         * cp-demangle.c (d_print_comp): Fix array index printing.
44
45 2010-01-11  Tristan Gingold  <gingold@adacore.com>
46
47         * cplus-dem.c (ada_demangle): Remove prototype.
48         (grow_vect): Removed.
49         (ada_demangle): Rewritten.
50         (cplus_demangle): Fix indentation.
51         * testsuite/demangle-expected: Add tests for Ada.
52
53 2010-01-09  Ian Lance Taylor  <iant@google.com>
54
55         PR other/42230
56         * cp-demangle.c (d_demangle): Return dgs.alc on success.
57
58 2010-01-04  Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
59
60         PR target/42316
61         * configure.ac (PICFLAG): Use -fPIC on SH hosts.
62         * configure: Regenerate.
63
64 2009-12-07  Doug Evans  <dje@google.com>
65
66         * pex-unix.c (pex_unix_exec_child): Save/restore environ.
67
68 2009-11-26  Ben Elliston  <bje@au.ibm.com>
69
70         * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
71         * configure: Regenerate.
72
73 2009-11-25  Ben Elliston  <bje@au.ibm.com>
74
75         * functions.texi: Rebuild.
76
77 2009-11-25  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
78             Ben Elliston  <bje@au.ibm.com>
79
80         * README: Mention changes to Makefile.in and functions.texi.
81         * gather-docs: Mention 'make stamp-functions' in the header.
82
83 2009-11-23  Ben Elliston  <bje@au.ibm.com>
84             Ian Lance Taylor  <iant@google.com>
85
86         * pex-unix.c (pex_child_error): Improve warning avoidance by
87         checking the results of write(3) and exiting with -2 if any write
88         returns a negative value.
89
90 2009-11-22  Steve Ward  <planet36@gmail.com>
91
92         * dyn-string.c (dyn_string_append_char): Fix typo in comment.
93
94 2009-11-20  Ben Elliston  <bje@au.ibm.com>
95
96         * pex-unix.c (pex_child_error): Define writeerr macro to avoid
97         unused result warnings from write(3) calls.  Undefine writeerr
98         after all uses.
99
100 2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
101         Daniel Jacobowitz  <dan@codesourcery.com>
102         Pedro Alves  <pedro@codesourcery.com>
103
104         libiberty/
105         * argv.c (consume_whitespace): New function.
106         (only_whitespace): New function.
107         (buildargv): Always use ISSPACE by calling consume_whitespace.
108         (expandargv): Skip empty files.  Do not stop at the first empty
109         argument (calling only_whitespace)..
110         * testsuite/test-expandargv.c: (test_data): Test empty lines
111         and empty arguments.
112         (run_tests): Fix false positives due to shorter arguments.
113
114 2009-09-30  Martin Thuresson  <martint@google.com>
115
116         * regex.c (byte_re_match_2_internal): Split declaration and
117         assignment to avoid -Wc++-compat warning due to goto.
118
119 2009-09-29  Jason Merrill  <jason@redhat.com>
120
121         * Makefile.in: Enable demangle target.
122         * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
123         (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
124         (d_parmlist): Factor out from d_bare_function_type.
125         (d_compact_number): Factor out from d_template_param and d_expression.
126         (d_append_num): Factor out from d_print_comp.
127         (d_print_comp, d_print_mod_list): Handle lambdas.
128         * testsuite/demangle-expected: Add lambda tests.
129
130 2009-09-23  Matthew Gingell  <gingell@adacore.com>
131
132         * cplus-dem.c (ada_demangle): Ensure demangled is freed.
133
134 2009-09-22  Ozkan Sezer  <sezeroz@gmail.com>
135
136         * choose-temp.c: Include unistd.h for mingw targets.
137
138 2009-09-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
139
140         * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
141
142 2009-09-15  Tristan Gingold  <gingold@adacore.com>
143
144         * config.h-vms (intptr_t): Define to compile hashtab.c
145
146 2009-09-04  Ozkan Sezer  <sezeroz@gmail.com>
147
148         PR target/39065
149         * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
150         with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
151         * config.in: Regenerated.
152         * configure: Regenerated.
153
154 2009-09-03  Ozkan Sezer  <sezeroz@gmail.com>
155
156         PR target/39065
157         * configure.ac: Also check for intptr_t.
158         * config.h.in: Regenerated.
159         * configure: Regenerated.
160         * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
161         instead of of long.
162
163 2009-09-02  Tristan Gingold  <gingold@adacore.com>
164
165         * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
166         * makefile.vms: Ported to Itanium VMS.  Remove useless targets and
167         dependencies.  Remove unused FORMAT variable.
168         * configure.com: New file to create build.com DCL script for
169         Itanium VMS or Alpha VMS.
170
171 2009-08-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
172
173         * configure.ac (AC_PREREQ): Bump to 2.64.
174
175 2009-08-23  H.J. Lu  <hongjiu.lu@intel.com>
176
177          PR ld/10536
178          * Makefile.in (install-html-recursive): Removed.
179
180 2009-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
181
182         * config.in: Regenerate.
183         * configure: Regenerate.
184
185 2009-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
186
187         * Makefile.in (AUTOCONF, configure_deps): New variables.
188         ($(srcdir)/configure): New rule, active only in maintainer mode.
189
190 2009-07-29  Douglas B Rupp  <rupp@gnat.com>
191
192         * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
193
194 2009-07-27  Douglas B Rupp  <rupp@gnat.com>
195
196         * pex-unix.c (vfork): Remove VMS specific definition (get from header
197         file instead).
198         (to_ptr32): New function.
199         (pex_unix_exec_child): Use it.
200
201 2009-07-24  Ian Lance Taylor  <iant@google.com>
202
203         PR bootstrap/40854
204         * crc32.c (xcrc32): Rename from crc32.
205
206 2009-07-24  Ian Lance Taylor  <iant@google.com>
207
208         * crc32.c: New file.
209         * Makefile.in: Rebuild dependencies.
210         (CFILES): Add crc32.c.
211         (REQUIRED_OFILES): Add ./crc32.o.
212         * functions.texi: Rebuild.
213
214 2009-07-17  Jan Kratochvil  <jan.kratochvil@redhat.com>
215
216         * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
217         (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
218         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
219         (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
220         (d_demangle_callback): The variable type is now declared as enum.
221         Replace parser of _GLOBAL_ symbols by a d_make_comp call.
222
223 2009-06-21  Jakub Jelinek  <jakub@redhat.com>
224
225         * hashtab.c (htab_traverse): Don't call htab_expand for
226         nearly empty hashtabs with sizes 7, 13 or 31.
227
228 2009-06-16  Nick Clifton  <nickc@redhat.com>
229
230         PR 10197
231         * testsuite/test-demangle.c: Rename getline to get_line to avoid
232         conflicts with system function of the same name.
233
234 2009-05-30  Eli Zaretskii  <eliz@gnu.org>
235
236         * snprintf.c: Doc fix.
237
238         * vsnprintf.c: Doc fix.
239
240 2009-05-29  Kai Tietz  <kai.tietz@onevision.com>
241
242         * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
243
244 2009-05-29  Michael Matz  <matz@suse.de>
245
246         * fibheap.c (fibheap_replace_key_data): Make sure we don't early
247         out when forcing the minimum.
248         (fibheap_delete_node): Assert that we managed to force the minimum.
249
250 2009-05-25  Tristan Gingold  <gingold@adacore.com>
251
252         * config.h-vms: Rewritten.  Define configure macros.
253         Use DEC-C builtin alloca.
254
255         * makefile.vms (OBJS): Update list.
256         (OPT): New variable.
257         (CFLAGS): Update compilation flags.
258         (libiberty.olb): Do not depend on alloca-conf.h anymore.
259
260 2009-05-19  Ian Lance Taylor  <iant@google.com>
261             Ben Elliston  <bje@au.ibm.com>
262
263         * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
264         (cplus_demangle_fill_dtor): Likewise.
265
266 2009-05-17  Julian Brown  <julian@codesourcery.com>
267
268         * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
269         standard handles (stdin, stdout, stderr) in parent.
270
271 2009-04-29  Julian Brown  <julian@codesourcery.com>
272
273         * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.    
274         (pex_win32_exec_child): Ensure each process has only one handle open
275         on pipe endpoints. Close standard input after creating child for
276         symmetry with standard output/standard error.
277
278 2009-04-25  Eli Zaretskii  <eliz@gnu.org>
279
280         * Makefile.in (needed-list): Target removed (not used in GCC
281         3.0 and later).  All references deleted.
282         (mostlyclean): Remove references to needed.awk and needed2.awk.
283
284 2009-04-14  Eli Zaretskii  <eliz@gnu.org>
285
286         * configure.ac  (setobjs, msdosdjgpp): Move a-priori setting of
287         existing and required library functions to with_target_subdir
288         section, so that the native build does detect them at configure
289         time.
290         * configure: Regenerated.
291         
292 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
293
294         PR target/39397
295         * pex-common.h (struct pex_obj): Store pid values as pid_t,
296         not as long (members *children and (*wait))
297         * pex-common.c (pex_run_in_environment): Likewise.
298         * pex-win32.c (pex_win32_wait): Return pid_t and properly check
299         returned pid value.
300         * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
301         * pex-msdos.c (pex_msdos_wait): Likewise.
302
303 2009-04-07  Arnaud Patard <apatard@mandriva.com>
304
305        * libiberty/configure.ac: Fix Linux/MIPS matching rule.
306        * libiberty/configure: Regenerate.
307
308 2009-03-27  Ian Lance Taylor  <iant@google.com>
309
310         * memmem.c: New file, from gnulib.
311         * configure.ac: Add memmem to list of functions provided if they
312         are not available on the host.
313         * Makefile.in: Rebuild dependencies.
314         (CFILES): Add memmem.c.
315         (CONFIGURED_OFILES): Add memmem.o.
316         * configure, config.in, functions.texi: Rebuild.
317
318 2009-03-23  Jason Merrill  <jason@redhat.com>
319
320         * cp-demangle.c (d_expression): Handle pack expansion.
321         (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
322         (d_print_subexpr): Don't wrap function parms in ().
323         (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
324         not finding a pack.
325
326 2009-03-17  Jason Merrill  <jason@redhat.com>
327
328         * cp-demangle.c (d_make_function_param): new fn.
329         (cplus_demangle_mangled_name): Work around abi v2 bug.
330         (d_expr_primary): Likewise.
331         (cplus_demangle_operators): Add alignof ops.
332         (d_expression): Handle function parameters and conversions
333         with other than 1 operand.
334         (d_print_comp): Handle function parameters.  Fix bug with
335         function used in type of function.
336         * testsuite/demangle-expected: Update tests.
337
338 2009-02-21  Mark Mitchell  <mark@codesourcery.com>
339
340         * make-temp-file.c (<windows.h>): Include on Windows.
341         (choose_tmpdir): On Windows, use GetTempPath.
342
343 2009-01-18  Dave Korn  <dave.korn.cygwin@gmail.com>
344
345         * configure.ac (funcs, vars, checkfuncs):  Don't munge on Cygwin,
346         as it no longer shares libiberty object files.
347         * configure:  Regenerated.
348
349 2009-01-07  Jason Merrill  <jason@redhat.com>
350
351         * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
352
353 2009-01-06  Ben Elliston  <bje@au.ibm.com>
354
355         * cp-demangle.c (cplus_demangle_type): Return NULL if the
356         character following a 'D' cannot be recognised.
357
358 2008-12-18  Jason Merrill  <jason@redhat.com>
359
360         PR c++/38561
361         * cp-demangle.c (d_expression, d_print_comp): Revert
362         cast changes.
363
364 2008-12-17  Jason Merrill  <jason@redhat.com>
365
366         * cp-demangle.c (d_expression): Handle rvalue stubs too.
367         [DEMANGLE_COMPONENT_CAST]: Update mangling.
368         (d_print_comp): Avoid extra ", " with empty template argument packs.
369         Remove handling for obsolete T() mangling.
370
371 2008-12-10  Jason Merrill  <jason@redhat.com>
372
373         * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
374         (d_print_comp, d_dump): Likewise.
375
376 2008-10-22  Daniel Jacobowitz  <dan@codesourcery.com>
377
378         * Makefile.in (CPPFLAGS): Define.
379         (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
380
381 2008-10-15  Paolo Bonzini  <bonzini@gnu.org>
382
383         PR bootstrap/37137
384         * Makefile.in (LIBCFLAGS): Remove.
385         (FLAGS_TO_PASS): Don't mention it.
386         (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
387
388 2008-10-08  David Edelsohn  <edelsohn@gnu.org>
389
390         * xstrdup.c: Include <sys/types.h> after "config.h"
391  
392 2008-10-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
393
394         * configure.ac: Call AC_SYS_LARGEFILE.
395         * config.in: Regenerated.
396         * configure: Likewise.
397
398 2008-10-06  Jason Merrill  <jason@redhat.com>
399
400         * cp-demangle.c (struct d_print_info): Add pack_index.
401         (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
402         (d_make_comp): Likewise.  DEMANGLE_COMPONENT_ARGLIST and
403         DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
404         (cplus_demangle_builtin_types): Add char16/32_t.
405         (cplus_demangle_type): Recognize them.
406         (d_template_args): Handle empty argument packs.
407         (d_template_arg): Handle argument packs.
408         (d_expression): Handle dependent name.
409         (d_index_template_argument): New fn.
410         (d_lookup_template_argument): New fn.
411         (d_find_pack, d_pack_length): New fn.
412         (d_print_subexpr): Split out...
413         (d_print_comp): ...from here.  Use d_*_template_argument.
414         Handle empty arg lists.  Support pack expansions.
415         * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
416
417 2008-09-09  Jason Merrill  <jason@redhat.com>
418
419         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
420         (d_make_comp): Likewise.
421         (cplus_demangle_type): Handle decltype and DFP types.
422         (cplus_demangle_operators): Call operator takes 2 args.
423         (cplus_demangle_builtin_types): Add DFP types.
424         (d_exprlist): New fn.
425         (d_expression): Handle parm placeholders, T() and calls.
426         (d_print_comp): Handle decltype, T() and calls.
427         * testsuite/demangle-expected: Test the above.
428
429 2008-08-07  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
430
431         * pex-win32.c (argv_to_argc): New function.
432         (spawn_script): Duplicate argv before calling win32_spawn.
433
434 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
435
436         * mkstemps.c (mkstemps): Keep looping even for EISDIR.
437
438 2008-07-31  Denys Vlasenko  <dvlasenk@redhat.com>
439
440         * mkstemps.c (mkstemps): If open failed with errno other than
441         EEXIST, return immediately.
442         * make-temp-file.c: Include errno.h.
443         (make_temp_file): If mkstemps failed, print an error message
444         before aborting.
445
446 2008-07-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
447
448         * maint-tool (deps): Output config.h instead of stamp-h.
449         * Makefile.in: Rebuild deps.
450         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
451         Reverts 2007-07-11 change.
452
453 2008-06-19  Eric Blake  <ebb9@byu.net>
454
455         Adjust strsignal to POSIX 200x prototype.
456         * strsignal.c (strsignal): Remove const.
457
458 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
459
460         * configure: Regenerate.
461
462 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
463
464         * libiberty.texi: Expand TABs, drop indentation outside examples.
465         * obstacks.texi: Likewise.
466
467 2008-04-21  Aurelien Jarno  <aurelien@aurel32.net>
468
469         * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts.
470         * libiberty/configure: Regenerate.
471
472 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
473
474         * testsuite/demangle-expected: Added tests for char16_t and char32_t.
475
476 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
477
478         PR bootstrap/35457
479         * aclocal.m4: Add override.m4.
480         * configure: Regenerate.
481
482 2008-03-31  Ian Lance Taylor  <iant@google.com>
483
484         * cp-demangle.c (d_substitution): Correct overflow check to avoid
485         -fstrict-overflow optimizations.
486
487 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
488
489         * configure.ac (frags): Don't set, use frag instead.
490         (PICFLAG): Set here and substitute.
491         * Makefile.in (PICFLAG): Substitute from autoconf.
492         * configure: Regenerate.
493
494 2008-03-24  Ian Lance Taylor  <iant@google.com>
495
496         * sha1.c: New file, from gnulib.
497         * Makefile.in: Rebuild dependencies.
498         (CFILES): Add sha1.c.
499         (REQUIRED_OFILES): Add sha1.o.
500
501 2008-03-24  Doug Evans  <dje@google.com>
502
503         * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
504         return from strdup.
505
506 2008-03-12  Seongbae Park <seongbae.park@gmail.com>
507
508         * cplus-dem.c (malloc, realloc): Use void * instead of char *
509         as return type.
510
511 2008-03-11  Nick Clifton  <nickc@redhat.com>
512
513         * md5.c (md5_process_bytes): Do not assume that memcpy will
514         provide a return value.
515
516 2008-02-19  Ben Elliston  <bje@au.ibm.com>
517
518         PR other/12618
519         * testsuite/Makefile.in (mostlyclean): Remove any core file.
520
521 2008-01-26  David Daney  <ddaney@avtrex.com>
522
523         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
524         DEMANGLE_COMPONENT_COMPOUND_NAME, and
525         DEMANGLE_COMPONENT_CHARACTER cases.
526         (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
527         DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
528         (d_make_character): New function.
529         (d_java_resource): Same.
530         (d_special_name): Handle "Gr" case.
531         (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
532         DEMANGLE_COMPONENT_COMPOUND_NAME, and
533         DEMANGLE_COMPONENT_CHARACTER cases.
534         * testsuite/demangle-expected: Add test for java resource name
535         mangling.
536
537 2008-01-23  Thiago Jung Bauermann  <bauerman@br.ibm.com>
538
539         * cplus-dem.c (demangle_function_name): Changed to return value
540         indicating if a name was correctly demangled.
541         (iterate_demangle_function): Use demangle_function_name return
542         value.
543
544 2008-01-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
545
546         PR other/33768
547         * splay-tree.c (rotate_left): Fix minor typo in comment.
548         (rotate_right): Likewise.
549
550 2007-11-12  Joseph Myers  <joseph@codesourcery.com>
551
552         * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
553         compiler warnings.
554         (floatformat_ibm_long_double): Use
555         floatformat_ibm_long_double_is_valid.
556
557 2007-11-07  Joseph Myers  <joseph@codesourcery.com>
558             Daniel Jacobowitz  <dan@codesourcery.com>
559
560         * floatformat.c (mant_bits_set): New.
561         (floatformat_to_double): Use it.  Note no special handling of
562         split formats.
563         (floatformat_from_double): Note no special handing of split
564         formats.
565         (floatformat_ibm_long_double_is_valid,
566         floatformat_ibm_long_double): New.
567         (floatformat_ieee_single_big, floatformat_ieee_single_little,
568         floatformat_ieee_double_big, floatformat_ieee_double_little,
569         floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
570         floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
571         floatformat_m68881_ext, floatformat_i960_ext,
572         floatformat_m88110_ext, floatformat_m88110_harris_ext,
573         floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
574         floatformat_ia64_spill_big, floatformat_ia64_spill_little,
575         floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
576         for addition of split_half field.
577
578 2007-09-06  Tom Tromey  <tromey@redhat.com>
579
580         * pexecute.txh (pex_free): Document process killing.
581
582 2007-08-31  Douglas Gregor  <doug.gregor@gmail.com>
583
584         * cp-demangle.c (d_dump): Handle
585         DEMANGLE_COMPONENT_RVALUE_REFERENCE.
586         (d_make_comp): Ditto.
587         (cplus_demangle_type): Ditto.
588         (d_print_comp): Ditto.
589         (d_print_mod): Ditto.
590         (d_print_function_type): Ditto.
591
592 2007-08-24  Kai Tietz  <kai.tietz@onevision.com>
593
594         * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
595         * pex-djgpp.c: Likewise.
596         * pex-msdos.c: Likewise.
597         * pex-unix.c: Likewise.
598         * pex-win32.c: Likewise.
599
600 2007-08-17  Michael Snyder  <msnyder@access-company.com>
601
602         * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
603
604 2007-08-03  Michael Snyder  <msnyder@access-company.com>
605
606         * make-relative-prefix.c (make_relative_prefix_1): Fix resource
607         leak.
608
609 2007-07-31  Michael Snyder  <msnyder@access-company.com>
610
611         * cp-demangle.c (d_print_comp): Guard against null.
612
613 2007-07-25  Ben Elliston  <bje@au.ibm.com>
614
615         * Makefile.in (CFILES): Remove ternary.c.
616         (REQUIRED_OFILES): Remove ./ternary.o.
617         (INSTALLED_HEADERS): Remove ternary.h.
618         (ternary.o): Remove.
619         * ternary.c: Remove.
620
621 2007-07-23  DJ Delorie  <dj@redhat.com>
622
623         * argv.c (writeargv): Fix typo in inline documentation.
624         * functions.texi: Regenerate.
625
626 2007-07-17  DJ Delorie  <dj@redhat.com>
627
628         * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
629         gettimeofday entry.
630         * configure: Likewise.
631
632 2007-07-11  Alexandre Oliva  <aoliva@redhat.com>
633
634         * maint-tool (deps): Output stamp-h instead of config.h.
635         * Makefile.in: Rebuild deps.
636         (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
637
638 2007-07-02  Simon Baldwin <simonb@google.com>
639
640         * argv.c (writeargv): Removed declaration of unused variable.
641
642 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
643
644         * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
645         * configure: Regenerate.
646
647 2007-06-14  Paolo Bonzini  <bonzini@gnu.org>
648
649         * aclocal.m4: Include config/warnings.m4.
650         * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
651         * configure: Regenerate.
652
653 2007-06-07  Geoffrey Keating  <geoffk@apple.com>
654
655         * configure.ac: Non-default multilibs can be cross compilations.
656         * configure: Regenerate
657
658 2007-05-07  Nathan Froyd  <froydnj@codesourcery.com>
659
660         * argv.c (writeargv): New function.
661
662 2007-05-05  Geoffrey Keating  <geoffk@apple.com>
663
664         * cp-demangle.c (d_name): Detect local-source-name.
665         (d_prefix): Likewise.
666         (d_unqualified_name): Implement local-source-name.
667
668 2007-05-03  Joel Brobecker  <brobecker@adacore.com>
669
670         * filename_cmp.c: Replace include of ctype.h by include of
671         safe-ctype.h.
672         (filename_cmp): Use TOLOWER instead of tolower for conversions
673         that are locale-independent.
674         * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
675
676 2007-04-11  Thomas Neumann  tneumann@users.sourceforge.net
677
678         * argv.c: Use ANSI C declarations.
679         * make-relative-prefix.c: Likewise.
680
681 2007-04-06  Joel Brobecker  <brobecker@adacore.com>
682
683         * filename_cmp.c (filename_cmp): Improve documentation.
684
685 2007-04-02  Andreas Schwab  <schwab@suse.de>
686
687         * filename_cmp.c: Include "config.h".
688
689 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
690
691         * filename_cmp.c: New file.
692         * Makefile.in (CFILES): Add filename_cmp.c.
693         (REQUIRED_OFILES): Add filename_cmp.o
694         (filename_cmp.o): New rule.
695         * functions.texi: Regenerate.
696
697 2007-03-15  Geoffrey Keating  <geoffk@apple.com>
698
699         * cp-demangle.c (d_encoding): Exit early on error.
700         (d_pointer_to_member_type): Exit early if cplus_demangle_type
701         returns NULL.
702         (cplus_demangle_type): Likewise.
703         * testsuite/demangle-expected: New testcase.
704
705 2007-03-01  Brooks Moses  <brooks.moses@codesourcery.com>
706
707         * Makefile.in: Add install-pdf target as copied from
708         automake v1.10 rules.
709         * testsuite/Makefile.in: Add dummy install-pdf target.
710
711 2007-03-01  Peter Breitenlohner  <peb@mppmu.mpg.de>
712             Eric Botcazou  <ebotcazou@libertysurf.fr>
713
714         PR other/16513
715         * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
716         Install headers in multilib independent location.
717
718 2007-02-26  DJ Delorie  <dj@redhat.com>
719
720         * configure.ac: add djgpp-specific results, so we don't have to
721         link during a cross compilation.
722         * configure: Regenerated.
723
724 2007-01-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
725
726         * hex.c: Fix typo.
727         * choose-temp.c: Likewise.
728         * functions.texi: Regenerate.
729
730 2007-01-31  Vladimir Prus  <vladimir@codesourcery.com>
731
732         * pex-common.h (struct pex_obj): New fields
733         stderr_pipe and read_err.
734         * pex-common.c (pex_init_common): Initialize
735         stderr_pipe.
736         (pex_run_in_environment): Add error checking
737         for PEX_STDERR_TO_PIPE.  Create a pipe
738         for stderr if necessary.
739         (pex_read_err): New.
740         (pex_free): Close read_err.
741         * pexecute.txh: Document changes.
742         * functions.texi: Regenerated.
743
744 2007-01-31  Ben Elliston  <bje@au.ibm.com>
745
746         * strsignal.c (psignal): Change type of signo to int.
747         * functions.texi: Regenerate.
748
749 2007-01-29  Simon Baldwin <simonb@google.com>
750
751         * cp-demangle.h (cplus_demangle_operators): External definition
752         suppressed if not building for libstdc++.
753         * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
754         to demangling, provides a malloc-less version of __cxa_demangle.
755         (cplus_demangle_print_callback): Public callback version of
756         cplus_demangle_print.
757         (struct d_growable_string): New growable string structure.
758         (d_growable_string_init): New function, provides support for
759         growable strings separate from print info.
760         (d_growable_string_resize): Likewise.
761         (d_growable_string_append_buffer): Likewise.
762         (d_growable_string_callback_adapter):): Likewise.
763         (d_print_init): New print info initialization function.
764         (d_print_error): Macro replace by inline function.
765         (d_print_saw_error): Likewise.
766         (d_append_char): Likewise.
767         (d_append_buffer): Likewise.
768         (d_append_string): New inline function, replaces the
769         d_append_string_constant macro.
770         (d_flush_buffer): New function, flushes buffer to callback.
771         (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
772         for unsupported dynamic arrays replaced by alloca().
773         (d_demangle): Return string length estimating removed.
774         (d_dump): Moved error case handling from call site into function.
775         (d_print_resize): Function removed.
776         (d_print_append_char): Likewise.
777         (d_print_append_buffer): Likewise.
778         (d_print_error): Likewise.
779         (d_print_comp): Added special case handling for Java arrays.
780         (java_demangle_v3): Removed string post-processing for Java arrays,
781         now replaced by special case handling in d_print_comp.
782         (cplus_demangle_v3_callback): Augmented interface to demangling,
783         provides a malloc-less version of cplus_demangle_v3.
784         (java_demangle_v3_callback): Augmented interface to demangling,
785         provides a malloc-less version of java_demangle_v3.
786
787 2007-01-12  Ben Elliston  <bje@au.ibm.com>
788
789         * pex-unix.c (writeerr): Cast write result to void.
790
791         * choose-temp.c (choose_temp_base): Check the result of the call
792         to mktemp rather than testing the length of the modified string.
793
794 2006-12-20  Geoffrey Keating  <geoffk@apple.com>
795
796         * cp-demangle.h: Add comment explaining what to do to avoid
797         overrunning string.
798         (d_check_char): New.
799         (d_next_char): Don't advance past trailing '\0'.
800         * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
801         (d_nested_name): Likewise.
802         (d_special_name): Likewise.
803         (d_call_offset): Likewise.
804         (d_function_type): Likewise.
805         (d_array_type): Likewise.
806         (d_pointer_to_member_type): Likewise.
807         (d_template_param): Likewise.
808         (d_template_args): Likewise.
809         (d_template_arg): Likewise.
810         (d_expr_primary): Likewise.
811         (d_local_name): Likewise.
812         (d_substitution): Likewise.
813         (d_ctor_dtor_name): Use d_advance rather than d_next_char.
814         * testsuite/test-demangle.c: Include sys/mman.h.
815         (MAP_ANONYMOUS): Define.
816         (protect_end): New.
817         (main): Use protect_end.
818         * testsuite/demangle-expected: Add testcases for overrunning
819         the end of the string.
820
821 2006-11-30  Andrew Stubbs  <andrew.stubbs@st.com>
822             J"orn Rennecke <joern.rennecke@st.com>
823
824         PR driver/29931
825         * make-relative-prefix.c (make_relative_prefix_1): New function,
826         broken out of make_relative_prefix.  Make link resolution dependent
827         on new parameter.
828         (make_relative_prefix): Use make_relative_prefix_1.
829         (make_relative_prefix_ignore_links): New function.
830
831 2006-11-08  Vladimir Prus  <vladimir@codesourcery.com>
832
833         * pex-win32.c (no_suffixes): Remove.
834         (std_suffixes): Add "" as first element.
835         (find_executable): Remove detection of already-present
836         extension. Try all suffixes in std_suffixes.
837
838 2006-11-07  Julian Brown  <julian@codesourcery.com>
839
840         * floatformat.c (get_field): Fix segfault with little-endian word
841         order on 64-bit hosts.
842         (put_field): Likewise.
843         (min): Move definition.
844
845 2006-10-26  Danny Smith  <dannysmith@users.sourceforge.net>
846
847         pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
848         (find_executable): Likewise.
849         (win32_spawn): Cast alloca return to (char**).
850         Replace malloc with XNEWVEC.
851         bcopy.c (bcopy): Add explict casts in assignments.
852
853 2006-10-25  Ben Elliston  <bje@au.ibm.com>
854
855         * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
856
857 2006-10-10  Brooks Moses  <bmoses@stanford.edu>
858
859         * Makefile.in: Added "pdf", "libiberty.pdf" target support.
860         * testsuite/Makefile.in: Added empty "pdf" target.
861
862 2006-09-22  Ian Lance Taylor  <ian@airs.com>
863
864         PR other/29176
865         * cp-demangle.c (d_substitution): Check for overflow when
866         computing substitution index.
867
868 2006-08-30  Corinna Vinschen  <corinna@vinschen.de>
869
870         * configure.ac: Add case for Mingw as host.
871         * configure: Regenerate.
872
873 2006-08-27  Ian Lance Taylor  <ian@airs.com>
874
875         PR driver/27622
876         * pex-common.h (struct pex_funcs): Add toclose parameter to
877         exec_child field.
878         * pex-common.c (pex_run_in_environment): Pass toclose to
879         exec_child.
880         * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
881         * pex-unix.c (pex_unix_exec_child): Likewise.
882         * pex-msdos.c (pex_msdos_exec_child): Likewise.
883         * pex-win32.c (pex_win32_exec_child): Likewise.
884
885         PR other/28797
886         * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
887         for a qualified member which is not a function.
888         * testsuite/demangle-expected: Add test case.
889
890 2006-07-27  Jan Hubicka  <jh@suse.cz>
891
892         PR rtl-optimization/28071
893         * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
894         downsize the hashtable.
895
896 2006-07-04  Peter O'Gorman  <peter@pogma.com>
897
898         * Makefile.in: chmod 644 before ranlib during install.
899
900 2006-06-02  Mark Shinwell  <shinwell@codesourcery.com>
901
902         * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
903         to environ.
904
905 2006-06-01  Mark Shinwell  <shinwell@codesourcery.com>
906
907         * pex-common.c: New function pex_run_in_environment.
908         * pex-common.h: Add environment parameter to exec_child.
909         * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
910         * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
911         (pex_djgpp_exec_child): Pass environment to child process.
912         * pex-unix.c: Add environment parameter to pex_unix_exec_child.
913         (pex_unix_exec_child): Pass environment to child process.
914         * pex-win32.c: Add environment parameter to pex_win32_exec_child.
915         New function env_compare for comparing VAR=VALUE pairs.
916         (win32_spawn): Assemble environment block and pass to CreateProcess.
917         (spawn_script): Pass environment through to win32_spawn.
918         (pex_win32_exec_child): Pass environment through to spawn_script and
919         win32_spawn.
920         * functions.texi: Regenerate.
921         * pexecute.txh: Document pex_run_in_environment.
922
923 2006-05-28  Mark Shinwell  <shinwell@codesourcery.com>
924
925         * mkstemps.c: Open temporary files in binary mode.
926
927 2006-05-12  Anton Blanchard  <anton@samba.org>
928
929         * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
930         hold "int%u_t".
931
932 2006-04-24  Julian Brown  <julian@codesourcery.com>
933
934         * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
935
936 2006-03-29  Jim Blandy  <jimb@codesourcery.com>
937
938         * pex-common.c (pex_input_file, pex_input_pipe): New functions.
939         (pex_init_common): Initialize obj->input_file.
940         (pex_run): Close any file opened by pex_input_file.
941         * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
942         * pex-common.h (struct pex_obj): New field input_file.
943         (struct pex_funcs): New function ptr fdopenw.
944         * pex-unix.c (pex_unix_fdopenw): New function.
945         (funcs): List it as our fdopenw function.
946         * pex-win32.c (pex_win32_fdopenw): New function.
947         (funcs): List it as our fdopenw function.
948         * pex-djgpp.c (funcs): Leave fdopenw null.
949         * pex-msdos (funcs): Same.
950         * functions.texi: Regenerated.
951
952 2006-04-10  Jim Blandy  <jimb@codesourcery.com>
953
954         * pex-common.c (temp_file): New function, containing guts of
955         pex-style temporary file name generation.
956         (pex_run): Use it.
957
958 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
959
960         * Makefile.in: Add install-html, install-html-am, and
961         install-html-recursive targets. Define mkdir_p and
962         NORMAL_INSTALL.
963         * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
964         * configure: Regenerate.
965         * testsuite/Makefile.in: Add install-html and html targets.
966
967 2006-03-31  Mark Mitchell  <mark@codesourcery.com>
968
969         * pex-win32.c (<errno.h>): Include.
970         (fix_argv): Remove.
971         (argv_to_cmdline): New function.
972         (std_suffixes): New variable.
973         (no_suffixes): Likewise.
974         (find_executable): New function.
975         (win32_spawn): Likewise.
976         (spawn_script): Use win32_spawn instead of _spawnv[p].
977         (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
978         (pex_win32_wait): Likewise.
979
980 2006-03-24  Jim Blandy  <jimb@codesourcery.com>
981
982         * pex-common.c (pex_run): Simplify output name handling.
983
984 2006-03-12  Jim Blandy  <jimb@red-bean.com>
985
986         * pex-common.h (struct pex_obj): Doc fixes.
987
988 2006-03-11  Jim Blandy  <jimb@red-bean.com>
989
990         * functions.texi: Regenerate.
991
992 2006-02-21  Ben Elliston  <bje@au.ibm.com>
993
994         * pexecute.c (pwait): Syntax fix for previous change.
995
996 2006-02-17  Uttam Pawar  <uttamp@us.ibm.com>
997
998         * pexecute.c (pwait): Free vector pointer.
999         * partition.c (partition_print): Free class_elements pointer.
1000
1001 2006-02-11  Roger Sayle  <roger@eyesopen.com>
1002             R. Scott Bailey  <scott.bailey@eds.com>
1003             Bill Northcott  <w.northcott@unsw.edu.au>
1004
1005         PR bootstrap/16787
1006         * floatformat.c: Include <float.h> where available.
1007         (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
1008
1009 2006-01-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1010
1011         * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
1012         supported.
1013         * configure: Regenerated.
1014
1015 2006-01-20  Carlos O'Donell  <carlos@codesourcery.com>
1016
1017         * testsuite/Makefile.in: Add test-expandargv test.
1018         * testsuite/test-expandargv.c: New test.
1019         * argv.c (expandargv): Check for errors with ferror,
1020         rather than just by looking at return value from fread.
1021
1022 2005-12-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1023
1024         * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
1025         to convert from "from".
1026         (floatformat_to_double): Likewise.
1027         (floatformat_from_double): Use explicit cast to convert from "to".
1028
1029 2005-12-10  Terry Laurenzo  <tlaurenzo@gmail.com>
1030
1031         PR java/9861
1032         * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
1033         and include return type when found.
1034         (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
1035         conditional logic to change printing order of return type.when
1036         the DMGL_RET_POSTFIX option is present.
1037         (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
1038         call.
1039         * testsuite/test-demangle.c (main): Recognize option --ret-postfix
1040         * testsuite/demangle-expected: Test cases to verify extended encoding.
1041         Updated comment to document --ret-postfix option.
1042
1043 2005-11-06  Richard Guenther  <rguenther@suse.de>
1044
1045         * splay-tree.c (rotate_left): New function.
1046         (rotate_right): Likewise.
1047         (splay_tree_splay_helper): Remove.
1048         (splay_tree_splay): Re-implement.
1049
1050 2005-10-31  Mark Kettenis  <kettenis@gnu.org>
1051
1052         * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
1053         New variables.
1054
1055 2005-10-07  Mark Mitchell  <mark@codesourcery.com>
1056
1057         * at-file.texi: Fix typo.
1058
1059 2005-10-03  Mark Mitchell  <mark@codesourcery.com>
1060
1061         * at-file.texi: New file.
1062
1063 2005-09-27  Mark Mitchell  <mark@codesourcery.com>
1064
1065         * argv.c (expandargv): Do not use xmalloc_failed.
1066
1067 2005-09-26  Mark Mitchell  <mark@codesourcery.com>
1068
1069         * argv.c (safe-ctype.h): Include it.
1070         (ISBLANK): Remove.
1071         (stdio.h): Include.
1072         (buildargv): Use ISSPACE instead of ISBLANK.
1073         (expandargv): New function.
1074         * Makefile.in: Regenerated.
1075
1076 2005-09-14  Christopher Faylor  <cgf@timesys.com>
1077
1078         * pex-win32.c: Include "windows.h".
1079         (backslashify): New function.
1080         (fix_argv): Use backslashify to convert path to windows format.
1081         Allocate one more place in new argv for potential executable from '#!'
1082         parsing.
1083         (tack_on_executable): New function.  Conditional on USE_MINGW_MSYS
1084         (openkey): Ditto.
1085         (mingw_rootify): Ditto.
1086         (msys_rootify): Ditto.
1087         (spawn_script): New function.
1088         (pex_win32_exec_child): Save translated argv in newargv.  Pass to
1089         spawn_script if spawnv* fails.
1090         (main): New function.  Conditional on MAIN.  Useful for testing.
1091
1092 2005-08-17  Mark Kettenis  <kettenis@gnu.org>
1093
1094         * floatformat.c (floatformat_always_valid): Change type of last
1095         argument to `void *'.
1096         (floatformat_i387_ext_is_valid): Likewise.
1097         (floatformat_to_double): Change type of second argument to `const
1098         void *'.
1099         (floatformat_from_double): Change type of last argument to `void
1100         *'.
1101         (floatformat_is_valid): Change type of last argument to `const
1102         void *'.
1103         (ieee_test): Remove redundant casts.
1104
1105 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
1106
1107         * strverscmp.c: Update FSF address.
1108         * testsuite/Makefile.in: Likewise.
1109         * testsuite/test-demangle.c: Likewise.
1110         * testsuite/test-pexecute.c: Likewise.
1111
1112 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1113
1114         * getopt.c: Include ansidecl.h before system headers.
1115
1116 2005-07-22  Ben Elliston  <bje@gnu.org>
1117
1118         * getopt.c: Include "ansidecl.h".
1119         (_getopt_initialize): Mark argc and argv parameters as unused.
1120
1121 2005-07-22  Ben Elliston  <bje@gnu.org>
1122
1123         * regex.c (regcomp): Change type of `i' from unsigned to int.
1124
1125 2005-07-22  Ben Elliston  <bje@gnu.org>
1126
1127         Recover patch lost in the sourceware repository:
1128         2005-07-09  Ben Elliston  <bje@au.ibm.com>
1129         * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
1130         * memmove.c: Likewise.
1131         * objalloc.c: Likewise.
1132
1133 2005-07-22  Ben Elliston  <bje@gnu.org>
1134
1135         * configure.ac: Check for a getopt(3) declaration.
1136         * configure, config.in: Regenerate.
1137
1138 2005-07-15  Ben Elliston  <bje@au.ibm.com>
1139
1140         * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
1141
1142 2005-07-12  Ben Elliston  <bje@au.ibm.com>
1143
1144         * floatformat.c (floatformat_to_double): Add a comment about a
1145         potential source of warnings when compiling this file.
1146
1147 2005-07-12  Ben Elliston  <bje@au.ibm.com>
1148
1149         * pexecute.c (pexecute): Cast string litrals to char *.
1150         * regex.c (re_comp): Cast a call to gettext() to char *.
1151
1152 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
1153
1154         * config.table: Delete file.  Move former contents into ...
1155         * configure.ac: ... here and escape any brackets for m4.
1156         * Makefile.in (config.status): Remove dependency on config.table.
1157         * configure: Regenerate.
1158
1159 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
1160
1161         * config.in: Regenerate for 6/20 change.
1162
1163 2005-07-03  Steve Ellcey  <sje@cup.hp.com>
1164
1165         PR other/13906
1166         * md5.c (md5_process_bytes): Check alignment.
1167
1168 2005-07-01  Ian Lance Taylor  <ian@airs.com>
1169
1170         PR other/22268
1171         * cp-demangle.c (d_expr_primary): Don't run off the end of the
1172         string while looking for the end of a literal value.
1173         * testsuite/demangle-expected: Add test case.
1174
1175 2005-06-30  Daniel Berlin  <dberlin@dberlin.org>
1176
1177         * hashtab.c (EMPTY_ENTRY): Moved and renamed.
1178         (DELETED_ENTRY): Ditto.
1179
1180 2005-06-20  Geoffrey Keating  <geoffk@apple.com>
1181
1182         * strverscmp.c: New.
1183         * Makefile.in (CFILES): Add strverscmp.c.
1184         (CONFIGURED_OFILES): Add strverscmp.o.
1185         (strverscmp.o): New rule.
1186         (stamp-functions): Add $(srcdir) to files in source directory.
1187         * configure.ac (funcs): Add strverscmp.
1188         (AC_CHECK_FUNCS): Add strverscmp.
1189         * configure: Regenerate.
1190         * functions.texi: Regenerate.
1191
1192 2005-05-28  Eli Zaretskii  <eliz@gnu.org>
1193
1194         * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
1195         * config.in, configure: Regenerate.
1196
1197 2005-05-25  Richard Henderson  <rth@redhat.com>
1198
1199         * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
1200         (d_make_comp, d_print_comp): Likewise.
1201         (d_special_name): Generate one.
1202         * testsuite/demangle-expected: Add a hidden alias test.
1203
1204 2005-05-24  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1205
1206         * configure.ac: Check declarations for calloc(), getenv(),
1207         malloc(), realloc() and sbrk().
1208         * config.in: Regenerate.
1209         * configure: Likewise.
1210
1211         * alloca.c (C_alloca): Change "new" to "new_storage".  Use XNEWVEC
1212         instead of xmalloc.
1213         * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
1214         * concat.c (liiberty_concat_ptr): Surround definition with an
1215         extern "C" block, if __cplusplus.
1216         (concat): Use XNEWVEC instead of xmalloc.
1217         (reconcat): Likewise.
1218         * cp-demangle.c (struct d_print_template): Rename member
1219         "template" to "template_decl".  Adjust use throughout the file.
1220         (d_print_resize): Properly cast return value of realloc().
1221         (cplus_demangle_print): Same for malloc().
1222         (d_demangle): Likewise.
1223         * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
1224         "typename" to "type_name".
1225         * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
1226         (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
1227         (demangle_template_value_parm): Likewise.
1228         (demangle_template): Likewise.
1229         (recursively_demangle): Likewise.
1230         (do_hpacc_template_literal): Likewise.
1231         (do_arg): Likewise.
1232         (remember_type): Likewise.
1233         (remember_Ktype): Likewise.
1234         (register_Btype): Likewise.
1235         (string_need): Use XRESIZEVEC instead of xrealloc().
1236         * dyn-string.c (dyn_string_init): Use XNEWVEC.
1237         (dyn_string_new): Use XNEW.
1238         (dyn_string_resize): Use XRESIZEVEC.
1239         * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
1240         * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
1241         Otherwise include <stdlib.h>.
1242         (exchange): Cast return value of malloc().
1243         * hashtab.c (htab_size): Define as both macro and non-inline
1244         function.
1245         (htab_elements): Likewise.
1246         * getpwd.c (getpwd): Use XNEWVEC.
1247         (htab_create_alloc_ex): Use C90 prototype-style.
1248         * lrealpath.c (lrealpath): Appropriately cast return value of
1249         malloc().
1250         * make-relative-prefix.c (save_string): Likewise.
1251         * make-temp-file.c (try_dir): Rename from "try".  Adjust use in
1252         the file.
1253         (choose_tmpdir): Use XNEWVEC.
1254         * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
1255         * pex-common.c (pex_init_common): Use XNEW.
1256         (pex_add_remove): Use XRESIZEVEC.
1257         (pex_run): Likewise.
1258         (pex_get_status_and_time): Likewise.
1259         * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
1260         * pex-msdos.c (pex_init): Use XNEW.
1261         (pex_msdos_exec_child): Likewise.
1262         (pex_msdos_exec_child): Use XRESIZEVEC.
1263         * pex-unix.c (pex_wait): Use XNEW.
1264         * pex-win32.c (fix_argv): Use XNEWVEC.
1265         * pexecute.c (pwait): Likewise.
1266         * setenv.c (setenv): Properly cast return value of malloc().
1267         * sigsetmask.c (sigsetmask): Rename local variables "old" and
1268         "new" to "old_sig" and "new_sig".
1269         * sort.c (main): Use XNEWVEC.
1270         * spaces.c (spaces): Cast return value of malloc().
1271         * strndup.c (strndup): Likewise.
1272         * ternary.c (ternary_insert): Use XNEW.
1273         * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
1274         with an extern "C" block if __cplusplus.
1275         * xstrdup.c (xstrdup): Cast return value of memcpy().
1276         * xstrerror.c (strerror): Enclose declaration in an extern "C"
1277         block if __cplusplus.
1278         * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
1279
1280 2005-05-16  Andreas Jaeger  <aj@suse.de>
1281
1282         * getpwd.c: Remove unneeded prototype getcwd and move getwd so
1283         that it's only declared if needed.
1284
1285         * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
1286         defined.
1287
1288 2005-05-15  Andreas Jaeger  <aj@suse.de>
1289
1290         * functions.texi: Regenerated.
1291
1292 2005-05-15  Eli Zaretskii  <eliz@gnu.org>
1293
1294         * pexecute.txh: Enclose multi-word data types in @deftypefn in
1295         braces.  Minor wording fixes.  Use --- for em-dash.  Use
1296         @enumerate in enumerated lists.
1297
1298         * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
1299         braces.
1300
1301 2005-05-11  Eli Zaretskii  <eliz@gnu.org>
1302
1303         * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
1304         sys/stat.h.
1305         (pex_init): Fix last argument to pex_init_common.
1306         (pex_djgpp_exec_child): Remove leading underscore from _open,
1307         _dup, _dup2, _close, and _spawnv/_spawnvp.  Replace `program',
1308         which is undeclared, with `executable', which was unused.  Remove
1309         unused variable `e'.  Fix casting of last arg to spawnv/spawnvp.
1310         (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
1311
1312 2005-05-11  Paul Brook  <paul@codesourcery.com>
1313
1314         * Makefile.in: Regenerate dependencies.
1315
1316 2005-05-10  Nick Clifton  <nickc@redhat.com>
1317
1318         * Update the address and phone number of the FSF organization in
1319         the GPL notices in the following files:
1320         COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
1321         choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
1322         cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
1323         fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
1324         gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
1325         lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
1326         make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
1327         obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
1328         pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
1329         physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
1330         sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
1331         strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
1332         vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
1333
1334 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
1335
1336         * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
1337         * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
1338         * configure: Regenerate.
1339
1340 2005-05-06  Kelley Cook  <kcook@gcc.gnu.org>
1341
1342         * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1343         Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1344         * aclocal.m4: Don't include accross.m4.
1345         * configure, config.in: Regenerate.
1346
1347 2005-04-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1348
1349         * fopen_unlocked.c (unlock_std_streams): New.
1350
1351         * functions.texi: Regenerate.
1352
1353 2005-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1354
1355         * fopen_unlocked.c (unlock_stream): New.
1356         Consolidate unlocking code into a helper function.
1357
1358         * functions.texi: Regenerate.
1359
1360 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1361
1362         * asprintf.c: Include config.h.
1363         * basename.c: Likewise.
1364         * fdmatch.c: Likewise.
1365         * hex.c: Likewise.
1366         * lbasename.c: Likewise.
1367         * spaces.c: Likewise.
1368         * xatexit.c:Likewise.
1369         * configure.ac:  Do check declarations for basename, ffs, asprintf
1370         and vasprintf for real.
1371         * configure: Regenerate.
1372
1373 2005-04-13  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1374
1375         * argv.c (dupargv): Allocate space of argv[argc], not
1376         sizeof(char *) of that amount.  Cast result to char *.
1377
1378 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1379
1380         * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
1381         Replace not with negate.
1382
1383 2005-04-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1384
1385         * configure.ac: Check declarations for basename, ffs, asprintf,
1386         vasprintf.
1387         * configure: Regenerate.
1388         * config.in: Likewise.
1389
1390 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1391
1392         * Makefile.in (CFILES): Add fopen_unlocked.c.
1393         (REQUIRED_OFILES): Add ./fopen_unlocked.o.
1394         Regenerate dependencies.
1395
1396         * configure.ac: Check for stdio_ext.h and __fsetlocking.
1397
1398         * fopen_unlocked.c: New file.
1399
1400         * functions.texi, configure, config.in: Regenerate.
1401
1402 2005-04-04  Ian Lance Taylor  <ian@airs.com>
1403
1404         * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
1405         declaration before statement.
1406
1407 2005-04-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1408
1409         * bcmp.c: Fix warnings and implement using memcmp.
1410         * bcopy.c: Fix warnings.
1411         * bzero.c: Fix warnings and implement using memset.
1412
1413         * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
1414         -Wstrict-prototypes.
1415         * configure, config.in: Regenerate.
1416
1417         * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
1418         warnings and reconcile interfaces with relevant standards.
1419
1420 2005-04-02  Ian Lance Taylor  <ian@airs.com>
1421
1422         * cp-demangle.c: Update copyright.
1423
1424 2005-03-31  Joseph S. Myers  <joseph@codesourcery.com>
1425
1426         * gettimeofday.c: Add "Supplemental" to @deftypefn.
1427         * functions.texi: Regenerate.
1428
1429 2005-03-28  Ian Lance Taylor  <ian@airs.com>
1430
1431         * pex-common.c: New file.
1432         * pex-one.c: New file.
1433         * pexecute.c: New file.
1434         * pex-common.h: Include <stdio.h>.
1435         (struct pex_obj): Define.
1436         (struct pex_funcs): Define.
1437         (pex_init_common): Declare.
1438         * pex-unix.c: Rewrite.
1439         * pex-win32.c: Rewrite.
1440         * pex-djgpp.c: Rewrite.
1441         * pex-msdos.c: Rewrite.
1442         * testsuite/text-pexecute.c: New file.
1443         * pexecute.txh: Rewrite.
1444         * configure.ac: Check for wait3 and wait4.  Set CHECK to
1445         really-check rather than check-cplus-dem.
1446         * functions.texi: Rebuild.
1447         * Makefile.in: Rebuild dependencies.
1448         (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
1449         (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
1450         * testsuite/Makefile.in (really-check): New target.
1451         (check-pexecute, test-pexecute): New targets.
1452         * configure: Rebuild.
1453
1454 2005-03-28  Mark Kettenis  <kettenis@gnu.org>
1455
1456         * unlink-if-ordinary.c: Include <sys/types.h>.
1457
1458 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1459
1460         Convert libiberty to use ISO C prototype style 7/n.
1461         * regex.c (PARAMS): Remove definition.
1462         (PREFIX): Unconditionaly define using ISO C ## operator.
1463         (init_syntax_once, extract_number, extract_number_and_incr,
1464         print_fastmap, print_partial_compiled_pattern,
1465         print_compiled_pattern, print_double_string, printchar,
1466         convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
1467         regex_compile, store_op1, store_op2, insert_op1, insert_op2,
1468         at_begline_loc_p, at_endline_p, group_in_compile_stack,
1469         insert_space, wcs_compile_range, byte_compile_range,
1470         truncate_wchar, re_compile_fastmap, re_compile_fastmap,
1471         re_set_registers, re_search, re_search_2, re_search_3, re_match,
1472         re_match_2, count_mbs_length, wcs_re_match_2_internal,
1473         byte_re_match_2_internal, group_match_null_string_p,
1474         alt_match_null_string_p, common_op_match_null_string_p,
1475         bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
1476         regexec, regerror, regfree): Use ISO C prototype style.
1477         * partition.c: (elem_compare): Likewise.
1478         * cp-demangle.c (print_usage): Likewise.
1479
1480 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1481
1482         Convert libiberty to use ISO C prototype style 5/n.
1483         * random.c (srandom, initstate, setstate, random): Use ISO C
1484         prototypes.
1485         * putenv.c (putenv): Likewise.
1486         * physmem.c (physmem_available, physmem_total, main): Likewise.
1487         * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
1488         * pex-unix.c (pexecute, pwait): Likewise.
1489         * pex-msdos.c (pexecute, pwait): Likewise.
1490         * pex-djgpp.c (pexecute, pwait): Likewise.
1491         * partition.c (partition_new, partition_delete, partition_union)
1492         (elem_compare, partition_print): Likewise.
1493         * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
1494         _obstack_allocated_p, _obstack_free, obstack_free,
1495         _obstack_memory_used, print_and_abort, obstack_next_free,
1496         obstack_object_size, obstack_base): Likewise.  Remove codes
1497         predicated on !defined(__STDC__).
1498         * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1499         objalloc_free_block): Use ISO C prototypes.
1500         * mkstemps.c (mkstemps): Likewise.
1501         * memset.c (memset): Likewise.
1502         * mempcpy.c (mempcpy): Likewise.
1503         * rename.c (rename): Likewise.
1504         * rindex.c (rindex): Likewise.
1505         * setenv.c (setenv, unsetenv): Likewise.
1506         * sigsetmask.c (sigsetmask): Likewise.
1507         * snprintf.c (snprintf): Likewise.
1508         * sort.c (sort_pointers, xmalloc): Likewise.
1509         * spaces.c (spaces): Likewise.
1510         * splay-tree.c (splay_tree_delete_helper,
1511         splay_tree_splay_helper, splay_tree_splay,
1512         splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
1513         splay_tree_new, splay_tree_xmalloc_allocate,
1514         splay_tree_new_with_allocator, splay_tree_delete,
1515         splay_tree_insert, splay_tree_remove, splay_tree_lookup,
1516         splay_tree_max, splay_tree_min, splay_tree_predecessor,
1517         splay_tree_successor, splay_tree_foreach,
1518         splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
1519         * stpcpy.c (stpcpy): Likewise.
1520         * stpncpy.c (stpncpy): Likewise.
1521         * strcasecmp.c (strcasecmp): Likewise.
1522         * strchr.c (strchr): Likewise.
1523         * strdup.c (strdup): Likewise.
1524
1525 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1526
1527         Convert libiberty to use ISO C prototype style 6/n.
1528         * strerror.c (init_error_tables, errno_max, strerror, strerrno,
1529         strtoerrno, main): Use ISO C prototype style.
1530         * strncasecmp.c (strncasecmp): Likewise.
1531         * strncmp.c (strncmp): Likewise.
1532         * strndup.c (strndup): Likewise.
1533         * strrchr.c (strrchr): Likewise.
1534         * strsignal.c (init_signal_tables, signo_max, strsignal,
1535         strsigno, strtosigno, psignal, main): Likewise.
1536         * strstr.c (strstr): Likewise.
1537         * strtod.c (strtod, atof): Likewise.
1538         * strtol.c (strtol): Likewise.
1539         * strtoul.c (strtoul): Likewise.
1540         * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
1541         ternary_recursivesearch): Likewise.
1542         * tmpnam.c (tmpnam): Likewise.
1543         * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
1544         * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
1545         * vfork.c (vfork): Likewise.
1546         * vfprintf.c (vfprintf): Likewise.
1547         * vprintf.c (vprintf): Likewise.
1548         * vsnprintf.c (vsnprintf, checkit, main): Likewise.
1549         * vsprintf.c (vsprintf): Likewise.
1550         * waitpid.c (waitpid): Likewise.
1551         * xatexit.c (xatexit, xatexit_cleanup): Likewise.
1552         * xexit.c (xexit): Likewise.
1553         * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
1554         xcalloc, xrealloc): Likewise.
1555         * xmemdup.c (xmemdup): Likewise.
1556         * xstrdup.c (xstrdup): Likewise.
1557         * xstrerror.c (xstrerror): Likewise.
1558         * xstrndup.c (xstrndup): Likewise.
1559
1560 2005-03-27  Andreas Jaeger  <aj@suse.de>
1561
1562         * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
1563         flags.
1564         * configure: Regenerated.
1565
1566 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1567
1568         * getopt1.c (getopt_long_only): Fix thinko.
1569
1570 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1571
1572         Convert libiberty to use ISO C prototype style 4/n.
1573         * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
1574         htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
1575         htab_create_alloc, htab_set_functions_ex, htab_create,
1576         htab_try_create, htab_delete, htab_empty,
1577         find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
1578         htab_find, htab_find_slot_with_hash, htab_find_slot,
1579         htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
1580         htab_traverse_noresize, htab_traverse, htab_collisions,
1581         htab_hash_string, iterative_hash): Use ISO C prototype.
1582         * hex.c (hex_init): Likewise.
1583         * index.c (index): Likewise.
1584         * insque.c (insque, remque): Likewise.
1585         * lbasename.c (lbasename): Likewise.
1586         * lrealpath.c (lrealpath): Likewise.
1587         * make-relative-prefix.c (save_string, split_directories,
1588         free_split_directories, make_relative_prefix): Likewise.
1589         * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
1590         * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
1591         md5_buffer, md5_process_bytes, md5_process_block): Likewise.
1592         * memchr.c (memchr): Likewise.
1593         * memcpy.c (memcpy): Likewise.
1594         * memmove.c (memmove): Likewise.
1595         * gettimeofday.c (gettimeofday): Likewise.
1596         * getruntime.c (get_run_time): Likewise.
1597         * getpwd.c (getpwd, getpwd): Likewise.
1598         * getpagesize.c (getpagesize): Likewise.
1599         * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1600         * getopt.c (my_index, exchange, _getopt_initialize,
1601         _getopt_internal, getopt, main): Likewise.
1602         * getcwd.c (getcwd): Likewise.
1603         * fnmatch.c (fnmatch): Likewise.
1604         * floatformat.c (floatformat_always_valid,
1605         floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
1606         put_field, floatformat_from_double, floatformat_is_valid,
1607         ieee_test, main): Likewise.
1608         * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
1609         fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
1610         fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
1611         fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
1612         fibheap_delete, fibheap_empty, fibheap_extr_min_node,
1613         fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
1614         fibheap_link, fibheap_cut, fibheap_cascading_cut,
1615         fibnode_insert_after, fibnode_remove): Likewise.
1616         * ffs.c (ffs): Likewise.
1617         * fdmatch.c (fdmatch): Likewise.
1618         * dyn-string.c (dyn_string_init, dyn_string_new,
1619         dyn_string_delete, dyn_string_release, dyn_string_resize,
1620         dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
1621         dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
1622         dyn_string_insert_cstr, dyn_string_insert_char,
1623         dyn_string_append, dyn_string_append_cstr,
1624         dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1625         Likewise.
1626
1627 2005-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1628
1629         Convert libiberty to use ISO C prototype style 3/n.
1630         * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
1631         consume_count_with_underscores, code_for_qualifier,
1632         qualifier_string, demangle_qualifier, cplus_demangle_opname,
1633         cplus_mangle_opname, cplus_demangle_set_style,
1634         cplus_demangle_name_to_style, cplus_demangle, grow_vect,
1635         ada_demangle, internal_cplus_demangle, squangle_mop_up,
1636         work_stuff_copy_to_from, delete_non_B_K_work_stuff,
1637         delete_work_stuff, mop_up, demangle_signature,
1638         demangle_method_args, demangle_template_template_parm,
1639         demangle_expression, demangle_integral_value,
1640         demangle_real_value, demangle_template_value_parm,
1641         demangle_template, arm_pt, demangle_arm_hp_template,
1642         demangle_class_name, demangle_class, iterate_demangle_function,
1643         demangle_prefix, gnu_special, recursively_demangle, arm_special,
1644         demangle_qualified, get_count, do_type, demangle_fund_type,
1645         do_hpacc_template_const_value, do_hpacc_template_literal,
1646         snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
1647         register_Btype, remember_Btype, forget_B_and_K_types,
1648         forget_types, demangle_args, demangle_nested_args,
1649         demangle_function_name, string_need, string_delete, string_init,
1650         string_clear, string_empty, string_append, string_appends,
1651         string_appendn, string_prepend, string_prepends, string_prependn,
1652         string_append_template_idx): Use ISO C prootype style.
1653         * cp-demint.c (cplus_demangle_fill_component,
1654         cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
1655         cplus_demangle_v3_components): Likewise.
1656
1657 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1658
1659         Convert libiberty to use ISO C prototype style 2/n.
1660         * cp-demangle.h: Remove uses of PARAMS.
1661         * cp-demangle.c: Likewise.
1662         (d_dump, cplus_demangle_fill_name,
1663         cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
1664         cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
1665         d_make_builtin_type, d_make_operator, d_make_extended_operator,
1666         d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
1667         cplus_demangle_mangled_name, has_return_type,
1668         is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
1669         d_prefix, d_unqualified_name, d_source_name, d_number,
1670         d_identifier, d_operator_name, d_special_name, d_call_offset,
1671         d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
1672         d_function_type, d_bare_function_type, d_class_enum_type,
1673         d_array_type, d_pointer_to_member_type, d_template_param,
1674         d_template_args, d_template_arg, d_expression, d_expr_primary,
1675         d_local_name, d_discriminator, d_add_substitution,
1676         d_substitution, d_print_resize, d_print_append_char,
1677         d_print_append_buffer, d_print_error, cplus_demangle_print,
1678         d_print_comp, d_print_java_identifier, d_print_mod_list,
1679         d_print_mod, d_print_function_type, d_print_array_type,
1680         d_print_expr_op, d_print_cast, cplus_demangle_init_info,
1681         d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
1682         is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1683         print_usage, main):
1684
1685 2005-03-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1686
1687         Convert libiberty to ISO C prototype style 1/n.
1688         * _doprnt.c: Remove conditional #include <varargs.h> on
1689         ANSI_PROTOTYPES as the latter is always assumed.
1690         (_doprnt, checkit, main): Use ISO C prototype.
1691         * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
1692         * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1693         (dupargv, freeargv, buildargv, main): Use ISO C prototype.
1694         * atexit.c (atexit): Likewise
1695         * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1696         (asprintf): Use ISO C prototype.
1697         * basename.c (basename): Likewise
1698         * bcmp.c (bcmp): Likewise.
1699         * bcopy.c (bcopy): Likewise.
1700         * bzero.c (bzero): Likewise.
1701         * bsearch.c (bsearch): Likewise.  Improve const-correctness.
1702         * choose-temp.c (choose_temp_base): Likewise.
1703         * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
1704         (calloc): Use ISO C prototype.
1705         * clock.c (clock): Likewise.
1706         * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1707         (vconcat_length, vconcat_copy, concat_length, concat_copy,
1708         concat_copy2, concat, reconcat, main): Use ISO C prototype.
1709         * copysign.c (copysign): Likewise.
1710
1711 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1712
1713         * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
1714         (REQUIRED_OFILES): Add xstrndup.o.
1715         (CONFIGURED_OFILES): Add strndup.o.
1716         Regenerate dependencies.
1717
1718         * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
1719
1720         * strndup.c, xstrndup.c: New.
1721
1722         * config.in, configure, functions.texi: Regenerate.
1723
1724 2005-03-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1725
1726         * xmemdup.c, xstrdup.c: Expose the tail call.
1727
1728 2005-03-09  Mark Mitchell  <mark@codesourcery.com>
1729
1730         * configure.ac (funcs): Add gettimeofday.
1731         * configure: Regenerated.
1732         * gettimeofday.c: New file.
1733         * Makefile.in (CFILES): Add gettimeofday.
1734         (CONFIGURED_OFILES): Add gettimeofday.o.
1735         (./gettimeofday.o): New rule.
1736
1737 2005-03-09  Ian Lance Taylor  <ian@airs.com>
1738
1739         * pex-os2.c: Remove.
1740         * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
1741         * Makefile.in (CFILES): Remove pex-os2.c.
1742         (CONFIGURED_OFILES): Remove pex-os2.o.
1743         (pex-os2.o): Remove target.
1744         * configure: Rebuild.
1745
1746 2005-03-07  Ian Lance Taylor  <ian@airs.com>
1747
1748         * mpw-config.in: Remove.
1749         * mpw-make.sed: Remove.
1750         * mpw.c: Remove.
1751         * Makefile.in (CFILES): Remove pex-mpw.c.
1752         (CONFIGURED_OFILES): Remove pex-mpw.o.
1753         (mpw.o, pex-mpw.o): Remove targets.
1754         * maint-tool (undoc): Remove reference to mpw.c.
1755
1756 2005-03-06  DJ Delorie  <dj@redhat.com>
1757
1758         * configure.ac (target_header_dir): vfork is a stub under djgpp.
1759         * configure: Regenerated.
1760
1761 2005-03-01  Jan Beulich  <jbeulich@novell.com>
1762
1763         * Makefile.in (CFILES): Add unlink-if-ordinary.c
1764         (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1765         Add dependencies and rule for unlink-if-ordinary.o.
1766         * unlink-if-ordinary.c: New.
1767
1768 2005-03-01  Ben Elliston  <bje@au.ibm.com>
1769
1770         * hashtab.c (htab_find_slot_with_hash): Make function
1771         documentation clearer.
1772
1773 2005-02-13  Jason Merrill  <jason@redhat.com>
1774
1775         * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1776         arguments.
1777
1778 2005-01-11  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1779
1780         * hex.c (hex_value): Group 'unsigned int' together to get correct
1781         markup.
1782         * functions.texi: Regenerated.
1783
1784 2004-12-27  H.J. Lu  <hongjiu.lu@intel.com>
1785
1786         * Makefile.in: Undo to 2004-12-17.
1787         * aclocal.m4: Likewise.
1788         * config.table: Likewise.
1789         * configure.ac: Likewise.
1790         * maint-tool: Likewise.
1791         * configure: Likewise.
1792
1793 2004-12-19  H.J. Lu  <hongjiu.lu@intel.com>
1794
1795         PR bootstrap/19072
1796         * Makefile.in (enable_shared): New substitute.
1797         (LTTARGETLIB): New.
1798         (PREFIXTARGETLIB): New.
1799         (LTTESTLIB): New.
1800         (PREFIXTESTLIB): New.
1801         (CCLD): New.
1802         (LINK): New.
1803         ($(TARGETLIB)): Use $(LINK) to create libraries and create
1804         targets by hand.
1805         ($(TESTLIB)): Likewise.
1806         (mostlyclean): Don't remove .libs. Remove the libtool object
1807         directory.
1808
1809         * config.table (enable_shared): Removed.
1810
1811         * configure.ac (enable_static): Set to yes.
1812         (AC_PROG_LIBTOOL): Removed.
1813         (AM_DISABLE_SHARED): Uncommented.
1814         (AM_PROG_LIBTOOL): Likewise.
1815         (LIBOBJS): Add `./' to avoid VPATH.
1816         (LTLIBOBJS): Likewise.
1817         (enable_shared): Substitute.
1818         * configure: Regenerated.
1819
1820 2004-12-18  H.J. Lu  <hongjiu.lu@intel.com>
1821
1822         * Makefile.in (top_builddir): Set to `.'.
1823         (OUTPUT_OPTION): Removed.
1824         (LIBTOOL): New.
1825         (LTLIBOBJS): New.
1826         (EXTRA_LTOFILES): New.
1827         (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1828         (all): Remove stamp-picdir.
1829         (LTCOMPILE): New.
1830         (.c.lo): New rule.
1831         (REQUIRED_LTOFILES): New.
1832         (CONFIGURED_LTOFILES): New.
1833         ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1834         $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1835         (stamp-picdir): Completely removed.
1836         (maint-missing): Pass $(REQUIRED_LTOFILES)
1837         $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1838         $(CONFIGURED_OFILES)
1839         (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1840         $(CONFIGURED_LTOFILES).
1841         (mostlyclean): Also remove *.lo .libs.
1842         Run "make maint-deps".
1843
1844         * aclocal.m4: Include ../libtool.m4.
1845
1846         * config.table: Don't check --enable-shared.
1847
1848         * configure.ac (AC_PROG_LIBTOOL): Add.
1849         (AC_PROG_CC_C_O): Removed.
1850         (OUTPUT_OPTION): Removed.
1851         (NO_MINUS_C_MINUS_O): Removed.
1852         (ltpexecute): New substitute.
1853         (LIBOBJS): Cleanup.
1854         * configure: Regenerated.
1855
1856         * maint-tool: Updated for .lo/libtool.
1857
1858 2004-12-11  Ben Elliston  <bje@au.ibm.com>
1859
1860         * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1861         * configure: Regenerate.
1862         * config.in: Likewise.
1863
1864 2004-12-07  DJ Delorie  <dj@redhat.com>
1865
1866         * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1867         that recursion (and thus large stack space) is not needed.
1868
1869 2004-11-29  Matt Kraai  <kraai@alumni.cmu.edu>
1870
1871         * pex-unix.c: Fix the spelling of longjmp.
1872
1873 2004-11-23  Ian Lance Taylor  <ian@wasabisystems.com>
1874
1875         PR other/18623
1876         * cp-demangle.c (d_call_offset): Remove useless local variables
1877         offset and virtual_offset.
1878         * cplus-dem.c (ada_demangle): Remove useless local variable
1879         at_start_name.
1880         (demangle_template): Remove useless local variable start.
1881
1882 2004-11-19  Roger Sayle  <roger@eyesopen.com>
1883
1884         * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1885         "ansidecl.h" to avoid redeclaration errors with native compilers.
1886         * regex.c: Protect config.h from multiple inclusion.
1887
1888 2004-11-12  Mike Stump  <mrs@apple.com>
1889
1890         * Makefile.in (libiberty.html): Fix html generation.
1891
1892 2004-09-08  Adam Nemet  <anemet@lnxw.com>
1893
1894         * vasprintf.c: Accept __va_copy in addition to va_copy.
1895
1896 2004-09-03  Paolo Bonzini  <bonzini@gnu.org>
1897
1898         * configure: Regenerate.
1899
1900 2004-09-02  Paolo Bonzini  <bonzini@gnu.org>
1901
1902         * configure.ac: Do not enable multilibs for build-side libiberty.
1903
1904 2004-06-29  Danny Smith  <dannysmith@users.sourceforge.net>
1905
1906         * lrealpath.c (lrealpath): Add _WIN32 support.
1907
1908 2004-06-28  Zack Weinberg  <zack@codesourcery.com>
1909
1910         * cp-demangle.h: Declare cplus_demangle_operators,
1911         cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1912         cplus_demangle_type as static if IN_GLIBCPP_V3.
1913
1914 2004-06-28  Ian Lance Taylor  <ian@wasabisystems.com>
1915
1916         PR other/16240
1917         * cp-demangle.c (d_expr_primary): Check for a failure return from
1918         cplus_demangle_type.
1919         * testsuite/demangle-expected: Add test case.
1920
1921 2004-05-31  Danny Smith  <dannysmith@users.sourceforge.net>
1922
1923         * pex-win32.c (fix_argv): Expand comment.
1924
1925 2004-05-25  Daniel Jacobowitz  <drow@false.org>
1926
1927         * Makefile.in: Add .NOEXPORT.
1928
1929 2004-04-29  Douglas B Rupp  <rupp@gnat.com>
1930
1931         * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1932         copyright.
1933
1934 2004-04-26  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>
1935
1936         * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1937         * configure: Regenerate.
1938
1939 2004-04-22  Richard Henderson  <rth@redhat.com>
1940
1941         * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1942         (CHAR_BIT): Provide default.
1943         (struct prime_ent, prime_tab): New.
1944         (higher_prime_index): Rename from higher_prime_number, return index.
1945         (htab_mod_1): New.
1946         (htab_mod, htab_mod_m2): Use it.
1947         (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1948         (htab_expand): Likewise.
1949         * configure.ac: Check for stdint.h.
1950         (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1951         * config.in, configure: Rebuild.
1952
1953 2004-04-13  Ian Lance Taylor  <ian@wasabisystems.com>
1954
1955         * strerror.c: Include config.h, and redefine sys_nerr and
1956         sys_errlist, before including ansidecl.h and libiberty.h.
1957
1958 2004-04-13  Jeff Law  <law@redhat.com>
1959
1960         * hashtab.c (htab_remove_elt_with_hash): New function.
1961         (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1962
1963 2004-03-31  Richard Henderson  <rth@redhat.com>
1964
1965         * hashtab.c (htab_size): Move to top of file; mark inline.
1966         (htab_elements): Likewise.
1967         (htab_mod, htab_mod_m2): New.
1968         (htab_delete): Refactor htab->size and htab->entries.
1969         (htab_empty): Likewise.
1970         (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1971         (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1972         (htab_clear_slot): Use htab_size, htab_elements.
1973         (htab_traverse_noresize, htab_traverse): Likewise.
1974
1975 2004-03-17  Ian Lance Taylor  <ian@wasabisystems.com>
1976
1977         * pex-unix.c (pexecute): Use vfork instead of fork, with
1978         appropriate changes to make this safe.
1979         * pex-common.h (STDERR_FILE_NO): Define.
1980
1981         * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1982         an 80 column screen.  Run maint-deps.
1983
1984 2004-03-09  Kelley Cook  <kcook@gcc.gnu.org>
1985
1986         * configure.ac: Bump version to 2.59.  Apply suggested autoupdates.
1987         * acconfig.h: Delete redundant file.
1988         * config.in: Regenerate.
1989         * configure: Regenerate.
1990
1991 2004-03-09  Hans-Peter Nilsson  <hp@axis.com>
1992
1993         * configure: Regenerate for config/accross.m4 correction.
1994
1995 2004-03-07  Andreas Jaeger  <aj@suse.de>
1996
1997         * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1998         prototypes.
1999         (main): Initialize style.
2000
2001 2004-02-24  Ian Lance Taylor  <ian@wasabisystems.com>
2002
2003         * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
2004         D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
2005         D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
2006         * cp-demangle.c (cplus_demangle_builtin_types): Change char and
2007         short types to D_PRINT_DEFAULT.  Change other integer types to use
2008         new D_PRINT_* values where appropriate.  Change float types to
2009         D_PRINT_FLOAT.
2010         (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
2011         values.
2012         * testsuite/demangle-expected: Adjust two test cases.
2013
2014         * cp-demangle.c (d_print_function_type): Print a space before the
2015         parenthesis around the function type in more cases.
2016         * testsuite/demangle-expected: Adjust one test case.
2017
2018         * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
2019         parentheses around a cast.
2020         * testsuite/demangle-expected: Adjust two test cases to match new
2021         output.
2022
2023         * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
2024
2025         * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
2026         push more than one of the same CV-qualifier on the top of the
2027         stack.
2028         (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
2029         move the CV-qualifiers to apply to the element type instead.
2030         (d_print_array_type): When checking the modifiers, keep looking
2031         past ones which have been printed already.
2032         * testsuite/demangle-expected: Add three test cases.
2033
2034 2004-02-23  Ian Lance Taylor  <ian@wasabisystems.com>
2035
2036         * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
2037         empty string correctly.
2038
2039         * cp-demangle.c (__cxa_demangle): It is not an error if status is
2040         not NULL.  It is an error if the mangled name is the same as a
2041         built-in type name.
2042         (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
2043         than cplus_demangle_v3.
2044
2045         * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
2046         the associated #define of RETURN_ON_ALLOCATION_FAILURE.
2047
2048 2004-02-16  Matt Kraai  <kraai@alumni.cmu.edu>
2049
2050         * regex.c: Include <ansidecl.h>.
2051         (regcomp): Cast i to int.
2052         (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
2053
2054 2004-01-25  Ian Lance Taylor  <ian@wasabisystems.com>
2055
2056         * configure.ac: Add m4_pattern_allow(LIBOBJS).
2057         * configure: Regenerate.
2058
2059 2004-01-22  DJ Delorie  <dj@redhat.com>
2060
2061         * Makefile.in: Convert to ./ throughout.  Rebuild dependencies
2062         with explicit build rules.
2063         (VPATH): Remove.
2064         (.c.o): Poison.
2065         * configure.ac (pexecute, LIBOBJS): Add ./ .
2066         * maint-tool: Build dependencies with explicit rules.
2067
2068 2004-01-15  Kazu Hirata  <kazu@cs.umass.edu>
2069
2070         * strdup.c (strdup): Constify the argument.
2071
2072 2004-01-14  Loren J. Rittle  <ljrittle@acm.org>
2073
2074         * Makefile.in (distclean): Remove config.cache.
2075
2076 2004-01-13  Daniel Jacobowitz  <drow@mvista.com>
2077
2078         * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
2079         takes two parameters.
2080         * cp-demint.c (cplus_demangle_fill_component): Likewise.
2081
2082 2004-01-12  Ian Lance Taylor  <ian@wasabisystems.com>
2083
2084         * cp-demangle.c: Include "cp-demangle.h".  If IN_GLIBCPP_V3 is
2085         defined, rename some functions which are to become static via
2086         #define.
2087         (CP_STATIC_IF_GLIBCPP_V3): Define.
2088         (struct d_operator_info): Move definition to cp-demangle.h, and
2089         rename to demangle_operator_info.  Change all uses.
2090         (enum d_builtin_type_print): Move definition to cp-demangle.h.
2091         (struct d_builtin_type_info): Move definition to cp-demangle.h,
2092         and rename to demangle_builtin_type_info.  Change all uses.
2093         (enum d_comp_type): Move definition to include/demangle.h, and
2094         rename to demangle_component_type, and change all enums to start
2095         with DEMANGLE_COMPONENT_ instead of D_.  Change all uses.
2096         (struct d_comp): Move definition to include/demangle.h, and rename
2097         to demangle_component.  Change all uses.
2098         (struct d_info): Move definition to cp-demangle.h.
2099         (cplus_demangle_fill_name): New function.
2100         (cplus_demangle_fill_extended_operator): New function.
2101         (cplus_demangle_fill_ctor): New function.
2102         (cplus_demangle_fill_dtor): New function.
2103         (d_make_empty): Remove type parameter.  Change all callers.
2104         (d_make_name): Use cplus_demangle_fill_name.
2105         (d_make_extended_operator): Use
2106         cplus_demangle_fill_extended_operator.
2107         (d_make_ctor): Use cplus_demangle_fill_ctor.
2108         (d_make_dtor): Use cplus_demangle_fill_dtor.
2109         (cplus_demangle_mangled_name): Rename from d_mangled_name.  Make
2110         non-static by default.  Change all callers.
2111         (cplus_demangle_operators): Rename from d_operators.  Change all
2112         uses.  Make non-static by default.  Add sentinel at end of array.
2113         (d_operator_name): Adjust initialization of high for new sentinel
2114         in cplus_demangle_operators.
2115         (cplus_demangle_builtin_types): Rename from d_builtin_types.
2116         Change all uses.  Make non-static by default.  Change initializer
2117         to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
2118         (cplus_demangle_type): Rename from d_type.  Make non-static by
2119         default.  Change all callers.
2120         (cplus_demangle_init_info): Rename from d_init_info.  Make
2121         non-static by default.  Change all callers.
2122         * cp-demangle.h: New file.
2123         * cp-demint.c: New file.
2124         * Makefile.in: Rebuild dependencies.
2125         (CFILES): Add cp-demint.c.
2126         (REQUIRED_OFILES): Add cp-demint.o.
2127
2128 2004-01-09  Kelley Cook  <kcook@gcc.gnu.org>
2129
2130         * configure.in:  Rename file to ...
2131         * configure.ac:  ... this.
2132         * Makefile.in: Update a comment for above change.
2133         * README: Likewise.
2134         * config.in: Regenerate.
2135
2136 2004-01-02  Ian Lance Taylor  <ian@wasabisystems.com>
2137
2138         * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
2139         CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
2140         * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
2141         demangling template parameters.
2142         * testsuite/test-demangle.c (fail): New static function.
2143         (main): Support new options in input file: --no-params,
2144         --is-v3-ctor, and --is-v3-dtor.
2145         * testsuite/demangle-expected: Add --no-params to most tests, and
2146         add the correct result when parameters are not demangled.  Add
2147         some simple tests for V3 constructor/destructor recognition.
2148
2149 2003-12-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2150
2151         * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
2152
2153 2003-12-22  Daniel Jacobowitz  <drow@mvista.com>
2154
2155         PR debug/13272
2156         * Makefile.in (lbasename.o): Depend on filenames.h.
2157         * lbasename.c: Include "filenames.h" instead of defining
2158         its macros locally.
2159
2160 2003-12-22  Ian Lance Taylor  <ian@wasabisystems.com>
2161
2162         * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
2163         dynamic arrays.
2164         (struct d_operator_info): Add len field.
2165         (struct d_builtin_type_info): Add len and java_len fields.
2166         (struct d_standard_sub_info): Add simple_len, full_len, and
2167         set_last_name_len fields.
2168         (struct d_comp): Add len field to s_string.
2169         (struct d_info): Add send, did_subs, and expansion fields.
2170         (d_append_string_constant): Define.
2171         (d_append_string): Remove.  Change all users to use
2172         d_append_string_constant or d_append_buffer instead.
2173         (d_make_sub): Add len parameter.  Change all callers.
2174         (d_name): Increase expansion when substituting std::.
2175         (d_unqualified_name): Increase expansion for an operator.
2176         (d_number): Don't use multiplication for negative numbers.
2177         (d_identifier): Make sure there are enough characters in the
2178         string for the specified length.  Adjust expansion for an
2179         anonymous namespace.
2180         (d_operators): Initialize len field.
2181         (d_special_name, d_ctor_dtor_name): Increase expansion.
2182         (d_builtin_types): Initialize len and java_len fields.
2183         (d_type): Increase expansion for a builtin type.
2184         (d_cv_qualifiers): Increase expansion for each qualifier.
2185         (d_bare_function_type): Decrease expansion when removing single
2186         void parameter.
2187         (d_template_param): Increment did_subs.
2188         (d_expression): Increase expansion for an operator.
2189         (d_expr_primary): Decrease expansion for a type we will print
2190         specially.
2191         (standard_subs): Initialize new fields.
2192         (d_substitution): Increment did_subs when doing a normal
2193         substitution.  Increase expansion for a special substitution.
2194         (d_print): Add estimate parameter.  Change all callers.
2195         (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
2196         (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
2197         (d_print_java_identifier): Rename from d_print_identifier.  Handle
2198         only Java case.  Change caller.
2199         (d_init_info): Change return type to void.  Change all callers.
2200         Initialize send, did_subs, and expansion fields.  Do not
2201         initialize comps and subs fields.
2202         (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
2203         arrays on stack.  Make an estimate of the length of the demangled
2204         name.  Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
2205         (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
2206         subs arrays on stack.
2207
2208 2003-12-20  Ian Lance Taylor  <ian@wasabisystems.com>
2209
2210         * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
2211         after the identifier.
2212         * testsuite/demangle-expected: Add test case.
2213
2214 2003-12-19  Ian Lance Taylor  <ian@wasabisystems.com>
2215
2216         Fix for PR c++/13447:
2217         * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
2218         (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
2219         (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
2220         D_COMP_QUAL_NAME.
2221         (is_ctor_or_dtor): Likewise.
2222         (d_local_name): Use D_COMP_LOCAL_NAME rather than
2223         D_COMP_QUAL_NAME.
2224         (d_print_comp) [D_COMP_LOCAL_NAME]: New.
2225         (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
2226         D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
2227         (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
2228         * testsuite/demangle-expected: Add two test cases.
2229
2230         * cp-demangle.c (d_print_function_type): Clear the global modifier
2231         list when printing the modifiers, not just when printing the
2232         function parameters.
2233         * testsuite/demangle-expected: Add two test cases.
2234
2235 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
2236
2237         * cp-demangle.c (d_print_function_type): Print the function
2238         parameters with no modifiers.
2239         * testsuite/demangle-expected: Add test case.
2240
2241         * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
2242         expect that we've read the entire string.
2243         (is_ctor_or_dtor): Don't expect that we've read the entire
2244         string--reverse patch of 2003-11-29.
2245
2246 2003-12-15  Brendan Kehoe  <brendan@zen.org>
2247
2248         * libiberty/Makefile.in (floatformat.o): Add dependency on
2249         config.h to accompany change of 2003-12-03.
2250
2251 2003-12-15  Ian Lance Taylor  <ian@wasabisystems.com>
2252
2253         Fix handling of constructor/destructor of standard substitution:
2254         * cp-demangle.c (struct d_standard_sub_info): Define.
2255         (d_substitution): Add prefix argument.  Change all callers.
2256         Rework handling of standard substitutions to print full name when
2257         qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
2258         * testsuite/demangle-expected: Add test case.
2259
2260         Fix handling of negative literal constants:
2261         * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
2262         (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
2263         (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
2264         (d_print_comp): Handle D_COMP_LITERAL_NEG.
2265         * testsuite/demangle-expected: Add test case.
2266
2267 2003-12-04  Ian Lance Taylor  <ian@wasabisystems.com>
2268
2269         * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
2270         (d_last_char): Define new macro.
2271         (d_make_name): Reject an empty name.
2272         (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
2273         (d_substitution, d_print_identifier): Likewise.
2274         (d_print_comp) [D_COMP_OPERATOR]: Likewise.
2275         (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
2276         (d_print_mod) Use new d_last_char macro.
2277         (d_print_cast): Use new d_last_char macro.
2278         (is_ctor_or_dtor): Don't leak memory.
2279
2280         Fix handling of member function modifiers:
2281         * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
2282         D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
2283         (d_dump): Dump new d_comp_type values.
2284         (d_make_comp): Accept new d_comp_type values.
2285         (has_return_type): Only accept _THIS variants of qualifiers.
2286         (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
2287         qualifiers.
2288         (d_cv_qualifiers): Add member_fn parameter.  Change all callers.
2289         (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
2290         qualifiers and printing them at the end, add _THIS qualifiers to
2291         the modifier list.
2292         (d_print_comp) [D_COMP_*_THIS]: New cases.
2293         (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
2294         qualifiers.
2295         (d_print_mod_list): Add suffix parameter.  Change all callers.
2296         Keep walking the list even if the current modifier has been
2297         printed.
2298         (d_print_mod): Handle new _THIS qualifiers.
2299         (d_print_function_type): Handle new _THIS qualifiers when deciding
2300         whether to print a parenthesis.  Put a space before the
2301         parenthesis in some cases.  Call d_print_mod_list again at the
2302         end, passing suffix as 1.
2303         (is_ctor_or_dtor): Look for new _THIS qualifiers.
2304         * testsuite/demangle-expected: Add test case.
2305
2306         Fix for PR gcc/13304:
2307         * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
2308         before the '<' is itself a '<', insert a space.
2309         (d_print_cast): Likewise.
2310         * testsuite/demangle-expected: Add test case.
2311
2312         Fix for PR gcc/13244:
2313         * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
2314         which uses the '>' operator in an extra layer of parens.
2315         * testsuite/demangle-expected: Add test case.
2316
2317 2003-12-03  Ian Lance Taylor  <ian@wasabisystems.com>
2318
2319         * floatformat.c: Include "config.h" and <string.h> if available.
2320         (INFINITY, NAN): Define if not defined by <math.h>.
2321         (floatformat_to_double): Handle NaN, infinity, and denormalized
2322         numbers.
2323         (floatformat_from_double): Likewise.
2324         (ieee_test): In debugging code, use little endian rather than big
2325         endian.  Correct tests to handle NaN and to check correct sign of
2326         zero.  Omit m68k extended test.
2327         (main): Add more debugging cases.
2328
2329 2003-11-29  Ian Lance Taylor  <ian@wasabisystems.com>
2330
2331         * cp-demangle.c (d_demangle): Only return success if we consumed
2332         the entire demangled string.
2333         (is_ctor_or_dtor): Likewise.
2334
2335         * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
2336         to restore expected result of EDG test case to original expected
2337         result.
2338
2339 2003-11-26  Ian Lance Taylor  <ian@wasabisystems.com>
2340
2341         * cp-demangle.c (struct d_print_mod): Add templates field.
2342         (d_make_builtin_type): Check for NULL type.
2343         (d_make_extended_operator): Check for NULL name.
2344         (d_make_ctor, d_make_dtor): Likewise.
2345         (d_mangled_name): Add top_level parameter.  Change all callers.
2346         (d_encoding): If DMGL_PARAMS is not set, strip off initial
2347         CV-qualifiers.
2348         (d_type): Check some return values we rely on.
2349         (d_bare_function_type, d_array_type): Likewise.
2350         (d_pointer_to_member_type, d_template_args): Likewise.
2351         (d_add_substitution): Fail if argument is NULL.
2352         (d_print_resize): Check whether buf is NULL.
2353         (d_print_comp): Save current templates list with each modifier.
2354         Don't pass the modifier list down when printing a template.
2355         (d_print_cast): Don't pass the modifier list down when printing a
2356         template.
2357         (d_print_mod_list): Temporarily set templates list while printing
2358         a modifier.
2359         (d_print_mod): Check that buf is not NULL before using it.
2360         (d_print_function_type): Print parens if there is no modifier.
2361         (d_init_info): Permit as many substitutions as there are
2362         characters in the mangled name.
2363         * testsuite/demangle-expected: Add two new test cases.
2364
2365 2003-11-25  Ian Lance Taylor  <ian@wasabisystems.com>
2366
2367         * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
2368         d_demangle.
2369
2370 2003-11-22  Ian Lance Taylor  <ian@wasabisystems.com>
2371
2372         * cp-demangle.c (d_encoding): Add top_level parameter.  Change all
2373         callers.
2374         (print_usage): Display new -p option.
2375         (long_options): Add --no-params.
2376         (main): Accept and handle -p.
2377
2378 2003-11-21  Ian Lance Taylor  <ian@wasabisystems.com>
2379
2380         * cp-demangle.c (has_return_type): Skip qualifiers when checking
2381         whether we have a template.
2382         * testsuite/demangle-expected: Add four new tests.
2383
2384 2003-11-20  Ian Lance Taylor  <ian@wasabisystems.com>
2385
2386         * testsuite/demangle-expected: Minor changes to match output of
2387         new demangler: adjust whitespace in four tests, and change order
2388         of qualifiers in one test.
2389
2390         * cp-demangle.c: Complete rewrite.
2391
2392 2003-11-19  Mark Mitchell  <mark@codesourcery.com>
2393
2394         * cp-demangle.c (demangle_type): Correct thinko in substitution
2395         processing.
2396
2397 2003-11-18  Ian Lance Taylor  <ian@wasabisystems.com>
2398
2399         * cp-demangle.c (demangle_operator_name): Remove space before
2400         "sizeof".
2401         (demangle_type_ptr): Put qualifiers in the right place.  Handle
2402         qualifiers in pointer to member specially.
2403         (demangle_type): Handle qualifiers for pointer or reference
2404         specially.  Handle function type.
2405         (demangle_local_name): Save and restore caret around demangling of
2406         initial encoding.
2407
2408         * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
2409         cplus_demangle.
2410
2411         * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
2412
2413 2003-10-31  Andreas Jaeger  <aj@suse.de>
2414
2415         * floatformat.c (floatformat_always_valid): Add unused attribute.
2416
2417 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
2418
2419         Jan Hubicka <jh@suse.cz>
2420         * vasprintf.c (int_vasprintf): Pass va_list by value.
2421         Use va_copy for copying va_list.
2422         (vasprintf): Pass va_list by value.
2423
2424 2003-10-30  Josef Zlomek  <zlomekj@suse.cz>
2425
2426         * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
2427         instead of increasing n_elements when inserting to deleted slot.
2428
2429 2003-10-20  J. Brobecker  <brobecker@gnat.com>
2430
2431         * cplus-dem.c (demangle_template): Register a new Btype only
2432         when needed.
2433         * testsuite/demangle-expected: Add a new test.
2434
2435 2003-10-16  H.J. Lu  <hongjiu.lu@intel.com>
2436
2437         * testsuite/demangle-expected: Update the expected output of
2438         _GLOBAL__I__Z2fnv.
2439
2440 2003-10-02  Daniel Jacobowitz  <drow@mvista.com>
2441
2442         * strerror.c: Revert last change.  Declare static sys_nerr
2443         and sys_errlist using different names.
2444
2445 2003-10-01  Daniel Jacobowitz  <drow@mvista.com>
2446
2447         * strerror.c: Don't provide or reference sys_errlist if
2448         strerror is available.
2449
2450 2003-10-01  H.J. Lu  <hongjiu.lu@intel.com>
2451
2452         * configure.in: Check if $MAKEINFO is missing.
2453         * configure: Regenerated.
2454
2455 2003-09-24  Daniel Jacobowitz  <drow@mvista.com>
2456
2457         * configure.in: Use AC_PROG_CPP_WERROR.
2458         * configure: Regenerated.
2459
2460 2003-09-22  Andrew Cagney  <cagney@redhat.com>
2461
2462         * floatformat.c (floatformat_i387_ext_is_valid): New function.
2463         (floatformat_always_valid): New function.
2464         (floatformat_i387_ext): Initialize new "is_valid" field to
2465         "floatformat_i387_ext_is_valid".
2466         (floatformat_ieee_single_little): Initialize "is_valid" field to
2467         floatformat_always_valid.
2468         (floatformat_ieee_double_big): Ditto.
2469         (floatformat_ieee_double_little): Ditto.
2470         (floatformat_ieee_double_little): Ditto.
2471         (floatformat_ieee_double_littlebyte_bigword): Ditto.
2472         (floatformat_i960_ext): Ditto.
2473         (floatformat_m88110_ext): Ditto.
2474         (floatformat_m88110_harris_ext): Ditto.
2475         (floatformat_arm_ext_big): Ditto.
2476         (floatformat_arm_ext_littlebyte_bigword): Ditto.
2477         (floatformat_ia64_spill_big): Ditto.
2478         (floatformat_ia64_spill_little): Ditto.
2479         (floatformat_ia64_quad_big): Ditto.
2480         (floatformat_ia64_quad_little): Ditto.
2481         (floatformat_ia64_quad_little): Ditto.
2482         (floatformat_is_valid): Call "is_valid".
2483
2484 2003-09-15  Andrew Cagney  <cagney@redhat.com>
2485
2486         * floatformat.c (get_field): Make "data" constant.
2487         (floatformat_is_valid, floatformat_to_double): Make "from"
2488         constant, fix casts.
2489         (floatformat_from_double): Make "from" constant.
2490
2491 2003-09-15  Daniel Jacobowitz  <drow@mvista.com>
2492
2493         * floatformat.c (floatformat_is_valid): New function.
2494         (get_field, put_field): Correct comments.
2495
2496 2003-09-06  Josef Zlomek  <zlomekj@suse.cz>
2497
2498         * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
2499         FIBHEAPKEY_T.
2500
2501 2003-09-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2502
2503         PR bootstrap/12100
2504         * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
2505         * configure: Rebuilt.
2506
2507 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
2508
2509         * aclocal.m4: Include acx.m4 and no-executables.m4.
2510         (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
2511         (LIB_AC_PROG_CC): Remove.
2512         * configure.in: Update AC_PREREQ to 2.57.  Use GCC_NO_EXECUTABLES.
2513         Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
2514         LIB_AC_PROG_CC.  Use AC_LIBOBJ.  Call AC_ISC_POSIX later, only if
2515         performing link tests.
2516         * configure: Regenerated.
2517
2518 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2519
2520         * cp-demangle.c: Clarify what package(s) this is part of.
2521
2522 2003-07-05  Danny Smith  <dannysmith@users.sourceforge.net>
2523
2524         * pex-win32.c (pexecute): Mark parameters this_pname and
2525         temp_base as unused. Remove unused variables retries,
2526         sleep_interval. Initialize org_stdin, org_stdout.
2527         (pwait): Mark parameter flags as unused.
2528
2529 2003-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
2530
2531         * pex-win32.c (fix_argv): Ensure that the executable pathname
2532         uses Win32 backslashes.
2533         (pexecute): Cast away constness when assigning *errmsg_arg.
2534
2535 2003-06-26  H.J. Lu <hongjiu.lu@intel.com>
2536
2537         * testsuite/demangle-expected: Add more GNU V3 testcases.
2538
2539 2003-06-22  Zack Weinberg  <zack@codesourcery.com>
2540
2541         * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
2542         not HC_ASCII and HC_EBCDIC.
2543         Add documentation in form expected by gather-docs.
2544         * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
2545         * Makefile.in, functions.texi: Regenerate.
2546
2547 2003-06-21  Zack Weinberg  <zack@codesourcery.com>
2548
2549         * safe-ctype.c: Separate out EOF==-1 check.  Use HOST_CHARSET
2550         for charset determination.
2551
2552 2003-06-19  Dara Hazeghi  <dhazeghi@yahoo.com>
2553
2554         * configure.in: Add check for malloc.h needed by
2555         m68k for function free().
2556         * configure: Regenerated.
2557         * config.in: Add HAVE_MALLOC_H.
2558         * hashtab.c: include malloc.h were available for
2559         free().
2560
2561 2003-06-09  Albert Chin-A-Young  <china@thewrittenword.com>
2562
2563         PR bootstrap/10974
2564         * physmem.c: Update comment.
2565         * configure.in: Modify test for _system_configuration for older
2566         AIX systems.
2567
2568         * config.in, configure: Regenerated.
2569
2570 2003-06-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2571
2572         PR other/10810
2573         * test-demangle.c (getline): Fix fence-post error.
2574
2575 2003-06-03  Nick Clifton  <nickc@redhat.com>
2576
2577         * asprintf.c: Change comment to note that -1 is returned upon
2578         error.
2579         * vasprintf.c: Likewise.
2580         (vasprintf): Return -1 upon error.
2581         * functions.texi: Document changes to asprintf and vasprintf.
2582
2583 2003-05-19  Kelley Cook  <kelleycook@wideopenwest.com>
2584
2585         * config.table: Accept i[345867]86 variant.
2586
2587 2003-05-15  Jim Blandy  <jimb@redhat.com>
2588
2589         * hex.c (_hex_value): Make this unsigned.
2590         (hex_value): Update documentation for new return type.  hex_value
2591         now expands to an unsigned int expression, to avoid unexpected
2592         sign extension when we store it in a bfd_vma, which is larger than
2593         int on some platforms.
2594         * functions.texi: Regenerated.
2595
2596 2003-05-07  Josef Zlomek  <zlomekj@suse.cz>
2597
2598         * splay-tree.c (splay_tree_predecessor): Fix comment.
2599         (splay_tree_successor): Fix comment.
2600
2601 2003-05-07  Jason Merrill  <jason@redhat.com>
2602
2603         * hashtab.c (iterative_hash): New fn.
2604         * configure.in: Add AC_C_BIGENDIAN_CROSS.
2605         * aclocal.m4: Include accross.m4.
2606         * configure, config.in: Regenerate.
2607
2608 2003-05-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2609
2610         * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
2611         * configure: Regenerate.
2612
2613 2003-05-03  Carlo Wood  <carlo@alinoe.com>
2614
2615         * cp-demangle.c: Fix typo in "char_traints" string-literal.
2616
2617 2003-04-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2618
2619         * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
2620         (main): Test that we don't write too much data.
2621
2622 2003-04-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2623
2624         * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
2625         vsnprintf.
2626         * snprintf.c, vsnprintf.c: New files.
2627         * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
2628         (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
2629         Regenerate dependencies.
2630
2631         * functions.texi, configure, config.in: Regenerated.
2632
2633 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2634
2635         * mempcpy.c, stpcpy.c, stpncpy.c: New files.
2636         * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
2637         and stpncpy.
2638         * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
2639         (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
2640         Regenerate dependencies.
2641
2642         * functions.texi, configure, config.in: Regenerated.
2643
2644 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2645
2646         * argv.c: Fix comments.
2647         * calloc.c: Don't unnecessarily include "libiberty.h".
2648         (bzero): Add prototype.
2649         * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2650         * getcwd.c (getcwd): Use standard definition to avoid conflicts
2651         with system headers.
2652         * hashtab.c (htab_traverse): Delete unused variables.
2653         * rename.c: Include "ansidecl.h".
2654         (rename): Use standard definition to avoid conflicts with system
2655         headers.
2656         * strsignal.c: Rely on ANSI_PROTOTYPES.
2657         * strstr.c: Check GNUC >= 2, not GNUC == 2.
2658         * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2659         * vprintf.c: Include "ansidecl.h" earlier, rely on
2660         ANSI_PROTOTYPES.
2661         * vsprintf.c: Include "ansidecl.h" earlier, rely on
2662         ANSI_PROTOTYPES and possibly include <stdarg.h>.
2663
2664         * Makefile.in: Regenerate dependencies.
2665
2666 2003-04-15  DJ Delorie  <dj@redhat.com>
2667
2668         * maint-tool (deps): Scan for headers in $srcdir also.
2669
2670 2003-04-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2671
2672         PR target/10338
2673         PR bootstrap/10198
2674         PR bootstrap/10140
2675         * getopt.c (exchange, _getopt_initialize): Use mempcpy not
2676         __mempcpy.
2677         * regex.c (regerror): Likewise.
2678
2679 2003-04-14  Roger Sayle  <roger@eyesopen.com>
2680
2681         * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
2682         * memchr.c: Likewise.
2683         * strcasecmp.c: Likewise.
2684         * strncasecmp.c: Likewise.
2685         * strncmp.c: Likewise.
2686         * xatexit.c: Likewise.
2687         * xmalloc.c: Likewise.
2688
2689         * copysign.c: Use traditional function declaration instead of DEFUN.
2690         * sigsetmask.c: Likewise.
2691
2692         * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
2693         * memset.c: Likewise.
2694
2695         * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
2696         * memmove.c: Likewise.
2697
2698 2003-04-14  Roger Sayle  <roger@eyesopen.com>
2699
2700         * strdup.c (strdup): Tweak implementation to use memcpy.
2701
2702 2003-04-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2703
2704         * configure.in (HAVE_UINTPTR_T): Always define.
2705         * configure: Regenerated.
2706
2707 2003-03-23  Alexandre Oliva  <aoliva@redhat.com>
2708
2709         * Makefile.in (MULTIOSDIR): New macro.  Use $(CC) $(LIBCFLAGS)
2710         instead of $$CC alone.
2711         (install_to_tooldir): Use it.
2712
2713 2003-17-03  Jan Hubicka  <jh@suse.cz>
2714
2715         * hashtab.c (htab_traverse_noresize): Break out from ...
2716         * hashtab.c (htab_traverse): ... here.
2717
2718 2003-12-03  Jan Hubicka  <jh@suse.cz>
2719
2720         * hashtab.c (htab_expand): Fix warning.
2721
2722         * hashtab.c (htab_expand): Compute the size of hashtable based
2723         on the number of elements actually used.
2724         (htab_traverse):  Call htab_expand when table is too empty.
2725
2726 2003-03-11  Carlo Wood  <carlo@gnu.org>
2727
2728         * cplus-dem.c (demangle_integral_value): Correction to reflect
2729         patch of 2002-01-10 in order to also make negative multi-digits
2730         without leading underscore work.
2731
2732 2003-03-03  Mark Mitchell  <mark@codesourcery.com>
2733
2734         * cplus-dem.c: Add license exception to copyright notice.
2735
2736 2003-02-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2737
2738         * physmem.c: Formatting changes from upstream.
2739
2740 2003-02-24  Danny Smith  <dannysmith@users.source.forge.net>
2741
2742         * physmem.c (physmem_total): Add _WIN32 support.
2743         (physmem_available): Likewise.
2744
2745 2003-02-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2746
2747         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2748         GSI_PHYSMEM.
2749         (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2750
2751 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2752
2753         * configure.in: Check for sys/systemcfg.h and
2754         _system_configuration.
2755         * physmem.c: Add support for AIX.  Tweek formatting as per
2756         upstream coreutils beta.
2757
2758 2003-02-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2759             Richard Earnshaw  <rearnsha@arm.com>
2760             Geoffrey Keating  <geoffk@apple.com>
2761
2762         * configure.in: Check for sys/sysctl.h and sysctl.
2763         * physmem.c: Add support for *bsd and darwin.
2764         * Makefile.in: Generate depedency for physmem.o.
2765
2766 2003-02-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2767
2768         * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2769         Tru64 UNIX.
2770         (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2771         Tru64 UNIX.
2772
2773         * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2774         machine/hal_sysinfo.h, sys/table.h.
2775         (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2776         * configure, config.in: Regenerate.
2777
2778 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2779
2780         * configure.in: Check for sys/sysmp.h and sysmp.
2781         * physmem.c: Pull upstream copy, add support for irix6.
2782
2783         * config.in, configure: Regenerated.
2784
2785 2003-02-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2786
2787         * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2788         * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2789         pstat_getdynamic.
2790
2791 2003-02-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2792
2793         * Makefile.in (CFILES): Add physmem.c.
2794         (REQUIRED_OFILES): Add physmem.o.
2795         * configure.in: Check for sys/pstat.h.
2796         (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2797         * physmem.c: New file, copied from textutils.
2798
2799         * config.in, configure: Regenerated.
2800
2801 2003-02-20  Daniel Jacobowitz  <drow@mvista.com>
2802
2803         * Makefile.in (CFILES): Add lrealpath.c.
2804         (REQUIRED_OFILES): Add lrealpath.o.
2805         (lrealpath.o): Add rule.
2806         * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2807         * configure.in: Add realpath and canonicalize_file_name to
2808         checkfuncs and AC_CHECK_FUNCS.  Use libiberty_NEED_DECLARATION
2809         for canonicalize_file_name.
2810         * lrealpath.c: New file.
2811         * make-relative-prefix.c: Update documentation.
2812         (make_relative_prefix): Simplify.  Use lbasename and lrealpath.
2813         * config.in: Regenerated.
2814         * configure: Regenerated.
2815         * functions.texi: Regenerated.
2816
2817 2003-02-20  jmc  <jmc@prioris.mini.pw.edu.pl>
2818
2819         * cplus_dem.c: Fix typo: intializes -> initializes.
2820
2821 2003-02-20  Alexandre Oliva  <aoliva@redhat.com>
2822
2823         * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2824         config.status.
2825         * configure: Rebuilt.
2826
2827 2003-02-13  Daniel Jacobowitz  <drow@mvista.com>
2828
2829         Fix PR c++/7612.
2830         * cplus-dem.c (demangle_signature): Call string_delete.
2831         Remove extra string_init.
2832         (demangle_arm_hp_template): Call string_delete instead of
2833         string_clear.  Add missing string_delete call.
2834         (demangle_qualified): Add missing string_delete call.
2835         (do_type): Remove unused variable btype.  Add missing string_delete
2836         call.  Call string_delete instead of string_clear.
2837         (demangle_fund_type): Move variable btype inside of the switch
2838         statement.  Add missing string_delete call.
2839         (do_arg): Call string_delete instead of string_clear.  Remove extra
2840         string_init.
2841         (demangle_nested_args): Free work->previous_argument.
2842
2843 2003-02-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2844
2845         * acconfig.h: New file.  Add uintptr_t.
2846         * config.in: Regenerated.
2847
2848 2003-02-04  Joseph S. Myers  <jsm@polyomino.org.uk>
2849
2850         * libiberty.texi: Update to GFDL 1.2.
2851
2852 2003-01-30  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2853
2854         * Makefile.in (libiberty_topdir): New subst.
2855         (mkinstalldirs): Redefine in terms of the above.
2856         * configure.in: AC_SUBST it.
2857         * configure: Regenerate.
2858
2859 2003-01-28  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2860
2861         * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2862         (info-subdir, install-info-subdir, clean-info-subdir)
2863         (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2864         (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2865         Pass $(FLAGS_TO_PASS).
2866
2867 2003-01-27  Alexandre Oliva  <aoliva@redhat.com>
2868
2869         * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2870         /`$$CC -print-multi-os-directory`.
2871
2872 2003-01-26  Daniel Jacobowitz  <drow@mvista.com>
2873
2874         * hashtab.c (htab_create_alloc_ex): New function.
2875         (hatab_set_functions_ex): New function.
2876         (htab_delete, htab_expand): Support alternate allocation functions.
2877
2878 2003-01-24  Christopher Faylor  <cgf@redhat.com>
2879
2880         * configure.in: Remove special pex-cygwin consideration.
2881         * configure: Regenerate.
2882         * pex-cygwin.c: Remove.
2883         * Makefile.in: Remove pex-cygwin.[co] lines.
2884
2885 2003-01-24  Zack Weinberg  <zack@codesourcery.com>
2886
2887         * Makefile.in (CFILES): Add pex-*.c.
2888         (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2889         (CONFIGURED_OFILES): Add pex-*.o.
2890         (TEXIFILES): Add pexecute.txh.
2891         (pexecute.o): Delete rule.
2892         (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2893         pex-unix.o, pex-win32.o): New rules.
2894         * configure.in: Change AC_INIT argument to xmalloc.c.
2895         Compute appropriate pexecute implementation and substitute it
2896         as @pexecute@.
2897
2898         * pexecute.c: Split up into...
2899         * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2900         pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2901         new files.
2902
2903         * functions.texi: Regenerate.
2904         * configure: Regenerate.
2905
2906 2003-01-20  Josef Zlomek  <zlomekj@suse.cz>
2907
2908         * hashtab.c (htab_expand): Fix allocation of new entries.
2909
2910 2003-01-09  Christian Cornelssen  <ccorn@cs.tu-berlin.de>
2911
2912         * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2913
2914         * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2915         mkinstalldirs command.
2916
2917 2002-12-04  Danny Smith  <dannysmith@users.sourceforge.net>
2918
2919         * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2920         Define for hosts with HOST_EXECUTABLE_SUFFIX.
2921
2922 2002-11-24  Nick Clifton  <nickc@redhat.com>
2923
2924         * make-relative-prefix.c (make_relative_prefix): Ensure return
2925         string is empty before using strcat to construct it.
2926
2927 2002-11-22  Daniel Jacobowitz  <drow@mvista.com>
2928
2929         * Makefile.in: Add make-relative-prefix.c.
2930         * make-relative-prefix.c: New file.
2931         * functions.texi: Rebuilt.
2932
2933 2002-11-16  Jakub Jelinek  <jakub@redhat.com>
2934
2935         * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2936         used with arguments in traditional C' warnings.
2937
2938 2002-10-16  Jakub Jelinek  <jakub@redhat.com>
2939
2940         * config.table: Use mh-s390pic for s390x too.
2941
2942 2002-10-06  Andreas Jaeger  <aj@suse.de>
2943
2944         * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2945         variable and of strict-aliasing warning.
2946         (grow_vect): Use char as first parameter.
2947
2948 2002-09-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2949
2950         * Makefile.in (all): Fix multilib parallel build.
2951
2952 2002-09-19  John David Anglin  <dave@hiuly1.hia.nrc.ca>
2953
2954         * cp-demangle.c (demangling_new): Cast 0 to enum.
2955         (demangle_char): Cast return of strdup to char *.
2956         (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2957         (is_gnu_v3_mangled_dtor): Likewise.
2958         * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2959         (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2960         * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2961         * md5.c (md5_process_bytes): Cast results back to const void *.
2962         (md5_process_block): Add cast to const md5_uint32 *.
2963         * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2964         * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2965         unsigned short.
2966         * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2967         to void *.
2968         * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2969
2970 2002-09-19  Nick Clifton  <nickc@redhat.com>
2971
2972         * README: Update email addresses for bugs and patches.
2973
2974 2002-09-10  Mike Stump  <mrs@apple.com>
2975
2976         * splay-tree.c (splay_tree_successor): Fix comments.
2977
2978 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
2979
2980         * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
2981         * testsuite/Makefile.in: Adjust for test-demangle.
2982         * testsuite/regress-demangle: Deleted.
2983         * testsuite/test-demangle.c: New file.
2984         * testsuite/demangle-expected: Change \$ to $ throughout, now that
2985         this file is not being read by a shell script.
2986
2987 2002-09-05  Roger Sayle  <roger@eyesopen.com>
2988
2989         * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2990
2991 2002-08-07  DJ Delorie  <dj@redhat.com>
2992
2993         * regex.c (re_error_msgid): Just use a simple array of strings.
2994         (re_compile_pattern): Compensate.
2995         (re_comp): Likewise.
2996         (re_comp): Likewise.
2997         (regerror): Likewise.
2998
2999 2002-07-29  Neil Booth  <neil@daikokuya.co.uk>
3000
3001         * cplus-dem.c (PREPEND_BLANK): Remove.
3002
3003 2002-07-10  Jason Merrill  <jason@redhat.com>
3004
3005         * cp-demangle.c (demangle_identifier): Support extended Unicode
3006         characters.
3007
3008 2002-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3009
3010         * cp-demangle.c (demangle_v3_with_details): Wrap in
3011         !defined IN_GLIBCPP_V3.
3012
3013 2002-07-01  Mark Mitchell  <mark@codesourcery.com>
3014
3015         * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
3016         Set it for the "st" operator.
3017         (demangle_expression): Handle expressions with types as arguments.
3018
3019 2002-06-30  Douglas Rupp  <rupp@gnat.com>
3020
3021         * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
3022         * Makefile.in (OUTPUT_OPTION): Use.
3023
3024 2002-06-22  Peter Breitenlohner <peb@mppmu.mpg.de>
3025
3026         * Makefile.in (install_to_libdir): Add $(DESTDIR).
3027         (install_to_tooldir): Likewise.
3028
3029 2002-06-17  Douglas Rupp  <rupp@gnat.com>
3030
3031         * lbasename.c: Add 2002 to copyright.
3032         (IS_DIR_SEPARATOR): Remove VMS junk.
3033
3034 2002-06-05  Geoffrey Keating  <geoffk@redhat.com>
3035
3036         * hashtab.c (htab_create): New stub function for backward
3037         compatibility.
3038         (htab_try_create): Likewise.
3039
3040 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
3041
3042         * hashtab.c (htab_create): Delete.
3043         (htab_try_create): Delete.
3044         (htab_create_alloc): New.
3045         (htab_delete): Support user-specified memory allocation.
3046         (htab_expand): Likewise.
3047
3048 2002-05-22  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3049
3050         * configure.in: Fix typo in the code checking for sys_errlist.
3051         * configure: Regenerated.
3052
3053 2002-05-13  Andreas Schwab  <schwab@suse.de>
3054
3055         * config.table: Use mh-x86pic also for x86-64.
3056
3057 2002-05-08  Alexandre Oliva  <aoliva@redhat.com>
3058
3059         * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
3060         script entry, and set LD to it when configuring multilibs.
3061         * configure: Rebuilt.
3062
3063 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3064
3065         * configure.in (AC_TYPE_PID_T): Use it.
3066         * configure: Regenerated.
3067         * getruntime.c: Include <sys/types.h>.
3068         * waitpid.c: Likewise.  Use pid_t, not int, as the type of "pid".
3069
3070 2002-04-09  Richard Henderson  <rth@redhat.com>
3071
3072         * hashtab.c (higher_prime_number): Use 7 as minimum.
3073         (find_empty_slot_for_expand): Don't compute hash2 unless needed.
3074         (htab_find_slot_with_hash): Likewise.
3075
3076 2002-04-01  Phil Edwards  <pme@gcc.gnu.org>
3077
3078         * cp-demangle.c (__cxa_demangle):  Also protect with IN_GLIBCPP_V3.
3079         (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor):  Conditionally
3080         not compile if IN_GLIBCPP_V3 defined.
3081         * dyn-string.c:  Also allow IN_GLIBCPP_V3 to change allocation scheme.
3082
3083 2002-03-30  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
3084
3085         * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
3086         if it is NULL.
3087
3088 2002-03-27  DJ Delorie  <dj@redhat.com>
3089
3090         * hex.c: Add documentation.
3091         (_hex_value): Provide non-ASCII empty table.
3092         (hex_init): Initialize the non-ASCII table.
3093         * functions.texi: Regenerate.
3094
3095 2002-03-27  Mark Mitchell  <mark@codesourcery.com>
3096
3097         * dyn-string.c: Add libgcc exception to copyright notice.
3098
3099 2002-03-26  H.J. Lu  (hjl@gnu.org)
3100
3101         * config.table: Support --with-build-subdir.
3102         * configure.in: Likewise.
3103         * configure: Rebuild.
3104
3105 2002-03-18  Stuart Griffith  <Stuart_Griffith@credence.com>
3106
3107         * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
3108         seen.
3109
3110 2002-03-12  Mark Mitchell  <mark@codesourcery.com>
3111
3112         * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
3113         notice.
3114
3115 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
3116
3117         * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
3118
3119 2002-03-06  Jim Blandy  <jimb@redhat.com>
3120
3121         * splay-tree.c (splay_tree_xmalloc_allocate,
3122         splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
3123         prototyped definitions.  Mark `data' arguments as unused.
3124
3125 2002-03-06  Andrew Cagney  <ac131313@redhat.com>
3126
3127         * floatformat.c (floatformat_arm_ext_big): Delete definition.
3128
3129 2002-03-04  Phil Edwards  <pme@gcc.gnu.org>
3130
3131         * configure.in:  Add --enable-install-libiberty option.
3132         * Makefile.in (INSTALLED_HEADERS):  New variable.
3133         (install_to_libdir):  Possibly also copy headers.
3134         * configure:  Regenerated.
3135
3136 2002-03-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3137
3138         * xmalloc.c (xmalloc_fail): Clarify error message further.
3139
3140 2002-03-03  Neil Booth  <neil@daikokuya.demon.co.uk>
3141
3142         * xmalloc.c (xmalloc_fail): Clarify error message.
3143
3144 2002-02-22  Jim Blandy  <jimb@redhat.com>
3145
3146         * splay-tree.c (splay_tree_xmalloc_allocate,
3147         splay_tree_xmalloc_deallocate): New functions.
3148         (splay_tree_new): Call splay_tree_new_with_allocator, passing the
3149         above functions and a dummy data pointer.
3150         (splay_tree_new_with_allocator): New function.
3151         (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
3152         splay_tree_remove): Use the splay tree's allocation and
3153         deallocation functions.
3154
3155 2002-02-19  Scott Snyder  <snyder@fnal.gov>
3156
3157         * testsuite/demangle-expected: Add test case for infinite loop in
3158         demangler.
3159         * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
3160         if do_type() doesn't make any progress --- prevents an infinite
3161         loop.
3162
3163 2002-02-18  Carlo Wood  <carlo@gnu.org>
3164
3165         PR c++/5390
3166         * cplus-dem.c (demangle_integral_value): Accept multi-digit
3167         numbers that do not start with an underscore; This is needed
3168         for integer template parameters. This doesn't break anything
3169         because multi-digit numbers are never followed by a digit.
3170         * testsuite/demangle-expected: Corrected all mangled test
3171         cases with multi-digit template parameters: g++ 2.95.x does
3172         not generate underscores around these parameters.
3173
3174 2002-02-05  Jason Merrill  <jason@redhat.com>
3175
3176         * cplus-dem.c (flags): Add DMGL_VERBOSE
3177         (cplus_demangle_v3_p): Remove.
3178         (demangle_it): Add DMGL_TYPES to passed flags.
3179         * cp-demangle.c (cplus_demangle_v3_all): Remove.
3180         (cplus_demangle_v3_type): Remove.
3181         (cplus_demangle_v3): Add options parm.
3182
3183 2002-02-02  H.J. Lu  (hjl@gnu.org)
3184
3185         * cp-demangle.c (cp_demangle_type): Do not protect with
3186         IN_LIBGCC2.
3187         (cplus_demangle_v3_all): New.
3188         (cplus_demangle_v3): Call cplus_demangle_v3_all.
3189         (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
3190
3191         * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
3192         Initialized to cplus_demangle_v3.
3193         (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
3194         of cplus_demangle_v3.
3195         (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
3196         command line symbol.
3197
3198         * testsuite/regress-demangle: Pass the mangled name at the
3199         command line.
3200
3201 2002-02-01  H.J. Lu  <hjl@gnu.org>
3202
3203         * cp-demangle.c (cp_demangle_type): Call demangling_new with
3204         DMGL_GNU_V3.
3205
3206 2002-01-31  Phil Edwards  <pme@gcc.gnu.org>
3207
3208         * cp-demangle.c:  Revert yesterday's change.
3209
3210 2002-01-31  Adam Megacz  <adam@xwt.org>
3211
3212         * gcc/libiberty/configure.in: Treat mingw the same as cywin
3213         wrt HAVE_SYS_ERRLIST.
3214
3215 2002-01-30  Phil Edwards  <pme@gcc.gnu.org>
3216
3217         * cp-demangle.c (cp_demangle_type):  Do not protect with IN_LIBGCC2.
3218         (cplus_demangle_v3):  Mimic __cxa_demangle and fall back on
3219         cp_demangle_type.
3220         * testsuite/demangle-expected:  New gnu-v3 test.
3221
3222 2002-01-22  Momchil Velikov  <velco@fadata.bg>
3223
3224         * configure.in (variable detection): Use arrays of unspecified
3225         size instead of plain integers.
3226
3227 2002-01-18  DJ Delorie  <dj@redhat.com>
3228
3229         * Makefile.in (TESTLIB): New.  This library is for future
3230         testsuites.
3231         (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
3232         break down by letter.
3233         (REQUIRED_OFILES): List long-to-compile files first.
3234         (maint-deps): New, target for updating dependencies.
3235         (dependencies): Update.
3236         * maint-tool: Add dependency-generating option.
3237         * configure.in: Check for _doprnt even if we're not providing it.
3238         * configure: Regenerate.
3239
3240         * _doprnt.c: Modifications to allow compiling on any platform.
3241         * copysign.c: Likewise.
3242         * putenv.c: Likewise.
3243         * setenv.c: Likewise.
3244         * vsprintf.c: Likewise.
3245
3246 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
3247
3248         * mkstemps.c (mkstemps): On VMS, open temp file with option
3249         that causes it to be deleted when closed.
3250
3251 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3252
3253         * cp-demangle.c (long_options): Const-ify.
3254         * cplus-dem.c (long_options): Likewise.
3255
3256         * cplus-dem.c (mystrstr): Delete.  All callers changed to use
3257         strstr instead.
3258
3259 2001-12-31  Ira Ruben   <ira@apple.com>
3260
3261         * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
3262         * configure: Regenerated.
3263
3264 2001-12-24  Douglas B. Rupp  <rupp@gnat.com>
3265
3266         * configure.in (uintptr_t): Use AC_CHECK_TYPE.
3267         * configure: Regenerated.
3268
3269 2001-12-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
3270
3271         PR other/2719
3272         * cplus-dem.c (consume_count): Treat negative count as an error.
3273         * testsuite/demangle-expected: Added testcase.
3274
3275 Tue Dec 11 07:08:57 2001  Douglas B. Rupp  <rupp@gnat.com>
3276
3277         * configure.in: Hardcode that vfork works on VMS host.
3278         * configure: Regenerated.
3279
3280 2001-12-06  Richard Henderson  <rth@redhat.com>
3281
3282         * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
3283         (cplus_demangle): Support no_demangling.
3284
3285 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
3286
3287         * _doprnt.c: Moved here from gcc/doprint.c.  Adjust to build
3288         in libiberty context.  Fix typo in leading comment.
3289         * configure.in: Fix various AC_DEFINEs so autoheader works.
3290         If any of vprintf, vsprintf, vfprintf is missing from libc,
3291         then AC_REPLACE_FUNCS(_doprnt).
3292
3293 2001-11-26  DJ Delorie  <dj@redhat.com>
3294             Daniel Jacobowitz  <drow@mvista.com>
3295
3296         * Makefile.in (stamp-h): Depend on Makefile for proper
3297         serialization.
3298         (*-subdir): Depend on config.h for proper serialization.
3299
3300 2001-11-26  DJ Delorie  <dj@redhat.com>
3301
3302         * configure.in: Check for alloca.h (for regex.c and putenv.c).
3303         * configure: Regenerate.
3304         * config.h: Add HAVE_ALLOCA_H.
3305
3306 2001-11-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3307
3308         * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
3309         defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
3310         is available.
3311
3312 Thu Nov 15 11:06:25 2001  Jeffrey A Law  (law@cygnus.com)
3313
3314         * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
3315         * configure.in (HAVE_UINTPTR_T): Test for system defining
3316         uintptr_t and define HAVE_UINTPTR_T appropriately.
3317         * regex.c (uintptr_t): Do not provide a definition if the
3318         system provided one.
3319
3320         * regex.c (PREFIX): Provide an alternate definition for
3321         non-ANSI/ISO compilers.
3322         (ARG_PREFIX): Likewise.
3323
3324 2001-11-12  Jim Meyering  <meyering@lucent.com>
3325
3326         * obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
3327         this code would end up calling gettext even in packages built
3328         with --disable-nls.
3329         * getopt.c (_): Likewise.
3330         * regex.c (_): Likewise.
3331
3332 2001-11-03  Alan Modra  <amodra@bigpond.net.au>
3333
3334         * configure.in: Cope with missing makeinfo.
3335         * configure: Regenerate.
3336
3337 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3338
3339         * hex.c (hex_init): Provide empty stub.
3340
3341         * hex.c (hex_init): Delete.
3342         (_hex_value): Const-ify and initialize at compile-time.
3343
3344 2001-10-19  H.J. Lu <hjl@gnu.org>
3345
3346         * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
3347         necessary.
3348
3349 2001-10-17  DJ Delorie  <dj@redhat.com>
3350
3351         * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
3352         ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
3353         mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
3354         Improve manual formatting.
3355         * functions.texi: Regenerate.
3356
3357 2001-10-15  DJ Delorie  <dj@redhat.com>
3358
3359         * Makefile.in (TEXIFILES): Add fnmatch.txh.
3360         (maint-undoc): New.
3361         maint-tool: Add "undoc" tool.
3362         * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
3363         fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
3364         make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
3365         strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
3366         documentation.
3367         * fnmatch.txh: New.
3368         * functions.texi: Regenerate.
3369
3370 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
3371
3372         * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
3373         * strtod.c: Use "ISO C" instead of "ANSI C".
3374         * functions.texi: Regenerate.
3375
3376 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3377
3378         * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
3379         libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
3380         strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
3381         xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting.  Fix
3382         spelling.  Give names to function arguments in documentation.  Use
3383         (void) prototypes in documentation.
3384         * functions.texi: Regenerate.
3385
3386 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3387
3388         * argv.c (buildargv, tests, main): Const-ify.
3389         * cp-demangle.c (operator_code): Likewise.
3390         * cplus-dem.c (optable, libiberty_demanglers,
3391         cplus_demangle_set_style, cplus_demangle_name_to_style,
3392         print_demangler_list): Likewise.
3393         * hashtab.c (higher_prime_number): Likewise.
3394         * strcasecmp.c (charmap): Likewise.
3395         * strerror.c (error_info, strerror, main): Likewise.
3396         * strncasecmp.c (charmap): Likewise.
3397         * strsignal.c (signal_info): Likewise.
3398
3399 2001-09-29  DJ Delorie  <dj@redhat.com>
3400
3401         * configure: Regenerate.
3402
3403 2001-09-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3404
3405         * concat.c: Include stdlib.h.
3406
3407 2001-09-27  Eli Zaretskii  <eliz@is.elta.co.il>
3408
3409         * libiberty.texi: (Top level): Add syncodeindex pg.  Add
3410         @dircategory and @direntry directives.  Add @finalout.
3411         (many nodes): Lose the next,prev,up pointers on the @nide line.
3412         (Using, Supplemental Functions, Replacement Functions): Fix
3413         markup.
3414         (Functions): Move around, to allow makeinfo to build the manual
3415         without next,prev,up pointers in thye node lines.
3416         (Licenses): Fix typos.
3417
3418         * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
3419         strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
3420         * functions.texi: Regenerate.
3421
3422         * copying-lib.texi: Lose the next,prev,up pointers on the @node
3423         line.
3424
3425 2001-09-27  DJ Delorie  <dj@redhat.com>
3426
3427         * configure.in: Don't use in-tree texinfo, because libiberty must
3428         be built before it.  Check for makeinfo version 4 or higher.
3429         * functions.texi: Regenerate.
3430
3431 2001-09-20  DJ Delorie  <dj@redhat.com>
3432             Phil Edwards  <pedwards@disaster.jaj.com>
3433
3434         * configure.in (MAKEINFO, PERL): Detect these.
3435         (--enable-maintainer-mode): Add.
3436         * configure: Regenerate.
3437         * Makefile.in (MAKEINFO, PERL): Define.
3438         (libiberty.info, libiberty.dvi, libiberty.html): New.
3439         (CFILES): Add bsearch.c.
3440         (CONFIGURED_OFILES): New, list of objects configure might add.
3441         (maint-missing, maint-buildall): New, for maintainers only.
3442         (clean, mostlyclean): Add info/dvi/html files.
3443         * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
3444     &n