OSDN Git Service

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