]> git.ipfire.org Git - thirdparty/gcc.git/blame_incremental - libiberty/ChangeLog
modula2: Tidyup remove unnecessary parameters
[thirdparty/gcc.git] / libiberty / ChangeLog
... / ...
CommitLineData
12024-09-07 Jakub Jelinek <jakub@redhat.com>
2
3 PR lto/116614
4 * simple-object-elf.c (SHN_COMMON): Align comment with neighbouring
5 comments.
6 (SHN_HIRESERVE): Use uppercase hex digits instead of lowercase for
7 consistency.
8 (simple_object_elf_find_sections): Formatting fixes.
9 (simple_object_elf_fetch_attributes): Likewise.
10 (simple_object_elf_attributes_merge): Likewise.
11 (simple_object_elf_start_write): Likewise.
12 (simple_object_elf_write_ehdr): Likewise.
13 (simple_object_elf_write_shdr): Likewise.
14 (simple_object_elf_write_to_file): Likewise.
15 (simple_object_elf_copy_lto_debug_section): Likewise. Don't fail for
16 new_i - 1 >= SHN_LORESERVE, instead arrange in that case to copy
17 over .symtab_shndx sections, though emit those last and compute their
18 section content when processing associated .symtab sections. Handle
19 simple_object_internal_read failure even in the .symtab_shndx reading
20 case.
21
222024-08-05 Andrew Burgess <aburgess@redhat.com>
23
24 * argv.c (only_whitespace): Delete.
25
262024-07-16 Andrew Burgess <aburgess@redhat.com>
27
28 * argv.c (buildargv): Treat input of only whitespace as an empty
29 argument list.
30 (expandargv): Remove work around for intput that is only
31 whitespace.
32 * testsuite/test-expandargv.c: Add new tests 10, 11, and 12.
33 Extend testing to call buildargv in more cases.
34
352024-07-16 Andrew Burgess <aburgess@redhat.com>
36
37 * argv.c (buildargv): Backslashes within single quotes are
38 literal, backslashes only escape POSIX defined special characters
39 within double quotes, and backslashed newlines should act as line
40 continuations.
41 * testsuite/test-expandargv.c: Add new tests 7, 8, and 9.
42
432024-04-02 Tom Tromey <tom@tromey.com>
44
45 * cplus-dem.c (cplus_demangle): Try the D demangler with
46 "auto" format.
47 * testsuite/d-demangle-expected: Add --format=auto test.
48
492024-04-02 Jakub Jelinek <jakub@redhat.com>
50
51 * regex.c (byte_re_match_2_internal): Fix duplicated words in comment;
52 next next -> next.
53 * dyn-string.c (dyn_string_init): Fix duplicated words in comment;
54 of of -> of.
55
562024-02-19 Iain Sandoe <iain@sandoe.co.uk>
57
58 PR other/113957
59 * pex-unix.c (pex_unix_exec_child): Set pid = -1 in the error
60 paths, since that is used to signal an erroneous outcome for
61 the routine.
62
632024-02-15 Richard Biener <rguenther@suse.de>
64
65 * hashtab.c (iterative_hash): Remove TBAA violating handling
66 of aligned little-endian case in favor of just keeping the
67 aligned case special-cased. Use | for composing a larger word.
68
692024-02-12 Jakub Jelinek <jakub@redhat.com>
70
71 * vprintf-support.c (libiberty_vprintf_buffer_size): Handle
72 properly l, ll, z, t or on _WIN32 I64 modifiers for diouxX
73 and L modifier for fFgGeE.
74
752024-01-13 Jakub Jelinek <jakub@redhat.com>
76
77 * cp-demangle.c (FNQUAL_COMPONENT_CASE): Add case for
78 DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
79 (d_dump): Handle DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
80 (d_nested_name): Parse H after N in nested name.
81 (d_count_templates_scopes): Handle
82 DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
83 (d_print_mod): Likewise.
84 (d_print_function_type): Likewise.
85 * testsuite/demangle-expected: Add tests for explicit object
86 member functions.
87
882023-12-05 Jakub Jelinek <jakub@redhat.com>
89
90 * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): Verify __get_cpuid and
91 __get_cpuid_count are not implicitly declared.
92 * configure: Regenerated.
93
942023-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
95
96 * pex-unix.c (pex_unix_wait): Change return type to pid_t.
97
982023-12-01 Jason Merrill <jason@redhat.com>
99
100 * cp-demangle.c (d_make_comp): Handle
101 DEMANGLE_COMPONENT_CONSTRAINTS.
102 (d_count_templates_scopes): Likewise.
103 (d_print_comp_inner): Likewise.
104 (d_maybe_constraints): New.
105 (d_encoding, d_template_args_1): Call it.
106 (d_parmlist): Handle 'Q'.
107 * testsuite/demangle-expected: Add some constraint tests.
108
1092023-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
110
111 * configure.ac (GCC_CHECK_ASSEMBLER_HWCAP): Invoke.
112 * configure, aclocal.m4: Regenerate.
113 * Makefile.in (COMPILE.c): Add HWCAP_CFLAGS.
114
1152023-11-28 Jakub Jelinek <jakub@redhat.com>
116
117 * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): New check.
118 * sha1.c: If HAVE_X86_SHA1_HW_SUPPORT is defined, include x86intrin.h
119 and cpuid.h.
120 (sha1_hw_process_bytes, sha1_hw_process_block,
121 sha1_choose_process_bytes): New functions.
122 * config.in: Regenerated.
123 * configure: Regenerated.
124
1252023-11-15 Mark Wielaard <mjw@redhat.com>
126
127 * aclocal.m4: Rebuild.
128
1292023-11-10 Brendan Shanks <bshanks@codeweavers.com>
130
131 * configure.ac (AC_CHECK_HEADERS): Add spawn.h.
132 (checkfuncs): Add posix_spawn, posix_spawnp.
133 (AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
134 * aclocal.m4, configure, config.in: Rebuild.
135 * pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
136
1372023-08-22 Jason Merrill <jason@redhat.com>
138
139 PR c++/109751
140 * cp-demangle.c (d_make_comp): Handle DEMANGLE_COMPONENT_FRIEND.
141 (d_count_templates_scopes): Likewise.
142 (d_print_comp_inner): Likewise.
143 (d_unqualified_name): Handle member-like friend mangling.
144 * testsuite/demangle-expected: Add test.
145
1462023-08-07 John Ericson <git@JohnEricson.me>
147
148 * configure: Regenerate.
149
1502023-08-07 H.J. Lu <hjl.tools@gmail.com>
151
152 * configure: Regenerate.
153
1542023-08-07 H.J. Lu <hjl.tools@gmail.com>
155
156 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
157 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
158 (configure_deps): Depend on ../config/gcc-plugin.m4.
159 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
160 RANLIB_PLUGIN_OPTION.
161 * aclocal.m4: Regenerated.
162 * configure: Likewise.
163
1642023-06-15 Marek Polacek <polacek@redhat.com>
165
166 * configure.ac: Also set shared when enable_host_pie.
167 * configure: Regenerate.
168
1692023-06-13 Nathan Sidwell <nathan@acm.org>
170
171 * cp-demangle.c (d_print_conversion): Remove incorrect
172 template instantiation handling.
173 * testsuite/demangle-expected: Add testcases.
174
1752023-06-07 Costas Argyris <costas.argyris@gmail.com>
176
177 * argv.c (writeargv): Constant propagate "0" for "status",
178 simplifying the code slightly.
179
1802023-06-06 Costas Argyris <costas.argyris@gmail.com>
181
182 * argv.c (writeargv): Simplify & remove gotos.
183
1842023-06-05 Costas Argyris <costas.argyris@gmail.com>
185
186 * pex-win32.c: fix typos.
187
1882023-06-05 Costas Argyris <costas.argyris@gmail.com>
189
190 * pex-win32.c (win32_spawn): Check command line length
191 and generate a response file if necessary.
192 (spawn_script): Adjust parameters.
193 (pex_win32_exec_child): Ditto.
194
1952023-06-03 Patrick Palka <ppalka@redhat.com>
196
197 PR c++/70790
198 * cp-demangle.c (cplus_demangle_operators): Add the noexcept
199 operator.
200 (d_print_comp_inner) <case DEMANGLE_COMPONENT_UNARY>: Always
201 print parens around the operand of noexcept too.
202 * testsuite/demangle-expected: Test noexcept operator
203 demangling.
204
2052023-04-02 Jakub Jelinek <jakub@redhat.com>
206
207 PR other/109306
208 * strstr.c: Revert the 2020-11-13 changes.
209 (strstr): Return s1 if len is 0.
210
2112023-03-30 Gerald Pfeifer <gerald@pfeifer.com>
212
213 * obstacks.texi (Preparing for Obstacks): Remove a (broken)
214 reference to the Glibc manual.
215
2162023-03-03 Costas Argyris <costas.argyris@gmail.com>
217
218 * pex-win32.c (win32_spawn): Fix memory leak of cmdline
219 buffer and refactor to have cleanup code appear once
220 for all exit cases.
221
2222023-02-11 niXman <i.nixman@autistici.org>
223
224 * lrealpath.c (lrealpath): try to resolve symlink and
225 use UNC paths where applicable.
226
2272023-01-07 LIU Hao <lh_mouse@126.com>
228
229 PR middle-end/108300
230 * make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
231 * pex-win32.c: Likewise.
232
2332022-11-23 Marek Polacek <polacek@redhat.com>
234
235 Revert:
236 2022-11-23 Marek Polacek <polacek@redhat.com>
237
238 * configure.ac: Also set shared when enable_host_pie.
239 * configure: Regenerate.
240
2412022-11-23 Marek Polacek <polacek@redhat.com>
242
243 * configure.ac: Also set shared when enable_host_pie.
244 * configure: Regenerate.
245
2462022-11-15 Nathan Sidwell <nathan@acm.org>
247
248 * cp-demangle.c (struct d_print_info): Rename is_lambda_arg to
249 lambda_tpl_parms. Augment semantics.
250 (d_make_comp): Add checks for new components.
251 (d_template_parm, d_template_head): New.
252 (d_lambda): Add templated lambda support.
253 (d_print_init): Adjust.
254 (d_print_lambda_parm_name): New.
255 (d_print_comp_inner): Support templated lambdas,
256 * testsuite/demangle-expected: Add testcases.
257
2582022-11-14 Martin Liska <mliska@suse.cz>
259
260 Revert:
261 2022-11-14 Martin Liska <mliska@suse.cz>
262
263 * doc/bsd.rst: New file.
264 * doc/conf.py: New file.
265 * doc/copyright.rst: New file.
266 * doc/extensions.rst: New file.
267 * doc/function-variable-and-macro-listing.rst: New file.
268 * doc/index.rst: New file.
269 * doc/indices-and-tables.rst: New file.
270 * doc/introduction.rst: New file.
271 * doc/lesser-general-public-license-2.1.rst: New file.
272 * doc/overview.rst: New file.
273 * doc/replacement-functions.rst: New file.
274 * doc/supplemental-functions.rst: New file.
275 * doc/using.rst: New file.
276
2772022-11-14 Martin Liska <mliska@suse.cz>
278
279 Revert:
280 2022-11-14 Martin Liska <mliska@suse.cz>
281
282 * Makefile.in: Support Sphinx based documentation.
283
2842022-11-14 Martin Liska <mliska@suse.cz>
285
286 Revert:
287 2022-11-14 Martin Liska <mliska@suse.cz>
288
289 * at-file.texi: Removed.
290 * copying-lib.texi: Removed.
291 * functions.texi: Removed.
292 * libiberty.texi: Removed.
293 * obstacks.texi: Removed.
294
2952022-11-14 Martin Liska <mliska@suse.cz>
296
297 Revert:
298 2022-11-14 Martin Liska <mliska@suse.cz>
299
300 * Makefile.in: Support --with-sphinx-build.
301 * configure.ac: Likewise.
302 * configure: Regenerate.
303
3042022-11-14 Martin Liska <mliska@suse.cz>
305
306 Revert:
307 2022-11-14 Martin Liska <mliska@suse.cz>
308
309 * doc/bsd.rst:
310 Add trailing newline.
311 * doc/copyright.rst:
312 Add trailing newline.
313 * doc/extensions.rst:
314 Add trailing newline.
315 * doc/function-variable-and-macro-listing.rst:
316 Add trailing newline.
317 * doc/index.rst:
318 Add trailing newline.
319 * doc/indices-and-tables.rst:
320 Add trailing newline.
321 * doc/introduction.rst:
322 Add trailing newline.
323 * doc/lesser-general-public-license-2.1.rst:
324 Add trailing newline.
325 * doc/overview.rst:
326 Add trailing newline.
327 * doc/replacement-functions.rst:
328 Add trailing newline.
329 * doc/supplemental-functions.rst:
330 Add trailing newline.
331 * doc/using.rst:
332 Add trailing newline.
333
3342022-11-14 Martin Liska <mliska@suse.cz>
335
336 Revert:
337 2022-11-14 Martin Liska <mliska@suse.cz>
338
339 * doc/conf.py: Add newline at last line.
340
3412022-11-14 Martin Liska <mliska@suse.cz>
342
343 Revert:
344 2022-11-14 Martin Liska <mliska@suse.cz>
345
346 PR other/107620
347 * configure: Regenerate.
348 * configure.ac: Always set sphinx-build.
349
3502022-11-13 Martin Liska <mliska@suse.cz>
351
352 PR other/107620
353 * configure: Regenerate.
354 * configure.ac: Always set sphinx-build.
355
3562022-11-10 Martin Liska <mliska@suse.cz>
357
358 * doc/conf.py: Add newline at last line.
359
3602022-11-09 Martin Liska <mliska@suse.cz>
361
362 * doc/bsd.rst:
363 Add trailing newline.
364 * doc/copyright.rst:
365 Add trailing newline.
366 * doc/extensions.rst:
367 Add trailing newline.
368 * doc/function-variable-and-macro-listing.rst:
369 Add trailing newline.
370 * doc/index.rst:
371 Add trailing newline.
372 * doc/indices-and-tables.rst:
373 Add trailing newline.
374 * doc/introduction.rst:
375 Add trailing newline.
376 * doc/lesser-general-public-license-2.1.rst:
377 Add trailing newline.
378 * doc/overview.rst:
379 Add trailing newline.
380 * doc/replacement-functions.rst:
381 Add trailing newline.
382 * doc/supplemental-functions.rst:
383 Add trailing newline.
384 * doc/using.rst:
385 Add trailing newline.
386
3872022-11-09 Martin Liska <mliska@suse.cz>
388
389 * Makefile.in: Support --with-sphinx-build.
390 * configure.ac: Likewise.
391 * configure: Regenerate.
392
3932022-11-09 Martin Liska <mliska@suse.cz>
394
395 * at-file.texi: Removed.
396 * copying-lib.texi: Removed.
397 * functions.texi: Removed.
398 * libiberty.texi: Removed.
399 * obstacks.texi: Removed.
400
4012022-11-09 Martin Liska <mliska@suse.cz>
402
403 * Makefile.in: Support Sphinx based documentation.
404
4052022-11-09 Martin Liska <mliska@suse.cz>
406
407 * doc/bsd.rst: New file.
408 * doc/conf.py: New file.
409 * doc/copyright.rst: New file.
410 * doc/extensions.rst: New file.
411 * doc/function-variable-and-macro-listing.rst: New file.
412 * doc/index.rst: New file.
413 * doc/indices-and-tables.rst: New file.
414 * doc/introduction.rst: New file.
415 * doc/lesser-general-public-license-2.1.rst: New file.
416 * doc/overview.rst: New file.
417 * doc/replacement-functions.rst: New file.
418 * doc/supplemental-functions.rst: New file.
419 * doc/using.rst: New file.
420
4212022-10-18 Florian Weimer <fweimer@redhat.com>
422
423 * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
424 int return type and parameter list to the definition of main.
425 Include <stdlib.h> and <string.h> for prototypes.
426 (ac_cv_c_stack_direction): Add missing
427 int return type and parameter list to the definitions of
428 main, find_stack_direction. Include <stdlib.h> for exit
429 prototype.
430 * configure: Regenerate.
431
4322022-10-14 Jakub Jelinek <jakub@redhat.com>
433
434 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
435 * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
436 entry.
437 (cplus_demangle_type): Demangle DF16b.
438 * testsuite/demangle-expected (_Z3xxxDF16b): New test.
439
4402022-10-11 Nathan Sidwell <nathan@acm.org>
441
442 * cp-demangle.c (d_prefix): 'M' components are not
443 (re-)added to the substitution table.
444 * testsuite/demangle-expected: Add tests.
445
4462022-10-07 Nathan Sidwell <nathan@acm.org>
447
448 * cp-demangle.c (d_print_comp_inner): Allow parameter packs
449 in a lambda signature.
450 * testsuite/demangle-expected: Add tests.
451
4522022-09-27 Jakub Jelinek <jakub@redhat.com>
453
454 PR c++/106652
455 PR c++/85518
456 * cp-demangle.c (d_dump): Handle
457 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Don't handle
458 DEMANGLE_COMPONENT_FIXED_TYPE.
459 (d_make_extended_builtin_type): New function.
460 (cplus_demangle_builtin_types): Add _Float entry.
461 (cplus_demangle_type): For DF demangle it as _Float<N> or
462 _Float<N>x rather than fixed point which conflicts with it.
463 (d_count_templates_scopes): Handle
464 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Just break; for
465 DEMANGLE_COMPONENT_FIXED_TYPE.
466 (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
467 Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
468 (d_print_comp_inner): Likewise.
469 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
470 * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
471 with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb. Add
472 _Z3xxxDF32xDF64xDF128xCDF32xVb test.
473
4742022-09-22 Jonathan Wakely <jwakely@redhat.com>
475
476 * README: Replace gcc-bugs email address with Bugzilla URL.
477
4782022-08-25 Martin Liska <mliska@suse.cz>
479
480 * configure: Regenerate.
481
4822022-07-22 Martin Liska <mliska@suse.cz>
483
484 PR other/106370
485 * _doprnt.c: Remove continue as last stmt
486 in a loop.
487
4882022-07-14 Martin Liska <mliska@suse.cz>
489
490 * functions.texi: Replace strtoul with strtoull.
491
4922022-07-04 Nick Clifton <nickc@redhat.com>
493
494 * rust-demangle.c (demangle_const): Add a missing goto pass_return
495 at the end of the function.
496
4972022-07-04 Nick Clifton <nickc@redhat.com>
498
499 * rust-demangle.c (demangle_path_maybe_open_generics): Add
500 recursion limit.
501
5022022-07-01 Nick Clifton <nickc@redhat.com>
503
504 PR demangler/105039
505 * rust-demangle.c (demangle_const): Add recursion limit.
506
5072022-06-26 Simon Marchi <simon.marchi@efficios.com>
508
509 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
510 * configure: Re-generate.
511
5122022-05-23 Nathan Sidwell <nathan@acm.org>
513
514 * cp-demangle.c (d_make_comp): Adjust.
515 (d_name, d_prefix): Adjust subst handling. Add module handling.
516 (d_maybe_module_name): New.
517 (d_unqualified_name): Add incoming module parm. Handle it. Adjust all callers.
518 (d_special_name): Add 'GI' support.
519 (d_count_template_scopes): Adjust.
520 (d_print_comp_inner): Print module.
521 * testsuite/demangle-expected: New test cases
522
5232022-05-18 Nathan Sidwell <nathan@acm.org>
524
525 * cp-demangle.c (d_name): Add SUBSTABLE parameter,
526 push substitution if requested. Adjust unscoped name handling.
527 (d_prefix): Reorder main loop. Adjust all calls.
528 (d_unqualified_name): Add SCOPE parameter, create qualified
529 name here. Adjust all calls.
530 (cplus_demangle_type): Do not handle 'S' here, leave all
531 to d_class_enum_type.
532 (d_class_enum_type): Add SUBSTABLE parameter.
533
5342022-05-17 Nathan Sidwell <nathan@acm.org>
535
536 * cp-demangle.c (d_make_comp): Adjust.
537 (d_unqualified_name): Add 'DC' support.
538 (d_count_template_scopes): Adjust.
539 (d_print_comp_inner): Add structured binding.
540 * testsuite/demangle-expected: Add testcases.
541
5422022-05-10 Martin Liska <mliska@suse.cz>
543
544 * regex.c: Restore comments.
545
5462022-05-10 Martin Liska <mliska@suse.cz>
547 Alan Modra <amodra@gmail.com>
548
549 * hashtab.c (htab_empty): Use void * type instead of void **.
550 (htab_expand): Likewise.
551
5522022-05-10 Martin Liska <mliska@suse.cz>
553
554 * random.c: Remove 'define PTR'.
555
5562022-05-10 Martin Liska <mliska@suse.cz>
557
558 * alloca.c (C_alloca): Use void * instead PTR.
559 * calloc.c (malloc): Likewise.
560 (bzero): Likewise.
561 (calloc): Likewise.
562 * hashtab.c (find_empty_slot_for_expand): Likewise.
563 (eq_pointer): Likewise.
564 (htab_create_alloc_ex): Likewise.
565 (htab_create_typed_alloc): Likewise.
566 (htab_set_functions_ex): Likewise.
567 (htab_delete): Likewise.
568 (htab_empty): Likewise.
569 (htab_expand): Likewise.
570 (htab_find_with_hash): Likewise.
571 (htab_find): Likewise.
572 (htab_find_slot_with_hash): Likewise.
573 (htab_find_slot): Likewise.
574 (htab_remove_elt): Likewise.
575 (htab_remove_elt_with_hash): Likewise.
576 (htab_clear_slot): Likewise.
577 (htab_traverse_noresize): Likewise.
578 (htab_traverse): Likewise.
579 (htab_hash_string): Likewise.
580 (iterative_hash): Likewise.
581 (hash_pointer): Likewise.
582 * memchr.c (memchr): Likewise.
583 * memcmp.c (memcmp): Likewise.
584 * memcpy.c (memcpy): Likewise.
585 * memmove.c (memmove): Likewise.
586 * mempcpy.c (memcpy): Likewise.
587 (mempcpy): Likewise.
588 * memset.c (memset): Likewise.
589 * objalloc.c (malloc): Likewise.
590 (free): Likewise.
591 (objalloc_create): Likewise.
592 (_objalloc_alloc): Likewise.
593 (objalloc_free_block): Likewise.
594 * random.c (PTR): Likewise.
595 (void): Likewise.
596 (initstate): Likewise.
597 (setstate): Likewise.
598 * regex.c: Likewise.
599 * spaces.c (malloc): Likewise.
600 (free): Likewise.
601 * stpcpy.c (memcpy): Likewise.
602 * strdup.c (malloc): Likewise.
603 (memcpy): Likewise.
604 * strerror.c (malloc): Likewise.
605 (memset): Likewise.
606 * strndup.c (malloc): Likewise.
607 (memcpy): Likewise.
608 * strsignal.c (malloc): Likewise.
609 (memset): Likewise.
610 * vasprintf.c (malloc): Likewise.
611 * vprintf-support.c: Likewise.
612 * xatexit.c (malloc): Likewise.
613 * xmalloc.c (xmalloc): Likewise.
614 (xcalloc): Likewise.
615 (xrealloc): Likewise.
616 * xmemdup.c (xmemdup): Likewise.
617
6182022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
619
620 * floatformat.c (floatformat_ieee_quad_big): Renamed from
621 floatformat_ia64_quad_big.
622 (floatformat_ieee_quad_little): Similarly.
623
6242022-02-22 Jakub Jelinek <jakub@redhat.com>
625
626 PR lto/104617
627 * simple-object-elf.c (simple_object_elf_match): Fix up URL
628 in comment.
629 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
630 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
631 range (inclusive).
632
6332022-02-17 Mark Wielaard <mark@klomp.org>
634
635 * rust-demangle.c (rust_demangle_callback): Ignore everything
636 after '.' char in sym for v0. For legacy symbols search
637 backwards to find the last 'E' before any '.'.
638 * testsuite/rust-demangle-expected: Add new .suffix testcases.
639
6402022-01-31 Nick Clifton <nickc@redhat.com>
641
642 PR demangler/98886
643 PR demangler/99935
644 * rust-demangle.c (struct rust_demangler): Add a recursion
645 counter.
646 (demangle_path): Increment/decrement the recursion counter upon
647 entry and exit. Fail if the counter exceeds a fixed limit.
648 (demangle_type): Likewise.
649 (rust_demangle_callback): Initialise the recursion counter,
650 disabling if requested by the option flags.
651
6522022-01-15 Martin Sebor <msebor@redhat.com>
653
654 * regex.c: Suppress -Wuse-after-free.
655
6562021-12-30 Lancelot SIX <lsix@lancelotsix.com>
657
658 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
659 names.
660 * testsuite/demangle-expected: Check demangling of clone symbols
661 with digits in name.
662
6632021-12-16 H.J. Lu <hjl.tools@gmail.com>
664
665 Revert:
666 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
667
668 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
669 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
670 (configure_deps): Depend on ../config/gcc-plugin.m4.
671 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
672 RANLIB_PLUGIN_OPTION.
673 * aclocal.m4: Regenerated.
674 * configure: Likewise.
675
6762021-12-15 H.J. Lu <hjl.tools@gmail.com>
677
678 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
679 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
680 (configure_deps): Depend on ../config/gcc-plugin.m4.
681 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
682 RANLIB_PLUGIN_OPTION.
683 * aclocal.m4: Regenerated.
684 * configure: Likewise.
685
6862021-11-29 Eric Gallager <egallager@gcc.gnu.org>
687
688 PR other/103021
689 * Makefile.in: Use ETAGS variable in TAGS target.
690 * configure: Regenerate.
691 * configure.ac: Allow ETAGS variable to be overridden.
692
6932021-11-29 Andrew Pinski <apinski@marvell.com>
694
695 * make-temp-file.c (try_dir): Check to see if the dir
696 is actually a directory.
697
6982021-10-22 Eric Gallager <egallager@gcc.gnu.org>
699
700 PR other/102663
701 * Makefile.in: Allow dvi-formatted documentation
702 to be installed.
703
7042021-10-17 Luís Ferreira <contact@lsferreira.net>
705
706 PR d/102618
707 * d-demangle.c (dlang_parse_qualified): Handle anonymous
708 symbols correctly.
709 * testsuite/d-demangle-expected: New tests to cover anonymous
710 symbols.
711
7122021-10-14 Luís Ferreira <contact@lsferreira.net>
713
714 * testsuite/d-demangle-expected: Add test case for function literals.
715
7162021-10-14 Luís Ferreira <contact@lsferreira.net>
717
718 * testsuite/d-demangle-expected: Add test cases for simple special
719 mangles.
720
7212021-10-12 Luís Ferreira <contact@lsferreira.net>
722
723 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
724 around lhs and rhs of assignments.
725
7262021-10-01 Luís Ferreira <contact@lsferreira.net>
727
728 * testsuite/d-demangle-expected: Add missing format for new test
729
7302021-09-23 Luís Ferreira <contact@lsferreira.net>
731
732 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
733 * testsuite/d-demangle-expected: New test.
734
7352021-09-23 Luís Ferreira <contact@lsferreira.net>
736
737 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
738 string is less than length computed by dlang_number.
739
7402021-09-01 Iain Sandoe <iain@sandoe.co.uk>
741
742 * configure: Regenerate.
743 * configure.ac: Do not search for sbrk on Darwin.
744 * xmalloc.c: Do not declare sbrk unless it has been found
745 by configure.
746
7472021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
748
749 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
750 * testsuite/d-demangle-expected: Add tests.
751
7522021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
753
754 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
755 (dlang_parse_assocarray): Likewise.
756 (dlang_parse_structlit): Likewise.
757 (dlang_value): Likewise. Handle function literal symbols.
758 (dlang_template_args): Pass 'info' to dlang_value.
759 * testsuite/d-demangle-expected: Add new test.
760
7612021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
762
763 * d-demangle.c (dlang_attributes): Handle typeof(*null).
764 (dlang_type): Likewise. Demangle 'n' as typeof(null).
765 * testsuite/d-demangle-expected: Update tests.
766
7672021-08-23 Iain Sandoe <iain@sandoe.co.uk>
768
769 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
770 Cast the first argument to set_32 as needed.
771
7722021-08-18 Iain Sandoe <iain@sandoe.co.uk>
773
774 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
775 Arrange to swap the LTO index tables where needed.
776
7772021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
778
779 * make-temp-file.c (usrtmp): Remove.
780 (choose_tmpdir): Remove use of usrtmp.
781
7822021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
783
784 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
785
7862021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
787 David Faust <david.faust@oracle.com>
788 Jose E. Marchesi <jose.marchesi@oracle.com>
789 Weimin Pan <weimin.pan@oracle.com>
790
791 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
792 sections.
793
7942021-06-05 John David Anglin <danglin@gcc.gnu.org>
795
796 PR target/100734
797 * configure.ac: Use libiberty snprintf and vsnprintf on
798 hppa*-*-hpux*.
799 * configure: Regenerate.
800
8012021-05-06 Tom Tromey <tom@tromey.com>
802
803 * hashtab.c (htab_eq_string): New function.
804
8052021-05-04 Eric Botcazou <ebotcazou@adacore.com>
806
807 * configure.ac: Make test for variables more robust.
808 * configure: Regenerate.
809
8102021-05-03 H.J. Lu <hjl.tools@gmail.com>
811
812 PR bootstrap/99703
813 * configure: Regenerated.
814
8152021-04-21 Andreas Schwab <schwab@linux-m68k.org>
816
817 PR demangler/100177
818 * rust-demangle.c (demangle_const_char): Properly print the
819 character value.
820
8212021-03-31 Patrick Palka <ppalka@redhat.com>
822
823 PR c++/88115
824 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
825 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
826 (d_print_comp_inner): Likewise.
827 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
828 change.
829 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
830 * testsuite/demangle-expected: Adjust __alignof__ tests.
831
8322021-03-16 Nick Clifton <nickc@redhat.com>
833
834 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
835
8362021-02-20 Mike Frysinger <vapier@gentoo.org>
837
838 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
839 (configure_deps): Rename to ...
840 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
841 ($(srcdir)/configure): Replace $(configure_deps) with
842 $(srcdir)/aclocal.m4.
843 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
844 * acinclude.m4: New file.
845 * configure: Regenerate.
846
8472021-02-19 Ayush Mittal <ayush.m@samsung.com>
848
849 * argv.c (expandargv): free allocated buffer if read fails.
850
8512021-02-01 Martin Sebor <msebor@redhat.com>
852
853 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
854 to avoid -Wstringop-truncation.
855
8562021-01-04 Martin Liska <mliska@suse.cz>
857
858 * strverscmp.c: Convert to utf8 from iso8859.
859
8602020-12-22 Jason Merrill <jason@redhat.com>
861
862 PR c++/67343
863 * cp-demangle.h (struct d_info): Add unresolved_name_state.
864 * cp-demangle.c (d_prefix): Add subst parm.
865 (d_nested_name): Pass it.
866 (d_unresolved_name): Split out from...
867 (d_expression_1): ...here.
868 (d_demangle_callback): Maybe retry with old sr mangling.
869 * testsuite/demangle-expected: Add test.
870
8712020-12-21 Jason Merrill <jason@redhat.com>
872
873 * cp-demangle.c (d_expression_1): Recognize qualified-id
874 on RHS of dt/pt.
875 * testsuite/demangle-expected: Add test.
876
8772020-12-21 Jason Merrill <jason@redhat.com>
878
879 * cp-demangle.c (d_unqualified_name): Clear is_expression.
880 * testsuite/demangle-expected: Add tests.
881
8822020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
883
884 * configure: Regenerate.
885 * configure.ac: Avoid using sanitizer.
886
8872020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
888
889 * rust-demangle.c (struct rust_demangler): Add
890 skipping_printing and bound_lifetime_depth fields.
891 (eat): Add (v0-only).
892 (parse_integer_62): Add (v0-only).
893 (parse_opt_integer_62): Add (v0-only).
894 (parse_disambiguator): Add (v0-only).
895 (struct rust_mangled_ident): Add punycode{,_len} fields.
896 (parse_ident): Support v0 identifiers.
897 (print_str): Respect skipping_printing.
898 (print_uint64): Add (v0-only).
899 (print_uint64_hex): Add (v0-only).
900 (print_ident): Respect skipping_printing,
901 Support v0 identifiers.
902 (print_lifetime_from_index): Add (v0-only).
903 (demangle_binder): Add (v0-only).
904 (demangle_path): Add (v0-only).
905 (demangle_generic_arg): Add (v0-only).
906 (demangle_type): Add (v0-only).
907 (demangle_path_maybe_open_generics): Add (v0-only).
908 (demangle_dyn_trait): Add (v0-only).
909 (demangle_const): Add (v0-only).
910 (demangle_const_uint): Add (v0-only).
911 (basic_type): Add (v0-only).
912 (rust_demangle_callback): Support v0 symbols.
913 * testsuite/rust-demangle-expected: Add v0 testcases.
914
9152020-11-13 Seija Kijin <doremylover456@gmail.com>
916
917 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
918
9192020-11-11 Patrick Palka <ppalka@redhat.com>
920
921 PR c++/88115
922 * cp-demangle.c (d_print_comp_inner)
923 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
924 "operator " prefix for __alignof__.
925 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
926 operand of __alignof__.
927 * testsuite/demangle-expected: Test demangling for __alignof__.
928
9292020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
930
931 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
932
9332020-10-06 Martin Liska <mliska@suse.cz>
934
935 PR lto/97290
936 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
937 Use sh_link of a .symtab_shndx section.
938
9392020-09-24 Mark Wielaard <mark@klomp.org>
940
941 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
942 and DW_UT_END.
943
9442020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
945
946 * floatformat.c (floatformat_bfloat16_big): New.
947 (floatformat_bfloat16_little): New.
948
9492020-09-08 Alan Modra <amodra@gmail.com>
950
951 * d-demangle.c: Include limits.h.
952 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
953 (dlang_number): Simplify and correct overflow test. Only
954 write *ret on returning non-NULL. Make "ret" an unsigned long*.
955 Only succeed for result of [0,UINT_MAX].
956 (dlang_decode_backref): Simplify and correct overflow test.
957 Only write *ret on returning non-NULL. Only succeed for
958 result [1,MAX_LONG].
959 (dlang_backref): Remove now unnecessary range check.
960 (dlang_symbol_name_p): Likewise.
961 (string_need): Take a size_t n arg, and use size_t tem.
962 (string_append): Use size_t n.
963 (string_appendn, string_prependn): Take a size_t n arg.
964 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
965 (dlang_lname, dlang_parse_template): Take an unsigned long len
966 arg.
967 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
968 (dlang_parse_integer, dlang_parse_string),
969 (dlang_parse_arrayliteral, dlang_parse_assocarray),
970 (dlang_parse_structlit, dlang_parse_tuple),
971 (dlang_template_symbol_param, dlang_template_args): Use
972 unsigned long variables.
973 * testsuite/d-demangle-expected: Add new tests.
974
9752020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
976
977 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
978 parameter storage classes.
979 (dlang_type): Remove identifier type.
980 * testsuite/d-demangle-expected: Update tests.
981
9822020-08-03 Richard Biener <rguenther@suse.de>
983
984 PR lto/96385
985 * simple-object-elf.c
986 (simple_object_elf_copy_lto_debug_sections): Localize global
987 UNDEFs and reuse the prevailing name.
988
9892020-07-30 H.J. Lu <hjl.tools@gmail.com>
990
991 PR bootstrap/96202
992 * configure: Regenerated.
993
9942020-07-14 Ian Lance Taylor <iant@golang.org>
995
996 PR demangler/96143
997 * cp-demangle.c (d_lambda): Don't add substitution candidate.
998 * testsuite/demangle-expected: Update a few existing test cases
999 accordingly, and add a new test case.
1000
10012020-07-10 Jason Merrill <jason@redhat.com>
1002
1003 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
1004 (d_expression_1): Handle di and dX.
1005 (is_designated_init, d_maybe_print_designated_init): New.
1006 (d_print_comp_inner): Use d_maybe_print_designated_init.
1007 * testsuite/demangle-expected: Add designator tests.
1008
10092020-06-26 Nick Clifton <nickc@redhat.com>
1010
1011 * bsearch.c (bsearch): Remove use of register keyword.
1012 * bsearch_r.c (bsearch_r): Likewise.
1013
10142020-06-23 Nick Alcock <nick.alcock@oracle.com>
1015
1016 * bsearch_r.c: New file.
1017 * Makefile.in (CFILES): Add bsearch_r.c.
1018 (REQUIRED_OFILES): Add bsearch_r.o.
1019 * functions.texi: Regenerate.
1020
10212020-05-29 H.J. Lu <hjl.tools@gmail.com>
1022
1023 PR bootstrap/95413
1024 * configure: Regenerated.
1025
10262020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
1027
1028 * d-demangle.c (dlang_attributes): Add @live attribute.
1029 * testsuite/d-demangle-expected: Add new tests.
1030
10312020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
1032 Iain Buclaw <ibuclaw@gdcproject.org>
1033
1034 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
1035 (struct dlang_info): New struct
1036 (dlang_decode_backref): New function.
1037 (dlang_backref): New function.
1038 (dlang_symbol_backref): New function.
1039 (dlang_type_backref): New function.
1040 (dlang_symbol_name_p): New function.
1041 (dlang_function_type_noreturn): New function.
1042 (dlang_function_type): Add 'info' parameter. Decode function type
1043 with dlang_function_type_noreturn.
1044 (dlang_function_args): Add 'info' parameter.
1045 (dlang_type): Add 'info' parameter. Handle back referenced types.
1046 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
1047 referenced symbols. Split off decoding of plain identifiers to...
1048 (dlang_lname): ...here.
1049 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
1050 function type and return with dlang_type.
1051 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
1052 'suffix_modifier' parameter. Decode function type with
1053 dlang_function_type_noreturn.
1054 (dlang_parse_tuple): Add 'info' parameter.
1055 (dlang_template_symbol_param): New function.
1056 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
1057 with dlang_template_symbol_param. Handle back referenced values, and
1058 externally mangled parameters.
1059 (dlang_parse_template): Add 'info' parameter.
1060 (dlang_demangle_init_info): New function.
1061 (dlang_demangle): Initialize and pass 'info' parameter.
1062 * testsuite/d-demangle-expected: Add new tests.
1063
10642020-05-12 H.J. Lu <hongjiu.lu@intel.com>
1065
1066 PR bootstrap/94998
1067 * configure: Regenerated.
1068
10692020-04-28 H.J. Lu <hongjiu.lu@intel.com>
1070
1071 PR bootstrap/94739
1072 * configure: Regenerated.
1073
10742020-04-27 Jakub Jelinek <jakub@redhat.com>
1075
1076 PR demangler/94797
1077 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
1078 * testsuite/demangle-expected: Add operator<=> test.
1079
10802020-04-25 H.J. Lu <hongjiu.lu@intel.com>
1081
1082 PR bootstrap/94739
1083 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
1084 (configure_deps): Add $(srcdir)/../config/cet.m4 and
1085 $(srcdir)/../config/enable.m4.
1086 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
1087 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
1088 AC_SUBST(CET_HOST_FLAGS).
1089 * configure: Regenerated.
1090
10912020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1092
1093 * simple-object.c (handle_lto_debug_sections): Name
1094 ".GCC.command.line" among debug sections to be copied over
1095 from lto objects.
1096
10972020-03-02 Nick Clifton <nickc@redhat.com>
1098
1099 * testsuite/demangle-expected: Update expected demangling of
1100 enable_if pattern.
1101
11022020-03-02 H.J. Lu <hongjiu.lu@intel.com>
1103
1104 PR lto/93966
1105 * simple-object.c (handle_lto_debug_sections): Also copy
1106 .note.gnu.property section.
1107
11082020-02-12 Sandra Loosemore <sandra@codesourcery.com>
1109
1110 PR libstdc++/79193
1111 PR libstdc++/88999
1112
1113 * configure: Regenerated.
1114
11152020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
1116
1117 * hashtab.c (htab_remove_elt): Make a parameter const.
1118 (htab_remove_elt_with_hash): Likewise.
1119
11202020-01-23 Alexandre Oliva <oliva@adacore.com>
1121
1122 * argv.c (writeargv): Output empty args as "".
1123
11242020-01-01 Jakub Jelinek <jakub@redhat.com>
1125
1126 Update copyright years.
1127
11282019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
1129
1130 * make-relative-prefix.c (split_directories):
1131 Return early on empty 'name'
1132
11332019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
1134
1135 * cp-demangle.c (d_print_init): Remove const from 4th param.
1136 (cplus_demangle_fill_name): Initialize d->d_counting.
1137 (cplus_demangle_fill_extended_operator): Likewise.
1138 (cplus_demangle_fill_ctor): Likewise.
1139 (cplus_demangle_fill_dtor): Likewise.
1140 (d_make_empty): Likewise.
1141 (d_count_templates_scopes): Remobe const from 3rd param,
1142 Return on dc->d_counting > 1,
1143 Increment dc->d_counting.
1144 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
1145 (cplus_demangle_fill_builtin_type): Likewise.
1146 (cplus_demangle_fill_operator): Likewise.
1147
11482019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1149
1150 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
1151 (rust_demangle): Remove.
1152 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
1153 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
1154 (parse_legacy_escape): Rename to decode_legacy_escape.
1155 (rust_is_mangled): Remove.
1156 (struct rust_demangler): Add.
1157 (peek): Add.
1158 (next): Add.
1159 (struct rust_mangled_ident): Add.
1160 (parse_ident): Add.
1161 (rust_demangle_sym): Remove.
1162 (print_str): Add.
1163 (PRINT): Add.
1164 (print_ident): Add.
1165 (rust_demangle_callback): Add.
1166 (struct str_buf): Add.
1167 (str_buf_reserve): Add.
1168 (str_buf_append): Add.
1169 (str_buf_demangle_callback): Add.
1170 (rust_demangle): Add.
1171 * rust-demangle.h: Remove.
1172
11732019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
1174
1175 * testsuite/demangle-expected: Fix test.
1176
11772019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1178
1179 * cp-demangle.c (d_expr_primary): Handle
1180 nullptr demangling.
1181 * testsuite/demangle-expected: Added test.
1182
11832019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
1184
1185 * cp-demangle.c (d_number): Avoid signed int overflow.
1186
11872019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
1188
1189 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
1190 and `imaginary`, as opposed to after.
1191 * testsuite/demangle-expected: Adjust test.
1192
11932019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1194
1195 * rust-demangle.c (looks_like_rust): Remove.
1196 (rust_is_mangled): Don't check escapes.
1197 (is_prefixed_hash): Allow 0-9a-f permutations.
1198 (rust_demangle_sym): Don't bail on unknown escapes.
1199 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
1200
12012019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1202
1203 * rust-demangle.c (unescape): Remove.
1204 (parse_lower_hex_nibble): New function.
1205 (parse_legacy_escape): New function.
1206 (is_prefixed_hash): Use parse_lower_hex_nibble.
1207 (looks_like_rust): Use parse_legacy_escape.
1208 (rust_demangle_sym): Use parse_legacy_escape.
1209 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
1210
12112019-08-27 Martin Liska <mliska@suse.cz>
1212
1213 PR lto/91478
1214 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1215 First find a WEAK HIDDEN symbol in symbol table that will be
1216 preserved. Later, use the symbol name for all removed symbols.
1217
12182019-08-12 Martin Liska <mliska@suse.cz>
1219
1220 * Makefile.in: Add filedescriptor.c.
1221 * filedescriptor.c: New file.
1222 * lrealpath.c (is_valid_fd): Remove.
1223
12242019-08-08 Martin Liska <mliska@suse.cz>
1225
1226 PR bootstrap/91352
1227 * lrealpath.c (is_valid_fd): New function.
1228
12292019-07-24 Martin Liska <mliska@suse.cz>
1230
1231 PR lto/91228
1232 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1233 Find first '\0' starting from gnu_lto + 1.
1234
12352019-07-12 Ren Kimura <rkx1209dev@gmail.com>
1236
1237 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
1238 This fixes a Bug 90924.
1239
12402019-07-22 Martin Liska <mliska@suse.cz>
1241
1242 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1243 Do not search for gnu_lto_v1, but search for first '\0'.
1244
12452019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1246
1247 * cplus-dem.c: Include rust-demangle.h.
1248 * rust-demangle.c: Include rust-demangle.h.
1249 * rust-demangle.h: New file.
1250
12512019-05-31 Michael Forney <mforney@mforney.org>
1252
1253 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
1254 is non-zero.
1255
12562019-04-30 Ben L <bobsayshilol@live.co.uk>
1257
1258 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1259 * testsuite/d-demangle-expected: Add testcase.
1260
1261 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1262 * testsuite/d-demangle-expected: Add testcase.
1263
1264 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1265 * testsuite/d-demangle-expected: Add testcase.
1266
1267 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1268 * testsuite/d-demangle-expected: Add testcase.
1269
1270 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1271 * testsuite/d-demangle-expected: Add testcase.
1272
1273 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1274 * testsuite/demangle-expected: Add testcase.
1275
1276 * cp-demangle.c (d_encoding): Guard against NULL return values from
1277 d_right (dc).
1278 * testsuite/demangle-expected: Add testcase.
1279
12802019-04-29 Ben L <bobsayshilol@live.co.uk>
1281
1282 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
1283 char is valid.
1284 * testsuite/demangle-expected: Add testcase.
1285
12862019-04-10 Nick Clifton <nickc@redhat.com>
1287
1288 PR 89394
1289 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
1290 lengths.
1291 (d_count_templates_scopes): Replace num_templates and num_scopes
1292 parameters with a struct d_print_info pointer parameter. Adjust
1293 body of the function accordingly. Add recursion counter and check
1294 that the recursion limit is not reached.
1295 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
1296 Reset recursion counter afterwards, unless the recursion limit was
1297 reached.
1298
12992019-04-07 Alan Modra <amodra@gmail.com>
1300
1301 * functions.texi: Regenerate.
1302
13032019-03-14 Jason Merrill <jason@redhat.com>
1304 Jakub Jelinek <jakub@redhat.com>
1305
1306 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
1307 than if *slot is HTAB_EMPTY_ENTRY.
1308
13092019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1310
1311 * splay-tree.c (splay_tree_insert): Also release old KEY in case
1312 of insertion of a key equal to an already present key.
1313 (splay_tree_new_typed_alloc): Update comment.
1314
13152019-01-22 Nidal Faour <nidal.faour@wdc.com>
1316
1317 PR lto/88422
1318 * simple-object.c (O_BINARY): Define if not already defined.
1319 (simple_object_copy_lto_debug_sections): Create file in binary
1320 mode.
1321
13222019-01-21 Tom Tromey <tom@tromey.com>
1323
1324 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1325
13262019-01-14 Tom Honermann <tom@honermann.net>
1327
1328 * cp-demangle.c (cplus_demangle_builtin_types)
1329 (cplus_demangle_type): Add name demangling for char8_t (Du).
1330 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
1331 new char8_t type.
1332
13332019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1334
1335 PR other/16615
1336
1337 * cp-demangle.c: Mechanically replace "can not" with "cannot".
1338 * floatformat.c: Likewise.
1339 * strerror.c: Likewise.
1340
13412019-01-01 Jakub Jelinek <jakub@redhat.com>
1342
1343 Update copyright years.
1344
13452018-12-22 Jason Merrill <jason@redhat.com>
1346
1347 Remove support for demangling GCC 2.x era mangling schemes.
1348 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1349 internal_cplus_demangle, and all subroutines.
1350 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1351 Lucid, ARM, HP, and EDG demangling styles.
1352 (cplus_demangle): Remove 'work' variable. Don't call
1353 internal_cplus_demangle.
1354
13552018-12-07 Nick Clifton <nickc@redhat.com>
1356
1357 PR 87681
1358 PR 87675
1359 PR 87636
1360 PR 87350
1361 PR 87335
1362 * cp-demangle.h (struct d_info): Add recursion_level field.
1363 * cp-demangle.c (d_function_type): Add recursion counter.
1364 If the recursion limit is reached and the check is not disabled,
1365 then return with a failure result.
1366 (cplus_demangle_init_info): Initialise the recursion_level field.
1367 (d_demangle_callback): If the recursion limit is enabled, check
1368 for a mangled string that is so long that there is not enough
1369 stack space for the local arrays.
1370 * cplus-dem.c (struct work): Add recursion_level field.
1371 (squangle_mop_up): Set the numb and numk fields to zero.
1372 (work_stuff_copy_to_from): Handle the case where a btypevec or
1373 ktypevec field is NULL.
1374 (demangle_nested_args): Add recursion counter. If
1375 the recursion limit is not disabled and reached, return with a
1376 failure result.
1377
13782018-10-23 Jason Merrill <jason@redhat.com>
1379
1380 Implement P0732R2, class types in non-type template parameters.
1381 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1382 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1383 (d_special_name): Handle TA.
1384 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1385
13862018-10-31 Joseph Myers <joseph@codesourcery.com>
1387
1388 PR bootstrap/82856
1389 Merge from binutils-gdb:
1390 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1391
1392 * configure.ac: Remove AC_PREREQ.
1393 * configure: Re-generate.
1394 * config.in: Re-generate.
1395
13962018-10-01 Nathan Sidwell <nathan@acm.org>
1397
1398 * configure.ac (checkfuncs): Add pipe2.
1399 * config.in, configure: Rebuilt.
1400 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1401 to parent with a pipe, when possible.
1402
14032018-08-23 Nathan Sidwell <nathan@acm.org>
1404 Martin Liska <mliska@suse.cz>
1405
1406 PR driver/87056
1407 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1408 scopes to avoid potential clobber.
1409
14102018-08-20 Nathan Sidwell <nathan@acm.org>
1411
1412 * pex-unix.c (pex_child_error): Delete.
1413 (pex_unix_exec_child): Commonize error paths to single message &
1414 exit.
1415
14162018-07-30 Tom Tromey <tom@tromey.com>
1417
1418 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1419
14202018-07-26 Martin Liska <mliska@suse.cz>
1421
1422 PR lto/86548
1423 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1424 (make_temp_file): Call make_temp_file_with_prefix with
1425 first argument set to NULL.
1426 (make_temp_file_with_prefix): Support also prefix.
1427
14282018-07-19 Eli Zaretskii <eliz@gnu.org>
1429
1430 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1431 to ENOSYS.
1432
14332018-05-30 Jan Hubicka <hubicka@ucw.cz>
1434
1435 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1436 (handle_lto_debug_sections_rename): New function.
1437 (handle_lto_debug_sections_norename): New function.
1438 (simple_object_copy_lto_debug_sections): Add rename parameter.
1439
14402018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1441
1442 * splay-tree.c (splay_tree_compare_strings,
1443 splay_tree_delete_pointers): New utility functions.
1444
14452018-05-10 Martin Liska <mliska@suse.cz>
1446
1447 PR bootstrap/64914
1448 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1449
14502018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1451
1452 * argv.c (expandargv): Fix memory leak for copied argv.
1453
14542018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1455
1456 PR lto/81968
1457 * simple-object.c (handle_lto_debug_sections): Keep .comment
1458 section.
1459
14602018-03-02 David Malcolm <dmalcolm@redhat.com>
1461
1462 * cp-demangle.c: Update URL for g++ V3 ABI.
1463
14642018-01-20 Eli Zaretskii <eliz@gnu.org>
1465
1466 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1467 ulong_type to avoid warning about 32-bit shift.
1468
14692018-01-11 Richard Biener <rguenther@suse.de>
1470 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1471
1472 PR lto/81968
1473 * simple-object-common.h (struct simple_object_functions):
1474 Change copy_lto_debug_sections callback signature.
1475 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1476 SHF_INFO_LINK): Add defines.
1477 (simple_object_elf_copy_lto_debug_sections): Instead of
1478 leaving not to be copied sections empty unnamed SHT_NULL
1479 remove them from the target section headers and adjust section
1480 reference everywhere. Handle SHN_XINDEX in the symbol table
1481 processing properly.
1482 * simple-object.c (handle_lto_debug_sections): Change
1483 interface to return a modified string and handle renaming
1484 of relocation sections.
1485
14862018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1487
1488 * argv.c (expandargv): Correct check for dynamically
1489 allocated argv.
1490
14912018-01-03 Jakub Jelinek <jakub@redhat.com>
1492
1493 Update copyright years.
1494
14952017-01-02 Richard Biener <rguenther@suse.de>
1496
1497 PR lto/83452
1498 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1499 Do not use UNDEF locals for removed symbols but instead just
1500 define them in the first prevailing section and with no name.
1501 Use the same gnu_lto_v1 name for all removed globals we promote to
1502 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
1503 sh_info and sh_link in removed sections.
1504
15052017-10-30 Richard Biener <rguenther@suse.de>
1506
1507 PR lto/82757
1508 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1509 Strip two leading _s from the __gnu_lto_* symbols.
1510
15112017-10-24 Alan Modra <amodra@gmail.com>
1512
1513 PR lto/82687
1514 PR lto/82575
1515 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1516 Only make __gnu_lto symbols hidden.
1517
15182017-10-20 Alan Modra <amodra@gmail.com>
1519
1520 PR lto/82575
1521 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1522 Make discarded non-local symbols weak and hidden.
1523
15242017-10-18 Jakub Jelinek <jakub@redhat.com>
1525
1526 PR lto/82598
1527 * simple-object.c (handle_lto_debug_sections): Copy over also
1528 .note.GNU-stack section with unchanged name.
1529 * simple-object-elf.c (SHF_EXECINSTR): Define.
1530 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1531 on .note.GNU-stack section.
1532
15332017-09-25 Nathan Sidwell <nathan@acm.org>
1534
1535 PR demangler/82195
1536 * cp-demangle.c (d_encoding): Strip return type when name is a
1537 LOCAL_NAME.
1538 (d_local_name): Strip return type of enclosing TYPED_NAME.
1539 * testsuite/demangle-expected: Add and adjust tests.
1540
15412017-09-21 Nathan Sidwell <nathan@acm.org>
1542
1543 PR demangler/82195
1544 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1545 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1546 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1547 to strip modifiers that do not belong.
1548 (d_special_name, d_class_enum_type): Revert d_name call change.
1549 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1550 (d_local_name): Revert parsing of a function type.
1551 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1552 TEMPLATE.
1553 * testsuite/demangle-expected: Add & adjust tests
1554
15552017-09-15 Nathan Sidwell <nathan@acm.org>
1556
1557 PR demangler/82195
1558 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1559 (d_local_name): ... here. Parse trailing function args on nested
1560 local_name.
1561 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1562 * testsuite/demangle-expected: Add tests.
1563
15642017-09-15 Richard Biener <rguenther@suse.de>
1565
1566 PR lto/81968
1567 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1568 Iterate marking dependent sections necessary.
1569
15702017-09-15 Nathan Sidwell <nathan@acm.org>
1571
1572 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1573 FNQUAL_COMPONENT_CASE.
1574 (d_encoding): Hold bare_function_type in local var.
1575 (d_local_name): Build name in both cases and build result once.
1576 Collapse switch-if to single conditional.
1577 (d_local_name):
1578
1579 * testsuite/demangle-expected: Realign blank lines with tests.
1580
15812017-09-12 Jiong Wang <jiong.wang@arm.com>
1582
1583 * dwarfnames.c (DW_CFA_DUP): New define.
1584
15852017-09-01 Martin Liska <mliska@suse.cz>
1586
1587 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1588 Remove duplicite declaration.
1589
15902017-08-31 Richard Biener <rguenther@suse.de>
1591
1592 PR lto/81968
1593 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1594 Keep names of removed global symbols.
1595
15962017-08-29 Tony Reix <tony.reix@atos.net>
1597
1598 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1599 Improve .go_export csect handling. Don't make assumptions
1600 on containing section or number of auxiliary entries.
1601
16022017-08-28 Richard Biener <rguenther@suse.de>
1603
1604 PR lto/81968
1605 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1606 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1607 removed sections.
1608
16092017-08-22 Richard Biener <rguenther@suse.de>
1610
1611 PR lto/81925
1612 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1613 type of sh_addralign and sh_entsize and properly write
1614 sh_entsize as Elf_Addr.
1615 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1616
16172017-08-21 Richard Biener <rguenther@suse.de>
1618
1619 * simple-object-common.h (struct simple_object_functions): Add
1620 copy_lto_debug_sections hook.
1621 * simple-object.c: Include fcntl.h.
1622 (handle_lto_debug_sections): New helper function.
1623 (simple_object_copy_lto_debug_sections): New function copying
1624 early LTO debug sections to regular debug sections in a new file.
1625 (simple_object_start_write): Handle NULL segment_name.
1626 * simple-object-coff.c (simple_object_coff_functions): Adjust
1627 for not implemented copy_lto_debug_sections hook.
1628 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1629 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1630 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1631 SHT_GROUP): Add various sectopn header types.
1632 (SHF_EXCLUDE): Add flag.
1633 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1634 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1635 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1636 (STV_DEFAULT): Add symbol visibility.
1637 (SHN_COMMON): Add special section index name.
1638 (struct simple_object_elf_write): New.
1639 (simple_object_elf_start_write): Adjust for new private data.
1640 (simple_object_elf_write_shdr): Pass in values for all fields
1641 we write.
1642 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1643 section headers if requested.
1644 (simple_object_elf_release_write): Release private data.
1645 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1646 as denoted by PFN and all their dependences, symbols and relocations
1647 to the empty destination file.
1648 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1649
16502017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1651
1652 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1653
16542017-06-07 Tony Reix <tony.reix@atos.net>
1655 Matthieu Sarter <matthieu.sarter.external@atos.net>
1656 David Edelsohn <dje.gcc@gmail.com>
1657
1658 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1659 Search symbol table for .go_export symbol and apply pfn if found.
1660
16612017-05-31 DJ Delorie <dj@redhat.com>
1662
1663 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1664 * configure: Likewise.
1665 * config.in: Add HACE_DECL_STRNLEN.
1666
16672017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1668
1669 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1670 with `initializer for'.
1671 * testsuite/demangle-expected: Update tests.
1672
16732017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1674
1675 * d-demangle.c (dlang_call_convention_p): Move declaration
1676 before dlang_type.
1677 (dlang_type): Handle function types.
1678 * testsuite/d-demangle-expected: Add tests.
1679
16802017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1681
1682 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1683 the demangled hexadecimal directly to string.
1684 * testsuite/d-demangle-expected: Add tests.
1685
16862017-05-24 Eli Zaretskii <eliz@gnu.org>
1687
1688 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1689 that calls _cwait, so that this function works on MinGW.
1690
16912017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1692
1693 * d-demangle.c (dlang_hexdigit): New function.
1694 (ascii2hex): Remove function.
1695 (dlang_parse_string): Update to call dlang_hexdigit.
1696 * testsuite/d-demangle-expected: Add tests.
1697
16982017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1699
1700 * d-demangle.c (strtol): Remove declaration.
1701 Updated all callers to use dlang_number.
1702 (dlang_number): New function.
1703 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1704 * testsuite/d-demangle-expected: Add tests.
1705
17062017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1707
1708 * d-demangle.c (dlang_parse_symbol): Remove function.
1709 (dlang_parse_qualified): New function.
1710 (dlang_parse_mangle): New function.
1711 (dlang_type): Update to call dlang_parse_qualified.
1712 (dlang_identifier): Update to call either dlang_parse_qualified or
1713 dlang_parse_mangle.
1714 (dlang_type_modifier_p): Remove function.
1715 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1716 (dlang_template_args): Update to call dlang_identifier.
1717 (dlang_demangle): Update to call dlang_parse_mangle.
1718 * testsuite/d-demangle-expected: Add tests.
1719
17202017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1721
1722 * d-demangle.c (dlang_value): Add comment explaining why cases for
1723 digits are required.
1724 * testsuite/d-demangle-expected: Update integer value tests.
1725
17262017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1727
1728 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1729 * testsuite/d-demangle-expected: Add tests.
1730
17312017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1732
1733 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1734 (dlang_parse_template): Only advance if template symbol prefix is
1735 followed by a digit.
1736 * testsuite/d-demangle-expected: Add tests.
1737
17382017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1739
1740 * d-demangle.c (dlang_attributes): Handle scope attributes.
1741 * testsuite/d-demangle-expected: Add tests.
1742
17432017-04-27 Jonathan Wakely <jwakely@redhat.com>
1744
1745 PR demangler/80513
1746 * cp-demangle.c (d_number): Check for overflow.
1747 * cplus-dem.c (consume_count): Fix overflow check.
1748 (gnu_special): Check for underscore after thunk delta.
1749 * testsuite/demangle-expected: Add tests for overflows and invalid
1750 characters in thunks.
1751
17522017-04-21 Mark Wielaard <mark@klomp.org>
1753
1754 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1755 (struct d_print_info): Add recursion field.
1756 (d_print_init): Initialize recursion.
1757 (d_print_comp): Check and update d_print_info recursion depth.
1758
17592017-04-21 Mark Wielaard <mark@klomp.org>
1760
1761 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1762 fails.
1763
17642017-04-21 Mark Wielaard <mark@klomp.org>
1765
1766 * cp-demangle.h (struct d_info): Remove did_subs field.
1767 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1768 (d_template_param): Don't update did_subs.
1769 (d_substitution): Likewise.
1770 (d_checkpoint): Don't assign did_subs.
1771 (d_backtrack): Likewise.
1772 (cplus_demangle_init_info): Don't initialize did_subs.
1773
17742017-03-27 Pedro Alves <palves@redhat.com>
1775
1776 * cp-demint.c (cplus_demangle_fill_component): Handle
1777 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1778
17792017-03-12 Mark Wielaard <mark@klomp.org>
1780
1781 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1782 demangle_component d_printing.
1783 (cplus_demangle_fill_extended_operator): Likewise.
1784 (cplus_demangle_fill_ctor): Likewise.
1785 (cplus_demangle_fill_dtor): Likewise.
1786
17872017-03-08 Mark Wielaard <mark@klomp.org>
1788
1789 PR demangler/70909
1790 PR demangler/67264
1791 * cp-demangle.c: Fix endless recursion. Pass
1792 struct demangle_component as non const.
1793 (d_make_empty): Initialize variable.
1794 (d_print_comp_inner): Limit recursion.
1795 (d_print_comp): Decrement variable.
1796 * cp-demint.c (cplus_demangle_fill_component): Initialize
1797 variable.
1798 (cplus_demangle_fill_builtin_type): Likewise.
1799 (cplus_demangle_fill_operator): Likewise.
1800 * testsuite/demangle-expected: Add tests.
1801
18022017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1803
1804 PR PR c++/70182
1805 * cp-demangle.c (d_unqualified_name): Handle "on" for
1806 operator names.
1807 * testsuite/demangle-expected: Add tests.
1808
18092017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1810
1811 PR c++/77489
1812 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1813 * testsuite/demangle-expected: Add tests for discriminator.
1814
18152017-01-04 Jakub Jelinek <jakub@redhat.com>
1816
1817 Update copyright years.
1818
18192017-01-04 Alan Modra <amodra@gmail.com>
1820
1821 * Makefile.in (configure_deps): Update.
1822 * configure: Regenerate.
1823
18242016-12-13 Jakub Jelinek <jakub@redhat.com>
1825
1826 PR c++/78761
1827 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1828 * testsuite/demangle-expected: Add test for decltype(auto).
1829
18302016-12-12 Nathan Sidwell <nathan@acm.org>
1831
1832 PR c++/78252
1833 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1834 (d_print_init): Initialize it.
1835 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1836 is_lambda_arg for auto.
1837 <DEMANGLE_COMPONENT_REFERENCE,
1838 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1839 is_lambda_arg.
1840 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1841 printing.
1842 * testsuite/demangle-expected: Add lambda auto mangling cases.
1843
18442016-12-06 DJ Delorie <dj@redhat.com>
1845
1846 * argv.c (expandargv): Check for directories passed as @-files.
1847
18482016-11-30 David Malcolm <dmalcolm@redhat.com>
1849
1850 PR c/78498
1851 * strndup.c (strlen): Delete decl.
1852 (strnlen): Add decl.
1853 (strndup): Call strnlen rather than strlen.
1854 * xstrndup.c (xstrndup): Likewise.
1855
18562016-11-29 Nathan Sidwell <nathan@acm.org>
1857
1858 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1859
18602016-11-03 David Tolnay <dtolnay@gmail.com>
1861 Mark Wielaard <mark@klomp.org>
1862
1863 * Makefile.in (CFILES): Add rust-demangle.c.
1864 (REQUIRED_OFILES): Add rust-demangle.o.
1865 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1866 (cplus_demangle): Handle RUST_DEMANGLING.
1867 (rust_demangle): New function.
1868 * rust-demangle.c: New file.
1869 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1870 (check-rust-demangle): New rule.
1871 * testsuite/rust-demangle-expected: New file.
1872
18732016-11-15 Mark Wielaard <mark@klomp.org>
1874
1875 * cp-demangle.c (d_expression_1): Make sure third expression
1876 exists for ?: and fold expressions.
1877 * testsuite/demangle-expected: Add examples of strings that could
1878 crash the demangler because of missing expression.
1879
18802016-11-14 Mark Wielaard <mark@klomp.org>
1881
1882 * cplus-dem.c (demangle_signature): After 'H', template function,
1883 no success and don't advance position if end of string reached.
1884 (demangle_template): After 'z', template name, return zero on
1885 premature end of string.
1886 (gnu_special): Guard strchr against searching for zero characters.
1887 (do_type): If member, only advance mangled string when 'F' found.
1888 * testsuite/demangle-expected: Add examples of strings that could
1889 crash the demangler by reading past end of input.
1890
18912016-11-06 Mark Wielaard <mark@klomp.org>
1892
1893 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1894 * configure: Regenerated.
1895
18962016-11-07 Jason Merrill <jason@redhat.com>
1897
1898 * cp-demangle.c (is_fnqual_component_type): New.
1899 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1900 (FNQUAL_COMPONENT_CASE): New.
1901 (d_make_comp, has_return_type, d_print_comp_inner)
1902 (d_print_function_type): Use it.
1903 (next_is_type_qual): New.
1904 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1905
19062016-11-02 Mark Wielaard <mjw@redhat.com>
1907
1908 * cplus-dem.c (demangle_signature): Move fall through comment.
1909 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1910 * hashtab.c (iterative_hash): Add fall through comments.
1911 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1912 (byte_re_match_2_internal): Add Fall through comment after jump_n.
1913 Change "Note fall through" to "Fall through".
1914 (common_op_match_null_string_p): Return false after set_number_at
1915 instead of fall through.
1916
19172016-11-01 Jason Merrill <jason@redhat.com>
1918
1919 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1920
19212016-10-31 Mark Wielaard <mjw@redhat.com>
1922
1923 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1924 XDELETEVEC demangled when unknown.
1925
19262016-09-19 Andrew Stubbs <ams@codesourcery.com>
1927
1928 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1929 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1930
19312016-09-10 Mark Wielaard <mjw@redhat.com>
1932
1933 * cp-demangle.c (d_substitution): Change struct demangle_component
1934 variable name from c to dc.
1935
19362016-08-12 Marek Polacek <polacek@redhat.com>
1937
1938 PR c/7652
1939 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1940
19412016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
1942
1943 PR c++/71696
1944 * cplus-dem.c: Prevent infinite recursion when there is a cycle
1945 in the referencing of remembered mangled types.
1946 (work_stuff): New stack to keep track of the remembered mangled
1947 types that are currently being processed.
1948 (push_processed_type): New method to push currently processed
1949 remembered type onto the stack.
1950 (pop_processed_type): New method to pop currently processed
1951 remembered type from the stack.
1952 (work_stuff_copy_to_from): Copy values of new variables.
1953 (delete_non_B_K_work_stuff): Free stack memory.
1954 (demangle_args): Push/Pop currently processed remembered type.
1955 (do_type): Do not demangle a cyclic reference and push/pop
1956 referenced remembered type.
1957
19582016-07-29 Aldy Hernandez <aldyh@redhat.com>
1959
1960 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1961 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1962
19632016-07-15 Jason Merrill <jason@redhat.com>
1964
1965 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1966 (d_expression_1): Handle them.
1967 (d_maybe_print_fold_expression): New.
1968 (d_print_comp_inner): Use it.
1969 (d_index_template_argument): Handle negative index.
1970
1971 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1972 (d_print_comp_inner): Handle them.
1973 (d_template_args_1): Split out from d_template_args.
1974 (d_args_length): New.
1975
19762016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
1977
1978 PR c++/70926
1979 * cplus-dem.c: Handle large values and overflow when demangling
1980 length variables.
1981 (demangle_template_value_parm): Read only until end of mangled string.
1982 (do_hpacc_template_literal): Likewise.
1983 (do_type): Handle overflow when demangling array indices.
1984
19852016-06-12 Brooks Moses <bmoses@google.com>
1986
1987 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
1988 VLAs.
1989
19902016-05-31 Alan Modra <amodra@gmail.com>
1991
1992 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1993
19942016-05-19 Jakub Jelinek <jakub@redhat.com>
1995
1996 PR c++/70498
1997 * cp-demangle.c (d_expression_1): Formatting fix.
1998
19992016-05-18 Artemiy Volkov <artemiyv@acm.org>
2000
2001 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
2002 constant.
2003 (demangle_template_value_parm): Handle tk_rvalue_reference
2004 type kind.
2005 (do_type): Support 'O' type id (rvalue references).
2006
2007 * testsuite/demangle-expected: Add tests.
2008
20092016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
2010
2011 PR c++/70498
2012 * cp-demangle.c: Parse numbers as integer instead of long to avoid
2013 overflow after sanity checks. Include <limits.h> if available.
2014 (INT_MAX): Define if necessary.
2015 (d_make_template_param): Takes integer argument instead of long.
2016 (d_make_function_param): Likewise.
2017 (d_append_num): Likewise.
2018 (d_identifier): Likewise.
2019 (d_number): Parse as and return integer.
2020 (d_compact_number): Handle overflow.
2021 (d_source_name): Change variable type to integer for parsed number.
2022 (d_java_resource): Likewise.
2023 (d_special_name): Likewise.
2024 (d_discriminator): Likewise.
2025 (d_unnamed_type): Likewise.
2026 * testsuite/demangle-expected: Add regression test cases.
2027
20282016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
2029
2030 * configure: Remove SH5 support.
2031
20322016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
2033
2034 PR c++/69687
2035 * cplus-dem.c: Include <limits.h> if available.
2036 (INT_MAX): Define if necessary.
2037 (remember_type, remember_Ktype, register_Btype, string_need):
2038 Abort if we detect cases where we the size of the allocation would
2039 overflow.
2040
2041 PR c++/70492
2042 * cplus-dem.c (gnu_special): Handle case where consume_count returns
2043 -1.
2044
20452016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
2046 Marcel Bohme <boehme.marcel@gmail.com>
2047
2048 PR c++/67394
2049 PR c++/70481
2050 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
2051 btypevec/ktypevec.
2052 * testsuite/demangle-expected: Add coverage tests.
2053
20542016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2055
2056 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
2057 function calling convention.
2058 (dlang_call_convention_p): Likewise.
2059 (dlang_type): Likewise.
2060 * testsuite/d-demangle-expected: Add coverage tests.
2061
20622016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2063
2064 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
2065 only if parameters were seen before the elipsis symbol.
2066 * testsuite/d-demangle-expected: Add coverage test for parameter-less
2067 variadic functions.
2068
20692016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2070
2071 * d-demangle.c (dlang_type): Handle function types only in the context
2072 of seeing a pointer type symbol.
2073 * testsuite/d-demangle-expected: Update function pointer tests.
2074
20752016-01-05 Mike Frysinger <vapier@gentoo.org>
2076
2077 * argv.c (dupargv): Change arg to char * const *. Update comment.
2078 (writeargv, countargv): Likewise.
2079 * functions.texi (dupargv, writeargv, countargv): Likewise.
2080
20812016-01-05 Mike Frysinger <vapier@gentoo.org>
2082
2083 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
2084
20852015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
2086
2087 * crc32.c: In the documentation, don't refer to GDB's
2088 now-nonexistent crc32 implementation. In the table-generation
2089 program embedded within the documentation, change the type of
2090 the induction variables i and j from int to unsigned int, to
2091 avoid undefined behavior.
2092
20932015-12-21 Nick Clifton <nickc@redhat.com>
2094
2095 PR 66827
2096 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
2097 shifting.
2098
20992015-11-27 Pedro Alves <palves@redhat.com>
2100
2101 PR other/61321
2102 PR other/61233
2103 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
2104 DEMANGLE_COMPONENT_CONVERSION.
2105 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
2106 instead of DEMANGLE_COMPONENT_CAST.
2107 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
2108 component if handling a conversion.
2109 (d_count_templates_scopes, d_print_comp_inner): Handle
2110 DEMANGLE_COMPONENT_CONVERSION.
2111 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
2112 of DEMANGLE_COMPONENT_CAST.
2113 (d_print_cast): Rename as ...
2114 (d_print_conversion): ... this. Adjust comments.
2115 (d_print_cast): Rewrite - simply print the left subcomponent.
2116 * cp-demint.c (cplus_demangle_fill_component): Handle
2117 DEMANGLE_COMPONENT_CONVERSION.
2118
2119 * testsuite/demangle-expected: Add tests.
2120
21212015-11-12 Mike Stump <mikestump@comcast.net>
2122
2123 * Makefile.in (etags tags TAGS): Use && instead of ;.
2124
21252015-11-09 Alan Modra <amodra@gmail.com>
2126
2127 * configure.ac: Check size of size_t.
2128 * configure: Regenerate.
2129 * config.in: Regenerate.
2130
21312015-11-09 Alan Modra <amodra@gmail.com>
2132
2133 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
2134 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
2135 after alloc failure check.
2136
21372015-11-09 Alan Modra <amodra@gmail.com>
2138
2139 PR gdb/17133
2140 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
2141 (obstack_exit_failure): Don't use exitfail.h.
2142 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
2143 Provide default. Don't include gettext.h.
2144 (_Noreturn): Define.
2145 * obstacks.texi: Adjust node references to external libc info files.
2146
21472015-11-09 Alan Modra <amodra@gmail.com>
2148
2149 PR gdb/17133
2150 * obstack.c: Import current gnulib file.
2151 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
2152
21532015-11-06 Joel Brobecker <brobecker@adacore.com>
2154
2155 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
2156 Android hosts.
2157 * configure: Regenerate.
2158
21592015-10-28 Jason Merrill <jason@redhat.com>
2160
2161 * Makefile.in (TAGS): Fix for separate build directory.
2162
21632015-10-18 Roland McGrath <roland@gnu.org>
2164 Iain Sandoe <iain@codesourcery.com>
2165
2166 PR other/63758
2167 * pex-unix.c: Obtain the environment interface from settings in
2168 environ.h rather than in-line code. Update copyright date.
2169 * setenv.c: Likewise.
2170 * xmalloc.c: Likewise.
2171
21722015-09-30 Jason Merrill <jason@redhat.com>
2173
2174 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
2175 (cplus_demangle_type): Let d_cv_qualifiers handle it.
2176 (d_dump, d_make_comp, has_return_type, d_encoding)
2177 (d_count_templates_scopes, d_print_comp_inner)
2178 (d_print_mod_list, d_print_mod, d_print_function_type)
2179 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
2180
21812015-08-15 Ian Lance Taylor <iant@google.com>
2182
2183 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
2184 ABI tags.
2185
21862015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
2187
2188 * d-demangle.c (dlang_parse_real): Remove call to strtod.
2189 (strtod): Remove declaration.
2190 * testsuite/d-demangle-expected: Update float and complex literal
2191 tests to check correct hexadecimal demangling.
2192
21932015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
2194
2195 * cp-demangle.c (d_dump): Fix syntax error.
2196 (d_identifier): Adjust type of len to match d_source_name.
2197 (d_expression_1): Fix out-of-bounds access. Check code variable for
2198 NULL before dereferencing it.
2199 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
2200 (d_print_comp_inner): Add NULL pointer check.
2201 * cp-demangle.h (d_peek_next_char): Define as inline function when
2202 CHECK_DEMANGLER is defined.
2203 (d_advance): Likewise.
2204 * testsuite/demangle-expected: Add new testcases.
2205
22062015-07-09 Uros Bizjak <ubizjak@gmail.com>
2207
2208 * getruntime.c (RUSAGE_SELF): Define if not already defined.
2209 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
2210
22112015-06-01 Jason Merrill <jason@redhat.com>
2212
2213 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
2214 extended qualifier.
2215
22162015-05-22 Yunlian Jiang <yunlian@google.com>
2217
2218 * configure.ac: Add AC_GNU_SOURCE.
2219 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
2220 * configure, config.in: Rebuild.
2221 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
2222
22232015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2224
2225 * d-demangle.c (dlang_symbol_kinds): New enum.
2226 (dlang_parse_symbol): Update signature. Handle an ambiguity between
2227 pascal functions and template value arguments. Only check for a type
2228 if parsing a function, or at the top level. Return failure if the
2229 entire symbol was not successfully demangled.
2230 (dlang_identifier): Update signature. Handle an ambiguity between two
2231 adjacent digits in a mangled symbol string.
2232 (dlang_type): Update call to dlang_parse_symbol.
2233 (dlang_template_args): Likewise.
2234 (dlang_parse_template): Likewise.
2235 (dlang_demangle): Likewise.
2236 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
2237 examples to the unittests.
2238
22392015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2240
2241 * d-demangle.c (dlang_template_args): Skip over specialized template
2242 parameters in mangled symbol.
2243 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
2244 template parameters.
2245
22462015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2247
2248 * d-demangle.c (dlang_type): Handle cent and ucent types.
2249 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
2250
22512015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2252
2253 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
2254 return parameters in the mangled string. Return NULL if have encountered
2255 an unknown attribute.
2256 (dlang_function_args): Handle return parameters in the mangled string.
2257 * testsuite/d-demangle-expected: Add coverage tests for functions with
2258 return parameters and return attributes.
2259
22602015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2261
2262 * d-demangle.c (dlang_identifier): Check encoded length of identifier
2263 to verify strncmp matches entire string.
2264 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
2265
22662015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2267
2268 * d-demangle.c (dlang_type_modifiers): New function.
2269 (dlang_type_modifier_p): New function.
2270 (dlang_call_convention_p): Ignore any kind of type modifier.
2271 (dlang_type): Handle and emit the type modifier after delegate types.
2272 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
2273 * testsuite/d-demangle-expected: Add coverage tests for all valid
2274 usages of function symbols with type modifiers.
2275
22762015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2277
2278 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
2279 end of the symbol, but expected something to read.
2280 (dlang_attributes): Likewise.
2281 (dlang_function_type): Likewise.
2282 (dlang_type): Likewise.
2283 (dlang_identifier): Likewise.
2284 (dlang_value): Likewise.
2285
22862015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2287
2288 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
2289 non-printable characters as hex or escape sequences.
2290 * testsuite/d-demangle-expected: Add test for templates with tabs and
2291 newlines embedded into the signature.
2292
22932015-05-08 Joel Brobecker <brobecker@adacore.com>
2294
2295 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
2296 but not HAVE_SYS_TIME_H.
2297
22982015-04-22 Eli Zaretskii <eliz@gnu.org>
2299
2300 * setenv.c <environ>: Declare only if not a macro.
2301
23022015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
2303
2304 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2305
23062015-04-10 Jakub Jelinek <jakub@redhat.com>
2307 Iain Sandoe <iain@codesourcery.com>
2308
2309 PR target/65351
2310 * configure: Regenerate.
2311
23122015-04-07 Jakub Jelinek <jakub@redhat.com>
2313 Iain Sandoe <iain@codesourcery.com>
2314
2315 PR target/65351
2316 * configure: Regenerate.
2317
23182015-01-19 Eli Zaretskii <eliz@gnu.org>
2319
2320 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2321 macros.
2322
23232014-12-24 Uros Bizjak <ubizjak@gmail.com>
2324 Ben Elliston <bje@au.ibm.com>
2325 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2326
2327 * xasprintf.c: New file.
2328 * Makefile.in (CFILES): Add xasprintf.c.
2329 (REQUIRED_OFILES): Add xasprintf.$(objext).
2330 (xasprintf.$(objext)): New target.
2331 * functions.texi: Regenerate.
2332
23332014-12-11 Uros Bizjak <ubizjak@gmail.com>
2334 Ben Elliston <bje@au.ibm.com>
2335 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2336
2337 * xvasprintf.c: New file.
2338 * vprintf-support.h: Likewise.
2339 * vprintf-support.c: Likewise.
2340 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
2341 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
2342 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
2343 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
2344 * functions.texi: Regenerate.
2345 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
2346
23472014-11-22 John David Anglin <danglin@gcc.gnu.org>
2348
2349 PR other/63694
2350 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2351 declarations.
2352 * configure: Regenerated.
2353
23542014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2355
2356 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2357 unsigned long.
2358
23592014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
2360 Manuel López-Ibáñez <manu@gcc.gnu.org>
2361
2362 PR driver/36312
2363 * filename_cmp.c (canonical_filename_eq): New function to check if
2364 file names are the same.
2365 * functions.texi: Updated with documentation for new function.
2366
23672014-11-11 David Malcolm <dmalcolm@redhat.com>
2368
2369 * ChangeLog.jit: New.
2370
23712014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2372
2373 * sigsetmask.c (_POSIX_SOURCE): Remove.
2374
23752014-10-28 Yury Gribov <y.gribov@samsung.com>
2376
2377 * strtoll.c: New file.
2378 * strtoull.c: New file.
2379 * configure.ac: Add long long checks. Add harness for strtoll and
2380 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
2381 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2382 * config.in: Regenerate.
2383 * configure: Regenerate.
2384 * functions.texi: Regenerate.
2385 * testsuite/Makefile.in (check-strtol): New rule.
2386 (test-strtol): Likewise.
2387 (mostlyclean): Clean up strtol test.
2388 * testsuite/test-strtol.c: New test.
2389
23902014-10-15 David Malcolm <dmalcolm@redhat.com>
2391
2392 * choose-temp.c (choose_tmpdir): Remove now-redundant local
2393 copy of prototype.
2394 * functions.texi: Regenerate.
2395 * make-temp-file.c (choose_tmpdir): Convert return type from
2396 char * to const char * - given that this returns a pointer to
2397 a memoized allocation, the caller must not touch it.
2398
23992014-10-14 Joel Brobecker <brobecker@adacore.com>
2400
2401 * d-demangle.c: Replace strtold with strtod in global comment.
2402 (strtold): Remove declaration.
2403 (strtod): New declaration.
2404 (dlang_parse_real): Declare value as double instead of long
2405 double. Replace call to strtold by call to strtod.
2406 Update format in call to snprintf.
2407
24082014-09-26 Jason Merrill <jason@redhat.com>
2409
2410 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2411
24122014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
2413
2414 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2415 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2416 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2417 * pex-win32.c (pex_win32_open_write): Likewise.
2418 * pex-common.c (pex_run_in_environment): Likewise.
2419
24202014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
2421
2422 * Makefile.in (CFILES): Add d-demangle.c.
2423 (REQUIRED_OFILES): Add d-demangle.o.
2424 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2425 (cplus_demangle): Likewise.
2426 * d-demangle.c: New file.
2427 * testsuite/Makefile.in (really-check): Add check-d-demangle.
2428 * testsuite/d-demangle-expected: New file.
2429
24302014-09-19 Ian Lance Taylor <iant@google.com>
2431
2432 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2433 handle objects with more than SHN_LORESERVE sections.
2434 (simple_object_elf_write_shdr): Add sh_link parameter.
2435 (simple_object_elf_write_to_file): Correctly handle objects with
2436 more than SHN_LORESERVE sections.
2437
24382014-08-29 Andrew Burgess <aburgess@broadcom.com>
2439
2440 * cp-demangle.c (d_dump): Only access field from s_fixed part of
2441 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2442 (d_count_templates_scopes): Likewise.
2443
24442014-08-13 Gary Benson <gbenson@redhat.com>
2445
2446 * testsuite/demangler-fuzzer.c: New file.
2447 * testsuite/Makefile.in (fuzz-demangler): New rule.
2448 (demangler-fuzzer): Likewise.
2449 (mostlyclean): Clean up demangler fuzzer.
2450
24512014-06-11 Andrew Burgess <aburgess@broadcom.com>
2452
2453 * cplus-dem.c (do_type): Call string_delete even if the call to
2454 demangle_template fails.
2455
24562014-06-01 Ray Donnelly <mingw.android@gmail.com>
2457
2458 * pex-win32.c (argv_to_cmdline): Don't quote
2459 args unnecessarily
2460
24612014-05-28 Pedro Alves <palves@redhat.com>
2462
2463 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2464 and DEMANGLE_COMPONENT_NUMBER.
2465
24662014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2467
2468 * testsuite/demangle-expected: Fix last commit.
2469
24702014-05-14 Andrew Burgess <aburgess@broadcom.com>
2471
2472 * cplus-dmem.c (internal_cplus_demangle): Free any resources
2473 allocated by possible previous call to gnu_special.
2474 (squangle_mop_up): Reset pointers to NULL after calling free.
2475 * testsuite/demangle-expected: New test case.
2476
24772014-05-08 Gary Benson <gbenson@redhat.com>
2478
2479 * cp-demangle.c (struct d_component_stack): New structure.
2480 (struct d_print_info): New field component_stack.
2481 (d_print_init): Initialize the above.
2482 (d_print_comp_inner): Renamed from d_print_comp.
2483 Do not restore template stack if it would cause a loop.
2484 (d_print_comp): New function.
2485 * testsuite/demangle-expected: New test cases.
2486
24872014-04-17 Jakub Jelinek <jakub@redhat.com>
2488
2489 PR sanitizer/56781
2490 * maint-tool: Also emit rule for noasan/ subdirectory.
2491 * configure.ac (NOASANFLAG): Set and substitute.
2492 * Makefile.in: Regenerated.
2493 (NOASANFLAG): Set.
2494 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2495 subdir.
2496 (stamp-noasandir): New goal.
2497 * configure: Regenerated.
2498
24992014-04-01 Richard Biener <rguenther@suse.de>
2500
2501 * simple-object.c (simple_object_internal_write): Handle
2502 EINTR and short writes.
2503
25042014-03-28 Richard Biener <rguenther@suse.de>
2505
2506 * simple-object.c (simple_object_internal_read): Handle
2507 EINTR and short reads.
2508
25092014-03-13 Uros Bizjak <ubizjak@gmail.com>
2510
2511 * regex.c (bzero) [!_LIBC]: Define without coma expression.
2512 (regerror): Cast the call to memcpy to (void) to avoid unused
2513 value warnings.
2514
25152014-01-28 Thomas Schwinge <thomas@codesourcery.com>
2516
2517 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2518 to help the compiler.
2519
25202014-01-21 Tom Tromey <tromey@redhat.com>
2521
2522 * _doprint.c (checkit): Use stdarg, not VA_* macros.
2523 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2524 * concat.c (concat_length, concat_copy, concat_copy2, concat)
2525 (reconcat): Use stdarg, not VA_* macros.
2526 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2527 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2528 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2529
25302014-01-06 Mike Frysinger <vapier@gentoo.org>
2531
2532 PR other/56780
2533 * configure.ac: Delete target_header_dir assignment.
2534 * configure: Regenerated.
2535
25362014-01-06 Gary Benson <gbenson@redhat.com>
2537
2538 * cp-demangle.c (struct d_print_info): New fields
2539 next_saved_scope, copy_templates, next_copy_template and
2540 num_copy_templates.
2541 (d_count_templates): New function.
2542 (d_print_init): New parameter "dc".
2543 Estimate numbers of templates and scopes required.
2544 (d_print_free): Removed function.
2545 (cplus_demangle_print_callback): Allocate stack for
2546 templates and scopes. Removed call to d_print_free.
2547 (d_copy_templates): Removed function.
2548 (d_save_scope): New function.
2549 (d_get_saved_scope): Likewise.
2550 (d_print_comp): Replace state saving/restoring code with
2551 calls to d_save_scope and d_get_saved_scope.
2552
25532013-12-23 Bill Maddox <maddox@google.com>
2554
2555 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2556 Handle unified ctor/dtor.
2557 (d_ctor_dtor_name): Handle unified ctor/dtor.
2558
25592013-11-22 Cary Coutant <ccoutant@google.com>
2560
2561 PR other/59195
2562 * cp-demangle.c (struct d_info_checkpoint): New struct.
2563 (struct d_print_info): Add current_template field.
2564 (d_operator_name): Set flag when processing a conversion
2565 operator.
2566 (cplus_demangle_type): When processing <template-args> for
2567 a conversion operator, backtrack if necessary.
2568 (d_expression_1): Renamed from d_expression.
2569 (d_expression): New wrapper around d_expression_1.
2570 (d_checkpoint): New function.
2571 (d_backtrack): New function.
2572 (d_print_init): Initialize current_template.
2573 (d_print_comp): Set current_template.
2574 (d_print_cast): Put current_template in scope for
2575 printing conversion operator name.
2576 (cplus_demangle_init_info): Initialize is_expression and
2577 is_conversion.
2578 * cp-demangle.h (struct d_info): Add is_expression and
2579 is_conversion fields.
2580 * testsuite/demangle-expected: New test cases.
2581
25822013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2583
2584 * configure: Regenerate.
2585
25862013-11-12 Uros Bizjak <ubizjak@gmail.com>
2587
2588 * cp-demangle.c (d_copy_templates): Cast result of malloc
2589 to (struct d_print_template *).
2590 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2591
25922013-10-29 Marc Glisse <marc.glisse@inria.fr>
2593
2594 PR tree-optimization/58689
2595 * concat.c: Remove note about xmalloc.
2596
25972013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2598
2599 * testsuite/test-demangle.c: Include unistd.h.
2600
26012013-10-25 Gary Benson <gbenson@redhat.com>
2602
2603 * cp-demangle.c (struct d_saved_scope): New structure.
2604 (struct d_print_info): New fields saved_scopes and
2605 num_saved_scopes.
2606 (d_print_init): Initialize the above.
2607 (d_print_free): New function.
2608 (cplus_demangle_print_callback): Call the above.
2609 (d_copy_templates): New function.
2610 (d_print_comp): New variables saved_templates and
2611 need_template_restore.
2612 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2613 Capture scope the first time the component is traversed, and use the
2614 captured scope for subsequent traversals.
2615 * testsuite/demangle-expected: Add regression test.
2616
26172013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2618
2619 * testsuite/test-expandargv.c: Include unistd.h.
2620
26212013-10-15 David Malcolm <dmalcolm@redhat.com>
2622
2623 * configure.ac: If --enable-host-shared, use -fPIC.
2624 * configure: Regenerate.
2625
26262013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2627
2628 * cp-demangle.c (d_name): Demangle local-source-names.
2629 * testsuite/demangle-expected: New test.
2630
26312013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2632
2633 PR bootstrap/58386
2634 Revert:
2635
2636 2013-09-10 Gary Benson <gbenson@redhat.com>
2637
2638 * cp-demangle.c: Include hashtab.h.
2639 (struct d_print_info): New field saved_scopes.
2640 (d_print_init): Initialize the above.
2641 (d_print_free): New function.
2642 (cplus_demangle_print_callback): Call the above.
2643 (struct d_saved_scope): New structure.
2644 (d_store_scope): New function.
2645 (d_free_scope) Likewise.
2646 (d_restore_scope) Likewise.
2647 (d_hash_saved_scope) Likewise.
2648 (d_equal_saved_scope) Likewise.
2649 (d_print_comp): New variable saved_scope.
2650 [DEMANGLE_COMPONENT_REFERENCE,
2651 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2652 time the component is traversed, and use the captured scope for
2653 subsequent traversals.
2654 * testsuite/demangle-expected: Add regression test.
2655
26562013-09-10 Gary Benson <gbenson@redhat.com>
2657
2658 * cp-demangle.c: Include hashtab.h.
2659 (struct d_print_info): New field saved_scopes.
2660 (d_print_init): Initialize the above.
2661 (d_print_free): New function.
2662 (cplus_demangle_print_callback): Call the above.
2663 (struct d_saved_scope): New structure.
2664 (d_store_scope): New function.
2665 (d_free_scope) Likewise.
2666 (d_restore_scope) Likewise.
2667 (d_hash_saved_scope) Likewise.
2668 (d_equal_saved_scope) Likewise.
2669 (d_print_comp): New variable saved_scope.
2670 [DEMANGLE_COMPONENT_REFERENCE,
2671 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2672 time the component is traversed, and use the captured scope for
2673 subsequent traversals.
2674 * testsuite/demangle-expected: Add regression test.
2675
26762013-08-20 Alan Modra <amodra@gmail.com>
2677
2678 * floatformat.c (floatformat_ibm_long_double): Rename to..
2679 (floatformat_ibm_long_double_big): ..this.
2680 (floatformat_ibm_long_double_little): New.
2681
26822013-07-09 Tristan Gingold <gingold@adacore.com>
2683
2684 * makefile.vms (OBJS): Add dwarfnames.obj
2685
26862013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2687
2688 PR other/56780
2689 * configure.ac: Move test for --enable-install-libiberty
2690 outside of the 'with_target_subdir' test so that it actually gets
2691 run. Add output messages to show the test result.
2692 * configure: Regenerate.
2693 * Makefile.in (install_to_libdir): Place the
2694 installation of the libiberty library in the same guard as that
2695 used for the headers to prevent it being installed unless
2696 requested via --enable-install-libiberty.
2697
26982013-05-06 David Edelsohn <dje.gcc@gmail.com>
2699 Peter Bergner <bergner@vnet.ibm.com>
2700 Segher Boessenkool <segher@kernel.crashing.org>
2701 Jakub Jelinek <jakub@redhat.com>
2702
2703 * hashtab.c (hash_pointer): Remove conditional and avoid
2704 unexecuted shift equal to wordsize.
2705
27062013-04-22 Andi Kleen <ak@linux.intel.com>
2707
2708 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2709
27102013-04-03 Jason Merrill <jason@redhat.com>
2711
2712 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2713 (d_pointer_to_member_type): Simplify.
2714
2715 Demangle C++11 ref-qualifier.
2716 * cp-demangle.c (d_ref_qualifier): New.
2717 (d_nested_name, d_function_type): Use it.
2718 (d_parmlist): Don't get confused by a ref-qualifier.
2719 (cplus_demangle_type): Reorder ref-qualifier.
2720 (d_pointer_to_member_type): Likewise.
2721 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2722 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2723 (d_make_comp, has_return_type, d_encoding): Likewise.
2724 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2725 (d_print_function_type, is_ctor_or_dtor): Likewise.
2726
27272013-03-27 Kai Tietz <ktietz@redhat.com>
2728
2729 * configure: Regenerated.
2730
27312013-03-06 Tobias Burnus <burnus@net-b.de>
2732
2733 * libiberty.texi: Update comment, remove lowersections.
2734 * obstacks.texi: Regenerate.
2735
27362013-03-05 Jakub Jelinek <jakub@redhat.com>
2737
2738 PR middle-end/56526
2739 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2740 wrapper_sect_offset to avoid a warning.
2741
27422013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2743
2744 * obstacks.texi (Obstacks): Trim @node to only contain the
2745 node name.
2746 * libiberty.texi (Obstacks): Lower section.
2747
27482013-02-14 Jason Merrill <jason@redhat.com>
2749
2750 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2751 (d_print_comp): Likewise.
2752
27532013-02-09 Jakub Jelinek <jakub@redhat.com>
2754
2755 PR other/56245
2756 * regex.c (PTR_INT_TYPE): Define.
2757 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2758
27592013-01-31 Kai Tietz <ktietz@redhat.com>
2760
2761 PR other/54620
2762 * sha1.c (sha1_process_block): Handle case that size_t is
2763 a wider-integer-scalar as a 32-bit unsigned integer.
2764
2765 PR other/53413
2766 * md5.c (md5_process_block): Handle case that size_t is
2767 a wider-integer-scalar a 32-bit unsigned integer.
2768
27692013-01-04 Ian Lance Taylor <iant@google.com>
2770
2771 PR other/54800
2772 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2773 bother to zero out a buffer we are about to set anyhow.
2774
27752013-01-01 David Edelsohn <dje.gcc@gmail.com>
2776
2777 * simple-object-xcoff.c: New file.
2778 * Makefile.in: Add it to build machinery.
2779 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2780 * simple-object.c (format_functions): Add
2781 simple_object_xcoff_functions.
2782
27832012-11-10 Jason Merrill <jason@redhat.com>
2784
2785 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2786 (d_name): Not here.
2787
27882012-11-09 Jason Merrill <jason@redhat.com>
2789
2790 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2791 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2792 (d_abi_tags): New.
2793 (d_name): Call it.
2794
27952012-10-08 Jason Merrill <jason@redhat.com>
2796
2797 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2798 (d_make_comp, d_print_comp): Likewise.
2799
28002012-09-18 Ian Lance Taylor <iant@google.com>
2801
2802 * strnlen.c: New file.
2803 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2804 present.
2805 * Makefile.in: Rebuild dependencies.
2806 (CFILES): Add strnlen.c.
2807 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2808 * configure, config.in, functions.texi: Rebuild.
2809
2810 * maint-tool: Accept .def files in the include directory.
2811
28122012-09-18 Florian Weimer <fweimer@redhat.com>
2813
2814 PR other/54411
2815 * objalloc.c (_objalloc_alloc): Add overflow check covering
2816 alignment and CHUNK_HEADER_SIZE addition.
2817
28182011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2819
2820 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2821 xmalloc return.
2822 (buildargv): Likewise. Also replace strdup with xstrdup.
2823 (expandargv): Don't check dupargv return.
2824
28252011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2826
2827 PR binutils/14526
2828 * argv.c (buildargv): Replace alloca with xmalloc/free.
2829
28302012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2831
2832 * floatformat.c (floatformat_to_double): Correctly handle numbers
2833 between 1 and 2. Simplify handling of denormal number.
2834 (main): Test with 1.1.
2835
28362012-07-31 Mike Frysinger <vapier@gentoo.org>
2837
2838 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2839 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2840
28412012-07-26 Kazu Hirata <kazu@codesourcery.com>
2842 Sandra Loosemore <sandra@codesourcery.com>
2843
2844 * pex-win32.c (pex_win32_exec_child): Only close original file
2845 descriptors if child is launched successfully.
2846
28472012-07-18 Jason Merrill <jason@redhat.com>
2848
2849 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2850 (op_is_new_cast): New.
2851 (d_expression, d_print_comp): Check it.
2852
28532012-07-13 Doug Evans <dje@google.com>
2854
2855 * filename_cmp.c (filename_hash, filename_eq): New functions.
2856
28572012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2858
2859 * copying-lib.texi (Library Copying): Don't use @heading inside
2860 @enumerate.
2861
28622012-05-22 Tom Tromey <tromey@redhat.com>
2863
2864 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2865 * testsuite/demangle-expected: Add regression test.
2866 * cp-demangle.c (d_find_pack): Return NULL for
2867 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2868
28692012-04-27 Tom Tromey <tromey@redhat.com>
2870
2871 * dwarfnames.c: New file.
2872 * Makefile.in (CFILES): Add dwarfnames.
2873 (REQUIRED_OFILES): Add dwarfnames.
2874 (./dwarfnames.$(objext)): New target.
2875
28762012-04-04 Tristan Gingold <gingold@adacore.com>
2877
2878 * pex-unix.c (to_ptr32): Fix style.
2879
28802012-04-02 Tristan Gingold <gingold@adacore.com>
2881
2882 * stack-limit.c: Includes ansidecl.h.
2883 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2884
28852012-03-20 Jason Merrill <jason@redhat.com>
2886
2887 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2888
28892012-03-07 Jason Merrill <jason@redhat.com>
2890
2891 * cp-demangle.c (cplus_demangle_operators): Add li.
2892 (d_unqualified_name): Handle it specially.
2893
28942012-01-26 Jakub Jelinek <jakub@redhat.com>
2895
2896 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2897 about using preprocessor directives inside of macro arguments.
2898
28992012-01-22 Douglas B Rupp <rupp@gnat.com>
2900
2901 * configure: Regenerate.
2902
29032012-01-10 Jason Merrill <jason@redhat.com>
2904
2905 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2906 Omit a trailing space in the operator name.
2907
29082012-01-06 Jason Merrill <jason@redhat.com>
2909
2910 PR c++/6057
2911 PR c++/48051
2912 PR c++/50855
2913 PR c++/51322
2914 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2915 DEMANGLE_COMPONENT_INITIALIZER_LIST.
2916 (d_make_comp): Likewise. Allow null right arg for
2917 DEMANGLE_COMPONENT_TRINARY_ARG2.
2918 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2919 (d_template_args, d_template_arg): Handle 'J' for argument packs.
2920 (d_exprlist): Add terminator parm.
2921 (d_expression, d_print_comp): Handle initializer lists, nullary
2922 expressions, prefix/suffix operators, and new.
2923 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2924 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2925 * testsuite/demangle-expected: Add tests.
2926
2927 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2928 and vector are substitutable.
2929 (cplus_demangle_operators): Sort.
2930
29312012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2932
2933 * configure: Regenerate.
2934
29352012-01-02 Jakub Jelinek <jakub@redhat.com>
2936
2937 * make-relative-prefix.c (make_relative_prefix_1): Avoid
2938 stack overflow if PATH contains just a single entry and
2939 HOST_EXECUTABLE_SUFFIX needs to be used.
2940
2941 PR driver/48306
2942 * make-relative-prefix.c: Include sys/stat.h.
2943 (make_relative_prefix_1): If access succeeds, check also stat
2944 if nstore is a regular file.
2945
29462011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2947
2948 * configure: Regenerate.
2949
29502011-12-20 Tristan Gingold <gingold@adacore.com>
2951
2952 * aclocal.m4: Assume strncmp works in cross case.
2953 * configure: Regenerate
2954
29552011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2956
2957 * configure: Regenerate.
2958
29592011-11-07 Richard Henderson <rth@redhat.com>
2960
2961 Merged from transactional-memory.
2962
2963 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2964 gnu_v3_object_ctor_group.
2965 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2966 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2967 and gnu_v3_object_dtor_group.
2968 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2969 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2970 (d_make_comp, d_print_comp): Likewise.
2971 (d_special_name): Generate them.
2972
29732011-11-04 Jason Merrill <jason@redhat.com>
2974
2975 PR c++/48370
2976 * cp-demangle.c (d_special_name, d_print_comp): Handle a
2977 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2978
29792011-11-02 Doug Evans <dje@google.com>
2980
2981 * Makefile.in (CFILES): Add timeval-utils.c.
2982 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2983 (INSTALLED_HEADERS): Add timeval-utils.h.
2984 (timeval-utils.$(objext)): Add rule.
2985
29862011-10-28 Ian Lance Taylor <iant@google.com>
2987
2988 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2989
29902011-10-26 Iain Sandoe <iains@gcc.gnu.org>
2991
2992 PR target/48108
2993 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
2994 GNU_WRAPPER_NAMES): New macros.
2995 (simple_object_mach_o_segment): Handle wrapper scheme.
2996 (simple_object_mach_o_write_section_header): Allow the segment name
2997 to be supplied.
2998 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
2999 that the top-level segment name in the load command is empty.
3000 (simple_object_mach_o_write_to_file): Determine the number of
3001 sections during segment output, use that in writing the header.
3002
30032011-10-10 Ian Lance Taylor <iant@google.com>
3004
3005 PR c++/48665
3006 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
3007 function type, change them to apply to the "this" parameter.
3008 * testsuite/demangle-expected: Add test case.
3009
30102011-09-28 Doug Evans <dje@google.com>
3011
3012 * timeval-utils.c: New file.
3013
3014 * argv.c (countargv): New function.
3015
30162011-09-23 Cary Coutant <ccoutant@google.com>
3017
3018 PR 40831
3019 * cp-demangle.c (d_make_comp): Add new component type.
3020 (cplus_demangle_mangled_name): Check for clone suffixes.
3021 (d_parmlist): Don't error out if we see '.'.
3022 (d_clone_suffix): New function.
3023 (d_print_comp): Print info for clone suffixes.
3024 * testsuite/demangle-expected: Add new testcases.
3025
30262011-09-23 Ian Lance Taylor <iant@google.com>
3027 Pierre Vittet <piervit@pvittet.com>
3028
3029 * md5.c (md5_process_bytes): Correct handling of unaligned
3030 buffer.
3031
30322011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3033
3034 * aclocal.m4: Include ../config/picflag.m4.
3035 * configure.ac (GCC_PICFLAG): Call it.
3036 (enable_shared): Clear PICFLAG unless shared.
3037 * configure: Regenerate.
3038
30392011-08-12 Steve Ellcey <sje@cup.hp.com>
3040
3041 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
3042
30432011-08-06 Uros Bizjak <ubizjak@gmail.com>
3044
3045 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
3046
30472011-08-01 Jason Merrill <jason@redhat.com>
3048
3049 PR c++/49932
3050 * cp-demangle.c (d_prefix): Handle decltype.
3051 * testsuite/demangle-expected: Test it.
3052
30532011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3054
3055 * testsuite/demangle-expected: Remove an extra line.
3056
30572011-07-26 Ian Lance Taylor <iant@google.com>
3058
3059 * cp-demangle.c (d_print_init): Initialize pack_index field.
3060 (d_print_comp): Check for NULL template argument.
3061 * testsuite/demangle-expected: Add test case.
3062
30632011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
3064
3065 PR target/49817
3066 * stack-limit.c: Include <stdint.h>.
3067
30682011-07-22 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR c++/49756
3071 * stack-limit.c: New file.
3072 * Makefile.in: Regenerate deps.
3073 (CFILES): Add stack-limit.c.
3074 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
3075 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
3076 (AC_CHECK_FUNCS): Likewise.
3077 * configure: Regenerated.
3078 * config.in: Regenerated.
3079
30802011-07-04 Jason Merrill <jason@redhat.com>
3081
3082 * cp-demangle.c (d_expression): Handle 'this'.
3083 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
3084
30852011-07-01 Joel Brobecker <brobecker@adacore.com>
3086
3087 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
3088 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
3089
30902011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3091
3092 PR debug/49408
3093 * cp-demangle.c (d_print_comp): Suppress argument list for function
3094 references by the '&' unary operator. Keep also already processed
3095 variant without the argument list. Suppress argument list types for
3096 function call used in an expression.
3097 * testsuite/demangle-expected: Fix excessive argument list types in
3098 `test for typed function in decltype'. New testcase for no argument
3099 list types printed. 3 new testcases for function references by the
3100 '&' unary operator..
3101
31022011-06-20 Jason Merrill <jason@redhat.com>
3103
3104 PR c++/37089
3105 * cp-demangle.c (d_print_comp): Handle reference smashing.
3106 * testsuite/demangle-expected: Test it.
3107
31082011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3109
3110 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
3111 Suppress d_print_mod for DMGL_RET_POSTFIX.
3112 * testsuite/demangle-expected: New testcases for --ret-postfix.
3113
31142011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3115
3116 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
3117 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
3118 * testsuite/demangle-expected: New testcases for --ret-drop.
3119 * testsuite/test-demangle.c: Document --ret-drop in a comment.
3120 (main): New variable ret_drop, fill it, call cplus_demangle with it.
3121
31222011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3123
3124 * cp-demangle.c (struct d_print_info): Remove field options.
3125 (d_print_init): Remove parameter options.
3126 (cplus_demangle_print_callback): Update all the callers.
3127 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
3128 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
3129 Add parameter options, update all the callers.
3130
31312011-04-20 Jim Meyering <meyering@redhat.com>
3132
3133 * cp-demint.c (cplus_demangle_v3_components): Remove useless
3134 if-before-free.
3135 * cplus-dem.c (squangle_mop_up): Likewise.
3136 (delete_non_B_K_work_stuff): Likewise.
3137 * pex-common.c (pex_free): Likewise.
3138 * pex-msdos.c (pex_msdos_cleanup): Likewise.
3139 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
3140 (win32_spawn): Likewise.
3141 * regex.c (FREE_VAR, weak_alias): Likewise.
3142 * spaces.c (spaces): Likewise.
3143
31442011-04-10 Jim Meyering <meyering@redhat.com>
3145
3146 Avoid memory overrun in a test leading to potential double-free.
3147 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
3148 i.e., do copy the trailing NUL byte.
3149
31502011-03-31 Tristan Gingold <gingold@adacore.com>
3151
3152 * makefile.vms (OBJS): Add filename_cmp.obj
3153
31542011-02-28 Kai Tietz <kai.tietz@onevision.com>
3155
3156 * filename_cmp.c (filename_ncmp): New function.
3157 * functions.texi: Regenerated.
3158
31592011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3160
3161 * splay-tree.c: Escape wrapping newlines in texinfo markup
3162 with '@', to fix function declaration output rendering.
3163 * gather-docs: Relax and improve macro name matching to actually
3164 match all current names and to allow input line wrapping.
3165 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
3166 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
3167 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
3168 pexecute.txh, random.c, setenv.c, setproctitle.c,
3169 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
3170 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
3171 Wrap long texinfo input lines.
3172 * functions.texi: Regenerate.
3173
31742011-01-18 Mike Frysinger <vapier@gentoo.org>
3175
3176 * .gitignore: New file.
3177
31782010-12-08 Doug Evans <dje@google.com>
3179
3180 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
3181 all callers updated. Rewrite to be non-recursive.
3182
31832010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3184
3185 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
3186
31872010-11-20 Anthony Green <green@moxielogic.com>
3188
3189 * configure.ac: Turn PR_SET_NAME link test into a test for
3190 sys/prctl.h.
3191 * configure, config.in: Rebuilt.
3192 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
3193 (setproctitle) Test for PR_SET_NAME definition.
3194
31952010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3196
3197 PR other/46202
3198 * Makefile.in (install-strip): New phony target.
3199 (install): Also mark as phony.
3200
32012010-11-16 Ian Lance Taylor <iant@google.com>
3202
3203 * simple-object.c (simple_object_attributes_merge): Rename from
3204 simple_object_attributes_compare. Call merge field.
3205 * simple-object-common.h (struct simple_object_functions): Rename
3206 attributes_compare field to attribute_merge.
3207 * simple-object-elf.c (EM_SPARC): Define.
3208 (EM_SPARC32PLUS): Define.
3209 (simple_object_elf_attributes_merge): Renamed from
3210 simple_object_elf_attributes_compare. Permit EM_SPARC and
3211 EM_SPARC32PLUS objects to be merged.
3212 (simple_object_elf_functions): Update function name.
3213 * simple-object-coff.c (simple_object_coff_attributes_merge):
3214 Rename from simple_object_coff_attributes_compare.
3215 (simple_object_coff_functions): Update function name.
3216 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
3217 Renamed from simple_object_mach_o_attributes_compare.
3218 (simple_object_mach_o_functions): Update function name.
3219
32202010-11-16 H.J. Lu <hongjiu.lu@intel.com>
3221
3222 PR other/42670
3223 PR binutils/11137
3224 * cp-demangle.c (d_make_demangle_mangled_name): New.
3225 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
3226
3227 * testsuite/demangle-expected: Updated.
3228
32292010-11-14 Kai Tietz <kai.tietz@onevision.com>
3230
3231 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
3232 offset.
3233
32342010-11-12 Ian Lance Taylor <iant@google.com>
3235
3236 PR other/46332
3237 * cp-demangle.c (d_print_function_type): Don't print parentheses
3238 if there are no modifiers to print.
3239 * testsuite/demangle-expected: Tweak one test case, add another.
3240
32412010-11-04 Richard Henderson <rth@redhat.com>
3242
3243 * configure.ac (AC_CHECK_HEADERS): Add process.h.
3244 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
3245 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
3246 * configure, config.in: Rebuild.
3247 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
3248 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
3249
32502010-11-02 Ian Lance Taylor <iant@google.com>
3251 Dave Korn <dave.korn.cygwin@gmail.com>
3252 Iain Sandoe <iains@gcc.gnu.org>
3253
3254 * simple-object.c: New file.
3255 * simple-object-common.h: New file.
3256 * simple-object-elf.c: New file.
3257 * simple-object-mach-o.c: New file.
3258 * simple-object-coff.c: New file.
3259 * simple-object.txh: New file.
3260 * configure.ac: Add AC_TYPE_SSIZE_T.
3261 * Makefile.in: Rebuild dependencies.
3262 (CFILES): Add simple-object.c, simple-object-coff,
3263 simple-object-elf.c, and simple-object-mach-o.c.
3264 (REQUIRED_OFILES): Add corresponding object files.
3265 * configure: Rebuild.
3266 * config.in: Rebuild.
3267 * functions.texi: Rebuild.
3268
32692010-10-29 Ian Lance Taylor <iant@google.com>
3270
3271 * setproctitle.c: Add space after function name in @deftypefn
3272 comment.
3273 * functions.texi: Rebuild.
3274
32752010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3276
3277 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3278 * configure: Regenerate.
3279
32802010-10-07 Andi Kleen <ak@linux.intel.com>
3281
3282 * configure: Regenerate.
3283 * configure.ac: Turn PR_SET_NAME check into link check.
3284
32852010-10-06 Andi Kleen <ak@linux.intel.com>
3286
3287 * Makefile.in (CFILES): Add setproctitle.
3288 (CONFIGURED_OFILES): Add setproctitle.
3289 (setproctitle): Add rule.
3290 * config.in: Regenerate.
3291 * configure: Regenerate.
3292 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
3293 * setproctitle.c: Add file.
3294 * functions.texi: Regenerate.
3295
32962010-09-22 Tristan Gingold <gingold@adacore.com>
3297
3298 * cplus-dem.c (ada_demangle): Add comments.
3299 Handle stream and controlled type operations.
3300 Decoding of some uppercase letters moved before separators.
3301 * testsuite/demangle-expected: Add tests.
3302
33032010-09-10 James Lyon <jameslyon0@googlemail.com>
3304
3305 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
3306 * cp-demangle.c (d_find_pack): Add case for
3307 DEMANGLE_COMPONENT_LAMBDA.
3308 * testsuite/demangle-expected: Add regression test.
3309
33102010-09-08 Tristan Gingold <gingold@adacore.com>
3311
3312 PR 44001
3313 * maint-tool (missing): Fix pattern for object file.
3314 (deps): Use $(objext) for object extension.
3315 * Makefile.in (objext): New variable.
3316 Replace all occurences of .o with .$(objext)
3317 Regenerate with maint-deps
3318 * configure.ac (pexecute): Set to the basename.
3319 * configure: Regenerate.
3320
33212010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
3322
3323 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
3324 corresponding stream has been opened.
3325 (pex_free): Close pipe file descriptors corresponding to child's
3326 stdout and stderr before waiting.
3327
33282010-08-13 Nick Clifton <nickc@redhat.com>
3329
3330 * argv.c (expandargv): Limit the number of times that response
3331 files are opened in order to prevent infinite recursion.
3332
33332010-07-21 Pascal Obry <obry@adacore.com>
3334
3335 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3336
33372010-07-06 Ken Werner <ken.werner@de.ibm.com>
3338
3339 * floatformat.c (floatformat_ieee_half_big): New variable.
3340 (floatformat_ieee_half_little): Likewise.
3341
33422010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
3343
3344 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
3345 Update copyright years.
3346 Move to GFDL 1.3.
3347
33482010-06-10 Jakub Jelinek <jakub@redhat.com>
3349
3350 PR other/43838
3351 * cp-demangle.c (struct d_print_info): Add flush_count field.
3352 (d_print_init): Initialize it to 0.
3353 (d_print_flush): Increment it.
3354 (d_print_comp): If needed flush before appending ", ". Only
3355 decrement dpi->len if no flushes happened during the recursive
3356 call.
3357 * testsuite/demangle-expected: Add a test for this.
3358
33592010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3360
3361 * splay-tree.c: Update copyright years.
3362 (splay_tree_new_typed_alloc): New.
3363 (splay_tree_new_with_allocator): Use it.
3364
3365 * hashtab.c: Update copyright years.
3366 (htab_create_typed_alloc): New.
3367 (htab_create_alloc): Use it.
3368
3369 * functions.texi: Regenerate.
3370
33712010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
3372 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3373
3374 PR bootstrap/42798
3375 * configure.ac: Check for declaration of 'basename(char *)'.
3376 * configure: Regenerate.
3377
33782010-05-26 Kai Tietz <kai.tietz@onevision.com>
3379
3380 * testsuite/demangle-expected: Add tests for __int128
3381 and unsigned __int128 types.
3382
33832010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3384 Jason Merrill <jason@redhat.com>
3385
3386 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3387 (cplus_demangle_type): Handle nullptr.
3388 * testsuite/demangle-expected: Test it.
3389
33902010-04-23 Pedro Alves <pedro@codesourcery.com>
3391
3392 * lbasename.c (lbasename): Split into ...
3393 (unix_lbasename, dos_basename): ... these.
3394 (lbasename): ... and reimplement on top of them.
3395 * Makefile.in (lbasename.o): Add dependency on
3396 $(INCDIR)/filenames.h.
3397
33982010-04-07 Jakub Jelinek <jakub@redhat.com>
3399
3400 * regex.c (byte_re_match_2_internal): Avoid set but not used
3401 warning.
3402
34032010-03-22 Jason Merrill <jason@redhat.com>
3404
3405 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3406
34072010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3408
3409 * Makefile.in (all): Do not use exec.
3410
34112010-02-04 Tom Tromey <tromey@redhat.com>
3412
3413 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3414
34152010-02-03 Jason Merrill <jason@redhat.com>
3416
3417 * cp-demangle.c (d_expression): Handle dependent operator name.
3418
3419 PR c++/12909
3420 * cp-demangle.c (d_number_component, d_vector_type): New.
3421 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3422
34232010-01-25 Ian Lance Taylor <iant@google.com>
3424
3425 * cp-demangle.c (cplus_demangle_type): Check for invalid type
3426 after "DF".
3427 * testsuite/demangle-expected: Add test.
3428
34292010-01-20 Jason Merrill <jason@redhat.com>
3430
3431 PR c++/42338
3432 * cp-demangle.c (d_print_comp): Fix array index printing.
3433
34342010-01-11 Tristan Gingold <gingold@adacore.com>
3435
3436 * cplus-dem.c (ada_demangle): Remove prototype.
3437 (grow_vect): Removed.
3438 (ada_demangle): Rewritten.
3439 (cplus_demangle): Fix indentation.
3440 * testsuite/demangle-expected: Add tests for Ada.
3441
34422010-01-09 Ian Lance Taylor <iant@google.com>
3443
3444 PR other/42230
3445 * cp-demangle.c (d_demangle): Return dgs.alc on success.
3446
34472010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3448
3449 PR target/42316
3450 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3451 * configure: Regenerate.
3452
34532009-12-07 Doug Evans <dje@google.com>
3454
3455 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3456
34572009-11-26 Ben Elliston <bje@au.ibm.com>
3458
3459 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3460 * configure: Regenerate.
3461
34622009-11-25 Ben Elliston <bje@au.ibm.com>
3463
3464 * functions.texi: Rebuild.
3465
34662009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3467 Ben Elliston <bje@au.ibm.com>
3468
3469 * README: Mention changes to Makefile.in and functions.texi.
3470 * gather-docs: Mention 'make stamp-functions' in the header.
3471
34722009-11-23 Ben Elliston <bje@au.ibm.com>
3473 Ian Lance Taylor <iant@google.com>
3474
3475 * pex-unix.c (pex_child_error): Improve warning avoidance by
3476 checking the results of write(3) and exiting with -2 if any write
3477 returns a negative value.
3478
34792009-11-22 Steve Ward <planet36@gmail.com>
3480
3481 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3482
34832009-11-20 Ben Elliston <bje@au.ibm.com>
3484
3485 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3486 unused result warnings from write(3) calls. Undefine writeerr
3487 after all uses.
3488
34892009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3490 Daniel Jacobowitz <dan@codesourcery.com>
3491 Pedro Alves <pedro@codesourcery.com>
3492
3493 * argv.c (consume_whitespace): New function.
3494 (only_whitespace): New function.
3495 (buildargv): Always use ISSPACE by calling consume_whitespace.
3496 (expandargv): Skip empty files. Do not stop at the first empty
3497 argument (calling only_whitespace)..
3498 * testsuite/test-expandargv.c: (test_data): Test empty lines
3499 and empty arguments.
3500 (run_tests): Fix false positives due to shorter arguments.
3501
35022009-09-30 Martin Thuresson <martint@google.com>
3503
3504 * regex.c (byte_re_match_2_internal): Split declaration and
3505 assignment to avoid -Wc++-compat warning due to goto.
3506
35072009-09-29 Jason Merrill <jason@redhat.com>
3508
3509 * Makefile.in: Enable demangle target.
3510 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3511 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3512 (d_parmlist): Factor out from d_bare_function_type.
3513 (d_compact_number): Factor out from d_template_param and d_expression.
3514 (d_append_num): Factor out from d_print_comp.
3515 (d_print_comp, d_print_mod_list): Handle lambdas.
3516 * testsuite/demangle-expected: Add lambda tests.
3517
35182009-09-23 Matthew Gingell <gingell@adacore.com>
3519
3520 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3521
35222009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3523
3524 * choose-temp.c: Include unistd.h for mingw targets.
3525
35262009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3527
3528 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3529
35302009-09-15 Tristan Gingold <gingold@adacore.com>
3531
3532 * config.h-vms (intptr_t): Define to compile hashtab.c
3533
35342009-09-04 Ozkan Sezer <sezeroz@gmail.com>
3535
3536 PR target/39065
3537 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3538 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3539 * config.in: Regenerated.
3540 * configure: Regenerated.
3541
35422009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3543
3544 PR target/39065
3545 * configure.ac: Also check for intptr_t.
3546 * config.h.in: Regenerated.
3547 * configure: Regenerated.
3548 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3549 instead of of long.
3550
35512009-09-02 Tristan Gingold <gingold@adacore.com>
3552
3553 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3554 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3555 dependencies. Remove unused FORMAT variable.
3556 * configure.com: New file to create build.com DCL script for
3557 Itanium VMS or Alpha VMS.
3558
35592009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3560
3561 * configure.ac (AC_PREREQ): Bump to 2.64.
3562
35632009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3564
3565 PR ld/10536
3566 * Makefile.in (install-html-recursive): Removed.
3567
35682009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3569
3570 * config.in: Regenerate.
3571 * configure: Regenerate.
3572
35732009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3574
3575 * Makefile.in (AUTOCONF, configure_deps): New variables.
3576 ($(srcdir)/configure): New rule, active only in maintainer mode.
3577
35782009-07-29 Douglas B Rupp <rupp@gnat.com>
3579
3580 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3581
35822009-07-27 Douglas B Rupp <rupp@gnat.com>
3583
3584 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3585 file instead).
3586 (to_ptr32): New function.
3587 (pex_unix_exec_child): Use it.
3588
35892009-07-24 Ian Lance Taylor <iant@google.com>
3590
3591 PR bootstrap/40854
3592 * crc32.c (xcrc32): Rename from crc32.
3593
35942009-07-24 Ian Lance Taylor <iant@google.com>
3595
3596 * crc32.c: New file.
3597 * Makefile.in: Rebuild dependencies.
3598 (CFILES): Add crc32.c.
3599 (REQUIRED_OFILES): Add ./crc32.o.
3600 * functions.texi: Rebuild.
3601
36022009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3603
3604 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3605 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3606 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3607 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3608 (d_demangle_callback): The variable type is now declared as enum.
3609 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3610
36112009-06-21 Jakub Jelinek <jakub@redhat.com>
3612
3613 * hashtab.c (htab_traverse): Don't call htab_expand for
3614 nearly empty hashtabs with sizes 7, 13 or 31.
3615
36162009-06-16 Nick Clifton <nickc@redhat.com>
3617
3618 PR 10197
3619 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3620 conflicts with system function of the same name.
3621
36222009-05-30 Eli Zaretskii <eliz@gnu.org>
3623
3624 * snprintf.c: Doc fix.
3625
3626 * vsnprintf.c: Doc fix.
3627
36282009-05-29 Kai Tietz <kai.tietz@onevision.com>
3629
3630 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
3631
36322009-05-29 Michael Matz <matz@suse.de>
3633
3634 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3635 out when forcing the minimum.
3636 (fibheap_delete_node): Assert that we managed to force the minimum.
3637
36382009-05-25 Tristan Gingold <gingold@adacore.com>
3639
3640 * config.h-vms: Rewritten. Define configure macros.
3641 Use DEC-C builtin alloca.
3642
3643 * makefile.vms (OBJS): Update list.
3644 (OPT): New variable.
3645 (CFLAGS): Update compilation flags.
3646 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3647
36482009-05-19 Ian Lance Taylor <iant@google.com>
3649 Ben Elliston <bje@au.ibm.com>
3650
3651 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3652 (cplus_demangle_fill_dtor): Likewise.
3653
36542009-05-17 Julian Brown <julian@codesourcery.com>
3655
3656 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3657 standard handles (stdin, stdout, stderr) in parent.
3658
36592009-04-29 Julian Brown <julian@codesourcery.com>
3660
3661 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
3662 (pex_win32_exec_child): Ensure each process has only one handle open
3663 on pipe endpoints. Close standard input after creating child for
3664 symmetry with standard output/standard error.
3665
36662009-04-25 Eli Zaretskii <eliz@gnu.org>
3667
3668 * Makefile.in (needed-list): Target removed (not used in GCC
3669 3.0 and later). All references deleted.
3670 (mostlyclean): Remove references to needed.awk and needed2.awk.
3671
36722009-04-14 Eli Zaretskii <eliz@gnu.org>
3673
3674 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3675 existing and required library functions to with_target_subdir
3676 section, so that the native build does detect them at configure
3677 time.
3678 * configure: Regenerated.
3679
36802009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3681
3682 PR target/39397
3683 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3684 not as long (members *children and (*wait))
3685 * pex-common.c (pex_run_in_environment): Likewise.
3686 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3687 returned pid value.
3688 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3689 * pex-msdos.c (pex_msdos_wait): Likewise.
3690
36912009-04-07 Arnaud Patard <apatard@mandriva.com>
3692
3693 * configure.ac: Fix Linux/MIPS matching rule.
3694 * configure: Regenerate.
3695
36962009-03-27 Ian Lance Taylor <iant@google.com>
3697
3698 * memmem.c: New file, from gnulib.
3699 * configure.ac: Add memmem to list of functions provided if they
3700 are not available on the host.
3701 * Makefile.in: Rebuild dependencies.
3702 (CFILES): Add memmem.c.
3703 (CONFIGURED_OFILES): Add memmem.o.
3704 * configure, config.in, functions.texi: Rebuild.
3705
37062009-03-23 Jason Merrill <jason@redhat.com>
3707
3708 * cp-demangle.c (d_expression): Handle pack expansion.
3709 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3710 (d_print_subexpr): Don't wrap function parms in ().
3711 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3712 not finding a pack.
3713
37142009-03-17 Jason Merrill <jason@redhat.com>
3715
3716 * cp-demangle.c (d_make_function_param): new fn.
3717 (cplus_demangle_mangled_name): Work around abi v2 bug.
3718 (d_expr_primary): Likewise.
3719 (cplus_demangle_operators): Add alignof ops.
3720 (d_expression): Handle function parameters and conversions
3721 with other than 1 operand.
3722 (d_print_comp): Handle function parameters. Fix bug with
3723 function used in type of function.
3724 * testsuite/demangle-expected: Update tests.
3725
37262009-02-21 Mark Mitchell <mark@codesourcery.com>
3727
3728 * make-temp-file.c (<windows.h>): Include on Windows.
3729 (choose_tmpdir): On Windows, use GetTempPath.
3730
37312009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3732
3733 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3734 as it no longer shares libiberty object files.
3735 * configure: Regenerated.
3736
37372009-01-07 Jason Merrill <jason@redhat.com>
3738
3739 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3740
37412009-01-06 Ben Elliston <bje@au.ibm.com>
3742
3743 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3744 character following a 'D' cannot be recognised.
3745
37462008-12-18 Jason Merrill <jason@redhat.com>
3747
3748 PR c++/38561
3749 * cp-demangle.c (d_expression, d_print_comp): Revert
3750 cast changes.
3751
37522008-12-17 Jason Merrill <jason@redhat.com>
3753
3754 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3755 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3756 (d_print_comp): Avoid extra ", " with empty template argument packs.
3757 Remove handling for obsolete T() mangling.
3758
37592008-12-10 Jason Merrill <jason@redhat.com>
3760
3761 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3762 (d_print_comp, d_dump): Likewise.
3763
37642008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3765
3766 * Makefile.in (CPPFLAGS): Define.
3767 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3768
37692008-10-15 Paolo Bonzini <bonzini@gnu.org>
3770
3771 PR bootstrap/37137
3772 * Makefile.in (LIBCFLAGS): Remove.
3773 (FLAGS_TO_PASS): Don't mention it.
3774 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3775
37762008-10-08 David Edelsohn <edelsohn@gnu.org>
3777
3778 * xstrdup.c: Include <sys/types.h> after "config.h"
3779
37802008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 * configure.ac: Call AC_SYS_LARGEFILE.
3783 * config.in: Regenerated.
3784 * configure: Likewise.
3785
37862008-10-06 Jason Merrill <jason@redhat.com>
3787
3788 * cp-demangle.c (struct d_print_info): Add pack_index.
3789 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3790 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3791 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3792 (cplus_demangle_builtin_types): Add char16/32_t.
3793 (cplus_demangle_type): Recognize them.
3794 (d_template_args): Handle empty argument packs.
3795 (d_template_arg): Handle argument packs.
3796 (d_expression): Handle dependent name.
3797 (d_index_template_argument): New fn.
3798 (d_lookup_template_argument): New fn.
3799 (d_find_pack, d_pack_length): New fn.
3800 (d_print_subexpr): Split out...
3801 (d_print_comp): ...from here. Use d_*_template_argument.
3802 Handle empty arg lists. Support pack expansions.
3803 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3804
38052008-09-09 Jason Merrill <jason@redhat.com>
3806
3807 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3808 (d_make_comp): Likewise.
3809 (cplus_demangle_type): Handle decltype and DFP types.
3810 (cplus_demangle_operators): Call operator takes 2 args.
3811 (cplus_demangle_builtin_types): Add DFP types.
3812 (d_exprlist): New fn.
3813 (d_expression): Handle parm placeholders, T() and calls.
3814 (d_print_comp): Handle decltype, T() and calls.
3815 * testsuite/demangle-expected: Test the above.
3816
38172008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3818
3819 * pex-win32.c (argv_to_argc): New function.
3820 (spawn_script): Duplicate argv before calling win32_spawn.
3821
38222008-07-31 Jakub Jelinek <jakub@redhat.com>
3823
3824 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3825
38262008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3827
3828 * mkstemps.c (mkstemps): If open failed with errno other than
3829 EEXIST, return immediately.
3830 * make-temp-file.c: Include errno.h.
3831 (make_temp_file): If mkstemps failed, print an error message
3832 before aborting.
3833
38342008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3835
3836 * maint-tool (deps): Output config.h instead of stamp-h.
3837 * Makefile.in: Rebuild deps.
3838 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3839 Reverts 2007-07-11 change.
3840
38412008-06-19 Eric Blake <ebb9@byu.net>
3842
3843 Adjust strsignal to POSIX 200x prototype.
3844 * strsignal.c (strsignal): Remove const.
3845
38462008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3847
3848 * configure: Regenerate.
3849
38502008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3851
3852 * libiberty.texi: Expand TABs, drop indentation outside examples.
3853 * obstacks.texi: Likewise.
3854
38552008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3856
3857 * configure.ac: use -fPIC on Linux/MIPS hosts.
3858 * configure: Regenerate.
3859
38602008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3861
3862 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3863
38642008-04-18 Paolo Bonzini <bonzini@gnu.org>
3865
3866 PR bootstrap/35457
3867 * aclocal.m4: Add override.m4.
3868 * configure: Regenerate.
3869
38702008-03-31 Ian Lance Taylor <iant@google.com>
3871
3872 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3873 -fstrict-overflow optimizations.
3874
38752008-03-27 Paolo Bonzini <bonzini@gnu.org>
3876
3877 * configure.ac (frags): Don't set, use frag instead.
3878 (PICFLAG): Set here and substitute.
3879 * Makefile.in (PICFLAG): Substitute from autoconf.
3880 * configure: Regenerate.
3881
38822008-03-24 Ian Lance Taylor <iant@google.com>
3883
3884 * sha1.c: New file, from gnulib.
3885 * Makefile.in: Rebuild dependencies.
3886 (CFILES): Add sha1.c.
3887 (REQUIRED_OFILES): Add sha1.o.
3888
38892008-03-24 Doug Evans <dje@google.com>
3890
3891 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3892 return from strdup.
3893
38942008-03-12 Seongbae Park <seongbae.park@gmail.com>
3895
3896 * cplus-dem.c (malloc, realloc): Use void * instead of char *
3897 as return type.
3898
38992008-03-11 Nick Clifton <nickc@redhat.com>
3900
3901 * md5.c (md5_process_bytes): Do not assume that memcpy will
3902 provide a return value.
3903
39042008-02-19 Ben Elliston <bje@au.ibm.com>
3905
3906 PR other/12618
3907 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3908
39092008-01-26 David Daney <ddaney@avtrex.com>
3910
3911 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3912 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3913 DEMANGLE_COMPONENT_CHARACTER cases.
3914 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3915 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3916 (d_make_character): New function.
3917 (d_java_resource): Same.
3918 (d_special_name): Handle "Gr" case.
3919 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3920 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3921 DEMANGLE_COMPONENT_CHARACTER cases.
3922 * testsuite/demangle-expected: Add test for java resource name
3923 mangling.
3924
39252008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3926
3927 * cplus-dem.c (demangle_function_name): Changed to return value
3928 indicating if a name was correctly demangled.
3929 (iterate_demangle_function): Use demangle_function_name return
3930 value.
3931
39322008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3933
3934 PR other/33768
3935 * splay-tree.c (rotate_left): Fix minor typo in comment.
3936 (rotate_right): Likewise.
3937
39382007-11-12 Joseph Myers <joseph@codesourcery.com>
3939
3940 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3941 compiler warnings.
3942 (floatformat_ibm_long_double): Use
3943 floatformat_ibm_long_double_is_valid.
3944
39452007-11-07 Joseph Myers <joseph@codesourcery.com>
3946 Daniel Jacobowitz <dan@codesourcery.com>
3947
3948 * floatformat.c (mant_bits_set): New.
3949 (floatformat_to_double): Use it. Note no special handling of
3950 split formats.
3951 (floatformat_from_double): Note no special handing of split
3952 formats.
3953 (floatformat_ibm_long_double_is_valid,
3954 floatformat_ibm_long_double): New.
3955 (floatformat_ieee_single_big, floatformat_ieee_single_little,
3956 floatformat_ieee_double_big, floatformat_ieee_double_little,
3957 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3958 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3959 floatformat_m68881_ext, floatformat_i960_ext,
3960 floatformat_m88110_ext, floatformat_m88110_harris_ext,
3961 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3962 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3963 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3964 for addition of split_half field.
3965
39662007-09-06 Tom Tromey <tromey@redhat.com>
3967
3968 * pexecute.txh (pex_free): Document process killing.
3969
39702007-08-31 Douglas Gregor <doug.gregor@gmail.com>
3971
3972 * cp-demangle.c (d_dump): Handle
3973 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3974 (d_make_comp): Ditto.
3975 (cplus_demangle_type): Ditto.
3976 (d_print_comp): Ditto.
3977 (d_print_mod): Ditto.
3978 (d_print_function_type): Ditto.
3979
39802007-08-24 Kai Tietz <kai.tietz@onevision.com>
3981
3982 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
3983 * pex-djgpp.c: Likewise.
3984 * pex-msdos.c: Likewise.
3985 * pex-unix.c: Likewise.
3986 * pex-win32.c: Likewise.
3987
39882007-08-17 Michael Snyder <msnyder@access-company.com>
3989
3990 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3991
39922007-08-03 Michael Snyder <msnyder@access-company.com>
3993
3994 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3995 leak.
3996
39972007-07-31 Michael Snyder <msnyder@access-company.com>
3998
3999 * cp-demangle.c (d_print_comp): Guard against null.
4000
40012007-07-25 Ben Elliston <bje@au.ibm.com>
4002
4003 * Makefile.in (CFILES): Remove ternary.c.
4004 (REQUIRED_OFILES): Remove ./ternary.o.
4005 (INSTALLED_HEADERS): Remove ternary.h.
4006 (ternary.o): Remove.
4007 * ternary.c: Remove.
4008
40092007-07-23 DJ Delorie <dj@redhat.com>
4010
4011 * argv.c (writeargv): Fix typo in inline documentation.
4012 * functions.texi: Regenerate.
4013
40142007-07-17 DJ Delorie <dj@redhat.com>
4015
4016 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
4017 gettimeofday entry.
4018 * configure: Likewise.
4019
40202007-07-11 Alexandre Oliva <aoliva@redhat.com>
4021
4022 * maint-tool (deps): Output stamp-h instead of config.h.
4023 * Makefile.in: Rebuild deps.
4024 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
4025
40262007-07-02 Simon Baldwin <simonb@google.com>
4027
4028 * argv.c (writeargv): Removed declaration of unused variable.
4029
40302007-06-14 Paolo Bonzini <bonzini@gnu.org>
4031
4032 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
4033 * configure: Regenerate.
4034
40352007-06-14 Paolo Bonzini <bonzini@gnu.org>
4036
4037 * aclocal.m4: Include config/warnings.m4.
4038 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
4039 * configure: Regenerate.
4040
40412007-06-07 Geoffrey Keating <geoffk@apple.com>
4042
4043 * configure.ac: Non-default multilibs can be cross compilations.
4044 * configure: Regenerate
4045
40462007-05-07 Nathan Froyd <froydnj@codesourcery.com>
4047
4048 * argv.c (writeargv): New function.
4049
40502007-05-05 Geoffrey Keating <geoffk@apple.com>
4051
4052 * cp-demangle.c (d_name): Detect local-source-name.
4053 (d_prefix): Likewise.
4054 (d_unqualified_name): Implement local-source-name.
4055
40562007-05-03 Joel Brobecker <brobecker@adacore.com>
4057
4058 * filename_cmp.c: Replace include of ctype.h by include of
4059 safe-ctype.h.
4060 (filename_cmp): Use TOLOWER instead of tolower for conversions
4061 that are locale-independent.
4062 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
4063
40642007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
4065
4066 * argv.c: Use ANSI C declarations.
4067 * make-relative-prefix.c: Likewise.
4068
40692007-04-06 Joel Brobecker <brobecker@adacore.com>
4070
4071 * filename_cmp.c (filename_cmp): Improve documentation.
4072
40732007-04-02 Andreas Schwab <schwab@suse.de>
4074
4075 * filename_cmp.c: Include "config.h".
4076
40772007-03-29 Joel Brobecker <brobecker@adacore.com>
4078
4079 * filename_cmp.c: New file.
4080 * Makefile.in (CFILES): Add filename_cmp.c.
4081 (REQUIRED_OFILES): Add filename_cmp.o
4082 (filename_cmp.o): New rule.
4083 * functions.texi: Regenerate.
4084
40852007-03-15 Geoffrey Keating <geoffk@apple.com>
4086
4087 * cp-demangle.c (d_encoding): Exit early on error.
4088 (d_pointer_to_member_type): Exit early if cplus_demangle_type
4089 returns NULL.
4090 (cplus_demangle_type): Likewise.
4091 * testsuite/demangle-expected: New testcase.
4092
40932007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4094
4095 * Makefile.in: Add install-pdf target as copied from
4096 automake v1.10 rules.
4097 * testsuite/Makefile.in: Add dummy install-pdf target.
4098
40992007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
4100 Eric Botcazou <ebotcazou@libertysurf.fr>
4101
4102 PR other/16513
4103 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
4104 Install headers in multilib independent location.
4105
41062007-02-26 DJ Delorie <dj@redhat.com>
4107
4108 * configure.ac: add djgpp-specific results, so we don't have to
4109 link during a cross compilation.
4110 * configure: Regenerated.
4111
41122007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4113
4114 * hex.c: Fix typo.
4115 * choose-temp.c: Likewise.
4116 * functions.texi: Regenerate.
4117
41182007-01-31 Vladimir Prus <vladimir@codesourcery.com>
4119
4120 * pex-common.h (struct pex_obj): New fields
4121 stderr_pipe and read_err.
4122 * pex-common.c (pex_init_common): Initialize
4123 stderr_pipe.
4124 (pex_run_in_environment): Add error checking
4125 for PEX_STDERR_TO_PIPE. Create a pipe
4126 for stderr if necessary.
4127 (pex_read_err): New.
4128 (pex_free): Close read_err.
4129 * pexecute.txh: Document changes.
4130 * functions.texi: Regenerated.
4131
41322007-01-31 Ben Elliston <bje@au.ibm.com>
4133
4134 * strsignal.c (psignal): Change type of signo to int.
4135 * functions.texi: Regenerate.
4136
41372007-01-29 Simon Baldwin <simonb@google.com>
4138
4139 * cp-demangle.h (cplus_demangle_operators): External definition
4140 suppressed if not building for libstdc++.
4141 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
4142 to demangling, provides a malloc-less version of __cxa_demangle.
4143 (cplus_demangle_print_callback): Public callback version of
4144 cplus_demangle_print.
4145 (struct d_growable_string): New growable string structure.
4146 (d_growable_string_init): New function, provides support for
4147 growable strings separate from print info.
4148 (d_growable_string_resize): Likewise.
4149 (d_growable_string_append_buffer): Likewise.
4150 (d_growable_string_callback_adapter):): Likewise.
4151 (d_print_init): New print info initialization function.
4152 (d_print_error): Macro replace by inline function.
4153 (d_print_saw_error): Likewise.
4154 (d_append_char): Likewise.
4155 (d_append_buffer): Likewise.
4156 (d_append_string): New inline function, replaces the
4157 d_append_string_constant macro.
4158 (d_flush_buffer): New function, flushes buffer to callback.
4159 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
4160 for unsupported dynamic arrays replaced by alloca().
4161 (d_demangle): Return string length estimating removed.
4162 (d_dump): Moved error case handling from call site into function.
4163 (d_print_resize): Function removed.
4164 (d_print_append_char): Likewise.
4165 (d_print_append_buffer): Likewise.
4166 (d_print_error): Likewise.
4167 (d_print_comp): Added special case handling for Java arrays.
4168 (java_demangle_v3): Removed string post-processing for Java arrays,
4169 now replaced by special case handling in d_print_comp.
4170 (cplus_demangle_v3_callback): Augmented interface to demangling,
4171 provides a malloc-less version of cplus_demangle_v3.
4172 (java_demangle_v3_callback): Augmented interface to demangling,
4173 provides a malloc-less version of java_demangle_v3.
4174
41752007-01-12 Ben Elliston <bje@au.ibm.com>
4176
4177 * pex-unix.c (writeerr): Cast write result to void.
4178
4179 * choose-temp.c (choose_temp_base): Check the result of the call
4180 to mktemp rather than testing the length of the modified string.
4181
41822006-12-20 Geoffrey Keating <geoffk@apple.com>
4183
4184 * cp-demangle.h: Add comment explaining what to do to avoid
4185 overrunning string.
4186 (d_check_char): New.
4187 (d_next_char): Don't advance past trailing '\0'.
4188 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
4189 (d_nested_name): Likewise.
4190 (d_special_name): Likewise.
4191 (d_call_offset): Likewise.
4192 (d_function_type): Likewise.
4193 (d_array_type): Likewise.
4194 (d_pointer_to_member_type): Likewise.
4195 (d_template_param): Likewise.
4196 (d_template_args): Likewise.
4197 (d_template_arg): Likewise.
4198 (d_expr_primary): Likewise.
4199 (d_local_name): Likewise.
4200 (d_substitution): Likewise.
4201 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
4202 * testsuite/test-demangle.c: Include sys/mman.h.
4203 (MAP_ANONYMOUS): Define.
4204 (protect_end): New.
4205 (main): Use protect_end.
4206 * testsuite/demangle-expected: Add testcases for overrunning
4207 the end of the string.
4208
42092006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
4210 J"orn Rennecke <joern.rennecke@st.com>
4211
4212 PR driver/29931
4213 * make-relative-prefix.c (make_relative_prefix_1): New function,
4214 broken out of make_relative_prefix. Make link resolution dependent
4215 on new parameter.
4216 (make_relative_prefix): Use make_relative_prefix_1.
4217 (make_relative_prefix_ignore_links): New function.
4218
42192006-11-08 Vladimir Prus <vladimir@codesourcery.com>
4220
4221 * pex-win32.c (no_suffixes): Remove.
4222 (std_suffixes): Add "" as first element.
4223 (find_executable): Remove detection of already-present
4224 extension. Try all suffixes in std_suffixes.
4225
42262006-11-07 Julian Brown <julian@codesourcery.com>
4227
4228 * floatformat.c (get_field): Fix segfault with little-endian word
4229 order on 64-bit hosts.
4230 (put_field): Likewise.
4231 (min): Move definition.
4232
42332006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
4234
4235 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
4236 (find_executable): Likewise.
4237 (win32_spawn): Cast alloca return to (char**).
4238 Replace malloc with XNEWVEC.
4239 bcopy.c (bcopy): Add explict casts in assignments.
4240
42412006-10-25 Ben Elliston <bje@au.ibm.com>
4242
4243 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
4244
42452006-10-10 Brooks Moses <bmoses@stanford.edu>
4246
4247 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
4248 * testsuite/Makefile.in: Added empty "pdf" target.
4249
42502006-09-22 Ian Lance Taylor <ian@airs.com>
4251
4252 PR other/29176
4253 * cp-demangle.c (d_substitution): Check for overflow when
4254 computing substitution index.
4255
42562006-08-30 Corinna Vinschen <corinna@vinschen.de>
4257
4258 * configure.ac: Add case for Mingw as host.
4259 * configure: Regenerate.
4260
42612006-08-27 Ian Lance Taylor <ian@airs.com>
4262
4263 PR driver/27622
4264 * pex-common.h (struct pex_funcs): Add toclose parameter to
4265 exec_child field.
4266 * pex-common.c (pex_run_in_environment): Pass toclose to
4267 exec_child.
4268 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
4269 * pex-unix.c (pex_unix_exec_child): Likewise.
4270 * pex-msdos.c (pex_msdos_exec_child): Likewise.
4271 * pex-win32.c (pex_win32_exec_child): Likewise.
4272
4273 PR other/28797
4274 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
4275 for a qualified member which is not a function.
4276 * testsuite/demangle-expected: Add test case.
4277
42782006-07-27 Jan Hubicka <jh@suse.cz>
4279
4280 PR rtl-optimization/28071
4281 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
4282 downsize the hashtable.
4283
42842006-07-04 Peter O'Gorman <peter@pogma.com>
4285
4286 * Makefile.in: chmod 644 before ranlib during install.
4287
42882006-06-02 Mark Shinwell <shinwell@codesourcery.com>
4289
4290 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4291 to environ.
4292
42932006-06-01 Mark Shinwell <shinwell@codesourcery.com>
4294
4295 * pex-common.c: New function pex_run_in_environment.
4296 * pex-common.h: Add environment parameter to exec_child.
4297 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
4298 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
4299 (pex_djgpp_exec_child): Pass environment to child process.
4300 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
4301 (pex_unix_exec_child): Pass environment to child process.
4302 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
4303 New function env_compare for comparing VAR=VALUE pairs.
4304 (win32_spawn): Assemble environment block and pass to CreateProcess.
4305 (spawn_script): Pass environment through to win32_spawn.
4306 (pex_win32_exec_child): Pass environment through to spawn_script and
4307 win32_spawn.
4308 * functions.texi: Regenerate.
4309 * pexecute.txh: Document pex_run_in_environment.
4310
43112006-05-28 Mark Shinwell <shinwell@codesourcery.com>
4312
4313 * mkstemps.c: Open temporary files in binary mode.
4314
43152006-05-12 Anton Blanchard <anton@samba.org>
4316
4317 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
4318 hold "int%u_t".
4319
43202006-04-24 Julian Brown <julian@codesourcery.com>
4321
4322 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4323
43242006-03-29 Jim Blandy <jimb@codesourcery.com>
4325
4326 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
4327 (pex_init_common): Initialize obj->input_file.
4328 (pex_run): Close any file opened by pex_input_file.
4329 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4330 * pex-common.h (struct pex_obj): New field input_file.
4331 (struct pex_funcs): New function ptr fdopenw.
4332 * pex-unix.c (pex_unix_fdopenw): New function.
4333 (funcs): List it as our fdopenw function.
4334 * pex-win32.c (pex_win32_fdopenw): New function.
4335 (funcs): List it as our fdopenw function.
4336 * pex-djgpp.c (funcs): Leave fdopenw null.
4337 * pex-msdos (funcs): Same.
4338 * functions.texi: Regenerated.
4339
43402006-04-10 Jim Blandy <jimb@codesourcery.com>
4341
4342 * pex-common.c (temp_file): New function, containing guts of
4343 pex-style temporary file name generation.
4344 (pex_run): Use it.
4345
43462006-04-06 Carlos O'Donell <carlos@codesourcery.com>
4347
4348 * Makefile.in: Add install-html, install-html-am, and
4349 install-html-recursive targets. Define mkdir_p and
4350 NORMAL_INSTALL.
4351 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4352 * configure: Regenerate.
4353 * testsuite/Makefile.in: Add install-html and html targets.
4354
43552006-03-31 Mark Mitchell <mark@codesourcery.com>
4356
4357 * pex-win32.c (<errno.h>): Include.
4358 (fix_argv): Remove.
4359 (argv_to_cmdline): New function.
4360 (std_suffixes): New variable.
4361 (no_suffixes): Likewise.
4362 (find_executable): New function.
4363 (win32_spawn): Likewise.
4364 (spawn_script): Use win32_spawn instead of _spawnv[p].
4365 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4366 (pex_win32_wait): Likewise.
4367
43682006-03-24 Jim Blandy <jimb@codesourcery.com>
4369
4370 * pex-common.c (pex_run): Simplify output name handling.
4371
43722006-03-12 Jim Blandy <jimb@red-bean.com>
4373
4374 * pex-common.h (struct pex_obj): Doc fixes.
4375
43762006-03-11 Jim Blandy <jimb@red-bean.com>
4377
4378 * functions.texi: Regenerate.
4379
43802006-02-21 Ben Elliston <bje@au.ibm.com>
4381
4382 * pexecute.c (pwait): Syntax fix for previous change.
4383
43842006-02-17 Uttam Pawar <uttamp@us.ibm.com>
4385
4386 * pexecute.c (pwait): Free vector pointer.
4387 * partition.c (partition_print): Free class_elements pointer.
4388
43892006-02-11 Roger Sayle <roger@eyesopen.com>
4390 R. Scott Bailey <scott.bailey@eds.com>
4391 Bill Northcott <w.northcott@unsw.edu.au>
4392
4393 PR bootstrap/16787
4394 * floatformat.c: Include <float.h> where available.
4395 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4396
43972006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4398
4399 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
4400 supported.
4401 * configure: Regenerated.
4402
44032006-01-20 Carlos O'Donell <carlos@codesourcery.com>
4404
4405 * testsuite/Makefile.in: Add test-expandargv test.
4406 * testsuite/test-expandargv.c: New test.
4407 * argv.c (expandargv): Check for errors with ferror,
4408 rather than just by looking at return value from fread.
4409
44102005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4411
4412 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4413 to convert from "from".
4414 (floatformat_to_double): Likewise.
4415 (floatformat_from_double): Use explicit cast to convert from "to".
4416
44172005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
4418
4419 PR java/9861
4420 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4421 and include return type when found.
4422 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4423 conditional logic to change printing order of return type.when
4424 the DMGL_RET_POSTFIX option is present.
4425 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4426 call.
4427 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4428 * testsuite/demangle-expected: Test cases to verify extended encoding.
4429 Updated comment to document --ret-postfix option.
4430
44312005-11-06 Richard Guenther <rguenther@suse.de>
4432
4433 * splay-tree.c (rotate_left): New function.
4434 (rotate_right): Likewise.
4435 (splay_tree_splay_helper): Remove.
4436 (splay_tree_splay): Re-implement.
4437
44382005-10-31 Mark Kettenis <kettenis@gnu.org>
4439
4440 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4441 New variables.
4442
44432005-10-07 Mark Mitchell <mark@codesourcery.com>
4444
4445 * at-file.texi: Fix typo.
4446
44472005-10-03 Mark Mitchell <mark@codesourcery.com>
4448
4449 * at-file.texi: New file.
4450
44512005-09-27 Mark Mitchell <mark@codesourcery.com>
4452
4453 * argv.c (expandargv): Do not use xmalloc_failed.
4454
44552005-09-26 Mark Mitchell <mark@codesourcery.com>
4456
4457 * argv.c (safe-ctype.h): Include it.
4458 (ISBLANK): Remove.
4459 (stdio.h): Include.
4460 (buildargv): Use ISSPACE instead of ISBLANK.
4461 (expandargv): New function.
4462 * Makefile.in: Regenerated.
4463
44642005-09-14 Christopher Faylor <cgf@timesys.com>
4465
4466 * pex-win32.c: Include "windows.h".
4467 (backslashify): New function.
4468 (fix_argv): Use backslashify to convert path to windows format.
4469 Allocate one more place in new argv for potential executable from '#!'
4470 parsing.
4471 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
4472 (openkey): Ditto.
4473 (mingw_rootify): Ditto.
4474 (msys_rootify): Ditto.
4475 (spawn_script): New function.
4476 (pex_win32_exec_child): Save translated argv in newargv. Pass to
4477 spawn_script if spawnv* fails.
4478 (main): New function. Conditional on MAIN. Useful for testing.
4479
44802005-08-17 Mark Kettenis <kettenis@gnu.org>
4481
4482 * floatformat.c (floatformat_always_valid): Change type of last
4483 argument to `void *'.
4484 (floatformat_i387_ext_is_valid): Likewise.
4485 (floatformat_to_double): Change type of second argument to `const
4486 void *'.
4487 (floatformat_from_double): Change type of last argument to `void
4488 *'.
4489 (floatformat_is_valid): Change type of last argument to `const
4490 void *'.
4491 (ieee_test): Remove redundant casts.
4492
44932005-08-17 Kelley Cook <kcook@gcc.gnu.org>
4494
4495 * strverscmp.c: Update FSF address.
4496 * testsuite/Makefile.in: Likewise.
4497 * testsuite/test-demangle.c: Likewise.
4498 * testsuite/test-pexecute.c: Likewise.
4499
45002005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4501
4502 * getopt.c: Include ansidecl.h before system headers.
4503
45042005-07-22 Ben Elliston <bje@gnu.org>
4505
4506 * getopt.c: Include "ansidecl.h".
4507 (_getopt_initialize): Mark argc and argv parameters as unused.
4508
45092005-07-22 Ben Elliston <bje@gnu.org>
4510
4511 * regex.c (regcomp): Change type of `i' from unsigned to int.
4512
45132005-07-22 Ben Elliston <bje@gnu.org>
4514
4515 Recover patch lost in the sourceware repository:
4516 2005-07-09 Ben Elliston <bje@au.ibm.com>
4517 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4518 * memmove.c: Likewise.
4519 * objalloc.c: Likewise.
4520
45212005-07-22 Ben Elliston <bje@gnu.org>
4522
4523 * configure.ac: Check for a getopt(3) declaration.
4524 * configure, config.in: Regenerate.
4525
45262005-07-15 Ben Elliston <bje@au.ibm.com>
4527
4528 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4529
45302005-07-12 Ben Elliston <bje@au.ibm.com>
4531
4532 * floatformat.c (floatformat_to_double): Add a comment about a
4533 potential source of warnings when compiling this file.
4534
45352005-07-12 Ben Elliston <bje@au.ibm.com>
4536
4537 * pexecute.c (pexecute): Cast string litrals to char *.
4538 * regex.c (re_comp): Cast a call to gettext() to char *.
4539
45402005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4541
4542 * config.table: Delete file. Move former contents into ...
4543 * configure.ac: ... here and escape any brackets for m4.
4544 * Makefile.in (config.status): Remove dependency on config.table.
4545 * configure: Regenerate.
4546
45472005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4548
4549 * config.in: Regenerate for 6/20 change.
4550
45512005-07-03 Steve Ellcey <sje@cup.hp.com>
4552
4553 PR other/13906
4554 * md5.c (md5_process_bytes): Check alignment.
4555
45562005-07-01 Ian Lance Taylor <ian@airs.com>
4557
4558 PR other/22268
4559 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4560 string while looking for the end of a literal value.
4561 * testsuite/demangle-expected: Add test case.
4562
45632005-06-30 Daniel Berlin <dberlin@dberlin.org>
4564
4565 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
4566 (DELETED_ENTRY): Ditto.
4567
45682005-06-20 Geoffrey Keating <geoffk@apple.com>
4569
4570 * strverscmp.c: New.
4571 * Makefile.in (CFILES): Add strverscmp.c.
4572 (CONFIGURED_OFILES): Add strverscmp.o.
4573 (strverscmp.o): New rule.
4574 (stamp-functions): Add $(srcdir) to files in source directory.
4575 * configure.ac (funcs): Add strverscmp.
4576 (AC_CHECK_FUNCS): Add strverscmp.
4577 * configure: Regenerate.
4578 * functions.texi: Regenerate.
4579
45802005-05-28 Eli Zaretskii <eliz@gnu.org>
4581
4582 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4583 * config.in, configure: Regenerate.
4584
45852005-05-25 Richard Henderson <rth@redhat.com>
4586
4587 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4588 (d_make_comp, d_print_comp): Likewise.
4589 (d_special_name): Generate one.
4590 * testsuite/demangle-expected: Add a hidden alias test.
4591
45922005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4593
4594 * configure.ac: Check declarations for calloc(), getenv(),
4595 malloc(), realloc() and sbrk().
4596 * config.in: Regenerate.
4597 * configure: Likewise.
4598
4599 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4600 instead of xmalloc.
4601 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4602 * concat.c (liiberty_concat_ptr): Surround definition with an
4603 extern "C" block, if __cplusplus.
4604 (concat): Use XNEWVEC instead of xmalloc.
4605 (reconcat): Likewise.
4606 * cp-demangle.c (struct d_print_template): Rename member
4607 "template" to "template_decl". Adjust use throughout the file.
4608 (d_print_resize): Properly cast return value of realloc().
4609 (cplus_demangle_print): Same for malloc().
4610 (d_demangle): Likewise.
4611 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4612 "typename" to "type_name".
4613 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4614 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4615 (demangle_template_value_parm): Likewise.
4616 (demangle_template): Likewise.
4617 (recursively_demangle): Likewise.
4618 (do_hpacc_template_literal): Likewise.
4619 (do_arg): Likewise.
4620 (remember_type): Likewise.
4621 (remember_Ktype): Likewise.
4622 (register_Btype): Likewise.
4623 (string_need): Use XRESIZEVEC instead of xrealloc().
4624 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4625 (dyn_string_new): Use XNEW.
4626 (dyn_string_resize): Use XRESIZEVEC.
4627 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4628 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4629 Otherwise include <stdlib.h>.
4630 (exchange): Cast return value of malloc().
4631 * hashtab.c (htab_size): Define as both macro and non-inline
4632 function.
4633 (htab_elements): Likewise.
4634 * getpwd.c (getpwd): Use XNEWVEC.
4635 (htab_create_alloc_ex): Use C90 prototype-style.
4636 * lrealpath.c (lrealpath): Appropriately cast return value of
4637 malloc().
4638 * make-relative-prefix.c (save_string): Likewise.
4639 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4640 the file.
4641 (choose_tmpdir): Use XNEWVEC.
4642 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4643 * pex-common.c (pex_init_common): Use XNEW.
4644 (pex_add_remove): Use XRESIZEVEC.
4645 (pex_run): Likewise.
4646 (pex_get_status_and_time): Likewise.
4647 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4648 * pex-msdos.c (pex_init): Use XNEW.
4649 (pex_msdos_exec_child): Likewise.
4650 (pex_msdos_exec_child): Use XRESIZEVEC.
4651 * pex-unix.c (pex_wait): Use XNEW.
4652 * pex-win32.c (fix_argv): Use XNEWVEC.
4653 * pexecute.c (pwait): Likewise.
4654 * setenv.c (setenv): Properly cast return value of malloc().
4655 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4656 "new" to "old_sig" and "new_sig".
4657 * sort.c (main): Use XNEWVEC.
4658 * spaces.c (spaces): Cast return value of malloc().
4659 * strndup.c (strndup): Likewise.
4660 * ternary.c (ternary_insert): Use XNEW.
4661 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4662 with an extern "C" block if __cplusplus.
4663 * xstrdup.c (xstrdup): Cast return value of memcpy().
4664 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4665 block if __cplusplus.
4666 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4667
46682005-05-16 Andreas Jaeger <aj@suse.de>
4669
4670 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4671 that it's only declared if needed.
4672
4673 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4674 defined.
4675
46762005-05-15 Andreas Jaeger <aj@suse.de>
4677
4678 * functions.texi: Regenerated.
4679
46802005-05-15 Eli Zaretskii <eliz@gnu.org>
4681
4682 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4683 braces. Minor wording fixes. Use --- for em-dash. Use
4684 @enumerate in enumerated lists.
4685
4686 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4687 braces.
4688
46892005-05-11 Eli Zaretskii <eliz@gnu.org>
4690
4691 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4692 sys/stat.h.
4693 (pex_init): Fix last argument to pex_init_common.
4694 (pex_djgpp_exec_child): Remove leading underscore from _open,
4695 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4696 which is undeclared, with `executable', which was unused. Remove
4697 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4698 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4699
47002005-05-11 Paul Brook <paul@codesourcery.com>
4701
4702 * Makefile.in: Regenerate dependencies.
4703
47042005-05-10 Nick Clifton <nickc@redhat.com>
4705
4706 * Update the address and phone number of the FSF organization in
4707 the GPL notices in the following files:
4708 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4709 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4710 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4711 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4712 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4713 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4714 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4715 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4716 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4717 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4718 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4719 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4720 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4721
47222005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4723
4724 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4725 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4726 * configure: Regenerate.
4727
47282005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4729
4730 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4731 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4732 * aclocal.m4: Don't include accross.m4.
4733 * configure, config.in: Regenerate.
4734
47352005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4736
4737 * fopen_unlocked.c (unlock_std_streams): New.
4738
4739 * functions.texi: Regenerate.
4740
47412005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4742
4743 * fopen_unlocked.c (unlock_stream): New.
4744 Consolidate unlocking code into a helper function.
4745
4746 * functions.texi: Regenerate.
4747
47482005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4749
4750 * asprintf.c: Include config.h.
4751 * basename.c: Likewise.
4752 * fdmatch.c: Likewise.
4753 * hex.c: Likewise.
4754 * lbasename.c: Likewise.
4755 * spaces.c: Likewise.
4756 * xatexit.c:Likewise.
4757 * configure.ac: Do check declarations for basename, ffs, asprintf
4758 and vasprintf for real.
4759 * configure: Regenerate.
4760
47612005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4762
4763 * argv.c (dupargv): Allocate space of argv[argc], not
4764 sizeof(char *) of that amount. Cast result to char *.
4765
47662005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4767
4768 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
4769 Replace not with negate.
4770
47712005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4772
4773 * configure.ac: Check declarations for basename, ffs, asprintf,
4774 vasprintf.
4775 * configure: Regenerate.
4776 * config.in: Likewise.
4777
47782005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4779
4780 * Makefile.in (CFILES): Add fopen_unlocked.c.
4781 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4782 Regenerate dependencies.
4783
4784 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4785
4786 * fopen_unlocked.c: New file.
4787
4788 * functions.texi, configure, config.in: Regenerate.
4789
47902005-04-04 Ian Lance Taylor <ian@airs.com>
4791
4792 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4793 declaration before statement.
4794
47952005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4796
4797 * bcmp.c: Fix warnings and implement using memcmp.
4798 * bcopy.c: Fix warnings.
4799 * bzero.c: Fix warnings and implement using memset.
4800
4801 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4802 -Wstrict-prototypes.
4803 * configure, config.in: Regenerate.
4804
4805 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4806 warnings and reconcile interfaces with relevant standards.
4807
48082005-04-02 Ian Lance Taylor <ian@airs.com>
4809
4810 * cp-demangle.c: Update copyright.
4811
48122005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4813
4814 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4815 * functions.texi: Regenerate.
4816
48172005-03-28 Ian Lance Taylor <ian@airs.com>
4818
4819 * pex-common.c: New file.
4820 * pex-one.c: New file.
4821 * pexecute.c: New file.
4822 * pex-common.h: Include <stdio.h>.
4823 (struct pex_obj): Define.
4824 (struct pex_funcs): Define.
4825 (pex_init_common): Declare.
4826 * pex-unix.c: Rewrite.
4827 * pex-win32.c: Rewrite.
4828 * pex-djgpp.c: Rewrite.
4829 * pex-msdos.c: Rewrite.
4830 * testsuite/text-pexecute.c: New file.
4831 * pexecute.txh: Rewrite.
4832 * configure.ac: Check for wait3 and wait4. Set CHECK to
4833 really-check rather than check-cplus-dem.
4834 * functions.texi: Rebuild.
4835 * Makefile.in: Rebuild dependencies.
4836 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4837 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4838 * testsuite/Makefile.in (really-check): New target.
4839 (check-pexecute, test-pexecute): New targets.
4840 * configure: Rebuild.
4841
48422005-03-28 Mark Kettenis <kettenis@gnu.org>
4843
4844 * unlink-if-ordinary.c: Include <sys/types.h>.
4845
48462005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4847
4848 Convert libiberty to use ISO C prototype style 7/n.
4849 * regex.c (PARAMS): Remove definition.
4850 (PREFIX): Unconditionaly define using ISO C ## operator.
4851 (init_syntax_once, extract_number, extract_number_and_incr,
4852 print_fastmap, print_partial_compiled_pattern,
4853 print_compiled_pattern, print_double_string, printchar,
4854 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4855 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
4856 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4857 insert_space, wcs_compile_range, byte_compile_range,
4858 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4859 re_set_registers, re_search, re_search_2, re_search_3, re_match,
4860 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4861 byte_re_match_2_internal, group_match_null_string_p,
4862 alt_match_null_string_p, common_op_match_null_string_p,
4863 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
4864 regexec, regerror, regfree): Use ISO C prototype style.
4865 * partition.c: (elem_compare): Likewise.
4866 * cp-demangle.c (print_usage): Likewise.
4867
48682005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4869
4870 Convert libiberty to use ISO C prototype style 5/n.
4871 * random.c (srandom, initstate, setstate, random): Use ISO C
4872 prototypes.
4873 * putenv.c (putenv): Likewise.
4874 * physmem.c (physmem_available, physmem_total, main): Likewise.
4875 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4876 * pex-unix.c (pexecute, pwait): Likewise.
4877 * pex-msdos.c (pexecute, pwait): Likewise.
4878 * pex-djgpp.c (pexecute, pwait): Likewise.
4879 * partition.c (partition_new, partition_delete, partition_union)
4880 (elem_compare, partition_print): Likewise.
4881 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4882 _obstack_allocated_p, _obstack_free, obstack_free,
4883 _obstack_memory_used, print_and_abort, obstack_next_free,
4884 obstack_object_size, obstack_base): Likewise. Remove codes
4885 predicated on !defined(__STDC__).
4886 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
4887 objalloc_free_block): Use ISO C prototypes.
4888 * mkstemps.c (mkstemps): Likewise.
4889 * memset.c (memset): Likewise.
4890 * mempcpy.c (mempcpy): Likewise.
4891 * rename.c (rename): Likewise.
4892 * rindex.c (rindex): Likewise.
4893 * setenv.c (setenv, unsetenv): Likewise.
4894 * sigsetmask.c (sigsetmask): Likewise.
4895 * snprintf.c (snprintf): Likewise.
4896 * sort.c (sort_pointers, xmalloc): Likewise.
4897 * spaces.c (spaces): Likewise.
4898 * splay-tree.c (splay_tree_delete_helper,
4899 splay_tree_splay_helper, splay_tree_splay,
4900 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
4901 splay_tree_new, splay_tree_xmalloc_allocate,
4902 splay_tree_new_with_allocator, splay_tree_delete,
4903 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4904 splay_tree_max, splay_tree_min, splay_tree_predecessor,
4905 splay_tree_successor, splay_tree_foreach,
4906 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4907 * stpcpy.c (stpcpy): Likewise.
4908 * stpncpy.c (stpncpy): Likewise.
4909 * strcasecmp.c (strcasecmp): Likewise.
4910 * strchr.c (strchr): Likewise.
4911 * strdup.c (strdup): Likewise.
4912
49132005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4914
4915 Convert libiberty to use ISO C prototype style 6/n.
4916 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
4917 strtoerrno, main): Use ISO C prototype style.
4918 * strncasecmp.c (strncasecmp): Likewise.
4919 * strncmp.c (strncmp): Likewise.
4920 * strndup.c (strndup): Likewise.
4921 * strrchr.c (strrchr): Likewise.
4922 * strsignal.c (init_signal_tables, signo_max, strsignal,
4923 strsigno, strtosigno, psignal, main): Likewise.
4924 * strstr.c (strstr): Likewise.
4925 * strtod.c (strtod, atof): Likewise.
4926 * strtol.c (strtol): Likewise.
4927 * strtoul.c (strtoul): Likewise.
4928 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
4929 ternary_recursivesearch): Likewise.
4930 * tmpnam.c (tmpnam): Likewise.
4931 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4932 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4933 * vfork.c (vfork): Likewise.
4934 * vfprintf.c (vfprintf): Likewise.
4935 * vprintf.c (vprintf): Likewise.
4936 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4937 * vsprintf.c (vsprintf): Likewise.
4938 * waitpid.c (waitpid): Likewise.
4939 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4940 * xexit.c (xexit): Likewise.
4941 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
4942 xcalloc, xrealloc): Likewise.
4943 * xmemdup.c (xmemdup): Likewise.
4944 * xstrdup.c (xstrdup): Likewise.
4945 * xstrerror.c (xstrerror): Likewise.
4946 * xstrndup.c (xstrndup): Likewise.
4947
49482005-03-27 Andreas Jaeger <aj@suse.de>
4949
4950 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4951 flags.
4952 * configure: Regenerated.
4953
49542005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4955
4956 * getopt1.c (getopt_long_only): Fix thinko.
4957
49582005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4959
4960 Convert libiberty to use ISO C prototype style 4/n.
4961 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4962 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4963 htab_create_alloc, htab_set_functions_ex, htab_create,
4964 htab_try_create, htab_delete, htab_empty,
4965 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4966 htab_find, htab_find_slot_with_hash, htab_find_slot,
4967 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4968 htab_traverse_noresize, htab_traverse, htab_collisions,
4969 htab_hash_string, iterative_hash): Use ISO C prototype.
4970 * hex.c (hex_init): Likewise.
4971 * index.c (index): Likewise.
4972 * insque.c (insque, remque): Likewise.
4973 * lbasename.c (lbasename): Likewise.
4974 * lrealpath.c (lrealpath): Likewise.
4975 * make-relative-prefix.c (save_string, split_directories,
4976 free_split_directories, make_relative_prefix): Likewise.
4977 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4978 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
4979 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
4980 * memchr.c (memchr): Likewise.
4981 * memcpy.c (memcpy): Likewise.
4982 * memmove.c (memmove): Likewise.
4983 * gettimeofday.c (gettimeofday): Likewise.
4984 * getruntime.c (get_run_time): Likewise.
4985 * getpwd.c (getpwd, getpwd): Likewise.
4986 * getpagesize.c (getpagesize): Likewise.
4987 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
4988 * getopt.c (my_index, exchange, _getopt_initialize,
4989 _getopt_internal, getopt, main): Likewise.
4990 * getcwd.c (getcwd): Likewise.
4991 * fnmatch.c (fnmatch): Likewise.
4992 * floatformat.c (floatformat_always_valid,
4993 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
4994 put_field, floatformat_from_double, floatformat_is_valid,
4995 ieee_test, main): Likewise.
4996 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
4997 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
4998 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
4999 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
5000 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
5001 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
5002 fibheap_link, fibheap_cut, fibheap_cascading_cut,
5003 fibnode_insert_after, fibnode_remove): Likewise.
5004 * ffs.c (ffs): Likewise.
5005 * fdmatch.c (fdmatch): Likewise.
5006 * dyn-string.c (dyn_string_init, dyn_string_new,
5007 dyn_string_delete, dyn_string_release, dyn_string_resize,
5008 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
5009 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
5010 dyn_string_insert_cstr, dyn_string_insert_char,
5011 dyn_string_append, dyn_string_append_cstr,
5012 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
5013 Likewise.
5014
50152005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5016
5017 Convert libiberty to use ISO C prototype style 3/n.
5018 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
5019 consume_count_with_underscores, code_for_qualifier,
5020 qualifier_string, demangle_qualifier, cplus_demangle_opname,
5021 cplus_mangle_opname, cplus_demangle_set_style,
5022 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
5023 ada_demangle, internal_cplus_demangle, squangle_mop_up,
5024 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
5025 delete_work_stuff, mop_up, demangle_signature,
5026 demangle_method_args, demangle_template_template_parm,
5027 demangle_expression, demangle_integral_value,
5028 demangle_real_value, demangle_template_value_parm,
5029 demangle_template, arm_pt, demangle_arm_hp_template,
5030 demangle_class_name, demangle_class, iterate_demangle_function,
5031 demangle_prefix, gnu_special, recursively_demangle, arm_special,
5032 demangle_qualified, get_count, do_type, demangle_fund_type,
5033 do_hpacc_template_const_value, do_hpacc_template_literal,
5034 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
5035 register_Btype, remember_Btype, forget_B_and_K_types,
5036 forget_types, demangle_args, demangle_nested_args,
5037 demangle_function_name, string_need, string_delete, string_init,
5038 string_clear, string_empty, string_append, string_appends,
5039 string_appendn, string_prepend, string_prepends, string_prependn,
5040 string_append_template_idx): Use ISO C prootype style.
5041 * cp-demint.c (cplus_demangle_fill_component,
5042 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
5043 cplus_demangle_v3_components): Likewise.
5044
50452005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
5046
5047 Convert libiberty to use ISO C prototype style 2/n.
5048 * cp-demangle.h: Remove uses of PARAMS.
5049 * cp-demangle.c: Likewise.
5050 (d_dump, cplus_demangle_fill_name,
5051 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
5052 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
5053 d_make_builtin_type, d_make_operator, d_make_extended_operator,
5054 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
5055 cplus_demangle_mangled_name, has_return_type,
5056 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
5057 d_prefix, d_unqualified_name, d_source_name, d_number,
5058 d_identifier, d_operator_name, d_special_name, d_call_offset,
5059 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
5060 d_function_type, d_bare_function_type, d_class_enum_type,
5061 d_array_type, d_pointer_to_member_type, d_template_param,
5062 d_template_args, d_template_arg, d_expression, d_expr_primary,
5063 d_local_name, d_discriminator, d_add_substitution,
5064 d_substitution, d_print_resize, d_print_append_char,
5065 d_print_append_buffer, d_print_error, cplus_demangle_print,
5066 d_print_comp, d_print_java_identifier, d_print_mod_list,
5067 d_print_mod, d_print_function_type, d_print_array_type,
5068 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
5069 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
5070 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
5071 print_usage, main):
5072
50732005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
5074
5075 Convert libiberty to ISO C prototype style 1/n.
5076 * _doprnt.c: Remove conditional #include <varargs.h> on
5077 ANSI_PROTOTYPES as the latter is always assumed.
5078 (_doprnt, checkit, main): Use ISO C prototype.
5079 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
5080 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
5081 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
5082 * atexit.c (atexit): Likewise
5083 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
5084 (asprintf): Use ISO C prototype.
5085 * basename.c (basename): Likewise
5086 * bcmp.c (bcmp): Likewise.
5087 * bcopy.c (bcopy): Likewise.
5088 * bzero.c (bzero): Likewise.
5089 * bsearch.c (bsearch): Likewise. Improve const-correctness.
5090 * choose-temp.c (choose_temp_base): Likewise.
5091 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
5092 (calloc): Use ISO C prototype.
5093 * clock.c (clock): Likewise.
5094 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
5095 (vconcat_length, vconcat_copy, concat_length, concat_copy,
5096 concat_copy2, concat, reconcat, main): Use ISO C prototype.
5097 * copysign.c (copysign): Likewise.
5098
50992005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5100
5101 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
5102 (REQUIRED_OFILES): Add xstrndup.o.
5103 (CONFIGURED_OFILES): Add strndup.o.
5104 Regenerate dependencies.
5105
5106 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
5107
5108 * strndup.c, xstrndup.c: New.
5109
5110 * config.in, configure, functions.texi: Regenerate.
5111
51122005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5113
5114 * xmemdup.c, xstrdup.c: Expose the tail call.
5115
51162005-03-09 Mark Mitchell <mark@codesourcery.com>
5117
5118 * configure.ac (funcs): Add gettimeofday.
5119 * configure: Regenerated.
5120 * gettimeofday.c: New file.
5121 * Makefile.in (CFILES): Add gettimeofday.
5122 (CONFIGURED_OFILES): Add gettimeofday.o.
5123 (./gettimeofday.o): New rule.
5124
51252005-03-09 Ian Lance Taylor <ian@airs.com>
5126
5127 * pex-os2.c: Remove.
5128 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
5129 * Makefile.in (CFILES): Remove pex-os2.c.
5130 (CONFIGURED_OFILES): Remove pex-os2.o.
5131 (pex-os2.o): Remove target.
5132 * configure: Rebuild.
5133
51342005-03-07 Ian Lance Taylor <ian@airs.com>
5135
5136 * mpw-config.in: Remove.
5137 * mpw-make.sed: Remove.
5138 * mpw.c: Remove.
5139 * Makefile.in (CFILES): Remove pex-mpw.c.
5140 (CONFIGURED_OFILES): Remove pex-mpw.o.
5141 (mpw.o, pex-mpw.o): Remove targets.
5142 * maint-tool (undoc): Remove reference to mpw.c.
5143
51442005-03-06 DJ Delorie <dj@redhat.com>
5145
5146 * configure.ac (target_header_dir): vfork is a stub under djgpp.
5147 * configure: Regenerated.
5148
51492005-03-01 Jan Beulich <jbeulich@novell.com>
5150
5151 * Makefile.in (CFILES): Add unlink-if-ordinary.c
5152 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
5153 Add dependencies and rule for unlink-if-ordinary.o.
5154 * unlink-if-ordinary.c: New.
5155
51562005-03-01 Ben Elliston <bje@au.ibm.com>
5157
5158 * hashtab.c (htab_find_slot_with_hash): Make function
5159 documentation clearer.
5160
51612005-02-13 Jason Merrill <jason@redhat.com>
5162
5163 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
5164 arguments.
5165
51662005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
5167
5168 * hex.c (hex_value): Group 'unsigned int' together to get correct
5169 markup.
5170 * functions.texi: Regenerated.
5171
51722004-12-27 H.J. Lu <hongjiu.lu@intel.com>
5173
5174 * Makefile.in: Undo to 2004-12-17.
5175 * aclocal.m4: Likewise.
5176 * config.table: Likewise.
5177 * configure.ac: Likewise.
5178 * maint-tool: Likewise.
5179 * configure: Likewise.
5180
51812004-12-19 H.J. Lu <hongjiu.lu@intel.com>
5182
5183 PR bootstrap/19072
5184 * Makefile.in (enable_shared): New substitute.
5185 (LTTARGETLIB): New.
5186 (PREFIXTARGETLIB): New.
5187 (LTTESTLIB): New.
5188 (PREFIXTESTLIB): New.
5189 (CCLD): New.
5190 (LINK): New.
5191 ($(TARGETLIB)): Use $(LINK) to create libraries and create
5192 targets by hand.
5193 ($(TESTLIB)): Likewise.
5194 (mostlyclean): Don't remove .libs. Remove the libtool object
5195 directory.
5196
5197 * config.table (enable_shared): Removed.
5198
5199 * configure.ac (enable_static): Set to yes.
5200 (AC_PROG_LIBTOOL): Removed.
5201 (AM_DISABLE_SHARED): Uncommented.
5202 (AM_PROG_LIBTOOL): Likewise.
5203 (LIBOBJS): Add `./' to avoid VPATH.
5204 (LTLIBOBJS): Likewise.
5205 (enable_shared): Substitute.
5206 * configure: Regenerated.
5207
52082004-12-18 H.J. Lu <hongjiu.lu@intel.com>
5209
5210 * Makefile.in (top_builddir): Set to `.'.
5211 (OUTPUT_OPTION): Removed.
5212 (LIBTOOL): New.
5213 (LTLIBOBJS): New.
5214 (EXTRA_LTOFILES): New.
5215 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
5216 (all): Remove stamp-picdir.
5217 (LTCOMPILE): New.
5218 (.c.lo): New rule.
5219 (REQUIRED_LTOFILES): New.
5220 (CONFIGURED_LTOFILES): New.
5221 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
5222 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
5223 (stamp-picdir): Completely removed.
5224 (maint-missing): Pass $(REQUIRED_LTOFILES)
5225 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
5226 $(CONFIGURED_OFILES)
5227 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
5228 $(CONFIGURED_LTOFILES).
5229 (mostlyclean): Also remove *.lo .libs.
5230 Run "make maint-deps".
5231
5232 * aclocal.m4: Include ../libtool.m4.
5233
5234 * config.table: Don't check --enable-shared.
5235
5236 * configure.ac (AC_PROG_LIBTOOL): Add.
5237 (AC_PROG_CC_C_O): Removed.
5238 (OUTPUT_OPTION): Removed.
5239 (NO_MINUS_C_MINUS_O): Removed.
5240 (ltpexecute): New substitute.
5241 (LIBOBJS): Cleanup.
5242 * configure: Regenerated.
5243
5244 * maint-tool: Updated for .lo/libtool.
5245
52462004-12-11 Ben Elliston <bje@au.ibm.com>
5247
5248 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
5249 * configure: Regenerate.
5250 * config.in: Likewise.
5251
52522004-12-07 DJ Delorie <dj@redhat.com>
5253
5254 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
5255 that recursion (and thus large stack space) is not needed.
5256
52572004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
5258
5259 * pex-unix.c: Fix the spelling of longjmp.
5260
52612004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
5262
5263 PR other/18623
5264 * cp-demangle.c (d_call_offset): Remove useless local variables
5265 offset and virtual_offset.
5266 * cplus-dem.c (ada_demangle): Remove useless local variable
5267 at_start_name.
5268 (demangle_template): Remove useless local variable start.
5269
52702004-11-19 Roger Sayle <roger@eyesopen.com>
5271
5272 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
5273 "ansidecl.h" to avoid redeclaration errors with native compilers.
5274 * regex.c: Protect config.h from multiple inclusion.
5275
52762004-11-12 Mike Stump <mrs@apple.com>
5277
5278 * Makefile.in (libiberty.html): Fix html generation.
5279
52802004-09-08 Adam Nemet <anemet@lnxw.com>
5281
5282 * vasprintf.c: Accept __va_copy in addition to va_copy.
5283
52842004-09-03 Paolo Bonzini <bonzini@gnu.org>
5285
5286 * configure: Regenerate.
5287
52882004-09-02 Paolo Bonzini <bonzini@gnu.org>
5289
5290 * configure.ac: Do not enable multilibs for build-side libiberty.
5291
52922004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
5293
5294 * lrealpath.c (lrealpath): Add _WIN32 support.
5295
52962004-06-28 Zack Weinberg <zack@codesourcery.com>
5297
5298 * cp-demangle.h: Declare cplus_demangle_operators,
5299 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
5300 cplus_demangle_type as static if IN_GLIBCPP_V3.
5301
53022004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
5303
5304 PR other/16240
5305 * cp-demangle.c (d_expr_primary): Check for a failure return from
5306 cplus_demangle_type.
5307 * testsuite/demangle-expected: Add test case.
5308
53092004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
5310
5311 * pex-win32.c (fix_argv): Expand comment.
5312
53132004-05-25 Daniel Jacobowitz <drow@false.org>
5314
5315 * Makefile.in: Add .NOEXPORT.
5316
53172004-04-29 Douglas B Rupp <rupp@gnat.com>
5318
5319 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5320 copyright.
5321
53222004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5323
5324 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5325 * configure: Regenerate.
5326
53272004-04-22 Richard Henderson <rth@redhat.com>
5328
5329 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
5330 (CHAR_BIT): Provide default.
5331 (struct prime_ent, prime_tab): New.
5332 (higher_prime_index): Rename from higher_prime_number, return index.
5333 (htab_mod_1): New.
5334 (htab_mod, htab_mod_m2): Use it.
5335 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
5336 (htab_expand): Likewise.
5337 * configure.ac: Check for stdint.h.
5338 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
5339 * config.in, configure: Rebuild.
5340
53412004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
5342
5343 * strerror.c: Include config.h, and redefine sys_nerr and
5344 sys_errlist, before including ansidecl.h and libiberty.h.
5345
53462004-04-13 Jeff Law <law@redhat.com>
5347
5348 * hashtab.c (htab_remove_elt_with_hash): New function.
5349 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5350
53512004-03-31 Richard Henderson <rth@redhat.com>
5352
5353 * hashtab.c (htab_size): Move to top of file; mark inline.
5354 (htab_elements): Likewise.
5355 (htab_mod, htab_mod_m2): New.
5356 (htab_delete): Refactor htab->size and htab->entries.
5357 (htab_empty): Likewise.
5358 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5359 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5360 (htab_clear_slot): Use htab_size, htab_elements.
5361 (htab_traverse_noresize, htab_traverse): Likewise.
5362
53632004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5364
5365 * pex-unix.c (pexecute): Use vfork instead of fork, with
5366 appropriate changes to make this safe.
5367 * pex-common.h (STDERR_FILE_NO): Define.
5368
5369 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5370 an 80 column screen. Run maint-deps.
5371
53722004-03-09 Kelley Cook <kcook@gcc.gnu.org>
5373
5374 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
5375 * acconfig.h: Delete redundant file.
5376 * config.in: Regenerate.
5377 * configure: Regenerate.
5378
53792004-03-09 Hans-Peter Nilsson <hp@axis.com>
5380
5381 * configure: Regenerate for config/accross.m4 correction.
5382
53832004-03-07 Andreas Jaeger <aj@suse.de>
5384
5385 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5386 prototypes.
5387 (main): Initialize style.
5388
53892004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5390
5391 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5392 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5393 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5394 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5395 short types to D_PRINT_DEFAULT. Change other integer types to use
5396 new D_PRINT_* values where appropriate. Change float types to
5397 D_PRINT_FLOAT.
5398 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5399 values.
5400 * testsuite/demangle-expected: Adjust two test cases.
5401
5402 * cp-demangle.c (d_print_function_type): Print a space before the
5403 parenthesis around the function type in more cases.
5404 * testsuite/demangle-expected: Adjust one test case.
5405
5406 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5407 parentheses around a cast.
5408 * testsuite/demangle-expected: Adjust two test cases to match new
5409 output.
5410
5411 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5412
5413 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5414 push more than one of the same CV-qualifier on the top of the
5415 stack.
5416 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5417 move the CV-qualifiers to apply to the element type instead.
5418 (d_print_array_type): When checking the modifiers, keep looking
5419 past ones which have been printed already.
5420 * testsuite/demangle-expected: Add three test cases.
5421
54222004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5423
5424 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5425 empty string correctly.
5426
5427 * cp-demangle.c (__cxa_demangle): It is not an error if status is
5428 not NULL. It is an error if the mangled name is the same as a
5429 built-in type name.
5430 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5431 than cplus_demangle_v3.
5432
5433 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5434 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5435
54362004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
5437
5438 * regex.c: Include <ansidecl.h>.
5439 (regcomp): Cast i to int.
5440 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5441
54422004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5443
5444 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5445 * configure: Regenerate.
5446
54472004-01-22 DJ Delorie <dj@redhat.com>
5448
5449 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
5450 with explicit build rules.
5451 (VPATH): Remove.
5452 (.c.o): Poison.
5453 * configure.ac (pexecute, LIBOBJS): Add ./ .
5454 * maint-tool: Build dependencies with explicit rules.
5455
54562004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5457
5458 * strdup.c (strdup): Constify the argument.
5459
54602004-01-14 Loren J. Rittle <ljrittle@acm.org>
5461
5462 * Makefile.in (distclean): Remove config.cache.
5463
54642004-01-13 Daniel Jacobowitz <drow@mvista.com>
5465
5466 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5467 takes two parameters.
5468 * cp-demint.c (cplus_demangle_fill_component): Likewise.
5469
54702004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
5471
5472 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
5473 defined, rename some functions which are to become static via
5474 #define.
5475 (CP_STATIC_IF_GLIBCPP_V3): Define.
5476 (struct d_operator_info): Move definition to cp-demangle.h, and
5477 rename to demangle_operator_info. Change all uses.
5478 (enum d_builtin_type_print): Move definition to cp-demangle.h.
5479 (struct d_builtin_type_info): Move definition to cp-demangle.h,
5480 and rename to demangle_builtin_type_info. Change all uses.
5481 (enum d_comp_type): Move definition to include/demangle.h, and
5482 rename to demangle_component_type, and change all enums to start
5483 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
5484 (struct d_comp): Move definition to include/demangle.h, and rename
5485 to demangle_component. Change all uses.
5486 (struct d_info): Move definition to cp-demangle.h.
5487 (cplus_demangle_fill_name): New function.
5488 (cplus_demangle_fill_extended_operator): New function.
5489 (cplus_demangle_fill_ctor): New function.
5490 (cplus_demangle_fill_dtor): New function.
5491 (d_make_empty): Remove type parameter. Change all callers.
5492 (d_make_name): Use cplus_demangle_fill_name.
5493 (d_make_extended_operator): Use
5494 cplus_demangle_fill_extended_operator.
5495 (d_make_ctor): Use cplus_demangle_fill_ctor.
5496 (d_make_dtor): Use cplus_demangle_fill_dtor.
5497 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
5498 non-static by default. Change all callers.
5499 (cplus_demangle_operators): Rename from d_operators. Change all
5500 uses. Make non-static by default. Add sentinel at end of array.
5501 (d_operator_name): Adjust initialization of high for new sentinel
5502 in cplus_demangle_operators.
5503 (cplus_demangle_builtin_types): Rename from d_builtin_types.
5504 Change all uses. Make non-static by default. Change initializer
5505 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5506 (cplus_demangle_type): Rename from d_type. Make non-static by
5507 default. Change all callers.
5508 (cplus_demangle_init_info): Rename from d_init_info. Make
5509 non-static by default. Change all callers.
5510 * cp-demangle.h: New file.
5511 * cp-demint.c: New file.
5512 * Makefile.in: Rebuild dependencies.
5513 (CFILES): Add cp-demint.c.
5514 (REQUIRED_OFILES): Add cp-demint.o.
5515
55162004-01-09 Kelley Cook <kcook@gcc.gnu.org>
5517
5518 * configure.in: Rename file to ...
5519 * configure.ac: ... this.
5520 * Makefile.in: Update a comment for above change.
5521 * README: Likewise.
5522 * config.in: Regenerate.
5523
55242004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
5525
5526 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5527 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5528 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5529 demangling template parameters.
5530 * testsuite/test-demangle.c (fail): New static function.
5531 (main): Support new options in input file: --no-params,
5532 --is-v3-ctor, and --is-v3-dtor.
5533 * testsuite/demangle-expected: Add --no-params to most tests, and
5534 add the correct result when parameters are not demangled. Add
5535 some simple tests for V3 constructor/destructor recognition.
5536
55372003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5538
5539 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5540
55412003-12-22 Daniel Jacobowitz <drow@mvista.com>
5542
5543 PR debug/13272
5544 * Makefile.in (lbasename.o): Depend on filenames.h.
5545 * lbasename.c: Include "filenames.h" instead of defining
5546 its macros locally.
5547
55482003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5549
5550 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5551 dynamic arrays.
5552 (struct d_operator_info): Add len field.
5553 (struct d_builtin_type_info): Add len and java_len fields.
5554 (struct d_standard_sub_info): Add simple_len, full_len, and
5555 set_last_name_len fields.
5556 (struct d_comp): Add len field to s_string.
5557 (struct d_info): Add send, did_subs, and expansion fields.
5558 (d_append_string_constant): Define.
5559 (d_append_string): Remove. Change all users to use
5560 d_append_string_constant or d_append_buffer instead.
5561 (d_make_sub): Add len parameter. Change all callers.
5562 (d_name): Increase expansion when substituting std::.
5563 (d_unqualified_name): Increase expansion for an operator.
5564 (d_number): Don't use multiplication for negative numbers.
5565 (d_identifier): Make sure there are enough characters in the
5566 string for the specified length. Adjust expansion for an
5567 anonymous namespace.
5568 (d_operators): Initialize len field.
5569 (d_special_name, d_ctor_dtor_name): Increase expansion.
5570 (d_builtin_types): Initialize len and java_len fields.
5571 (d_type): Increase expansion for a builtin type.
5572 (d_cv_qualifiers): Increase expansion for each qualifier.
5573 (d_bare_function_type): Decrease expansion when removing single
5574 void parameter.
5575 (d_template_param): Increment did_subs.
5576 (d_expression): Increase expansion for an operator.
5577 (d_expr_primary): Decrease expansion for a type we will print
5578 specially.
5579 (standard_subs): Initialize new fields.
5580 (d_substitution): Increment did_subs when doing a normal
5581 substitution. Increase expansion for a special substitution.
5582 (d_print): Add estimate parameter. Change all callers.
5583 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5584 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5585 (d_print_java_identifier): Rename from d_print_identifier. Handle
5586 only Java case. Change caller.
5587 (d_init_info): Change return type to void. Change all callers.
5588 Initialize send, did_subs, and expansion fields. Do not
5589 initialize comps and subs fields.
5590 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5591 arrays on stack. Make an estimate of the length of the demangled
5592 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5593 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5594 subs arrays on stack.
5595
55962003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5597
5598 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5599 after the identifier.
5600 * testsuite/demangle-expected: Add test case.
5601
56022003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5603
5604 Fix for PR c++/13447:
5605 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5606 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5607 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5608 D_COMP_QUAL_NAME.
5609 (is_ctor_or_dtor): Likewise.
5610 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5611 D_COMP_QUAL_NAME.
5612 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5613 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5614 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5615 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5616 * testsuite/demangle-expected: Add two test cases.
5617
5618 * cp-demangle.c (d_print_function_type): Clear the global modifier
5619 list when printing the modifiers, not just when printing the
5620 function parameters.
5621 * testsuite/demangle-expected: Add two test cases.
5622
56232003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5624
5625 * cp-demangle.c (d_print_function_type): Print the function
5626 parameters with no modifiers.
5627 * testsuite/demangle-expected: Add test case.
5628
5629 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5630 expect that we've read the entire string.
5631 (is_ctor_or_dtor): Don't expect that we've read the entire
5632 string--reverse patch of 2003-11-29.
5633
56342003-12-15 Brendan Kehoe <brendan@zen.org>
5635
5636 * Makefile.in (floatformat.o): Add dependency on
5637 config.h to accompany change of 2003-12-03.
5638
56392003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5640
5641 Fix handling of constructor/destructor of standard substitution:
5642 * cp-demangle.c (struct d_standard_sub_info): Define.
5643 (d_substitution): Add prefix argument. Change all callers.
5644 Rework handling of standard substitutions to print full name when
5645 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5646 * testsuite/demangle-expected: Add test case.
5647
5648 Fix handling of negative literal constants:
5649 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5650 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5651 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5652 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5653 * testsuite/demangle-expected: Add test case.
5654
56552003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5656
5657 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5658 (d_last_char): Define new macro.
5659 (d_make_name): Reject an empty name.
5660 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5661 (d_substitution, d_print_identifier): Likewise.
5662 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5663 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5664 (d_print_mod) Use new d_last_char macro.
5665 (d_print_cast): Use new d_last_char macro.
5666 (is_ctor_or_dtor): Don't leak memory.
5667
5668 Fix handling of member function modifiers:
5669 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5670 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5671 (d_dump): Dump new d_comp_type values.
5672 (d_make_comp): Accept new d_comp_type values.
5673 (has_return_type): Only accept _THIS variants of qualifiers.
5674 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5675 qualifiers.
5676 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5677 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5678 qualifiers and printing them at the end, add _THIS qualifiers to
5679 the modifier list.
5680 (d_print_comp) [D_COMP_*_THIS]: New cases.
5681 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5682 qualifiers.
5683 (d_print_mod_list): Add suffix parameter. Change all callers.
5684 Keep walking the list even if the current modifier has been
5685 printed.
5686 (d_print_mod): Handle new _THIS qualifiers.
5687 (d_print_function_type): Handle new _THIS qualifiers when deciding
5688 whether to print a parenthesis. Put a space before the
5689 parenthesis in some cases. Call d_print_mod_list again at the
5690 end, passing suffix as 1.
5691 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5692 * testsuite/demangle-expected: Add test case.
5693
5694 Fix for PR gcc/13304:
5695 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5696 before the '<' is itself a '<', insert a space.
5697 (d_print_cast): Likewise.
5698 * testsuite/demangle-expected: Add test case.
5699
5700 Fix for PR gcc/13244:
5701 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5702 which uses the '>' operator in an extra layer of parens.
5703 * testsuite/demangle-expected: Add test case.
5704
57052003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5706
5707 * floatformat.c: Include "config.h" and <string.h> if available.
5708 (INFINITY, NAN): Define if not defined by <math.h>.
5709 (floatformat_to_double): Handle NaN, infinity, and denormalized
5710 numbers.
5711 (floatformat_from_double): Likewise.
5712 (ieee_test): In debugging code, use little endian rather than big
5713 endian. Correct tests to handle NaN and to check correct sign of
5714 zero. Omit m68k extended test.
5715 (main): Add more debugging cases.
5716
57172003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5718
5719 * cp-demangle.c (d_demangle): Only return success if we consumed
5720 the entire demangled string.
5721 (is_ctor_or_dtor): Likewise.
5722
5723 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5724 to restore expected result of EDG test case to original expected
5725 result.
5726
57272003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5728
5729 * cp-demangle.c (struct d_print_mod): Add templates field.
5730 (d_make_builtin_type): Check for NULL type.
5731 (d_make_extended_operator): Check for NULL name.
5732 (d_make_ctor, d_make_dtor): Likewise.
5733 (d_mangled_name): Add top_level parameter. Change all callers.
5734 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5735 CV-qualifiers.
5736 (d_type): Check some return values we rely on.
5737 (d_bare_function_type, d_array_type): Likewise.
5738 (d_pointer_to_member_type, d_template_args): Likewise.
5739 (d_add_substitution): Fail if argument is NULL.
5740 (d_print_resize): Check whether buf is NULL.
5741 (d_print_comp): Save current templates list with each modifier.
5742 Don't pass the modifier list down when printing a template.
5743 (d_print_cast): Don't pass the modifier list down when printing a
5744 template.
5745 (d_print_mod_list): Temporarily set templates list while printing
5746 a modifier.
5747 (d_print_mod): Check that buf is not NULL before using it.
5748 (d_print_function_type): Print parens if there is no modifier.
5749 (d_init_info): Permit as many substitutions as there are
5750 characters in the mangled name.
5751 * testsuite/demangle-expected: Add two new test cases.
5752
57532003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5754
5755 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5756 d_demangle.
5757
57582003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5759
5760 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5761 callers.
5762 (print_usage): Display new -p option.
5763 (long_options): Add --no-params.
5764 (main): Accept and handle -p.
5765
57662003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5767
5768 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5769 whether we have a template.
5770 * testsuite/demangle-expected: Add four new tests.
5771
57722003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5773
5774 * testsuite/demangle-expected: Minor changes to match output of
5775 new demangler: adjust whitespace in four tests, and change order
5776 of qualifiers in one test.
5777
5778 * cp-demangle.c: Complete rewrite.
5779
57802003-11-19 Mark Mitchell <mark@codesourcery.com>
5781
5782 * cp-demangle.c (demangle_type): Correct thinko in substitution
5783 processing.
5784
57852003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5786
5787 * cp-demangle.c (demangle_operator_name): Remove space before
5788 "sizeof".
5789 (demangle_type_ptr): Put qualifiers in the right place. Handle
5790 qualifiers in pointer to member specially.
5791 (demangle_type): Handle qualifiers for pointer or reference
5792 specially. Handle function type.
5793 (demangle_local_name): Save and restore caret around demangling of
5794 initial encoding.
5795
5796 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5797 cplus_demangle.
5798
5799 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5800
58012003-10-31 Andreas Jaeger <aj@suse.de>
5802
5803 * floatformat.c (floatformat_always_valid): Add unused attribute.
5804
58052003-10-30 Josef Zlomek <zlomekj@suse.cz>
5806
5807 Jan Hubicka <jh@suse.cz>
5808 * vasprintf.c (int_vasprintf): Pass va_list by value.
5809 Use va_copy for copying va_list.
5810 (vasprintf): Pass va_list by value.
5811
58122003-10-30 Josef Zlomek <zlomekj@suse.cz>
5813
5814 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5815 instead of increasing n_elements when inserting to deleted slot.
5816
58172003-10-20 J. Brobecker <brobecker@gnat.com>
5818
5819 * cplus-dem.c (demangle_template): Register a new Btype only
5820 when needed.
5821 * testsuite/demangle-expected: Add a new test.
5822
58232003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5824
5825 * testsuite/demangle-expected: Update the expected output of
5826 _GLOBAL__I__Z2fnv.
5827
58282003-10-02 Daniel Jacobowitz <drow@mvista.com>
5829
5830 * strerror.c: Revert last change. Declare static sys_nerr
5831 and sys_errlist using different names.
5832
58332003-10-01 Daniel Jacobowitz <drow@mvista.com>
5834
5835 * strerror.c: Don't provide or reference sys_errlist if
5836 strerror is available.
5837
58382003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5839
5840 * configure.in: Check if $MAKEINFO is missing.
5841 * configure: Regenerated.
5842
58432003-09-24 Daniel Jacobowitz <drow@mvista.com>
5844
5845 * configure.in: Use AC_PROG_CPP_WERROR.
5846 * configure: Regenerated.
5847
58482003-09-22 Andrew Cagney <cagney@redhat.com>
5849
5850 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5851 (floatformat_always_valid): New function.
5852 (floatformat_i387_ext): Initialize new "is_valid" field to
5853 "floatformat_i387_ext_is_valid".
5854 (floatformat_ieee_single_little): Initialize "is_valid" field to
5855 floatformat_always_valid.
5856 (floatformat_ieee_double_big): Ditto.
5857 (floatformat_ieee_double_little): Ditto.
5858 (floatformat_ieee_double_little): Ditto.
5859 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5860 (floatformat_i960_ext): Ditto.
5861 (floatformat_m88110_ext): Ditto.
5862 (floatformat_m88110_harris_ext): Ditto.
5863 (floatformat_arm_ext_big): Ditto.
5864 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5865 (floatformat_ia64_spill_big): Ditto.
5866 (floatformat_ia64_spill_little): Ditto.
5867 (floatformat_ia64_quad_big): Ditto.
5868 (floatformat_ia64_quad_little): Ditto.
5869 (floatformat_ia64_quad_little): Ditto.
5870 (floatformat_is_valid): Call "is_valid".
5871
58722003-09-15 Andrew Cagney <cagney@redhat.com>
5873
5874 * floatformat.c (get_field): Make "data" constant.
5875 (floatformat_is_valid, floatformat_to_double): Make "from"
5876 constant, fix casts.
5877 (floatformat_from_double): Make "from" constant.
5878
58792003-09-15 Daniel Jacobowitz <drow@mvista.com>
5880
5881 * floatformat.c (floatformat_is_valid): New function.
5882 (get_field, put_field): Correct comments.
5883
58842003-09-06 Josef Zlomek <zlomekj@suse.cz>
5885
5886 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5887 FIBHEAPKEY_T.
5888
58892003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5890
5891 PR bootstrap/12100
5892 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5893 * configure: Rebuilt.
5894
58952003-08-27 Daniel Jacobowitz <drow@mvista.com>
5896
5897 * aclocal.m4: Include acx.m4 and no-executables.m4.
5898 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5899 (LIB_AC_PROG_CC): Remove.
5900 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
5901 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5902 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
5903 performing link tests.
5904 * configure: Regenerated.
5905
59062003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5907
5908 * cp-demangle.c: Clarify what package(s) this is part of.
5909
59102003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
5911
5912 * pex-win32.c (pexecute): Mark parameters this_pname and
5913 temp_base as unused. Remove unused variables retries,
5914 sleep_interval. Initialize org_stdin, org_stdout.
5915 (pwait): Mark parameter flags as unused.
5916
59172003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
5918
5919 * pex-win32.c (fix_argv): Ensure that the executable pathname
5920 uses Win32 backslashes.
5921 (pexecute): Cast away constness when assigning *errmsg_arg.
5922
59232003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5924
5925 * testsuite/demangle-expected: Add more GNU V3 testcases.
5926
59272003-06-22 Zack Weinberg <zack@codesourcery.com>
5928
5929 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5930 not HC_ASCII and HC_EBCDIC.
5931 Add documentation in form expected by gather-docs.
5932 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5933 * Makefile.in, functions.texi: Regenerate.
5934
59352003-06-21 Zack Weinberg <zack@codesourcery.com>
5936
5937 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
5938 for charset determination.
5939
59402003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
5941
5942 * configure.in: Add check for malloc.h needed by
5943 m68k for function free().
5944 * configure: Regenerated.
5945 * config.in: Add HAVE_MALLOC_H.
5946 * hashtab.c: include malloc.h were available for
5947 free().
5948
59492003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
5950
5951 PR bootstrap/10974
5952 * physmem.c: Update comment.
5953 * configure.in: Modify test for _system_configuration for older
5954 AIX systems.
5955
5956 * config.in, configure: Regenerated.
5957
59582003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5959
5960 PR other/10810
5961 * test-demangle.c (getline): Fix fence-post error.
5962
59632003-06-03 Nick Clifton <nickc@redhat.com>
5964
5965 * asprintf.c: Change comment to note that -1 is returned upon
5966 error.
5967 * vasprintf.c: Likewise.
5968 (vasprintf): Return -1 upon error.
5969 * functions.texi: Document changes to asprintf and vasprintf.
5970
59712003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5972
5973 * config.table: Accept i[345867]86 variant.
5974
59752003-05-15 Jim Blandy <jimb@redhat.com>
5976
5977 * hex.c (_hex_value): Make this unsigned.
5978 (hex_value): Update documentation for new return type. hex_value
5979 now expands to an unsigned int expression, to avoid unexpected
5980 sign extension when we store it in a bfd_vma, which is larger than
5981 int on some platforms.
5982 * functions.texi: Regenerated.
5983
59842003-05-07 Josef Zlomek <zlomekj@suse.cz>
5985
5986 * splay-tree.c (splay_tree_predecessor): Fix comment.
5987 (splay_tree_successor): Fix comment.
5988
59892003-05-07 Jason Merrill <jason@redhat.com>
5990
5991 * hashtab.c (iterative_hash): New fn.
5992 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5993 * aclocal.m4: Include accross.m4.
5994 * configure, config.in: Regenerate.
5995
59962003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5997
5998 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
5999 * configure: Regenerate.
6000
60012003-05-03 Carlo Wood <carlo@alinoe.com>
6002
6003 * cp-demangle.c: Fix typo in "char_traints" string-literal.
6004
60052003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6006
6007 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
6008 (main): Test that we don't write too much data.
6009
60102003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6011
6012 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
6013 vsnprintf.
6014 * snprintf.c, vsnprintf.c: New files.
6015 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
6016 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
6017 Regenerate dependencies.
6018
6019 * functions.texi, configure, config.in: Regenerated.
6020
60212003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6022
6023 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
6024 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
6025 and stpncpy.
6026 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
6027 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
6028 Regenerate dependencies.
6029
6030 * functions.texi, configure, config.in: Regenerated.
6031
60322003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6033
6034 * argv.c: Fix comments.
6035 * calloc.c: Don't unnecessarily include "libiberty.h".
6036 (bzero): Add prototype.
6037 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6038 * getcwd.c (getcwd): Use standard definition to avoid conflicts
6039 with system headers.
6040 * hashtab.c (htab_traverse): Delete unused variables.
6041 * rename.c: Include "ansidecl.h".
6042 (rename): Use standard definition to avoid conflicts with system
6043 headers.
6044 * strsignal.c: Rely on ANSI_PROTOTYPES.
6045 * strstr.c: Check GNUC >= 2, not GNUC == 2.
6046 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6047 * vprintf.c: Include "ansidecl.h" earlier, rely on
6048 ANSI_PROTOTYPES.
6049 * vsprintf.c: Include "ansidecl.h" earlier, rely on
6050 ANSI_PROTOTYPES and possibly include <stdarg.h>.
6051
6052 * Makefile.in: Regenerate dependencies.
6053
60542003-04-15 DJ Delorie <dj@redhat.com>
6055
6056 * maint-tool (deps): Scan for headers in $srcdir also.
6057
60582003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6059
6060 PR target/10338
6061 PR bootstrap/10198
6062 PR bootstrap/10140
6063 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
6064 __mempcpy.
6065 * regex.c (regerror): Likewise.
6066
60672003-04-14 Roger Sayle <roger@eyesopen.com>
6068
6069 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
6070 * memchr.c: Likewise.
6071 * strcasecmp.c: Likewise.
6072 * strncasecmp.c: Likewise.
6073 * strncmp.c: Likewise.
6074 * xatexit.c: Likewise.
6075 * xmalloc.c: Likewise.
6076
6077 * copysign.c: Use traditional function declaration instead of DEFUN.
6078 * sigsetmask.c: Likewise.
6079
6080 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
6081 * memset.c: Likewise.
6082
6083 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
6084 * memmove.c: Likewise.
6085
60862003-04-14 Roger Sayle <roger@eyesopen.com>
6087
6088 * strdup.c (strdup): Tweak implementation to use memcpy.
6089
60902003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6091
6092 * configure.in (HAVE_UINTPTR_T): Always define.
6093 * configure: Regenerated.
6094
60952003-03-23 Alexandre Oliva <aoliva@redhat.com>
6096
6097 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
6098 instead of $$CC alone.
6099 (install_to_tooldir): Use it.
6100
61012003-17-03 Jan Hubicka <jh@suse.cz>
6102
6103 * hashtab.c (htab_traverse_noresize): Break out from ...
6104 * hashtab.c (htab_traverse): ... here.
6105
61062003-12-03 Jan Hubicka <jh@suse.cz>
6107
6108 * hashtab.c (htab_expand): Fix warning.
6109
6110 * hashtab.c (htab_expand): Compute the size of hashtable based
6111 on the number of elements actually used.
6112 (htab_traverse): Call htab_expand when table is too empty.
6113
61142003-03-11 Carlo Wood <carlo@gnu.org>
6115
6116 * cplus-dem.c (demangle_integral_value): Correction to reflect
6117 patch of 2002-01-10 in order to also make negative multi-digits
6118 without leading underscore work.
6119
61202003-03-03 Mark Mitchell <mark@codesourcery.com>
6121
6122 * cplus-dem.c: Add license exception to copyright notice.
6123
61242003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6125
6126 * physmem.c: Formatting changes from upstream.
6127
61282003-02-24 Danny Smith <dannysmith@users.source.forge.net>
6129
6130 * physmem.c (physmem_total): Add _WIN32 support.
6131 (physmem_available): Likewise.
6132
61332003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6134
6135 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
6136 GSI_PHYSMEM.
6137 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
6138
61392003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6140
6141 * configure.in: Check for sys/systemcfg.h and
6142 _system_configuration.
6143 * physmem.c: Add support for AIX. Tweek formatting as per
6144 upstream coreutils beta.
6145
61462003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6147 Richard Earnshaw <rearnsha@arm.com>
6148 Geoffrey Keating <geoffk@apple.com>
6149
6150 * configure.in: Check for sys/sysctl.h and sysctl.
6151 * physmem.c: Add support for *bsd and darwin.
6152 * Makefile.in: Generate depedency for physmem.o.
6153
61542003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6155
6156 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
6157 Tru64 UNIX.
6158 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
6159 Tru64 UNIX.
6160
6161 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
6162 machine/hal_sysinfo.h, sys/table.h.
6163 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
6164 * configure, config.in: Regenerate.
6165
61662003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6167
6168 * configure.in: Check for sys/sysmp.h and sysmp.
6169 * physmem.c: Pull upstream copy, add support for irix6.
6170
6171 * config.in, configure: Regenerated.
6172
61732003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6174
6175 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
6176 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
6177 pstat_getdynamic.
6178
61792003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6180
6181 * Makefile.in (CFILES): Add physmem.c.
6182 (REQUIRED_OFILES): Add physmem.o.
6183 * configure.in: Check for sys/pstat.h.
6184 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
6185 * physmem.c: New file, copied from textutils.
6186
6187 * config.in, configure: Regenerated.
6188
61892003-02-20 Daniel Jacobowitz <drow@mvista.com>
6190
6191 * Makefile.in (CFILES): Add lrealpath.c.
6192 (REQUIRED_OFILES): Add lrealpath.o.
6193 (lrealpath.o): Add rule.
6194 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
6195 * configure.in: Add realpath and canonicalize_file_name to
6196 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
6197 for canonicalize_file_name.
6198 * lrealpath.c: New file.
6199 * make-relative-prefix.c: Update documentation.
6200 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
6201 * config.in: Regenerated.
6202 * configure: Regenerated.
6203 * functions.texi: Regenerated.
6204
62052003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
6206
6207 * cplus_dem.c: Fix typo: intializes -> initializes.
6208
62092003-02-20 Alexandre Oliva <aoliva@redhat.com>
6210
6211 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6212 config.status.
6213 * configure: Rebuilt.
6214
62152003-02-13 Daniel Jacobowitz <drow@mvista.com>
6216
6217 Fix PR c++/7612.
6218 * cplus-dem.c (demangle_signature): Call string_delete.
6219 Remove extra string_init.
6220 (demangle_arm_hp_template): Call string_delete instead of
6221 string_clear. Add missing string_delete call.
6222 (demangle_qualified): Add missing string_delete call.
6223 (do_type): Remove unused variable btype. Add missing string_delete
6224 call. Call string_delete instead of string_clear.
6225 (demangle_fund_type): Move variable btype inside of the switch
6226 statement. Add missing string_delete call.
6227 (do_arg): Call string_delete instead of string_clear. Remove extra
6228 string_init.
6229 (demangle_nested_args): Free work->previous_argument.
6230
62312003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6232
6233 * acconfig.h: New file. Add uintptr_t.
6234 * config.in: Regenerated.
6235
62362003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6237
6238 * libiberty.texi: Update to GFDL 1.2.
6239
62402003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6241
6242 * Makefile.in (libiberty_topdir): New subst.
6243 (mkinstalldirs): Redefine in terms of the above.
6244 * configure.in: AC_SUBST it.
6245 * configure: Regenerate.
6246
62472003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6248
6249 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
6250 (info-subdir, install-info-subdir, clean-info-subdir)
6251 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
6252 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
6253 Pass $(FLAGS_TO_PASS).
6254
62552003-01-27 Alexandre Oliva <aoliva@redhat.com>
6256
6257 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
6258 /`$$CC -print-multi-os-directory`.
6259
62602003-01-26 Daniel Jacobowitz <drow@mvista.com>
6261
6262 * hashtab.c (htab_create_alloc_ex): New function.
6263 (hatab_set_functions_ex): New function.
6264 (htab_delete, htab_expand): Support alternate allocation functions.
6265
62662003-01-24 Christopher Faylor <cgf@redhat.com>
6267
6268 * configure.in: Remove special pex-cygwin consideration.
6269 * configure: Regenerate.
6270 * pex-cygwin.c: Remove.
6271 * Makefile.in: Remove pex-cygwin.[co] lines.
6272
62732003-01-24 Zack Weinberg <zack@codesourcery.com>
6274
6275 * Makefile.in (CFILES): Add pex-*.c.
6276 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
6277 (CONFIGURED_OFILES): Add pex-*.o.
6278 (TEXIFILES): Add pexecute.txh.
6279 (pexecute.o): Delete rule.
6280 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
6281 pex-unix.o, pex-win32.o): New rules.
6282 * configure.in: Change AC_INIT argument to xmalloc.c.
6283 Compute appropriate pexecute implementation and substitute it
6284 as @pexecute@.
6285
6286 * pexecute.c: Split up into...
6287 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
6288 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
6289 new files.
6290
6291 * functions.texi: Regenerate.
6292 * configure: Regenerate.
6293
62942003-01-20 Josef Zlomek <zlomekj@suse.cz>
6295
6296 * hashtab.c (htab_expand): Fix allocation of new entries.
6297
62982003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6299
6300 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6301
6302 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6303 mkinstalldirs command.
6304
63052002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
6306
6307 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
6308 Define for hosts with HOST_EXECUTABLE_SUFFIX.
6309
63102002-11-24 Nick Clifton <nickc@redhat.com>
6311
6312 * make-relative-prefix.c (make_relative_prefix): Ensure return
6313 string is empty before using strcat to construct it.
6314
63152002-11-22 Daniel Jacobowitz <drow@mvista.com>
6316
6317 * Makefile.in: Add make-relative-prefix.c.
6318 * make-relative-prefix.c: New file.
6319 * functions.texi: Rebuilt.
6320
63212002-11-16 Jakub Jelinek <jakub@redhat.com>
6322
6323 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
6324 used with arguments in traditional C' warnings.
6325
63262002-10-16 Jakub Jelinek <jakub@redhat.com>
6327
6328 * config.table: Use mh-s390pic for s390x too.
6329
63302002-10-06 Andreas Jaeger <aj@suse.de>
6331
6332 * cplus-dem.c (ada_demangle): Get rid of unneeded
6333 variable and of strict-aliasing warning.
6334 (grow_vect): Use char as first parameter.
6335
63362002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6337
6338 * Makefile.in (all): Fix multilib parallel build.
6339
63402002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
6341
6342 * cp-demangle.c (demangling_new): Cast 0 to enum.
6343 (demangle_char): Cast return of strdup to char *.
6344 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
6345 (is_gnu_v3_mangled_dtor): Likewise.
6346 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
6347 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
6348 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6349 * md5.c (md5_process_bytes): Cast results back to const void *.
6350 (md5_process_block): Add cast to const md5_uint32 *.
6351 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6352 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6353 unsigned short.
6354 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6355 to void *.
6356 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6357
63582002-09-19 Nick Clifton <nickc@redhat.com>
6359
6360 * README: Update email addresses for bugs and patches.
6361
63622002-09-10 Mike Stump <mrs@apple.com>
6363
6364 * splay-tree.c (splay_tree_successor): Fix comments.
6365
63662002-09-11 Zack Weinberg <zack@codesourcery.com>
6367
6368 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
6369 * testsuite/Makefile.in: Adjust for test-demangle.
6370 * testsuite/regress-demangle: Deleted.
6371 * testsuite/test-demangle.c: New file.
6372 * testsuite/demangle-expected: Change \$ to $ throughout, now that
6373 this file is not being read by a shell script.
6374
63752002-09-05 Roger Sayle <roger@eyesopen.com>
6376
6377 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6378
63792002-08-07 DJ Delorie <dj@redhat.com>
6380
6381 * regex.c (re_error_msgid): Just use a simple array of strings.
6382 (re_compile_pattern): Compensate.
6383 (re_comp): Likewise.
6384 (re_comp): Likewise.
6385 (regerror): Likewise.
6386
63872002-07-29 Neil Booth <neil@daikokuya.co.uk>
6388
6389 * cplus-dem.c (PREPEND_BLANK): Remove.
6390
63912002-07-10 Jason Merrill <jason@redhat.com>
6392
6393 * cp-demangle.c (demangle_identifier): Support extended Unicode
6394 characters.
6395
63962002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6397
6398 * cp-demangle.c (demangle_v3_with_details): Wrap in
6399 !defined IN_GLIBCPP_V3.
6400
64012002-07-01 Mark Mitchell <mark@codesourcery.com>
6402
6403 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6404 Set it for the "st" operator.
6405 (demangle_expression): Handle expressions with types as arguments.
6406
64072002-06-30 Douglas Rupp <rupp@gnat.com>
6408
6409 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6410 * Makefile.in (OUTPUT_OPTION): Use.
6411
64122002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6413
6414 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6415 (install_to_tooldir): Likewise.
6416
64172002-06-17 Douglas Rupp <rupp@gnat.com>
6418
6419 * lbasename.c: Add 2002 to copyright.
6420 (IS_DIR_SEPARATOR): Remove VMS junk.
6421
64222002-06-05 Geoffrey Keating <geoffk@redhat.com>
6423
6424 * hashtab.c (htab_create): New stub function for backward
6425 compatibility.
6426 (htab_try_create): Likewise.
6427
64282002-06-03 Geoffrey Keating <geoffk@redhat.com>
6429
6430 * hashtab.c (htab_create): Delete.
6431 (htab_try_create): Delete.
6432 (htab_create_alloc): New.
6433 (htab_delete): Support user-specified memory allocation.
6434 (htab_expand): Likewise.
6435
64362002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6437
6438 * configure.in: Fix typo in the code checking for sys_errlist.
6439 * configure: Regenerated.
6440
64412002-05-13 Andreas Schwab <schwab@suse.de>
6442
6443 * config.table: Use mh-x86pic also for x86-64.
6444
64452002-05-08 Alexandre Oliva <aoliva@redhat.com>
6446
6447 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6448 script entry, and set LD to it when configuring multilibs.
6449 * configure: Rebuilt.
6450
64512002-05-07 Mark Mitchell <mark@codesourcery.com>
6452
6453 * configure.in (AC_TYPE_PID_T): Use it.
6454 * configure: Regenerated.
6455 * getruntime.c: Include <sys/types.h>.
6456 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
6457
64582002-04-09 Richard Henderson <rth@redhat.com>
6459
6460 * hashtab.c (higher_prime_number): Use 7 as minimum.
6461 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6462 (htab_find_slot_with_hash): Likewise.
6463
64642002-04-01 Phil Edwards <pme@gcc.gnu.org>
6465
6466 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
6467 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
6468 not compile if IN_GLIBCPP_V3 defined.
6469 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
6470
64712002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6472
6473 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
6474 if it is NULL.
6475
64762002-03-27 DJ Delorie <dj@redhat.com>
6477
6478 * hex.c: Add documentation.
6479 (_hex_value): Provide non-ASCII empty table.
6480 (hex_init): Initialize the non-ASCII table.
6481 * functions.texi: Regenerate.
6482
64832002-03-27 Mark Mitchell <mark@codesourcery.com>
6484
6485 * dyn-string.c: Add libgcc exception to copyright notice.
6486
64872002-03-26 H.J. Lu (hjl@gnu.org)
6488
6489 * config.table: Support --with-build-subdir.
6490 * configure.in: Likewise.
6491 * configure: Rebuild.
6492
64932002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6494
6495 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6496 seen.
6497
64982002-03-12 Mark Mitchell <mark@codesourcery.com>
6499
6500 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6501 notice.
6502
65032002-03-11 Douglas B Rupp <rupp@gnat.com>
6504
6505 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6506
65072002-03-06 Jim Blandy <jimb@redhat.com>
6508
6509 * splay-tree.c (splay_tree_xmalloc_allocate,
6510 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6511 prototyped definitions. Mark `data' arguments as unused.
6512
65132002-03-06 Andrew Cagney <ac131313@redhat.com>
6514
6515 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6516
65172002-03-04 Phil Edwards <pme@gcc.gnu.org>
6518
6519 * configure.in: Add --enable-install-libiberty option.
6520 * Makefile.in (INSTALLED_HEADERS): New variable.
6521 (install_to_libdir): Possibly also copy headers.
6522 * configure: Regenerated.
6523
65242002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6525
6526 * xmalloc.c (xmalloc_fail): Clarify error message further.
6527
65282002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6529
6530 * xmalloc.c (xmalloc_fail): Clarify error message.
6531
65322002-02-22 Jim Blandy <jimb@redhat.com>
6533
6534 * splay-tree.c (splay_tree_xmalloc_allocate,
6535 splay_tree_xmalloc_deallocate): New functions.
6536 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6537 above functions and a dummy data pointer.
6538 (splay_tree_new_with_allocator): New function.
6539 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6540 splay_tree_remove): Use the splay tree's allocation and
6541 deallocation functions.
6542
65432002-02-19 Scott Snyder <snyder@fnal.gov>
6544
6545 * testsuite/demangle-expected: Add test case for infinite loop in
6546 demangler.
6547 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6548 if do_type() doesn't make any progress --- prevents an infinite
6549 loop.
6550
65512002-02-18 Carlo Wood <carlo@gnu.org>
6552
6553 PR c++/5390
6554 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6555 numbers that do not start with an underscore; This is needed
6556 for integer template parameters. This doesn't break anything
6557 because multi-digit numbers are never followed by a digit.
6558 * testsuite/demangle-expected: Corrected all mangled test
6559 cases with multi-digit template parameters: g++ 2.95.x does
6560 not generate underscores around these parameters.
6561
65622002-02-05 Jason Merrill <jason@redhat.com>
6563
6564 * cplus-dem.c (flags): Add DMGL_VERBOSE
6565 (cplus_demangle_v3_p): Remove.
6566 (demangle_it): Add DMGL_TYPES to passed flags.
6567 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6568 (cplus_demangle_v3_type): Remove.
6569 (cplus_demangle_v3): Add options parm.
6570
65712002-02-02 H.J. Lu (hjl@gnu.org)
6572
6573 * cp-demangle.c (cp_demangle_type): Do not protect with
6574 IN_LIBGCC2.
6575 (cplus_demangle_v3_all): New.
6576 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6577 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6578
6579 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6580 Initialized to cplus_demangle_v3.
6581 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6582 of cplus_demangle_v3.
6583 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6584 command line symbol.
6585
6586 * testsuite/regress-demangle: Pass the mangled name at the
6587 command line.
6588
65892002-02-01 H.J. Lu <hjl@gnu.org>
6590
6591 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6592 DMGL_GNU_V3.
6593
65942002-01-31 Phil Edwards <pme@gcc.gnu.org>
6595
6596 * cp-demangle.c: Revert yesterday's change.
6597
65982002-01-31 Adam Megacz <adam@xwt.org>
6599
6600 * configure.in: Treat mingw the same as cywin
6601 wrt HAVE_SYS_ERRLIST.
6602
66032002-01-30 Phil Edwards <pme@gcc.gnu.org>
6604
6605 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6606 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6607 cp_demangle_type.
6608 * testsuite/demangle-expected: New gnu-v3 test.
6609
66102002-01-22 Momchil Velikov <velco@fadata.bg>
6611
6612 * configure.in (variable detection): Use arrays of unspecified
6613 size instead of plain integers.
6614
66152002-01-18 DJ Delorie <dj@redhat.com>
6616
6617 * Makefile.in (TESTLIB): New. This library is for future
6618 testsuites.
6619 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6620 break down by letter.
6621 (REQUIRED_OFILES): List long-to-compile files first.
6622 (maint-deps): New, target for updating dependencies.
6623 (dependencies): Update.
6624 * maint-tool: Add dependency-generating option.
6625 * configure.in: Check for _doprnt even if we're not providing it.
6626 * configure: Regenerate.
6627
6628 * _doprnt.c: Modifications to allow compiling on any platform.
6629 * copysign.c: Likewise.
6630 * putenv.c: Likewise.
6631 * setenv.c: Likewise.
6632 * vsprintf.c: Likewise.
6633
66342002-01-15 Douglas B Rupp <rupp@gnat.com>
6635
6636 * mkstemps.c (mkstemps): On VMS, open temp file with option
6637 that causes it to be deleted when closed.
6638
66392002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6640
6641 * cp-demangle.c (long_options): Const-ify.
6642 * cplus-dem.c (long_options): Likewise.
6643
6644 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6645 strstr instead.
6646
66472001-12-31 Ira Ruben <ira@apple.com>
6648
6649 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6650 * configure: Regenerated.
6651
66522001-12-24 Douglas B. Rupp <rupp@gnat.com>
6653
6654 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6655 * configure: Regenerated.
6656
66572001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6658
6659 PR other/2719
6660 * cplus-dem.c (consume_count): Treat negative count as an error.
6661 * testsuite/demangle-expected: Added testcase.
6662
6663Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6664
6665 * configure.in: Hardcode that vfork works on VMS host.
6666 * configure: Regenerated.
6667
66682001-12-06 Richard Henderson <rth@redhat.com>
6669
6670 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6671 (cplus_demangle): Support no_demangling.
6672
66732001-11-27 Zack Weinberg <zack@codesourcery.com>
6674
6675 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6676 in libiberty context. Fix typo in leading comment.
6677 * configure.in: Fix various AC_DEFINEs so autoheader works.
6678 If any of vprintf, vsprintf, vfprintf is missing from libc,
6679 then AC_REPLACE_FUNCS(_doprnt).
6680
66812001-11-26 DJ Delorie <dj@redhat.com>
6682 Daniel Jacobowitz <drow@mvista.com>
6683
6684 * Makefile.in (stamp-h): Depend on Makefile for proper
6685 serialization.
6686 (*-subdir): Depend on config.h for proper serialization.
6687
66882001-11-26 DJ Delorie <dj@redhat.com>
6689
6690 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6691 * configure: Regenerate.
6692 * config.h: Add HAVE_ALLOCA_H.
6693
66942001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6695
6696 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6697 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6698 is available.
6699
6700Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6701
6702 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6703 * configure.in (HAVE_UINTPTR_T): Test for system defining
6704 uintptr_t and define HAVE_UINTPTR_T appropriately.
6705 * regex.c (uintptr_t): Do not provide a definition if the
6706 system provided one.
6707
6708 * regex.c (PREFIX): Provide an alternate definition for
6709 non-ANSI/ISO compilers.
6710 (ARG_PREFIX): Likewise.
6711
67122001-11-12 Jim Meyering <meyering@lucent.com>
6713
6714 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6715 this code would end up calling gettext even in packages built
6716 with --disable-nls.
6717 * getopt.c (_): Likewise.
6718 * regex.c (_): Likewise.
6719
67202001-11-03 Alan Modra <amodra@bigpond.net.au>
6721
6722 * configure.in: Cope with missing makeinfo.
6723 * configure: Regenerate.
6724
67252001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6726
6727 * hex.c (hex_init): Provide empty stub.
6728
6729 * hex.c (hex_init): Delete.
6730 (_hex_value): Const-ify and initialize at compile-time.
6731
67322001-10-19 H.J. Lu <hjl@gnu.org>
6733
6734 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6735 necessary.
6736
67372001-10-17 DJ Delorie <dj@redhat.com>
6738
6739 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6740 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
6741 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
6742 Improve manual formatting.
6743 * functions.texi: Regenerate.
6744
67452001-10-15 DJ Delorie <dj@redhat.com>
6746
6747 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6748 (maint-undoc): New.
6749 maint-tool: Add "undoc" tool.
6750 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6751 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6752 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6753 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6754 documentation.
6755 * fnmatch.txh: New.
6756 * functions.texi: Regenerate.
6757
67582001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6759
6760 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6761 * strtod.c: Use "ISO C" instead of "ANSI C".
6762 * functions.texi: Regenerate.
6763
67642001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6765
6766 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6767 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6768 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6769 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6770 spelling. Give names to function arguments in documentation. Use
6771 (void) prototypes in documentation.
6772 * functions.texi: Regenerate.
6773
67742001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6775
6776 * argv.c (buildargv, tests, main): Const-ify.
6777 * cp-demangle.c (operator_code): Likewise.
6778 * cplus-dem.c (optable, libiberty_demanglers,
6779 cplus_demangle_set_style, cplus_demangle_name_to_style,
6780 print_demangler_list): Likewise.
6781 * hashtab.c (higher_prime_number): Likewise.
6782 * strcasecmp.c (charmap): Likewise.
6783 * strerror.c (error_info, strerror, main): Likewise.
6784 * strncasecmp.c (charmap): Likewise.
6785 * strsignal.c (signal_info): Likewise.
6786
67872001-09-29 DJ Delorie <dj@redhat.com>
6788
6789 * configure: Regenerate.
6790
67912001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6792
6793 * concat.c: Include stdlib.h.
6794
67952001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6796
6797 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6798 @dircategory and @direntry directives. Add @finalout.
6799 (many nodes): Lose the next,prev,up pointers on the @nide line.
6800 (Using, Supplemental Functions, Replacement Functions): Fix
6801 markup.
6802 (Functions): Move around, to allow makeinfo to build the manual
6803 without next,prev,up pointers in thye node lines.
6804 (Licenses): Fix typos.
6805
6806 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6807 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6808 * functions.texi: Regenerate.
6809
6810 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6811 line.
6812
68132001-09-27 DJ Delorie <dj@redhat.com>
6814
6815 * configure.in: Don't use in-tree texinfo, because libiberty must
6816 be built before it. Check for makeinfo version 4 or higher.
6817 * functions.texi: Regenerate.
6818
68192001-09-20 DJ Delorie <dj@redhat.com>
6820 Phil Edwards <pedwards@disaster.jaj.com>
6821
6822 * configure.in (MAKEINFO, PERL): Detect these.
6823 (--enable-maintainer-mode): Add.
6824 * configure: Regenerate.
6825 * Makefile.in (MAKEINFO, PERL): Define.
6826 (libiberty.info, libiberty.dvi, libiberty.html): New.
6827 (CFILES): Add bsearch.c.
6828 (CONFIGURED_OFILES): New, list of objects configure might add.
6829 (maint-missing, maint-buildall): New, for maintainers only.
6830 (clean, mostlyclean): Add info/dvi/html files.
6831 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6832 * gather-docs: New, for maintainers.
6833 * maint-tool: New, for maintainers.
6834 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6835 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6836 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6837 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6838 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6839 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6840 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6841 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6842 documentation.
6843
68442001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6845
6846 * concat.c (reconcat): Fix for traditional C.
6847
68482001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6849
6850 * concat.c (reconcat): New function.
6851
68522001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6853
6854 * concat.c (vconcat_length, vconcat_copy, concat_length,
6855 concat_copy, concat_copy2): New functions.
6856 (concat): Use vconcat_length/vconcat_copy.
6857
6858 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6859 Define.
6860
68612001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6862
6863 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6864 VA_FIXEDARG & VA_CLOSE.
6865
6866 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6867 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6868 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6869
68702001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6871
6872 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6873
68742001-08-23 Ulrich Drepper <drepper@redhat.com>
6875
6876 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6877
68782001-08-23 Ulrich Drepper <drepper@redhat.com>
6879
6880 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6881 instead of mbrtowc.
6882 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6883 wcslen, and __wcscoll instead of wcscoll.
6884
68852001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6886
6887 * fibheap.c (fibheap_init, fibnode_init): Remove.
6888 (fibheap_new, fibnode_new): Use xcalloc to allocate and
6889 initialize memory.
6890 (fibheap_insert): Remove check for node allocation failure.
6891
68922001-08-21 Richard Henderson <rth@redhat.com>
6893
6894 * Makefile.in (fibheap.o): Depend on config.h.
6895 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
6896 functions for inlining.
6897
6898Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
6899
6900 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6901 hosting on cygwin.
6902 * configure: Regenerate.
6903
69042001-08-20 Andrew Cagney <ac131313@redhat.com>
6905
6906 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6907 HARRIS_FLOAT_FORMAT.
6908 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6909 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6910 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6911 (floatformat_m88110_harris_ext): New float formats.
6912
69132001-08-20 Daniel Berlin <dan@cgsoftware.com>
6914
6915 * fibheap.c: New file. Fibonacci heap.
6916
6917 * Makefile.in (CFILES): Add fibheap.c.
6918 (REQUIRED_OFILES): Add fibheap.o.
6919 (fibheap.o): Add dependencies for fibheap.o.
6920
69212001-08-17 Christopher Faylor <cgf@cygnus.com>
6922
6923 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6924 * configure: Regenerate.
6925
69262001-08-16 Richard Henderson <rth@redhat.com>
6927
6928 * hashtab.c (htab_hash_string): New.
6929
69302001-08-13 Andrew Cagney <ac131313@redhat.com>
6931
6932 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6933 name.
6934
69352001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
6936
6937 * regex.c (wcs_regex_compile): Use appropriate string
6938 to compare with collating element.
6939 Fix the padding for the alignment.
6940
69412001-08-10 Andrew Cagney <ac131313@redhat.com>
6942
6943 * lbasename.c (lbasename): Change function definition to return a
6944 const char pointer.
6945
69462001-08-07 Jason Merrill <jason_merrill@redhat.com>
6947
6948 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6949 for".
6950
69512001-08-03 Richard Henderson <rth@redhat.com>
6952
6953 * Makefile.in (concat.o): Depend on config.h.
6954
69552001-07-30 Andreas Jaeger <aj@suse.de>
6956
6957 * concat.c: Include "config.h".
6958
69592001-07-30 Andreas Jaeger <aj@suse.de>
6960
6961 * regex.c: Declare wcs functions only if compiling with
6962 MBS_SUPPORT.
6963 Don't use #elif for traditional C.
6964
69652001-07-23 Ulrich Drepper <drepper@redhat.com>
6966
6967 * regex.c: Revamp memory allocation for WCHAR functions to
6968 not use too much stack.
6969
69702001-07-30 Andreas Jaeger <aj@suse.de>
6971
6972 * regex.c: Declare wcs functions only if compiling with
6973 MBS_SUPPORT.
6974 Don't use #elif for traditional C.
6975
69762001-07-25 Daniel Jacobowitz <drow@mvista.com>
6977
6978 * Makefile.in (regex.o): Add dependency on config.h.
6979
69802001-07-18 Andreas Schwab <schwab@suse.de>
6981
6982 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6983 underscore character.
6984
69852001-07-18 Ulrich Drepper <drepper@redhat.com>
6986
6987 * regex.c: Limit string length printed in debug messages to 100
6988 chars.
6989
69902001-07-18 Andreas Jaeger <aj@suse.de>
6991
6992 * regex.c: Place under LGPL version 2.1.
6993
69942001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6995
6996 * Makefile.in: Add support for regex code.
6997 * regex.c: New file.
6998
69992001-07-05 Mark Klein <mklein@dis.com>
7000
7001 * Makefile.in: Add ffs.c dependency.
7002 * configure.in: Add ffs.c.
7003 * ffs.c: New file.
7004
70052001-06-18 Richard Henderson <rth@redhat.com>
7006
7007 * concat.c: Include <sys/types.h>.
7008
70092001-06-11 Loren J. Rittle <ljrittle@acm.org>
7010
7011 bootstrap/3106
7012 * strerror.c (sys_nerr): Hide the OS header version.
7013 * strsignal.c (sys_nsig): Likewise.
7014
70152001-06-10 Richard Henderson <rth@redhat.com>
7016
7017 * concat.c: Include string.h. Fix int vs size_t usage.
7018 Simplify the iteration loops. Use memcpy.
7019
70202001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7021
7022 * partition.c: Fix misspelling of `implementation'.
7023
70242001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7025
7026 * md5.c (md5_init_ctx): Declare constants as unsigned.
7027 (md5_process_block): Likewise.
7028
70292001-05-07 Zack Weinberg <zackw@stanford.edu>
7030
7031 * cp-demangle.c (demangle_v3_with_details,
7032 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
7033 function definition.
7034 * ternary.c: Use K+R style function definitions. Use PTR, not
7035 void *. Make arguments constant where possible.
7036
70372001-05-07 Mark Mitchell <mark@codesourcery.com>
7038
7039 * splay-tree.h (splay_tree_max): New function.
7040 (splay_tree_min): Likewise.
7041
70422001-04-15 Daniel Berlin <dan@cgsoftware.com>
7043
7044 * ternary.c: New file - Ternary search tree implementation.
7045
7046 * Makefile.in: Add ternary.o, and ternary.c dependencies.
7047
70482001-04-03 Zack Weinberg <zackw@stanford.edu>
7049
7050 * make-temp-file.c (try): Inline.
7051
70522001-02-28 Richard Henderson <rth@redhat.com>
7053
7054 * Makefile.in (make-temp-file.o): Depend on config.h.
7055
70562001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7057
7058 * memchr.c (memchr): Adjust condition to avoid infinite loop.
7059
70602001-03-23 Jakub Jelinek <jakub@redhat.com>
7061
7062 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
7063 `_' not followed by a digit is invalid.
7064
70652001-03-22 Jim Blandy <jimb@redhat.com>
7066
7067 * cp-demangle.c (string_list_delete): Use dyn_string_delete
7068 instead of free, to free the contents as well as the string
7069 structure.
7070
70712001-03-21 Zack Weinberg <zackw@stanford.edu>
7072
7073 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
7074 Don't default P_tmpdir to anything. Try /var/tmp before
7075 /usr/tmp.
7076
70772001-03-20 Zack Weinberg <zackw@stanford.edu>
7078
7079 * choose-temp.c: Split off make_temp_file, and the code
7080 duplicated between it and choose_temp_base, into...
7081 * make-temp-file.c: ... here; new file.
7082
7083 * Makefile.in (CFILES): Add make-temp-file.c.
7084 (REQUIRED_OFILES): Add make-temp-file.o.
7085
70862001-03-20 Jim Blandy <jimb@redhat.com>
7087
7088 * cp-demangle.c (struct demangling_def): New fields:
7089 is_constructor and is_destructor.
7090 (demangling_new): Initialize them.
7091 (demangle_ctor_dtor_name): Set them, if we detect a constructor
7092 or destructor.
7093 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
7094 is_gnu_v3_mangled_dtor): New functions.
7095
70962001-03-20 Jason Merrill <jason@redhat.com>
7097
7098 * cplus-dem.c (main): Skip initial $.
7099
71002001-03-15 Michael Meissner <meissner@redhat.com>
7101
7102 * hashtab.c (higher_prime_number): Silence warning that 4294967291
7103 might be a signed integer under pre-ISO C systems.
7104
71052001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7106 John David Anglin <dave@hiauly1.hia.nrc.ca>
7107
7108 * lbasename.c: New file.
7109 * Makefile.in: Update for lbasename.
7110
71112001-03-06 Zack Weinberg <zackw@stanford.edu>
7112
7113 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
7114 * configure.in: Replace all alloca logic with a simple use of
7115 the above new macro.
7116 * config.table: Kill *-*-beos* entry.
7117 * config/mh-beos: Delete.
7118 * configure, config.in: Regenerate.
7119
7120 * Makefile.in (ALLOCA, HFILES): Kill.
7121 (REQUIRED_OFILES): Add alloca.o.
7122 (alloca.o): Depend on libiberty.h.
7123 (argv.o): Don't depend on alloca-conf.h.
7124 * alloca-conf.h: Delete.
7125 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
7126 blocks. Provide the C alloca unconditionally. Use PTR where
7127 appropriate. Make i00afunc static.
7128 * argv.c: Don't include alloca-conf.h.
7129
71302001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7131
7132 * cplus-dem.c (main): Cast enum style to int.
7133
71342001-02-16 Loren J. Rittle <ljrittle@acm.org>
7135
7136 * cplus-dem.c (main): Initialize style.
7137
71382001-02-02 Phil Edwards <pme@sources.redhat.com>
7139
7140 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
7141
71422001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
7143
7144 Add support for Java demangling under the v3 ABI:
7145 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
7146 (struct demangling_def): Add `style' field.
7147 (demangling_new): New parameter `style'. Set it in demangling_t.
7148 (demangle_prefix): Use NAMESPACE_SEPARATOR.
7149 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
7150 (cp_demangle): New parameter `style'. Pass it to demangling_new().
7151 (main): Call cp_demangle with extra parameter.
7152 (java_demangle_v3): New function.
7153 (java_builtin_type_names): New. Table of primitive type names used
7154 for Java demangling.
7155 (demangle_builtin_type): Look up in java_builtin_type_names if doing
7156 Java output.
7157 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
7158 demangling.
7159 (long_options): Remove obsolete `java' option.
7160 (main): Remove explicit handling of `java' option. Instead, pass style
7161 parameter in cplus_demangle flags as gdb does.
7162 * testsuite/demangle.expected: Add some Java test cases.
7163
71642000-12-29 DJ Delorie <dj@redhat.com>
7165
7166 * fnmatch.c: Make the note about the origins of this file more
7167 accurate, at least until we can sync with glibc.
7168 * getopt.c: Ditto.
7169 * getopt1.c: Ditto.
7170 * md5.c: Ditto.
7171 * obstack.c: Ditto.
7172
71732000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7174
7175 * bsearch.c: New file.
7176 * configure.in (funcs): Add bsearch.
7177 (AC_CHECK_FUNCS): Likewise.
7178 * configure, config.in: Regenerate.
7179
71802000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7181
7182 * safe-ctype.c: #include "ansidecl.h".
7183 * strtod.c: Likewise.
7184
71852000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7186
7187 * strtoul.c: Include safe-ctype.h, not ctype.h.
7188
71892000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
7190
7191 * safe-ctype.c: New file.
7192 * Makefile.in (CFILES): Add safe-ctype.c.
7193 (REQUIRED_OFILES): Add safe-ctype.o.
7194
7195 * argv.c: Define ISBLANK and use it, not isspace.
7196 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
7197 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
7198 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
7199 before calling TOLOWER(c)/TOUPPER(c).
7200
72012000-12-07 Mike Stump <mrs@wrs.com>
7202
7203 * Makefile.in (distclean): When cleaning, remove testsuite.
7204
72052000-12-05 Jason Merrill <jason@redhat.com>
7206
7207 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
7208 name before allocating the dyn_string.
7209
72102000-12-04 Jason Merrill <jason@redhat.com>
7211
7212 * cp-demangle.c: s/new_abi/v3/.
7213 * cplus-dem.c: Likewise.
7214 (current_demangling_style): Now auto_demangling.
7215 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
7216 (main): Use standard symbol chars for auto_demangling.
7217
72182000-11-26 Mark Mitchell <mark@codesourcery.com>
7219
7220 * hashtab.c (higher_prime_number): Use a table, rather than a
7221 seive, to find the next prime.
7222
72232000-11-22 H.J. Lu <hjl@gnu.org>
7224
7225 * cplus-dem.c (main): Handle gnat_demangling.
7226
72272000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
7228
7229 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
7230 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
7231 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
7232 argument form of AC_DEFINE in dummy definitions block. Use
7233 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
7234 in dummy block. Preload cache variables instead of bypassing
7235 tests, where possible.
7236 * acconfig.h: Removed.
7237
7238 * xmalloc.c (xmalloc_failed): New function, does error
7239 reporting on failed allocation.
7240 (xmalloc, xcalloc, xrealloc): Use it.
7241
72422000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
7243
7244 * cplus-dem.c (cplus_demangle): Fix formatting.
7245 (grow_vect): Ditto.
7246 (ada_demangle): Ditto.
7247 (internal_cplus_demangle): Ditto.
7248 (mop_up): Ditto.
7249
72502000-11-21 H.J. Lu <hjl@gnu.org>
7251
7252 * cplus-dem.c (main): Handle java_demangling.
7253
72542000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7255
7256 * cplus-dem.c (grow_vect): Prototype.
7257 (ada_demangle): Cast the arg of ctype macros to unsigned char.
7258
72592000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7260
7261 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7262 parameter `option'.
7263
72642000-11-15 Kenneth Block <kenneth.block@compaq.com>
7265
7266 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
7267 be used in GCC.
7268
72692000-11-15 Kenneth Block <kenneth.block@compaq.com>
7270
7271 * cplus-dem.c: Add gnat demangler. Add java to demangle style
7272 list.
7273
72742000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
7275
7276 * hashtab.c (htab_expand): Change to return int. Use calloc or
7277 xcalloc depending on htab->return_allocation_failure. Return zero
7278 if calloc fails.
7279 (htab_create): Update comment to cover memory allocation.
7280 (htab_try_create): New.
7281 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
7282 Update comment to cover this.
7283
72842000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
7285
7286 * hashtab.c: Change void * to PTR where necessary.
7287 (htab_create, htab_expand): Correct formatting of comment before
7288 function.
7289
72902000-10-22 Alex Samuel <samuel@codesourcery.com>
7291
7292 * cp-demangle.c (string_list_def): Add caret_position and comments.
7293 (result_caret_pos): New macro.
7294 (result_append_string): Rename to...
7295 (result_add_string): ... this, and insert at caret position.
7296 Rename throughout.
7297 (result_append): Rename to...
7298 (result_add): ... this, and insert at caret position. Rename
7299 throughout.
7300 (result_append_char): Rename to...
7301 (result_add_char): ... this, and insert at caret position. Rename
7302 throughout.
7303 (result_append_space): Remove.
7304 (string_list_new): Initialize caret position.
7305 (result_add_separated_char): Use caret position.
7306 (result_get_caret): New funtion.
7307 (result_set_caret): Likewise.
7308 (result_shift_caret): Likewise.
7309 (result_previous_char_is_space): Likewise.
7310 (substitution_start): Use caret position.
7311 (substitution_add): Likewise.
7312 (demangling_new): Initialize caret position.
7313 (demangle_encoding): Use caret position.
7314 (demanglin_nested_name): Put CV qualifiers after name.
7315 (demangle_type_ptr): Use switch statement. Handle pointers to
7316 arrays. Don't use result_append_space. Use caret position.
7317 (demangle_type): Emit CV qualifiers after underlying type. Adjust
7318 call to demangle_array_type.
7319 (demangle_array_type): Add parameter to handle pointers to arrays.
7320
73212000-10-01 Mark Mitchell <mark@codesourcery.com>
7322
7323 * splay-tree.c (splay_tree_insert): Fix formatting.
7324
73252000-09-16 Mark Mitchell <mark@codesourcery.com>
7326
7327 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7328
73292000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7330
7331 * splay-tree.c: #include <stdio.h>.
7332
73332000-09-14 Hans-Peter Nilsson <hp@axis.com>
7334
7335 * testsuite/demangle-expected: Add two tests for anonymous
7336 namespaces.
7337 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
7338
73392000-09-10 Mark Mitchell <mark@codesourcery.com>
7340
7341 * splay-tree.c (splay_tree_predecessor): New function.
7342 (splay_tree_successor): Likewise.
7343
73442000-09-10 Hans-Peter Nilsson <hp@axis.com>
7345
7346 * testsuite/demangle-expected: Add four tests for type_info
7347 mangling.
7348 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7349 for a non-template non-qualified type_info function or node.
7350
73512000-09-08 Alex Samuel <samuel@codesourcery.com>
7352
7353 * cp-demangle.c: Fix copyright banner.
7354
73552000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7356
7357 * md5.c: #include "ansidecl.h".
7358
73592000-09-06 Alex Samuel <samuel@codesourcery.com>
7360
7361 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7362 (demangle_type): Handle substitution candidates correctly in the
7363 face of special substitutions.
7364
73652000-09-05 Alex Samuel <samuel@codesourcery.com>
7366
7367 * cp-demangle.c (demangle_encoding): Rename variable.
7368 (demangle_name): Rename parameter. Handle return type
7369 suppression.
7370 (demangle_nested_name): Rename parameter.
7371 (demangle_prefix): Likewise. Change return type suppression.
7372 (demangle_unqualified_name): Add parameter. Flag constructors and
7373 conversion operators.
7374 (demangle_special_name): Fix comment.
7375 (demangle_type): Rename variable.
7376 (demangle_bare_function_type): Check for missing return type and
7377 parameter.
7378 (demangle_class_enum_type): Rename parameter.
7379 (demangle_discriminator): Fix misspelling in comment.
7380
73812000-08-31 DJ Delorie <dj@redhat.com>
7382
7383 * configure.in (Cygwin): special case cygwin only when we're
7384 building cygwin, not when we're hosting cygwin.
7385
73862000-09-04 Alex Samuel <samuel@codesourcery.com>
7387
7388 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
7389 <expression>.
7390
73912000-09-04 Alex Samuel <samuel@codesourcery.com>
7392
7393 * cp-demangle.c (demangle_type_ptr): Increment position past
7394 pointer and reference characters.
7395
73962000-09-04 Alex Samuel <samuel@codesourcery.com>
7397
7398 * cp-demangle.c (demangle_nv_offset): New function.
7399 (demangle_v_offset): Likewise.
7400 (demangle_call_offset): Likewise.
7401 (demangle_special_name): Update thunk demangling to comply with
7402 ABI changes.
7403
74042000-09-03 Alex Samuel <samuel@codesourcery.com>
7405
7406 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7407 (substitution_def): Remove template_parm_number.
7408 (NOT_TEMPLATE_PARM): Remove.
7409 (result_insert_string): New macro.
7410 (result_insert): Likewise.
7411 (result_insert_char): Likewise.
7412 (substitution_add): Remove last parameter. Don't store template
7413 parm number.
7414 (BFT_NO_RETURN_TYPE): Define as NULL.
7415 (demangle_encoding): Adjust call to demangle_bare_function_type.
7416 (demangle_name): Adjust substitution. Adjust call to
7417 substitution_add.
7418 (demangle_prefix): Adjust call to substitution_add.
7419 (demangle_identifier): Handle anonymous namespaces.
7420 (demangle_operator_name): Change demangling of vendor-extended
7421 operator to match ABI changes.
7422 (demangle_type_ptr): Change parameters. Make recursive. Handle
7423 substitutions here.
7424 (demangle_type): Adjust calls to demangle_template_param,
7425 substitution_add, and demangle_type_ptr. Fix substitution of
7426 templated types.
7427 (demangle_function_type): Change parameter to a pointer.
7428 (demangle_bare_function_type): Likewise. Adjust insertion point.
7429 (demangle_template_param): Remove last parameter.
7430 (demangle_expr_primary): Remove unused variable. Adjust call to
7431 demangle_template_param.
7432 (is_mangled_char): Accept `$' and `.'.
7433 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7434 * dyn-string.c (dyn_string_insert_char): New function.
7435
74362000-08-31 Hans-Peter Nilsson <hp@axis.com>
7437
7438 * testsuite/demangle-expected: Add nine tests for
7439 underscore-after-number followed by five tests for name-signature
7440 delimiter.
7441
74422000-08-28 Richard Henderson <rth@cygnus.com>
7443
7444 * Makefile.in (md5.o): Depend on config.h.
7445
74462000-08-28 Jason Merrill <jason@redhat.com>
7447
7448 * Makefile.in (REQUIRED_OFILES): Add md5.o.
7449 (CFILES): Add md5.c.
7450 * md5.c: New file.
7451
74522000-08-27 Alex Samuel <samuel@codesourcery.com>
7453
7454 * cp-demangle.c (demangle_name): Initialize template_p in local
7455 name case. Don't re-add substitutions as candidates.
7456 (demangle_nested_name): Use <unqualified-name>.
7457 (demangle_prefix): Likewise. Don't add template names as
7458 substitution candidates twice, or re-add a substitution or the
7459 last prefix component.
7460 (demangle_local_name): Adjust output format.
7461
74622000-08-25 Alex Samuel <samuel@codesourcery.com>
7463
7464 * cp-demangle.c (result_add_separated_char): Change parameter to
7465 int.
7466 (substitution_add): Don't check for duplicates. Check if
7467 previously allocated size is zero.
7468 (demangle_name): Remove duplicate check for std substitution.
7469 Clear template flag appropriately.
7470 (demangle_prefix): Remove argument to demangle_substitution.
7471 Don't check that template flag is already set.
7472 (demangle_operator_name): Add pt operator.
7473 (demangle_type): Don't treat r as built-in type. Remove argument
7474 to demangle_substitution. Fix substitution candidate mechanics.
7475 Handle <template-template-parm>s. Improve comments.
7476 (demangle_template_param): Don't handle template arg lists here.
7477 (demangle_substitution): Remove parameter.
7478 (print_usage): Remove extra fprintf option.
7479
74802000-08-24 Greg McGary <greg@mcgary.org>
7481
7482 * random.c (end_ptr): Revert previous change.
7483
74842000-08-24 Greg McGary <greg@mcgary.org>
7485
7486 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
7487 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
7488 * random.c (end_ptr): Likewise.
7489
74902000-08-23 Alex Samuel <samuel@codesourcery.com>
7491
7492 * cp-demangle.c (result_close_template_list): Remove function.
7493 (result_add_separated_char): New function.
7494 (result_open_template_list): New macro.
7495 (result_close_template_list): Likewise.
7496 (demangle_prefix): Don't set template_p if the
7497 prefix ends with a ctor name.
7498 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7499 (demangle_type): Check for template args after substitution.
7500 (demangle_template_args): Use result_open_template_list.
7501
75022000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7503
7504 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7505
75062000-07-26 Dave Pitts <dpitts@cozx.com>
7507
7508 * config/mh-openedition.h: Added -DLE370 definition.
7509
75102000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7511
7512 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7513 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7514 Cast program to 'char *' in errmsg_arg assignment.
7515 (PWAIT_ERROR): Define.
7516 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
7517 to DJGPP's WIF* macros.
7518
75192000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7520 Jeff Law <law@cygnus.com>
7521
7522 * getcwd.c: Include string.h, stdlib.h for prototypes
7523
7524 * Makefile.in (rename.o, waitpid.o): Depend on config.h
7525 * rename.c: Include config.h, unistd.h
7526 * waitpid.c: Include config.h, sys/wait.h
7527
75282000-07-24 Hans-Peter Nilsson <hp@axis.com>
7529
7530 * cplus-dem.c (work_stuff_copy_to_from): New.
7531 (delete_non_B_K_work_stuff): New.
7532 (delete_work_stuff): New.
7533 (mop_up): Break out work_stuff partly destruction to
7534 delete_non_B_K_work_stuff.
7535 (iterate_demangle_function): New.
7536 (demangle_prefix): Call iterate_demangle_function instead of
7537 demangle_function_name. Leave handling of name-signature
7538 __-delimiters to iterate_demangle_function.
7539 (demangle_integral_value): Strip an optional
7540 following underscore cautiously. Handle negative numbers.
7541
75422000-07-24 Daniel Berlin <dberlin@redhat.com>
7543
7544 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
7545 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7546
75472000-07-21 Alex Samuel <samuel@codesourcery.com>
7548
7549 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7550 allocating ctor mangling.
7551 (demangle_array_type): Handle empty and non-constant array length.
7552
75532000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7554 Jeff Law <law@cygnus.com>
7555
7556 * configure.in (AC_CHECK_HEADERS): Add time.h.
7557 (AC_HEADER_TIME): Add check.
7558 * configure, config.in: Regenerate.
7559 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7560
7561 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7562 * configure, config.in: Regenerate.
7563 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7564 * strtol.c, strtoul.c: #include "config.h". Portably #include
7565 <limits.h> and/or <sys/param.h>.
7566 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
7567
7568 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7569 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7570 * configure, config.in: Regenerate.
7571 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7572
7573 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7574
75752000-07-21 Mike Stump <mrs@wrs.com>
7576
7577 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7578 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
7579
75802000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7581
7582 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7583
7584 * setenv.c (setenv): Initialize variable `ep'.
7585
7586 * sigsetmask.c (abort): Prototype.
7587
7588 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7589 __STDC__ for stdarg.h include.
7590 (int_vasprintf): Prototype.
7591 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7592 definition. Cast `global_total_width' in comparison.
7593 (main): Prototype. Return a value.
7594
7595 * vfork.c (fork): Prototype.
7596
7597 * xexit.c: Include config.h.
7598
75992000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7600
7601 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7602 and print it with %u.
7603
76042000-07-17 Hans-Peter Nilsson <hp@axis.com>
7605
7606 * testsuite/regress-demangle (failed test): Show result and
7607 expected output.
7608
76092000-07-07 Andrew Haley <aph@cygnus.com>
7610
7611 * cplus-dem.c (main): fflush() after emitting last char before
7612 waiting for input.
7613
76142000-06-28 Alex Samuel <samuel@codesourcery.com>
7615
7616 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7617 (demangle_name): Handle <substitution> followed by
7618 <unqualified-template-name>.
7619 (demangle_type): Follow special substitutions with
7620 <class-enum-type>
7621 (demangle_subtitution): Set template_p for special substitutions.
7622 (main): Fix typos.
7623
76242000-06-27 Alex Samuel <samuel@codesourcery.com>
7625
7626 * cp-demangle.c (demangle_special_name): Swap base and derived
7627 class when demangling construction vtables.
7628
76292000-06-21 Alex Samuel <samuel@codesourcery.com>
7630
7631 * cp-demangle.c: Don't include ctype.h.
7632 (IS_DIGIT): New macro.
7633 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7634 instead of isdigit and isalpanum.
7635 (demangling_def): Make name and next const pointers.
7636 (STATUS_ALLOCATION_FAILED): New status code.
7637 (dyn_string_append_space): Handle failure in
7638 dyn_string_append_char.
7639 (int_to_dyn_string): Likewise. Change return value to status_t.
7640 (string_list_new): Handle failure of dyn_string_init.
7641 (result_close_template_list): Change return type to status_t.
7642 Handle failure in dyn_string_append.
7643 (result_push): Change return value to status_t. Handle failure in
7644 string_list_new. Handle failure of result_push throughout.
7645 (substitution_add): Change return value to status_t. Handle
7646 dyn_string failures. Handle failure of substitution_add
7647 throughout.
7648 (template_arg_list_new): Return NULL on allocation failure.
7649 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7650 Handle error result throughout.
7651 (result_append): Likewise.
7652 (result_append_char): Likewise.
7653 (result_append_space): Likewise.
7654 (demangling_new): Make argument a const pointer. Handle
7655 allocation failures.
7656 (demangle_template_args): Handle failure in template_arg_list_new
7657 and result_close_template_list.
7658 (demangle_discriminator): Return if int_to_dyn_string fails.
7659 (cp_demangle): Likewise.
7660 (cp_demangle_type): New function.
7661 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7662 memory allocation failure.
7663 (main): Likewise.
7664 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7665 IN_LIBGCC2.
7666 (dyn_string_init): Change return value to int. Handle
7667 RETURN_ON_ALLOCATION_FAILURE case.
7668 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7669 (dyn_string_release): Delete the dyn_string.
7670 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7671 (dyn_string_copy): Change return type to int.
7672 (dyn_string_copy_cstr): Likewise.
7673 (dyn_string_prepend): Likewise.
7674 (dyn_string_prepend_cstr): Likewise.
7675 (dyn_string_insert): Likewise.
7676 (dyn_string_insert_cstr): Likewise.
7677 (dyn_string_append): Likewise.
7678 (dyn_string_append_cstr): Likewise.
7679 (dyn_string_append_char): Likewise.
7680 (dyn_string_substring): Likewise.
7681
76822000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7683
7684 * cp-demangle.c (demangle_operator_name): Add spaces before
7685 names beginning with a letter: delete, delete[], new, new[],
7686 sizeof.
7687 (demangle_special_name): Handle TF <type> and TJ <type>.
7688
7689Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7690
7691 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7692
7693Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7694
7695 * cp-demangle.c (stdio.h): File included unconditionaly.
7696 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7697 * dyn-string.c (stdio.h): File included.
7698 * partition.c (partition_print): No `&' needed to take the address of
7699 a function.
7700
77012000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7702
7703 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
7704
7705 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7706
7707 * cp-demangle.c (demangle_char): Change parameter from char to int.
7708 (demangle_expression, demangle_expr_primary): Remove extra
7709 semi-colon in prototype.
7710
7711 * dyn-string.c (dyn_string_append_char): Change parameter from
7712 char to int.
7713
7714 * memcmp.c (memcmp): Constify.
7715
7716 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7717 __extension__.
7718
7719 * partition.c (elem_compare): Prototype. Don't cast away
7720 const-ness.
7721
7722 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
7723
77242000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7725
7726 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7727
7728 * cp-demangle.c: Include demangle.h.
7729 (template_arg_list_new): DeANSIfy.
7730 (cp_demangle): Make static and add prototype.
7731 (operator_code, operators): Constify.
7732 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7733
77342000-06-05 Alex Samuel <samuel@codesourcery.com>
7735
7736 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7737 unsigned char.
7738 (demangle_unqualified_name): Likewise.
7739 (demangle_number_literally): Likewise.
7740 (demangle_type): Likewise.
7741 (demangle_substitution): Likewise.
7742 (is_mangled_char): Likewise, for isalnum.
7743
77442000-06-04 Alex Samuel <samuel@codesourcery.com>
7745
7746 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7747 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7748 (cp-demangle.o): New dependency.
7749 (dyn-string.o): Likewise.
7750
7751 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7752
7753 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7754 demangler.
7755 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7756 demangling mode.
7757 (gnu_new_abi_symbol_characters): New function.
7758 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7759 file.
7760 * cp-demangle.c: New file.
7761
7762Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7763
7764 * floatformat.c: Add name to each floatformat field.
7765
7766Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7767
7768 * Makefile.in (objalloc.o): Depend on config.h
7769
77702000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7771
7772 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7773 if HAVE_STRING_H.
7774 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7775 * objalloc.c: Include config.h. Include stdlib.h and don't
7776 declare malloc or free if HAVE_STDLIB_H.
7777 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7778 else declare malloc without prototype. Include string.h if
7779 HAVE_STRING_H, else declare memset without prototype. Don't
7780 include stddef.h.
7781
77822000-05-23 Mike Stump <mrs@wrs.com>
7783
7784 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
7785 -j3.
7786
77872000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7788
7789 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7790
77912000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7792
7793 * hashtab.c (hash_pointer): Delete low-order bits which are
7794 probably zero, also eliminate a warning on alpha.
7795
77962000-05-15 David Edelsohn <edelsohn@gnu.org>
7797
7798 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
7799 on $(enable_shared).
7800
78012000-05-10 Jakub Jelinek <jakub@redhat.com>
7802
7803 * config.table: Use mh-sparcpic for sparc*-*-*.
7804
78052000-05-08 Nick Clifton <nickc@cygnus.com>
7806
7807 * Makefile.in (CFILES): Add strncmp.c.
7808 (NEEDED): Add strncmp.
7809
78102000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7811
7812 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7813 Cast the arguments to `islower' to `unsigned char'.
7814 (print_demangler_list): Prototype.
7815
7816Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7817
7818 * sort.c (UCHAR_MAX): Provide fallback definition.
7819
78202000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7821
7822 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7823 SUBDIRS.
7824
78252000-04-28 Kenneth Block <block@zk3.dec.com>
7826 Jason Merrill <jason@casey.cygnus.com>
7827
7828 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7829 (cplus_demangle_set_style): New function for setting style.
7830 (cplus_demangle_name_to_style): New function to translate name.
7831
78322000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7833
7834 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7835
7836 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7837 (libiberty_AC_FUNC_STRNCMP): Invoke.
7838
7839 * strncmp.c: New file.
7840
7841Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7842
7843 * hashtab.c (htab_expand): Add prototype.
7844 (find_empty_slot_for_expand): Likewise.
7845
78462000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7847
7848 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7849 match prototype.
7850 (htab_expand): Cast the return value of xcalloc.
7851
78522000-04-24 Mark Mitchell <mark@codesourcery.com>
7853
7854 * hashtab.c (hash_pointer): New function.
7855 (eq_pointer): Likewise.
7856 (htab_hash_pointer): New variable.
7857 (htab_eq_pointer): Likewise.
7858
78592000-04-23 Mark Mitchell <mark@codesourcery.com>
7860
7861 * sort.c (sort_pointers): Fix endianness bugs.
7862
7863 * sort.c: New file.
7864 * Makefile.in (CFILES): Add sort.c
7865 (REQUIRED_OFILES): Add sort.o.
7866 (sort.o): New target.
7867
78682000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7869
7870 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7871 4.3BSD systems.
7872
7873Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7874
7875 * hashtab.c: Various minor cleanups.
7876 (htab_find_slot_with_hash): INSERT is now enum insert_option.
7877 (htab_find_slot): Likewise.
7878
78792000-04-16 Dave Pitts <dpitts@cozx.com>
7880
7881 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
7882
78832000-04-05 Richard Henderson <rth@cygnus.com>
7884
7885 * splay-tree.c (splay_tree_remove): New.
7886
78872000-03-30 Mark Mitchell <mark@codesourcery.com>
7888
7889 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7890 codes.
7891 (htab_find_with_hash): Likewise.
7892 (htab_find_slot_with_hash): Likewise.
7893
78942000-03-29 Zack Weinberg <zack@wolery.cumb.org>
7895
7896 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7897 unless it will be used. Rearrange loop for better
7898 optimization.
7899 (higher_prime_number): Add static prototype.
7900
7901Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7902
7903 * Makefile.in (partition.o): Depend on config.h
7904
79052000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
7906
7907 * hashtab.c (find_empty_slot_for_expand): New function.
7908 (htab_expand): Use it instead of htab_find_slot.
7909 (htab_find_with_hash): Renamed from htab_find; now accepts extra
7910 argument HASH.
7911 (htab_find_slot_with_hash): Likewise for htab_find_slot.
7912 (htab_find): New wrapper function.
7913 (htab_find_slot): Likewise.
7914 (htab_traverse): Pass slot, not entry, to called function.
7915
79162000-03-09 Alex Samuel <samuel@codesourcery.com>
7917
7918 * Makefile.in (CFILES): Add partition.c.
7919 (REQUIRED_OFILES): Add partition.o.
7920 (partition.o): New rule.
7921 * partition.c: New file.
7922
79232000-03-09 Zack Weinberg <zack@wolery.cumb.org>
7924
7925 * hashtab.c (htab_create): Set del_f.
7926 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7927 Use it.
7928
79292000-03-08 Zack Weinberg <zack@wolery.cumb.org>
7930
7931 * hashtab.c: Remove debugging variables (all_searches,
7932 all_collisions, all_expansions). Delete
7933 all_hash_table_collisions.
7934 (create_hash_table, delete_hash_table, empty_hash_table,
7935 find_hash_table_entry, remove_element_from_hash_table_entry,
7936 clear_hash_table_slot, traverse_hash_table, hash_table_size,
7937 hash_table_elements_number, hash_table_collisions): Rename to:
7938 htab_create, htab_delete, htab_empty, htab_find_slot,
7939 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7940 htab_elements, htab_collisions.
7941 (htab_find): New function, handles common case where you don't
7942 plan to add or delete an entry.
7943 (htab_expand): Don't create a whole new table, just a new
7944 entry vector.
7945 (htab_find_slot): Simplify logic.
7946
79471999-08-03 Ian Lance Taylor <ian@zembu.com>
7948
7949 * floatformat.c: Add casts to avoid signed/unsigned warnings.
7950 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7951
7952 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7953 $(TARGETLIB)n so it works on MSDOS.
7954 (install_to_tooldir): Likewise.
7955
79561999-07-21 Ian Lance Taylor <ian@zembu.com>
7957
7958 From Mark Elbrecht:
7959 * makefile.dos: Remove; obsolete.
7960 * configure.bat: Remove; obsolete.
7961
79621999-07-11 Ian Lance Taylor <ian@zembu.com>
7963
7964 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7965 warning.
7966
79672000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7968
7969 * pexecute.c: Conditionally include string.h.
7970 (fix_argv): Handle embedded whitespace in args for Mingw32.
7971
79722000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7973
7974 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7975 we're using gcc.
7976
7977 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7978
79791999-12-27 Geoff Keating <geoffk@cygnus.com>
7980
7981 * vasprintf.c (int_vasprintf): Don't re-read the format character
7982 as this mishandles strings like '%%s'.
7983
79841999-12-05 Mark Mitchell <mark@codesourcery.com>
7985
7986 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
7987 rather than struct splay_tree_node.
7988 (splay_tree_insert): Use struct splay_tree_s rather than struct
7989 splay_tree.
7990
7991Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7992
7993 * hashtab.c (sys/types.h): File included.
7994
79951999-11-22 Jason Merrill <jason@casey.cygnus.com>
7996
7997 * strtoul.c, strtol.c, random.c: Remove advertising clause from
7998 BSD license, pursuant with
7999
8000 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
8001
8002Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
8003
8004 * hashtab.c: Include stdio.h.
8005
8006Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
8007
8008 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
8009
8010Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
8011
8012 * xstrdup (sys/types.h): Include this file.
8013
80141999-10-28 Nathan Sidwell <nathan@acm.org>
8015
8016 * Makefile.in (SUBDIRS): New macro.
8017 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
8018 avoid multiple subdirectory cleaning.
8019 (*-subdir): Use SUBDIRS.
8020
80211999-10-25 Jim Kingdon <http://developer.redhat.com/>
8022
8023 * cplus-dem.c: Move declarations of standard_symbol_characters and
8024 hp_symbol_characters inside #ifdef MAIN to avoid compiler
8025 warnings.
8026
80271999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
8028
8029 * hashtab.c (find_hash_table_entry): When returning a
8030 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
8031 (clear_hash_table_slot): New function which deletes an entry
8032 by its position in the table, not its value.
8033 (traverse_hash_table): New function which calls a hook
8034 function for every live entry in the table.
8035
80361999-10-19 Mark Mitchell <mark@codesourcery.com>
8037
8038 * cplus-dem.c (INTBUF_SIZE): New macro.
8039 (string_append_template_idx): New function.
8040 (demangle_expression): Likewise.
8041 (demangle_integral_value): Use it.
8042 (demangle_real_value): New function, split out from ...
8043 (demangle_template_value_parm): ... here. Use
8044 string_append_template_idx. Use demangle_real_value.
8045 (demangle_template): Use string_append_template_idx.
8046 (demangle_qualified): Use consume_count_with_underscores.
8047 (get_count): Tweak formatting.
8048 (do_type): Use string_append_template_idx.
8049
80501999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8051
8052 * calloc.c: Add a public domain notice.
8053
8054Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
8055
8056 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
8057
8058Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
8059
8060 * Makefile.in (CFILES): Add hashtab.c
8061 (REQUIRED_OFILES): Add hashtab.o
8062 (hashtab.o): Add dependencies.
8063 * hashtab.c: New file
8064
8065Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
8066
8067 * basename.c (DIR_SEPARATOR): New macro.
8068 (DIR_SEPARATOR_2): Likewise.
8069 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
8070 (IS_DIR_SEPARATOR): Likewise.
8071 (main): Handle MSDOS style pathname.
8072
80731999-10-11 Mark Mitchell <mark@codesourcery.com>
8074
8075 * cplus-dem.c (do_type): Handle pointer to member types whose
8076 enclosing classes have namespace scope.
8077
8078Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
8079
8080 * config.table: Provide a backup shell for executing move-if-change.
8081
80821999-10-02 Mark Mitchell <mark@codesourcery.com>
8083
8084 * xmalloc.c (xmalloc): Fix spelling error.
8085 (xcalloc, xrealloc): Likewise.
8086
80871999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8088
8089 * cplus-dem.c (fancy_abort, demangle_integral_value,
8090 demangle_arm_hp_template, recursively_demangle,
8091 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
8092 (program_name, program_version, fatal): Constify a char*.
8093 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
8094 (main): Call return, not exit.
8095
80961999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8097
8098 * choose-temp.c: Remove obsolete comment about gcc.
8099 (make_temp_file): Constify a char*.
8100
8101Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8102
8103 * xmemdup.c: Include sys/types.h.
8104
81051999-09-07 Jeff Garzik <jgarzik@pobox.com>
8106
8107 * xmemdup.c: New xmemdup function.
8108 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
8109
8110Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
8111
8112 * config.table: Add openedition target.
8113 * config/mh-openedition: New file.
8114
8115Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
8116
8117 * pexecute.c (pexecute): Fill in temp_base when needed.
8118
81191999-08-31 Richard Henderson <rth@cygnus.com>
8120
8121 * getpwd.c: Check HAVE_GETCWD before defining it away.
8122
81231999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8124
8125 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
8126 (REQUIRED_OFILES): Add getpwd.o.
8127 (getpwd.o): Add target.
8128
8129 * configure.in (AC_PREREQ): Bump to 2.13.
8130 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
8131
8132 * getpwd.c: New file, moved here from gcc.
8133
81341999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8135
8136 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
8137 comparing against a signed quantity.
8138 (arm_special): Likewise.
8139 (demangle_fund_type): Likewise.
8140 (do_hpacc_template_const_value): Mark parameter `work' with
8141 ATTRIBUTE_UNUSED.
8142 (main): Constify variable `valid_symbols'.
8143
8144Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
8145
8146 * strtoul.c (strtoul): Add parentheses around && within ||.
8147
8148Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
8149
8150 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
8151 libdir, libsubdir and tooldir.
8152
81531999-08-01 Mark Mitchell <mark@codesourcery.com>
8154
8155 * splay-tree.c (splay_tree_insert): Return the new node.
8156
81571999-07-14 Richard Henderson <rth@cygnus.com>
8158
8159 * argv.c: Include stdlib.h and string.h instead of
8160 prototyping directly.
8161 * choose-temp.c: Conditionally include string.h.
8162
81631999-07-12 Jason Merrill <jason@yorick.cygnus.com>
8164
8165 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
8166
81671999-07-11 Ian Lance Taylor <ian@zembu.com>
8168
8169 * splay-tree.c (splay_tree_insert): Add initialization to avoid
8170 warning.
8171
81721999-07-07 Jason Merrill <jason@yorick.cygnus.com>
8173
8174 * Makefile.in (needed-list): Only include stuff we actually need
8175 for libstdc++.
8176
81771999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8178
8179 * configure.in (checkfuncs): Add gettimeofday.
8180 * config.in, configure: Regenerated.
8181
8182Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
8183
8184 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
8185 the test fails.
8186 * configure: Regenerate.
8187
81881999-06-10 Mike Stump <mrs@wrs.com>
8189
8190 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
8191 parallel builds.
8192
81931999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8194
8195 * putenv.c: Include ansidecl.h to define `const'.
8196 * setenv.c: Likewise.
8197
8198Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
8199
8200 * Makefile.in (CFILES): Add putenv.c and setenv.c.
8201 * configure.in (funcs): Add putenv and setenv.
8202 (AC_CHECK_FUNCS): Check for putenv and setenv.
8203 * configure: Rebuilt.
8204 * putenv.c setenv.c: New files.
8205
8206 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
8207 bytes of space using malloc.
8208
8209Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8210
8211 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
8212 the *mangled pointer beyond the end of the string. Clean up code to
8213 match prevailing coding style.
8214
82151999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8216
8217 * tmpnam.c (L_tmpnam): Fix typo.
8218
8219Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
8220
8221 * cplus-dem.c (standard_symbol_characters): Renamed from
8222 standard_symbol_alphabet. No longer modify TABLE.
8223 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
8224 modify TABLE.
8225 (main): Corresponding changes. Use strchr to determine if a
8226 character is valid.
8227
82281999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
8229
8230 * cplus-dem.c (main): Use table lookup to distinguish identifier
8231 characters from non-identifier characters.
8232 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
8233
8234Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
8235
8236 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
8237 * getruntime.c: Only attempt to include sys/resource.h and
8238 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
8239 are defined.
8240
8241Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
8242
8243 * configure.in (alloca detection): Handle alloca directly for interix.
8244 * configure: Rebuilt.
8245
8246Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
8247
8248 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
8249
82501999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
8251
8252 Fix from Dale Hawkins:
8253 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
8254 reallocated properly if we use it again.
8255
8256 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
8257 stricter about syntax. Always null-terminate string.
8258
8259Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
8260
8261 * configure.in (checkfuncs): Check for sbrk.
8262 * config.in: Rebuilt.
8263 * configure: Likewise.
8264 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
8265
82661999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
8267
8268 Fix from Marcus Daniels:
8269 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
8270 identifier looking for another underscore.
8271
8272Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
8273
8274 * pexecute.c: Change all references to __UWIN__ to _UWIN.
8275 * xmalloc.c: Likewise.
8276 (xcalloc): UWIN has sbrk.
8277 (xrealloc): Fix guard macro.
8278
82791999-04-11 Richard Henderson <rth@cygnus.com>
8280
8281 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
8282 or <alloca.h>.
8283 * clock.c (GNU_HZ): New definition.
8284 (clock): Use it.
8285 * getruntime.c: Likewise.
8286
8287 * config.table: Use mh-beos.
8288 * config/mh-beos: New file.
8289
82901999-04-11 Mark Mitchell <mark@codesourcery.com>
8291
8292 * cplus-dem.c (demangle_template_value_parm): Handle
8293 pointers-to-members.
8294 (do_type): Handle template parameters as qualifiers.
8295
82961999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
8297
8298 * cplus-dem.c: Attempt to handle overflows in counts with some
8299 semblance of grace.
8300 (consume_count): Detect overflows. Return -1 to indicate errors,
8301 instead of zero.
8302 (demangle_template_value_parm, demangle_template): Handle change
8303 to consume_count's return convention.
8304
83051999-04-05 Tom Tromey <tromey@cygnus.com>
8306
8307 * testsuite/regress-demangle: New file.
8308 * testsuite/demangle-expected: New file.
8309
8310 * Makefile.in (all, check, installcheck, info, install-info,
8311 clean-info, dvi, install, etags, tags, mostlyclean, clean,
8312 distclean, maintainer-clean, realclean): Depend on corresponding
8313 `-subdir' target.
8314 (all-subdir check-subdir installcheck-subdir info-subdir
8315 install-info-subdir clean-info-subdir dvi-subdir
8316 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
8317 distclean-subdir maintainer-clean-subdir): New target.
8318 * testsuite/Makefile.in: New file.
8319 * configure: Rebuilt.
8320 * configure.in: Create testsuite/Makefile.
8321
83221999-04-02 Mark Mitchell <mark@codesourcery.com>
8323
8324 * splay-tree.h (splay_tree_compare_pointers): Define.
8325
83261999-03-30 Mark Mitchell <mark@codesourcery.com>
8327
8328 * splay-tree.c (splay_tree_compare_ints): Define.
8329
83301999-03-30 Tom Tromey <tromey@cygnus.com>
8331
8332 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
8333 don't advance input pointer.
8334 (demangle_class_name): If consume_count didn't find a count, do
8335 nothing. Don't bother with `strlen' sanity check; consume_count
8336 does it for us.
8337
83381999-03-16 Stan Shebs <shebs@andros.cygnus.com>
8339
8340 From Art Haas <ahaas@neosoft.com>:
8341 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
8342 when doing arm or hp style.
8343 (demangle_nested_args): Decr forgetting_types field when done.
8344
8345Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
8346
8347 * pexecute.c (__CYGWIN32__): Rename to
8348 (__CYGWIN__): this.
8349 * xmalloc.c: Likewise.
8350
8351 Changes to support i386-pc-uwin.
8352 * configure.in (*-*-uwin*): Workaround for vfork bug.
8353 * configure: Regenerate.
8354 * pexecute.c (pexecute): Be like standard Unix.
8355 (pwait): Likewise.
8356 * xmalloc.c (first_break): Define.
8357 (xmalloc_set_program_name): Use.
8358 (xmalloc): Use.
8359
8360Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8361
8362 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8363
8364Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8365
8366 * config.table: Check cygwin*, not cygwin32*.
8367
8368Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8369
8370 * Makefile.in: Change mkstemp -> mkstemps.
8371
8372Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
8373
8374 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8375 * configure.in (funcs): Check for and conditionally add mkstemps to
8376 the list of functions libiberty will provide.
8377 * configure: Rebuilt.
8378
8379Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8380
8381 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
8382 platforms that don't have HZ.
8383 * getruntime.c (HZ): Likewise.
8384
8385Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8386
8387 * Makefile.in (xstrdup.o): Depend on config.h.
8388
8389Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
8390
8391 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8392 freeing it.
8393
8394Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8395
8396 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8397
8398Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8399
8400 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8401 splay-tree.o.
8402
84031999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8404
8405 * configure.in: Require autoconf 2.12.1 or higher.
8406
84071998-12-30 Michael Meissner <meissner@cygnus.com>
8408
8409 * random.c (NULL): Don't redefine NULL if it is already defined.
8410
8411Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8412
8413 * argv.c (buildargv): Cast the result of alloca in assignment.
8414
8415 * choose-temp.c: Include stdlib.h.
8416
8417 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8418 (snarf_numeric_literal): Constify first parameter.
8419 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8420 int, not a char.
8421 (demangle_qualifier): Likewise.
8422 (demangle_signature): Cast the argument of a ctype function to
8423 unsigned char.
8424 (arm_pt): Add parens around assignment used as truth value.
8425 (demangle_arm_hp_template): Constify variable `args'.
8426 (do_hpacc_template_const_value): Cast the argument of a ctype
8427 function to unsigned char.
8428 (do_hpacc_template_literal): Remove unused variable `i'.
8429 (snarf_numeric_literal): Constify parameter `args'.
8430 Cast the argument of a ctype function to unsigned char.
8431
8432 * floatformat.c (floatformat_to_double): Add explicit braces to
8433 avoid ambiguous `else'.
8434
8435 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8436 `cstart' and `cend' to unsigned char. Cast the argument of macro
8437 `FOLD', which uses ctype functions, to unsigned char.
8438
8439 * objalloc.c (free): Add prototype.
8440
8441Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
8442
8443 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8444
8445Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8446
8447 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8448 doesn't exist.
8449 (do_hpacc_template_literal): remove unused variable `i'.
8450
8451Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8452
8453 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8454 bumping the pointer we read from. Also prepend these codes,
8455 as we do in other places.
8456
84571998-12-18 Nick Clifton <nickc@cygnus.com>
8458
8459 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8460 'const char *' in order to match its usage when calling siblings.
8461 (snarf_numeric_literal): Make first arg 'const char **' in order
8462 to match usage.
8463
8464Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8465
8466 * choose-temp.c: Don't check IN_GCC anymore.
8467
8468 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8469 * memchr.c (memchr): Likewise.
8470 * memcpy.c (memcpy): Likewise.
8471 * memmove.c (memmove): Likewise.
8472
8473 * mkstemp.c: Don't check IN_GCC anymore.
8474 * pexecute.c: Likewise.
8475 * splay-tree.c: Likewise.
8476
8477 * strchr.c (strchr): Use `const', not `CONST'.
8478 * strrchr.c (strrchr): Likewise.
8479 * strtol.c (strtol): Likewise.
8480 * strtoul.c (strtoul): Likewise.
8481
8482Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
8483 Elena Zannoni <ezannoni@cygnus.com>
8484 Stan Shebs <shebs@cygnus.com>
8485 Edith Epstein <eepstein@cygnus.com>
8486 Andres MacLeod <amacleod@cygnus.com>
8487 Satish Pai <pai@apollo.hp.com>
8488
8489 * HP aCC demangling support.
8490 * cplus-dem.c
8491 (main): Remove default to HP style demangling, set to EDG
8492 demangling correctly when -edg specified; set the demangling style
8493 when user specifies 'edg'. Set strip_underscore to
8494 prepends_underscore, if not HPUXHPPA. Set
8495 current_demangling_style to hp_demangling if HPUXHPPA. Set
8496 current demangling style correctly if the switch is hp. Read
8497 label correctly also in the HP style case.
8498 (work_stuff): add temp_start field; add field for volatile member
8499 function.
8500 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8501 style for this case is the same as ARM.
8502 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8503 (demangle_arm_hp_template): new function. (It was
8504 demangle_arm_pt.); check and set value of temp_start field in
8505 multiple places. Also, when ceching for end of template args,
8506 check to see if at end of static member of template class.
8507 (demangle_class): new local variable : save_class_name_end Don't
8508 include template args in string defining class.
8509 (demangle_class_name): use demangel_arm_hp_template.
8510 (demangle_function_name): handle case where demangling style is
8511 HP_DEMANGLING and currently point at an 'X' in the mangled name.
8512 Handle EDG_DEMANGLING style. Handle constructor and destructor
8513 ops for HP style.
8514 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8515 styles. global destructor and constructor for HP style are same
8516 as for ARM style. Same for local variables.
8517 (demangle_qualified): handle EDG_DEMANGLING style.
8518 (demangle_signature): add case for volatile member function. For
8519 cases '1' - '9' : initialize the temp_start field to -1 and handle
8520 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
8521 and AUTO_DEMANGLING styles. If expecting a function and managed
8522 to demangle the funct args, then handle the LUCID_DEMANGLING,
8523 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
8524 class name after "Lnnn_ in HP style case. HP style too needs to
8525 forget types. _nnn is OK for HP style, so don't report failure.
8526 (do_hpacc_template_const_value): new function. Handle template's
8527 value param for HP/aCC.
8528 (do_hpacc_template_literal): new function. Handle a template's
8529 literal parameter for HP aCC.
8530 (recursively_demangle): new function
8531 (snarf_numeric_literal): new function.
8532 (usage): add 'edg' to the list of demangling styles; add hp switch
8533 to message.
8534
8535Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8536
8537 * pexecute.c: Remove obsolete ifdefed cygwin code.
8538
8539Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8540
8541 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8542 * cplus-dem.c: Likewise. Conform to libiberty.h.
8543 * pexecute.c: Likewise.
8544 * splay-tree.c: Likewise.
8545
85461998-11-25 Mike Stump <mrs@wrs.com>
8547
8548 * Makefile.in (splay-tree.o): Add config.h dependency.
8549
8550Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8551
8552 * configure.in: Use AC_PREREQ(2.12.1).
8553
85541998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8555
8556 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
8557
8558Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8559
8560 * mpw.c (mpw_access): Add missing parens.
8561
8562Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8563
8564 * configure.in: Call AC_HEADER_SYS_WAIT.
8565
8566 * pexecute.c: Include sys/wait.h when !IN_GCC.
8567
8568Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8569
8570 * pexecute.c: revert back to checking old Cygwin
8571 preprocessor symbol until some time has passed.
8572
8573Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8574
8575 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8576 since it will now support similar constructs.
8577
8578Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8579
8580 * configure.in: Check for calloc.
8581
8582 * calloc.c: New file.
8583
8584 * xmalloc.c (xcalloc): New function.
8585
8586Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8587
8588 *cplus-dem.c (demangle_prefix): Use the last "__"
8589 in the mangled name when looking for the signature. This allows
8590 template names to begin with "__".
8591
85921998-11-08 Mark Mitchell <mark@markmitchell.com>
8593
8594 * cplus-dem.c (type_kind_t): Add tk_reference.
8595 (demangle_template_value_parm): Handle it.
8596 (do_type): Use it for references, instead of tk_pointer.
8597
8598 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8599 not internal_cplus_demangle.
8600
8601Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8602
8603 * choose-temp.c: Don't include gansidecl.h.
8604 * mkstemp.c: Likewise.
8605 * pexecute.c: Likewise.
8606
8607Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8608
8609 * configure.in: detect cygwin* instead of cygwin32*
8610 * configure: regenerate
8611
8612Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8613
8614 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8615 whether to include config.h. Possibly include unistd.h in the
8616 !IN_GCC case. Define VFORK_STRING as a printable function call
8617 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8618 defined, include vfork.h. If VMS is defined, define vfork()
8619 appropriately. Remove vfork check on USG, we're using autoconf.
8620 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8621 locally what string to use.
8622
86231998-10-26 Mark Mitchell <mark@markmitchell.com>
8624
8625 * splay-tree.c: Tweak include directives to make sure declarations of
8626 xmalloc and free are available.
8627
86281998-10-25 Mark Mitchell <mark@markmitchell.com>
8629
8630 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8631 anonymous namespaces.
8632
86331998-10-23 Mark Mitchell <mark@markmitchell.com>
8634
8635 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8636 with type_quals.
8637 (TYPE_UNQUALIFIED): New macro.
8638 (TYPE_QUAL_CONST): Likewise.
8639 (TYPE_QUAL_VOLATILE): Likewise.
8640 (TYPE_QUAL_RESTRICT): Likewise.
8641 (code_for_qualifier): New function.
8642 (qualifier_string): Likewise.
8643 (demangle_qualifier): Likewise.
8644 (internal_cplus_demangle): Use them.
8645 (demangle_signature): Likewise.
8646 (demangle_template_value_parm): Likewise.
8647 (do_type): Likewise.
8648 (demangle_fund_type)): Likewise.
8649
8650Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8651
8652 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8653 to match prototype.
8654
86551998-10-21 Mark Mitchell <mark@markmitchell.com>
8656
8657 * splay-tree.c: New file.
8658 * Makefile.in (CFILES): Add it.
8659 (REQUIRED_OFILES): Likewise.
8660 (splay-tree.o): Add dependencies.
8661
8662Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8663
8664 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8665 range of 'K' index.
8666
8667Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8668
8669 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8670
8671 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8672 `unsigned char'.
8673 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8674 comparing against one.
8675 (cplus_mangle_opname): Likewise.
8676 (demangle_integral_value): Cast argument of ctype macro to
8677 `unsigned char'.
8678 (demangle_template_value_parm): Likewise.
8679 (demangle_template): Initialize variable `bindex'. Cast the
8680 result of `strlen' to (int) when comparing against one. Remove
8681 unused variable `start_of_value_parm'.
8682 (demangle_class_name): Cast the result of `strlen' to (int) when
8683 comparing against one.
8684 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8685 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8686 when comparing against one.
8687 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8688 (get_count): Likewise.
8689 (do_type): Likewise. Cast the result of `strlen' to (int) when
8690 comparing against one.
8691 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8692 (demangle_function_name): Cast the result of `strlen' to (int)
8693 when comparing against one.
8694
8695 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8696 comparing against one.
8697
8698Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8699
8700 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8701 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8702 * config.in, configure: Rebuilt.
8703
8704 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8705 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8706 * config.in, configure: Rebuilt.
8707
8708Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8709
8710 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
8711
8712Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8713
8714 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8715
8716Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8717
8718 * Merge egcs & devo libiberty.
8719
87201998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
8721
8722 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8723
8724Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8725
8726 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
8727 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8728 IN_GCC.
8729
8730 * vasprintf.c: Include stdarg.h/varargs.h first.
8731
8732 * vprintf.c: Likewise.
8733
8734Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8735
8736 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8737 is the canonical copy. Define ISSPACE if !IN_GCC.
8738 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
8739 * getopt1.c, obstack.c: Similarly.
8740 * Makefile.in: Build mkstemp.o
8741
8742Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8743
8744 * configure.in: Include asprintf in list of functions known not
8745 to be in newlib.
8746 * configure: Rebuild.
8747
8748Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8749
8750 * cplus-dem.c (work_stuff): Add dllimported.
8751 (demangled_prefix): Mark symbols imported from PE DLL.
8752 (internal_cplus_demangled): Handle.
8753
87541998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8755
8756 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8757 stay failed.
8758
8759Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8760
8761 * cplus-dem.c: Include config.h if it exists. Also, only
8762 prototype malloc/realloc if we can't get stdlib.h.
8763
8764Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8765
8766 * configure.in: Switch back to checking --with-target-subdir when
8767 deciding whether to check for newlib, undoing part of July 15
8768 change.
8769 * configure: Rebuild.
8770
8771Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8772
8773 * cplus-dem.c (type_kind_t): New type.
8774 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8775 on this paramter, rather than demangling the type again.
8776 (demangle_integral_value): Pass tk_integral.
8777 (demangle_template_: Pass the value returned from do_type.
8778 (do_type): Return a type_kind_t. Pass tk_integral to
8779 demangle_template_value_parm for array bounds.
8780 (demangle_fund_type): Likewise.
8781
8782 Also incorporate from GCC version:
8783
8784 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8785
8786 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8787
8788Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8789
8790 * cplus-dem.c (demangle_nested_args): Make function definition
8791 static to match the prototype.
8792
8793Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8794
8795 * cplus-dem.c (type_kind_t): New type.
8796 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8797 on this paramter, rather than demangling the type again.
8798 (demangle_integral_value): Pass tk_integral.
8799 (demangle_template_: Pass the value returned from do_type.
8800 (do_type): Return a type_kind_t. Pass tk_integral to
8801 demangle_template_value_parm for array bounds.
8802 (demangle_fund_type): Likewise.
8803
8804 Also incorporate from GCC version:
8805
8806 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8807
8808 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8809
8810Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8811
8812 * Makefile.in (ALLOCA): New variable.
8813 ($(TARGETLIB)): Add $(ALLOCA) to library.
8814 (needed-list): Add $(ALLOCA).
8815 ($(ALLOCA)): Depend upon stamp-picdir.
8816
8817Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8818
8819 * cplus-dem.c (demangle_nested_args): Make function definition
8820 static to match the prototype.
8821
8822Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8823
8824 * configure.in: Check --with-cross-host rather than
8825 --with-target-subdir when deciding whether build uses a cross
8826 compiler, and when deciding where to install the library.
8827 * configure: Rebuild.
8828
8829Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8830
8831 * cplus-dem.c (demangle_nested_args): Return a value.
8832
8833Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8834
8835 * cplus-dem.c (string): Move definition before work_stuff.
8836 (work_stuff): Add volatile_type, forgetting_types,
8837 previous_argument, and nrepeats fields.
8838 (SCOPE_STRING): New macro.
8839 (demangle_template): Add `remember' parameter. Add comment.
8840 Register the `B' code type here, if remembering. Tidy. Fix crash
8841 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8842 (demangle_nested_args): New function.
8843 (internal_cplus_demangle): Handle volatile-qualified member
8844 functions.
8845 (mop_up): Delete the previous_argument string if present.
8846 (demangle_signature): Tidy. Handle volatile-qualified member
8847 functions. Handle back-references using the `B' code. Use extra
8848 parameter to demangle_template and SCOPE_STRING where appropriate.
8849 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
8850 code.
8851 (demangle_class): Use SCOPE_STRING.
8852 (gnu_special): Pass additional argument to demangle_template.
8853 Use SCOPE_STRING.
8854 (demangle_qualified): Save qualified types for later
8855 back-references. Handle constructors and destructors for template
8856 types correctly.
8857 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8858 demangle_template. Use demangled_nested_args. Don't remember
8859 qualified types here; that's now done in demangle_qualified.
8860 Similarly for templates.
8861 (do_arg): Improve commment. Handle 'n' repeat code.
8862 (remember_type): Check forgetting_types.
8863 (demangle_args): Deal with 'n' repeat codes. Tidy.
8864
8865Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8866
8867 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8868 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8869
8870Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8871
8872 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8873 From Chris Faylor <cgf@cygnus.com>.
8874
8875Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8876
8877 * obstack.c: Update to latest FSF version.
8878
8879Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
8880
8881 * Makefile.in: Add a dependency on stamp-picdir for the
8882 objects, so that we can do a parallel build.
8883
8884Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8885
8886 * configure.in (checkfuncs): Add missing "'".
8887
8888Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
8889
8890 * obstack.c (_obstack_memory_used): Elide this function if we're
8891 on a system with GNU libc.
8892
8893Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
8894
8895 * Makefile.in (distclean): Remove config.log.
8896
8897Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8898
8899 * Makefile.in (distclean): Don't remove alloca-conf.h.
8900
8901Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8902
8903 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
8904
89051998-05-21 Mark Mitchell <mmitchell@usa.net>
8906
8907 * cplus-dem.c (do_type): Handle volatile qualification.
8908
89091998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
8910
8911 * configure.in: Check for unistd.h as well.
8912 * configure: Rebuild.
8913 * config.in: Rebuild.
8914 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8915 is defined in unistd.h. Reformat conditional block for easier reading.
8916
8917 * config.table (shared): Default to no if ${enable_shared}
8918 is unset or empty; this logic is used by the toplevel
8919 configure scripts, too.
8920
8921Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
8922
8923 * config.table: Add line to set enable_shared in the Makefile
8924 as needed.
8925
8926Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8927
8928 * cplus-dem.c (squangle_mop_up): Change return type to void.
8929 (internal_cplus_demangle): Remove unused parameter `options'.
8930 All callers changed.
8931 (cplus_demangle_opname): Remove function wide variable `int i' and
8932 replace with `size_t i' at each location where it is used.
8933 (cplus_mangle_opname): change type of `i' from int to size_t.
8934
8935Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
8936
8937 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
8938 than sparc or sun.
8939 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8940
8941Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
8942
8943 * configure.in: Set libiberty_topdir correctly when srcdir is
8944 "." and with_target_subdir is not set.
8945 * configure: Rebuild.
8946
8947Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8948
8949 * configure.in: Add *-*-mingw32* case.
8950 * configure: Rebuild.
8951
8952Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
8953
8954 * config.table: Never use a PIC file for *-*-cygwin32*.
8955
8956 * Makefile.in (config.status): Depend upon config.table.
8957
8958 * configure.in: On a cygwin32 host, always compile random, and
8959 don't test for sys_siglist, strsignal, or psignal.
8960 * configure: Rebuild.
8961
8962 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8963 * getcwd.c: Likewise.
8964 * getpagesize.c: Likewise.
8965 * getruntime.c: Likewise.
8966
8967Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
8968
8969 Use autoconf tests rather than the old dummy.c test:
8970 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8971 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
8972 most functions. Add special cases to handle newlib and VxWorks.
8973 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
8974 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
8975 CONFIG_FILES is set; set ac_file before calling it.
8976 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8977 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8978 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8979 (i[3456]-*-mingw32*): Remove.
8980 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
8981 (LIBOBJS): New variable.
8982 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
8983 (all): Depend upon needed-list. Don't check RULE1.
8984 (@target_makefile_frag@): Remove.
8985 (COMPILE.c): Include @DEFS@.
8986 (HFILES): Add alloca-conf.h.
8987 (REQUIRED_OFILES): Remove basename.o.
8988 ($(TARGETLIB)): New target.
8989 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
8990 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
8991 (needed-list, config.h): Rewrite.
8992 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
8993 (.always.): Remove.
8994 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
8995 (stamp-h): New target.
8996 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
8997 (basename.o): Don't depend upon config.h.
8998 (getruntime.o): Depend upon config.h.
8999 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
9000 NEED_on_exit.
9001 * basename.c: Don't include config.h. Don't check NEED_basename.
9002 * clock.c: Include config.h.
9003 * getcwd.c: Likewise.
9004 * getpagesize.c: Likewise.
9005 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
9006 HAVE_TIMES.
9007 * strerror.c: Change uses of NEED_sys_errlist to
9008 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
9009 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
9010 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
9011 HAVE_PSIGNAL.
9012 * acconfig.h: New file.
9013 * dummy.c: Remove.
9014 * functions.def: Remove.
9015 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
9016 * config/mh-windows (HDEFINES): Remove.
9017 * config/mh-cygwin32: Remove.
9018 * config/mh-go32: Remove.
9019 * config/mh-irix4: Remove.
9020 * config/mh-riscix: Remove.
9021 * config/mh-sysv4: Remove.
9022 * config/mt-mingw32: Remove.
9023 * config/mt-vxworks5: Remove.
9024 * config.in: New file, generated using autoheader.
9025 * configure: Rebuild.
9026
9027Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
9028
9029 * configure.in: Rewrite to use autoconf.
9030 * configure: Generate using autoconf.
9031 * config/mh-a68bsd: Remove.
9032 * config/mh-apollo68: Remove.
9033 * config/mh-hpbsd: Remove.
9034 * config/mh-ncr3000: Remove.
9035 * config/mh-sysv: Remove.
9036 * config/mh-aix (RANLIB, INSTALL): Don't define.
9037 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
9038 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
9039 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
9040 * config.table: Change config_shell to CONFIG_SHELL, and use
9041 libiberty_topdir to find move-if-change.
9042 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
9043 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
9044 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
9045 * Makefile.in (srcdir): Set to @srcdir@.
9046 (VPATH): Likewise.
9047 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
9048 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
9049 (CC, CFLAGS, RANLIB)): Likewise.
9050 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
9051 (target_makefile_frag, host_makefile_frag): Add substitutions.
9052 (INSTALL_DEST): Set to @INSTALL_DEST@.
9053 (Makefile): Depend upon config.status. Don't depend upon
9054 $(host_makefile_frag) or $(target_makefile_frag).
9055 (config.status): New target.
9056
9057Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
9058
9059 * config/mt-sunos4: Remove. Should be handled by --with-headers
9060 and --with-libraries options at top level.
9061 * config.table: Never use mt-sunos4.
9062
9063 * alloca-conf.h: New file, combining alloca-norm.h and
9064 alloca-botch.h.
9065 * alloca-norm.h: Remove.
9066 * alloca-botch.h: Remove.
9067 * configure.in: Set shell variables files and links to empty.
9068 * config.table: Don't set shell variable files.
9069 * configure.bat: Don't create alloca-conf.h.
9070 * makefile.vms: Likewise.
9071 * mpw-config.in: Likewise.
9072 * vmsbuild.com: Likewise.
9073
9074Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
9075
9076 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
9077 target depending upon config.h.
9078 (alloca.o): Add target depending upon config.h
9079 (basename.o, choose-temp.o, fnmatch.o): Likewise.
9080 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
9081 (strsignal.o, xstrerror.o): Likewise.
9082
9083Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9084
9085 * cplus-dem.c (cplus_demangle_opname): Initialize work.
9086
9087Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9088
9089 * cplus-dem.c (demangle_qualified): Replace missing else.
9090
9091Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9092
9093 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
9094 length in the name of a virtual table.
9095
9096Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9097
9098 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
9099 (cplus_demangle_opname): Call mop_up_squangle.
9100 (cplus_demangle): Initialize squangle info, then call
9101 internal_cplus_demangle. (Most code moved there as well)
9102 (internal_cplus_demangle): New function, performs most of what use
9103 to be done in cplus_demangle, but is only called with this file.
9104 (squangle_mop_up): New function to clean up B and K code data.
9105 (mop_up): set pointers to NULL after freeing.
9106 (demangle_signature, demangle_template, demangle_class): Add
9107 switch elements to handle K and B codes.
9108 (demangle_prefix, gnu_special, demangle_qualified): Add
9109 code to handle K and B codes.
9110 (do_type, demangle_fund_type): Handle B and K codes.
9111 (remember_Ktype): New function to store K info.
9112 (register_Btype, remember_Btype): New functions for B codes.
9113 (forget_B_and_K_types): New function to destroy B and K info.
9114
9115Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9116
9117 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
9118
9119Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
9120
9121 * config.table: Make locating frag files failsafe even for the
9122 special case if configuring and building in srcdir.
9123
9124Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
9125
9126 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
9127
9128Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
9129
9130 * choose-temp.c: Sync with copy in gcc.
9131
9132Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
9133
9134 * getopt.c: Update to latest FSF version.
9135 * getopt1.c: Likewise.
9136
9137Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
9138
9139 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
9140 strings that are not actually lengths.
9141
9142Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
9143
9144 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
9145 (.c.o): Check value of enable_shared, not PICFLAG.
9146 (stamp-picdir): Dito.
9147
9148Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
9149
9150 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
9151 since it gets built automatically
9152
9153Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
9154
9155 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
9156 the currently shipping OS.
9157
9158Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
9159
9160 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
9161 Add fnmatch.o and objalloc.o; remove vasprintf.o.
9162 [config.h]: Define NEED_strsignal.
9163
9164Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
9165
9166 * functions.def: Correct argument types for strerror and
9167 strsignal. Reported by Alex Gutman <agutman@emc.com>.
9168
9169Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
9170
9171 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
9172 values.
9173
9174Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
9175 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
9176
9177 Add mingw32 support.
9178 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
9179 (pwait): New function for mingw32.
9180
9181 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
9182 * config/mt-mingw32: New file.
9183 * xmalloc.c (first_break): Not used for mingw32.
9184 (xmalloc_set_program_name): Don't use sbrk on mingw32.
9185 (xmalloc): Likewise.
9186 (xrealloc): Likewise.
9187
9188Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
9189
9190 * choose-temp.c: Sync with gcc version.
9191
9192Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
9193
9194 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
9195 to all filenames in libdir and tooldir.
9196 (distclean): Do MULTICLEAN before deleting Makefile.
9197 (stamp-needed, stamp-config): Add MULTISRCTOP to
9198 pathname for move-if-change.
9199
9200Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
9201
9202 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
9203
9204Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
9205
9206 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
9207 was already defined previously.
9208
9209Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
9210
9211 * Makefile.in (INSTALL): Use ../install-sh, not install.
9212
9213Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
9214
9215 * Makefile.in (CFILES): Add pexecute.c.
9216
9217Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
9218
9219 * asprintf.c: Consistently use either stdarg or varargs.
9220
9221Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
9222
9223 * cplus-dem.c (demangle_signature): Don't look for return types on
9224 constructors. Handle member template constructors.
9225
9226Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
9227
9228 * README: Fix configuration instructions.
9229
9230Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
9231
9232 * pexecute.c: Update to current version from /gd/gnu/lib:
9233
9234 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
9235
9236 * pexecute.c: Use spawn if __CYGWIN32__.
9237
9238 1997-08-08 Paul Eggert <eggert@twinsun.com>
9239
9240 * pexecute.c: Include "config.h" first, as per autoconf manual.
9241
9242 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
9243
9244 * pexecute.c (fix_argv): New function.
9245 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9246 Add underscore to cwait function call.
9247
9248Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
9249
9250 * cplus-dem.c (demangle_template): Add new parameter. Handle new
9251 template-function mangling.
9252 (consume_count_with_underscores): New function.
9253 (demangle_signature): Handle new name-mangling scheme.
9254
9255Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
9256
9257 * asprintf.c: stdarg.h when ALMOST_STDC
9258 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
9259 strncasecmp.o.
9260
9261Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
9262
9263 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
9264
9265 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
9266
9267 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
9268
9269Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
9270
9271 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
9272
9273Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
9274
9275 * asprintf.c (asprintf): New file.
9276 * Makefile.in (CFILES): Add asprintf.c
9277 * functions.def: Ditto.
9278
9279Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
9280
9281 * argv.c (dupargv): New function, duplicate an argument vector.
9282
9283Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
9284
9285 * config/mh-cygwin32: also build random.o
9286
9287Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
9288
9289 * cplus-dem.c: Add 'extern' to prepends_underscore.
9290
9291Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
9292
9293 * cplus-dem.c: Various changes to produce Java output when passed
9294 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
9295 (main): Support --java and -j flags to set DMGL_JAVA.
9296
9297Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
9298
9299 * config/mh-go32 (CC, AR, RANLIB): Don't define.
9300
9301Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
9302
9303 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
9304 (pexecute.o): New target.
9305
9306 * Makefile.in (stamp-needed): New target, replacing needed-list.
9307 (needed-list): Just depend upon stamp-needed.
9308 (stamp-config): New target, replacing config.h.
9309 (config.h): Just depend upon stamp-config.
9310 (mostlyclean): Remove stamp-*.
9311
9312Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
9313
9314 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
9315 INSTALL_DATA for multilibbed installs
9316
9317Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
9318
9319 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
9320
9321 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
9322
9323 * choose-temp.c (try): Insist that temp dir be searchable.
9324
9325 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
9326
9327 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
9328 for current directory.
9329
9330 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
9331
9332 * pexecute.c: Remove special cases for cygwin32.
9333 (pwait): Remove local definition of `pid'.
9334
9335 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
9336
9337 * pexecute.c (vfork): Supply new definition for VMS.
9338 (pwait): Use waitpid instead of wait for VMS.
9339
9340Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9341
9342 * cplus-dem.c (do_type): Handle `J'.
9343 (demangle_fund_type): Print "complex" for it.
9344
9345Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
9346
9347 * configure.in: Don't turn on multilib here.
9348
9349Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9350
9351 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
9352 elided; needed by gdb and not present in libc.
9353
9354Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9355
9356 * Makefile.in (clean): Remove tmpmulti.out.
9357
9358Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9359
9360 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
9361 Add new floatformat, mainly for ARM doubles.
9362
9363Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
9364
9365 * config.table: Use ${config_shell} with ${moveifchange}. From
9366 Thomas Graichen <graichen@rzpd.de>.
9367
9368Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
9369
9370 * configure.in: Enable multilibing by default.
9371 Update multilib template to read config-ml.in.
9372
9373Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9374
9375 * makefile.vms: Add objalloc.
9376
9377Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
9378
9379 * cplus-dem.c (demangle_it): Add prototype declaration.
9380 (usage, fatal): Likewise.
9381
9382 * xexit.c (_xexit_cleanup): Add prototype.
9383
9384 * strerror.c (init_error_tables): Declare.
9385
9386Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
9387
9388 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9389 * strsignal.c: Only define strsignal if NEED_strsignal.
9390 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9391 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
9392 to xneeded-list.
9393 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9394 (EXTRA_OFILES): Define to vasprintf.o.
9395 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9396 (EXTRA_OFILES): Add vasprintf.o.
9397 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9398 (vxneeded-list): Add vasprintf.o.
9399
9400Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9401
9402 * objalloc.c: Include <stdio.h>.
9403
9404Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
9405
9406 * objalloc.c: New file.
9407 * Makefile.in (CFILES): Add objalloc.c
9408 (REQUIRED_OFILES): Add objalloc.o.
9409 (objalloc.o): New target.
9410
9411Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9412
9413 * obstack.c: Update to current FSF version.
9414
9415Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9416
9417 * cplus-dem.c: Add prototypes for all static functions.
9418 (mystrstr): Make static. Make arguments and result const.
9419 (cplus_match): Remove; not used.
9420
9421Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9422
9423 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9424 __t* symbols.
9425
9426Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
9427
9428 * spaces.c: Declare malloc and free properly.
9429 * strsignal.c (init_signal_tables): Add prototype.
9430 * xatexit.c (_xexit_cleanup): Add parameter declarations.
9431
9432Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9433
9434 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9435 also required because of xmalloc.o.
9436
9437Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
9438
9439 * strsignal.c: Unconditionally redefine sys_siglist around the
9440 inclusion of the system header files.
9441
9442Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
9443
9444 * makefile.vms: Remove 8 bit characters. Update to latest
9445 gcc release.
9446
9447Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
9448
9449 * strsignal.c: Use NEED_sys_siglist instead of
9450 LOSING_SYS_SIGLIST.
9451 * config.table: Don't use mh-lynxos.
9452 * config/mh-lynxos: Remove.
9453
9454Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
9455
9456 * cplus-dem.c: Fix indenting; make identical to the copy
9457 in GCC.
9458 (do_type, case 'M'): Check for a template as well as a class.
9459
9460Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
9461
9462 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9463 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9464 libiberty is incorrect, as well.
9465
9466Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9467
9468 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9469 alloca takes a size_t argument, not just unsigned.
9470
9471Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9472
9473 * cplus-dem.c: Note that this file also lives in GCC.
9474
9475Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9476
9477 * alloca.c: Remove include of libiberty.h for hpux.
9478 * argv.c: Replace defs from libiberty.h.
9479 * spaces.c: Put back externs from removed from libiberty.h.
9480 * vasprintf.c: Remove include of libiberty.h for hpux.
9481
9482Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9483
9484 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9485
9486Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9487
9488 * cplus-dem.c: Revert last two commits due to conflicts with
9489 hpux system headers.
9490
9491Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9492
9493 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
9494 Revert last commit due to conflicts with hpux system headers.
9495
9496Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9497
9498 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9499 libiberty.h when compiled with a standard compiler.
9500
9501Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9502
9503 * alloca.c: Include libiberty.h for definition of xmalloc.
9504 Don't redefine NULL.
9505 * argv.c: Move prototypes to libiberty.h.
9506 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
9507 Don't redefine NULL.
9508 Use casts to eliminate compiler warnings.
9509 * spaces.c: Remove prototypes for malloc and free which are
9510 already in libibrty.h.
9511 * strcasecmp.c: Use casts to eliminate compiler warnings.
9512 * vasprintf.c: Include libiberty.h for definition of malloc.
9513 Don't redefine NULL.
9514 * vprintf.c: Include stdarg.h if __STDC__.
9515
9516Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9517
9518 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9519
9520Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
9521
9522 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9523 upward components correctly.
9524
9525Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
9526
9527 * config.table, config/mh-windows: Add support for building under
9528 MSVC (the Microsoft build environment).
9529
9530Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9531
9532 * fnmatch.c: Undef const if not __STDC__.
9533
9534Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
9535
9536 * fnmatch.c: New file.
9537 * Makefile.in (CFILES): Add fnmatch.c.
9538 (REQUIRED_OFILES): Add fnmatch.o.
9539 (fnmatch.o): New target.
9540
9541Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9542
9543 * cplus-dem.c (demangle_template): Fix handling of address args.
9544 (gnu_special): Handle type_info stuff.
9545
9546Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9547
9548 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9549 (mpwify_filename): Handle "::/" case.
9550
9551Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9552
9553 * config/mh-cygwin32: new file (need -DNEED_basename and
9554 -DNEED_sys_siglist for native NT rebuilding)
9555 * config.table (*-*-cygwin32): new entry
9556 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9557
9558Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9559
9560 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9561
9562Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9563
9564 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9565 messed with arguments that included a '/', add escape chars
9566 to double quotes, remove const decl from arg that Mac
9567 compilers don't seem to like.
9568
9569Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9570
9571 * pexecute.c: Update test for win32 (&& ! cygwin32).
9572 * choose-temp.c: fix WIN32 preprocessor defines
9573
9574Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9575
9576 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9577 to editing of default makefile rule.
9578
9579Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9580
9581 * alloca-norm.h: Include <malloc.h> if _WIN32.
9582 * argv.c: Include non-prototyped decls for malloc and string
9583 functions if ! _WIN32 or if __GNUC__.
9584
9585Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9586
9587 * config.h-vms: New file.
9588 * makefile.vms: Use it.
9589
9590Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9591
9592 * getopt.c (_getopt_internal): If argc is 0, just return (before
9593 we reference *argv and segfault).
9594
9595Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9596
9597 * Makefile.in (distclean): Add multilib.out.
9598
9599Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9600
9601 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9602 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9603
9604Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9605
9606 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9607
9608 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9609
9610 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9611
9612 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9613 (do_ofiles): Allow nonexistent source file in pass 3.
9614 (chk_deffunc): New routine.
9615
9616Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9617
9618 * pexecute.c (PEXECUTE_VERBOSE): Define.
9619 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9620
9621Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9622
9623 * Makefile.in (docdir): Removed.
9624
9625Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9626
9627 * Makefile.in (oldincludedir): Removed.
9628
9629Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9630
9631 * Makefile.in (datadir): Set to $(prefix)/share.
9632
9633Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9634
9635 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9636 checking for errors from do_type.
9637
9638Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9639
9640 * makefile.vms: New file.
9641 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9642 than declaring malloc, realloc, and sbrk.
9643
9644Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9645
9646 * pexecute.c: New file.
9647
9648Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9649
9650 * xmalloc.c: Declare sbrk.
9651
9652Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9653
9654 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9655 declaration.
9656
9657Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9658
9659 * xstrerror.c: Include <stdio.h>.
9660
9661Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9662
9663 * Makefile.in (CFILES): Add atexit.c.
9664
9665Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9666
9667 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9668
9669Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9670
9671 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9672 #include <stdio.h>
9673 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9674
9675Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9676
9677 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9678 Reverts Feb 8, 1995 change.
9679
9680Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9681
9682 * choose-temp.c: New file.
9683 * Makefile.in (CFILES): Add choose-temp.c.
9684 (REQUIRED_OFILES): Add choose-temp.o.
9685
9686Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9687
9688 * floatformat.c (floatformat_to_double): Don't bias exponent when
9689 handling zero's, denorms or NaNs.
9690
9691Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9692
9693 * floatformat.c (floatformat_to_double): Fix bugs with handling
9694 numbers with fractions < 32 bits.
9695
9696Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9697
9698 * config.table: Permit --enable-shared to specify a list of
9699 directories.
9700
9701Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9702
9703 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9704 arguments.
9705
9706Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9707
9708 * configure.in: If srcdir is `.' and with_target_subdir is not
9709 `.', then set MULTISRCTOP before calling config-ml.in.
9710
9711Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9712
9713 * mpw.c (mpw_open): Add debugging output option.
9714
9715Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9716
9717 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9718
9719Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9720
9721 * mpw.c (mpwify_filename): Change 6 to 5 in
9722 strncmp (unixname, "/tmp/", 5).
9723
9724Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9725
9726 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9727 handle 0 as a pointer value parameter.
9728
9729Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9730
9731 * Makefile.in (all): Depend upon required-list.
9732 (required-list): New target.
9733 (clean): Remove required-list.
9734
9735Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9736
9737 * win32.c: Deleted.
9738 * config.table (i386-*-win32): Deleted.
9739 * config/mh-i386win32: Deleted.
9740
9741Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9742
9743 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9744 const char *.
9745 (cplus_mangle_opname): Change return type and opname parameter to
9746 const char *. Don't cast return value.
9747
9748Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9749
9750 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9751 definition.
9752
9753Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9754
9755 * obstack.c: Update copyright to 1996.
9756 (_obstack_memory_used): Define new function. Called via
9757 obstack_memory_used macro.
9758
9759Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9760
9761 * xstrdup.c: New file.
9762 * Makefile.in (CFILES): Add xstrdup.c.
9763 (REQUIRED_OFILES): Add xstrdup.o.
9764 (xstrdup.o): New target.
9765
9766Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9767
9768 * atexit.c: New stub to provide atexit on systems that have
9769 on_exit, like SunOS 4.1.x systems.
9770 * functions.def (on_exit, atexit): Ditto.
9771
9772Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9773
9774 * mpw.c (mpw_abort): Remove decl.
9775 (mpw_access): Move debugging printf.
9776
9777Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9778
9779 * config.table: Consistently use ${host} rather than ${xhost} or
9780 ${target}.
9781 * configure.in: Don't bother to set ${xhost} before calling
9782 config.table.
9783
9784Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9785
9786 * Makefile.in (.c.o): Use test instead of the left bracket, to
9787 avoid problems with some versions of make.
9788
9789Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9790
9791 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9792
9793Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9794
9795 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9796 which was set to just alloca.o, which is now automatically marked
9797 as needed by the autoconfiguration process.
9798
9799Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9800
9801 * config.table: Check ${with_cross_host} rather than comparing
9802 ${host} and ${target}.
9803
9804Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9805
9806 * configure.in: If with_target_subdir is empty, set xhost to
9807 ${host} rather than ${target} before calling config.table.
9808
9809Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9810
9811 * Makefile.in (MULTITOP): Deleted.
9812 (MULTISRCTOP, MULTIBUILDTOP): New.
9813 (FLAGS_TO_PASS): Delete INCDIR.
9814 (INCDIR): Add $(MULTISRCTOP).
9815 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9816 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9817 instead of cfg-ml-pos.in.
9818 (cross-compile check): Change to test for with_target_subdir.
9819 (EXTRA_LINKS): Delete.
9820
9821Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9822
9823 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9824 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9825 functions that are supplied by Metrowerks libraries.
9826 (fstat): Clean up descriptor->pointer conversion code.
9827 (InstallConsole, etc): Empty definitions, for when linking
9828 with SIOUX.
9829
9830Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9831
9832 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9833 (.c.o): Stylistic change.
9834
9835Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9836
9837 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9838 phdm@info.ucl.ac.be (Philippe De Muyter).
9839
9840Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9841
9842 * configure.in: Correct sed call.
9843
9844Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9845
9846 * configure.in: Clean up / simplify for native.
9847
9848 * configure.in: Merge in stuff from ../xiberty/configure.in.
9849 * Makefile.in (CC): Add definition (so it can be overrridden
9850 by ../configure).
9851
9852Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9853
9854 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9855 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9856 (link): Remove useless definition with error return.
9857 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9858 Use UnsignedWide type for microsecond counts.
9859
9860Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9861
9862 * memcmp.c (memcmp): Argument types are const void *, not void
9863 *const.
9864
9865 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9866 sys/types.h.
9867 * strcasecmp.c (strcasecmp): Ditto.
9868
9869Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9870
9871 * Makefile.in (BISON): Remove macro.
9872
9873Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
9874
9875 * Makefile.in (HFILES): Add default empty definition.
9876 * mpw-config.in (config.h): Only update if changed.
9877 * mpw-make.in: Remove.
9878 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9879 * mpw.c: Remove semi-clone of strerror code.
9880 (sys_nerr, sys_errlist): Define here.
9881 (Microseconds): Only define as A-line trap if m68k Mac.
9882
9883Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9884
9885 * Makefile.in (maintainer-clean): New synonym for distclean.
9886
9887Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
9888
9889 * config.table: For host, generalize rs6000-ibm-aix*
9890 to *-ibm-aix* so we also include powerpc.
9891
9892Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9893
9894 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
9895
9896 * xstrerror.c: New file.
9897 * Makefile.in, vmsbuild.com: Compile it.
9898
9899Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9900
9901 * config.table (i386-*-win32): New.
9902
9903Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
9904
9905 * Makefile.in (MULTITOP): New variable.
9906 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9907 (all): Add multilib support.
9908 (install_to_tooldir, *clean): Likewise.
9909
9910Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9911
9912 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9913
9914Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
9915
9916 * vmsbuild.com: create "new-lib.olb", build libiberty under that
9917 name, and then make it become "liberty.olb" when done, so that an
9918 incomplete build attempt never leaves behind something which looks
9919 like a complete library.
9920
9921Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
9922
9923 * config/mh-i386pe: New file for PE hosts.
9924 * config.table: Understand PE hosts.
9925
9926Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9927
9928 * cplus-dem.c: Update from gcc.
9929
9930 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
9931 <stddef.h>.
9932 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9933
9934Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9935
9936 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9937 * mpw.c: Only test DebugPI once whenever printing debug info.
9938 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9939 also fix to not write on input filename buffer.
9940 (mpw_access): Use stat() instead of open(), works for directories
9941 as well as files.
9942
9943Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9944
9945 * Makefile.in: Massage broken shells that require 'else true'.
9946
9947Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
9948
9949 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9950 Declare __builtin_alloca in the sparc case, as argv.c did.
9951 * argv.c: Replace inline version of alloca-norm.h at start of file with
9952 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
9953 because alloca-norm.h needs to declare alloca as "PTR".
9954
9955Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9956
9957 * win32.c: New file.
9958
9959Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9960
9961 * dummy.c: #include "alloca-conf.h".
9962
9963Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9964
9965 * Makefile.in (mostlyclean): Remove stamp-picdir.
9966 (clean): Don't.
9967
9968Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9969
9970 * config.table (frags): Use toplevel pic frags.
9971
9972 * Makefile.in (PICFLAG): New macro.
9973 (all): Depend on stamp-picdir.
9974 (needed-list): Ditto.
9975 (.c.o): Also build pic object.
9976 (stamp-picdir): New rule.
9977 (mostlyclean): Remove pic.
9978 (clean): Remove stamp-picdir.
9979
9980Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9981
9982 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9983
9984Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
9985
9986 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
9987 to libio-style copyright.
9988 * getpagesize.c: Remove FSF copyright.
9989
9990Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9991
9992 Added improved VMS support from Pat Rankin:
9993
9994 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
9995
9996 * vmsbuild.com: new file.
9997
9998 * getpagesize.c (getpagesize): implement for VMS;
9999 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
10000 support for EVMSERR.
10001
10002Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
10003
10004 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
10005
10006 * floatformat.c (floatformat_arm_ext): Define.
10007
10008Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
10009
10010 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
10011 strerror.c, strsignal.c: Remove FSF copyright.
10012 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
10013
10014Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
10015
10016 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
10017 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
10018 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
10019 * strchr.c, strrchr.c: Add cast to suppress const warning.
10020
10021Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10022
10023 * cplus-dem.c: Use const instead of CONST. Don't include
10024 ansidecl.h directly.
10025
10026Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10027
10028 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
10029 xrealloc.
10030 (-DMAIN): Don't rely on an externally-defined version number;
10031 instead, require the version number to be defined as a
10032 preprocessor macro. Handle the RS/6000 leading dot. Define
10033 xmalloc, xrealloc and fatal. Don't strip a leading underscore
10034 if we couldn't demangle the word.
10035
10036Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
10037
10038 (Old mpw.c change descriptions retained for informational value.)
10039 * mpw.c (warning_threshold): Default to .4 sec.
10040 (overflow_count, current_progress): New globals.
10041 (warn_if_spin_delay): Include current progress type,
10042 such as program name, in message.
10043 (mpw_start_progress): Set current_progress variable from arg.
10044 (mpw_end_progress): Report spin delays by power-of-two-size
10045 buckets instead of constant-size buckets.
10046
10047 * mpw.c: Clean up formatting, types, returns, etc.
10048 (ENOSYS): Define.
10049 (mpw_fread, mpw_fwrite): Define.
10050 (sleep): Define correctly.
10051
10052 * mpw.c: New code to implement cursor spinning support.
10053 (umask): New function.
10054 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
10055
10056 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
10057 basenames for MPW and MPW/Unix filenames.
10058 (mpw_special_init): New function, calls Macsbug if desired.
10059
10060 * mpw.c: Add GPL notice.
10061 (mpwify_filename): Add more transformations.
10062 (mpw_fopen): Call mpwify_filename on file names.
10063 (rename): Remove.
10064 (chdir, getcwd): Add simple definitions.
10065
10066 * mpw.c: Random cleanups, remove unused code bits.
10067 Added copy of strerror.c for gcc's use.
10068 (stat, fstat, _stat): New versions based on Guido van Rossum code.
10069
10070 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
10071
10072 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
10073 (fork, vfork, etc): Print error messages if called.
10074 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
10075 rename, chown): Define.
10076
10077 * mpw-config.in: New file, MPW version of configure.in.
10078 * mpw-make.in: New file, MPW version of Makefile.in.
10079 * mpw.c: New file, MPW compatibility routines.
10080
10081Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
10082
10083 * basename.c: Include config.h before checking for NEED_basename.
10084
10085Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10086
10087 * functions.def: Add DEFFUNC for basename.
10088
10089 * basename.c: Only define basename if NEED_basename.
10090
10091Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10092
10093 * config.table: Fix --enable-shared logic for native builds.
10094
10095Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10096
10097 * cplus-dem.c (demangle_template): Demangle bool literals properly.
10098
10099Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
10100
10101 * strtol.c strtoul.c: Replace these with less buggy versions from
10102 NetBSD. (strtoul in particular couldn't handle base 16.)
10103
10104Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
10105
10106 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
10107
10108 * clock.c: If NO_SYS_PARAM_H is defined, don't include
10109 <sys/param.h>.
10110 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
10111
10112Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
10113
10114 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
10115 a number; ANSI appears to permit any expression, including a
10116 function call.
10117
10118 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
10119 xiberty.
10120 * config/mt-vxworks5: New file.
10121
10122Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
10123
10124 * basename.c (basename): Change argument to be const.
10125
10126Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10127
10128 * Makefile.in (lneeded-list): Don't worry about xmalloc.
10129
10130Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
10131
10132 * Makefile.in (distclean): Delete xhost-mkfrag.
10133
10134Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10135
10136 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
10137
10138Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
10139
10140 * hex.c: New file.
10141 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
10142 (hex.o): Add dependencies.
10143
10144 * cplus-dem.c (demangle_prefix): For GNU style constructor and
10145 destructor names, try demangling the remainder of the string.
10146
10147Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
10148
10149 * vasprintf.c (int_vasprintf): New static function.
10150 (vasprintf): Use int_vasprintf. Removes assumption that va_list
10151 is assignment compatible.
10152
10153Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10154
10155 * Makefile.in (LIBCFLAGS): New variable.
10156 (FLAGS_TO_PASS): Pass it.
10157 (.c.o): Use it.
10158
10159Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
10160
10161 * getopt.c, getopt1.c: Do compile these functions under Linux,
10162 since many native versions are based on glibc but are buggy.
10163
10164Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
10165
10166 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
10167 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
10168
10169Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10170
10171 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
10172 * functions.def: Remove vasprintf.
10173
10174Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10175
10176 * xmalloc.c (first_break): New static variable.
10177 (xmalloc_set_program_name): Record sbrk (0) in first_break.
10178 (xmalloc): If memory allocation fails, try to report how much
10179 memory was allocated by the program up to this point.
10180 (xrealloc): Likewise.
10181
10182Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
10183
10184 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
10185 when linking dummy.
10186 * config.table: Add host RISCiX Makefile frag.
10187 * config/mh-riscix: New file.
10188
10189Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10190
10191 * Makefile.in (FLAGS_TO_PASS): Define.
10192 ($(RULE1)): Use $(FLAGS_TO_PASS).
10193
10194Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10195
10196 * vasprintf.c: Include <string.h>.
10197 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
10198 * xatexit.c: Declare malloc.
10199
10200Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10201
10202 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
10203 one below).
10204
10205Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10206
10207 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
10208 the type index is greater than 9.
10209
10210Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
10211
10212 * cplus-dem.c (demangle_qualified): accept optional '_' between
10213 qualified name. This is baecause the template name may end with
10214 numeric and can mixed up with the length of next qualified name.
10215
10216Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
10217
10218 * config/mt-sunos4: Use our standard location for cross-includes
10219 and cross-libs when the target is also a "host" environment (ie no
10220 newlib; includes and such don't belong to us). This is specific
10221 to the Cygnus Support environment.
10222
10223Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10224
10225 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
10226 xxx<ch=81>.
10227
10228Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
10229
10230 * cplus-dem.c (main): flush stdout to make pipe work.
10231
10232Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10233
10234 * config.table (*-*-cxux7*): Recognize.
10235 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
10236 Harris-specific float format.
10237 * config/mh-cxux7: New file.
10238
10239Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10240
10241 * cplus-dem.c (demangle_template): Make sure that the result of
10242 consume_count doesn't index beyond the end of the string.
10243
10244Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10245
10246 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
10247 earlier. Improve test for new vtable mangling. Change output back
10248 to `virtual table'.
10249
10250Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10251
10252 * obstack.c: Always compile this code, even if using the GNU
10253 library. Avoids problems with relatively recent binary
10254 incompatibility.
10255
10256Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10257
10258 * cplus-dem.c: Include libiberty.h.
10259 (xmalloc, xrealloc, free): Don't declare.
10260 (strstr): Don't declare parameters.
10261 (xmalloc, xrealloc): Don't define.
10262 (long_options): Add no-strip-underscores.
10263 (main): Call xmalloc_set_program_name. Pass n in short options to
10264 getopt_long. Handle option 'n' to not strip underscores.
10265 (usage): Mention -n and --no-strip-underscores.
10266
10267Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
10268
10269 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
10270 space.
10271 (gnu_special): Demangle template and qualified names in a vtable name.
10272
10273Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10274
10275 From gas-2.3 and binutils-2.4 net releases:
10276
10277 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
10278
10279 * makefile.dos: [new] Makefile for dos/go32
10280 * configure.bat: update for latest files
10281 * msdos.c: remove some functions now in libc.a
10282
10283Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
10284
10285 * cplus-dem.c (gnu_special): Recognize thunks, as well as
10286 the new naming style for vtables (when -fvtable-thunks).
10287
10288Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10289
10290 * Makefile.in (XTRAFLAGS): Don't define.
10291 (.c.o, dummy.o): Don't use XTRAFLAGS.
10292 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
10293
10294Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10295
10296 * vasprintf.c: New file.
10297 * Makefile.in, functions.def: Add it.
10298
10299Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
10300
10301 * cplus-dem.c (demangle_fund_type): Grok bool.
10302
10303Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
10304
10305 * config.table: Add go32
10306 * config/mh-go32: New template.
10307
10308Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
10309
10310 * config.table, config/mt-sunos4: config for when sun4 is cross target.
10311
10312Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10313
10314 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10315 Declare strlen to return int. Don't include stddef.h.
10316
10317Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
10318
10319 * getopt.c: Delete use of IN_GCC to control whether
10320 stddef.h or gstddef.h is included.
10321
10322Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
10323
10324 * cplus-dem.c (demangle_signature): Fix a bug in template function
10325 type numbering.
10326
10327Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
10328
10329 * cplus-dem.c (demangle_signature): Fix template function with arm
10330 style argument type number, Tn.
10331
10332Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
10333
10334 * cplus-dem.c (optable): Add new[] and delete[].
10335
10336Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10337
10338 * argv.c (buildargv): Don't produce empty argument just because
10339 there is trailing whitespace.
10340
10341Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10342
10343 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
10344 Handle 'p' same as 'P'.
10345 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
10346
10347Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10348
10349 * floatformat.c (get_field, put_field): Fix off by one error in
10350 little endian case.
10351
10352Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10353
10354 * floatformat.c (floatformat_from_double): Pass unsigned char *,
10355 not char *, to put_field.
10356
10357Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10358
10359 * memmove.c: Re-wrote; placed in public domain.
10360
10361Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10362
10363 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10364 __Q* as a constructor.
10365
10366Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
10367
10368 * ieee-float.c: Removed; no longer used.
10369 * Makefile.in: Changed accordingly.
10370
10371Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10372
10373 * floatformat.c (get_field): Removed unused local variable i.
10374 (put_field): Removed unused local variable i.
10375
10376Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10377
10378 * floatformat.c: New file, intended to replace ieee-float.c.
10379 * Makefile.in: Change accordingly.
10380
10381Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10382
10383 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
10384 (_getopt_initialize): New function, broken out of _getopt_internal.
10385 (_getopt_internal):
10386 If long_only and the ARGV-element has the form "-f", where f is
10387 a valid short option, don't consider it an abbreviated form of
10388 a long option that starts with f. Otherwise there would be no
10389 way to give the -f short option.
10390
10391Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10392
10393 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10394 Test just __STDC__, not emacs.
10395
10396Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10397
10398 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10399 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
10400
10401Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10402
10403 * getopt.c (_NO_PROTO): Define before config.h is included.
10404
10405Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10406
10407 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
10408 <config.h> only under these, else "config.h".
10409
10410Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10411
10412 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10413 <config.h> instead of "config.h".
10414
10415Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
10416
10417 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10418 whether to use prototypes or not.
10419 * strerror.c (const): Never undefine; let ansidecl.h handle it.
10420 * strsignal.c (const): Likewise.
10421
10422Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10423
10424 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10425 Merging common and initialized variables need not be supported by
10426 ANSI C compilers.
10427 (xatexit): Initialize _xexit_cleanup if not already set.
10428 * xexit.c: Comment fix.
10429
10430Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10431
10432 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10433 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10434 assuming that realloc works correctly.
10435
10436Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10437
10438 * concat.c, ieee-float.c: Replace inclusion of <string.h>
10439 with explicit function declarations, as recommended by Ian Taylor.
10440
10441Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10442
10443 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10444 (malloc, realloc): Declare.
10445
10446Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10447
10448 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10449 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10450 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10451 * xmalloc.c: Likewise.
10452 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
10453 macros, not <varargs.h> macros.
10454 * spaces.c (spaces): Make return type const. Don't crash if
10455 malloc returns NULL.
10456 * strerror.c (struct error_info): Make name and msg fields const.
10457 (error_names): Make const.
10458 (strerrno): Make const.
10459 (strtoerrno): Make argument const.
10460 * strsignal.c (struct signal_info): Make name and msg fields
10461 const.
10462 (signal_names, sys_siglist): Make const.
10463 (strsignal, strsigno): Make const.
10464 (strtosigno): Make argument const.
10465 * xatexit.c: Declare parameter types.
10466 * xmalloc.c (name): Make const.
10467 (xmalloc_set_program_name): Make argument const.
10468 * Makefile.in (INCDIR): Define.
10469 (.c.o): Use $(INCDIR).
10470 (dummy.o): Likewise.
10471 (argv.o, basename.o): New targets; depend on libiberty.h.
10472 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10473 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10474 (xmalloc.o): Likewise.
10475 (cplus-dem.o): New target; depend on demangle.h.
10476 (getopt.o, getopt1.o): New targets; depend on getopt.h.
10477 (ieee-float.o): New target; depend on ieee-float.h.
10478 (obstack.o): New target; depend on obstack.h.
10479
10480Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10481
10482 Handle obstack_chunk_alloc returning NULL. This allows
10483 obstacks to be used by libraries, without forcing them
10484 to call exit or longjmp.
10485 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10486 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10487 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10488
10489Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10490
10491 * concat.c, ieee-float.c: Include <string.h>.
10492
10493Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10494
10495 * xmalloc.c (xmalloc_set_program_name): New function.
10496 (xmalloc, xrealloc): Include the name in the error message, if set.
10497
10498 * Replace atexit.c with xatexit.c.
10499 * Makefile.in (CFILES), functions.def: Change references.
10500
10501Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10502
10503 * getruntime.c (get_run_time): Use getrusage or times if
10504 HAVE_GETRUSAGE or HAVE_TIMES are defined.
10505
10506Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10507
10508 * atexit.c: New file.
10509 * Makefile.in (CFILES), functions.def: Add it.
10510 * xexit.c: New file.
10511 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10512 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10513 Change request for 0 bytes into request for 1 byte.
10514
10515Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10516
10517 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10518 unsigned long, to avoid warnings.
10519
10520Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10521
10522 * dummy.c: Don't include time.h ever; always define clock_t as
10523 "unsigned long". Until gcc/fixincludes ensures that clock_t
10524 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
10525 exist, clock_t probably doesn't either.
10526
10527Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
10528
10529 * clock.c, getruntime.c: New files.
10530 * Makefile.in: Add to file lists.
10531 * functions.def (clock): Add to list.
10532 * dummy.c (time.h): Add if __STDC__.
10533 (clock_t): #define as "unsigned long" if not __STDC__.
10534
10535Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10536
10537 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
10538 Edler).
10539
10540Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10541
10542 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10543 linking.
10544
10545Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10546
10547 * cplus-dem.c (demangle_arm_pt): New function. Common code
10548 for ARM template demangling.
10549 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10550 * cplus-dem.c (demangle_prefix): Likewise.
10551
10552Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10553
10554 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10555
10556Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10557
10558 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10559 * strerror.c, strsignal.c: As a small space optimization, don't
10560 include messages when they aren't actually used.
10561
10562 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10563 * cplus-dem.c (demangle_prefix, demangle_function_name,
10564 cplus_demangle_opname): Fixes for systems where cplus_marker
10565 is something other than '$'.
10566
10567Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10568
10569 * waitpid.c: Simple-minded approcimation to waitpid
10570 using vanilla wait.
10571 * functions.def, Makefile.in: Update accordingly,
10572
10573Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10574
10575 * cplus-dem.c(demangle_template): fix bug template instantiation
10576 with value of user defined type.
10577
10578Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10579
10580 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10581 to support unified search of operator in class.
10582
10583Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10584
10585 gcc -Wall lint:
10586 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10587 "digit = *s" as condition in while loop.
10588
10589Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10590
10591 * Makefile.in: pass SHELL to recursive make
10592
10593Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10594
10595 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10596 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10597
10598Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10599
10600 * config.table: Make *-*-hiux* use mh-hpux.
10601
10602Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10603
10604 * config.table: Add * to end of all OS names.
10605
10606Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10607
10608 * Makefile.in (lneeded-list): ensure that object file names are
10609 not duplicated, as multiple instances of the same object file in
10610 a library causes problems on some machines
10611
10612Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10613
10614 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10615
10616Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10617
10618 * strncasecmp.c: new file, implements strncasecmp
10619 * strcasecmp.c: new file, implement strcasecmp
10620
10621 * Makefile.in (CFILES): list these two new source files
10622
10623 * functions.def: add strcasecmp and strncasecmp entries
10624
10625Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10626
10627 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10628 according to ANSI C.
10629
10630Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10631
10632 * cplus-dem.c: add support of ARM global constructor/destructor,
10633 and 'G' for passing record or union in parameter.
10634
10635Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10636
10637 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10638 should not be in functions.def.
10639
10640Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10641
10642 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10643 not be in functions.def.
10644
10645Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10646
10647 * cplus-dem.c: change globl constructor/destructor to proper name
10648
10649Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10650
10651 * cplus-dem.c: fix bug in constructor/destructor
10652
10653Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10654
10655 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10656
10657Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10658
10659 * cplus-dem.c: Fix demangle_template prototype
10660
10661Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10662
10663 * cplus-dem.c: fix template demangling
10664 * cplus-dem.c: fix const type demangling
10665 * cplus-dem.c: fix constructor/destructor, virtual table,
10666 qualifier, global constructor/destructor demangling
10667
10668Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10669
10670 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10671 keep gcc -Wall happy.
10672
10673Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10674
10675 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10676 patch.
10677
10678Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10679
10680 Patch from Paul Flinders:
10681 * cplus-dem.c (do_type): Deal with arrays.
10682
10683Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10684
10685 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10686 than 9 classes.
10687
10688Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10689
10690 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10691 not initialized" warnings under HP/UX
10692
10693Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10694
10695 * strerror.c: Move include of stdio.h after sys_errlist #define.
10696 Also remove NULL definition (stdio.h always defines NULL, so it
10697 never did anything but clutter up the code).
10698
10699Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10700
10701 * Makefile.in, functions.def: handle xmalloc.c
10702
10703 * xmalloc.c: provide xmalloc and xrealloc functions
10704
10705Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10706
10707 * cplus-dem.c: Fix a comment.
10708
10709Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10710
10711 * getopt1.c: Declare const the way getopt.c does.
10712
10713Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10714
10715 * obstack.c, alloca.c: Update from FSF.
10716 * getopt.c, getopt1.c: Update to current FSF version, which
10717 doesn't use alloca.
10718
10719Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10720
10721 * Makefile.in (demangle): Add the target with a message saying
10722 where demangle went.
10723
10724Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10725
10726 * Makefile.in: Remove obsolete `demangle' target.
10727
10728Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10729
10730 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10731 avoid infinite loop on vtbl symbols with disambiguating "junk"
10732 tacked on the end.
10733
10734Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10735
10736 * strsignal.c: work around some systems losing definitions of
10737 sys_siglist
10738
10739 * config/mh-lynxos: this system has a losing definition of
10740 sys_siglist
10741
10742 * config.table: use mh-lynxos for *-*-lynxos
10743
10744Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10745
10746 * config.table: Add support for HPPA BSD hosts.
10747
10748 * config/mh-hpbsd: New file.
10749
10750Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10751
10752 * Makefile.in (TAGS): make work when srcdir != objdir.
10753
10754Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10755
10756 * cplus-dem.c (main): Add long options, including --help and
10757 --version.
10758 (usage): New function from code in main.
10759
10760Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10761
10762 * config.table: New shell scipt, sourced by both ./configure,in
10763 and ../xiberty/configure.in, to avoid maintainance lossages.
10764 * configure.in and ../xiberty/configure.in: Use config.table.
10765
10766 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10767 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10768 * ../xiberty/configure.in: Update from ./configure.in.
10769
10770Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10771
10772 * Makefile.in: remove parentdir support
10773
10774Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10775
10776 * cplus-dem.c (xrealloc): Match definition with prototype.
10777
10778Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10779
10780 * cplus-dem.c (demangle_prefix): Demangle cfront
10781 local variables as an extension to ARM demangling.
10782
10783Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10784
10785 * ieee-float.c: Don't require pointers to double to be aligned.
10786
10787Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10788
10789 (merge changes from dlong@cse.ucsc.edu)
10790 * cplus-dem.c (consume_count): Simplify.
10791 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10792 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10793
10794 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10795 full prototypes.
10796 * cplus-dem.c (free): Add prototype.
10797 * cplus-dem.c (optable): Fully bracketize initializer.
10798
10799Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10800
10801 * cplus-dem.c: Whether initial underscores are stripped
10802 depends on the external variable prepends_underscore
10803 (which is generated by the binutils Makefile).
10804
10805Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10806
10807 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10808
10809Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10810
10811 * cplus-dem.c (consume_count): Return zero if arg does not
10812 start with digit, and don't consume any input.
10813
10814Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10815
10816 * Makefile.in (demangle): Use ${srcdir} not $^.
10817
10818 * strtod.c: New file, needed at least for BSD 4.3.
10819
10820Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10821
10822 * strsignal.c (sys_siglist): For ANSI compilations, type is
10823 "const char *const". Also remove conditionalization on __STDC__
10824 since const is defined away for non-ANSI.
10825
10826Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10827
10828 * configure.in: Recognize *-*-hpux.
10829 * config/mh-hpux: New file.
10830
10831Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10832
10833 * tmpnam.c: Added ANSI tmpnam() function.
10834 * functions.def, Makefile.in: Update accordingly.
10835
10836Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10837
10838 * cplus-dem.c (demangle_function_name): Get the demangling of
10839 stop__1A right.
10840
10841Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10842
10843 * cplus-dem.c: Declare strstr return type.
10844
10845Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10846
10847 * strsignal.c: Add some AIX signals.
10848
10849Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10850
10851 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10852
10853Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10854
10855 * Makefile.in: add installcheck & dvi targets
10856
10857Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10858
10859 * ieee-float.c: New file, moved from ../gdb (since it is
10860 needed by ../opcode/m68k-dis.c).
10861
10862Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10863
10864 * cplus-dem.c: Replace all references to cfront with ARM.
10865
10866Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10867
10868 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10869 to be more useful as a filter.
10870
10871Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10872
10873 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10874 destination directory before running $(RANLIB), in case that
10875 program tries to create a file in the current directory as part of
10876 its work.
10877
10878Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
10879
10880 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
10881 because BSD 4.4 lacks one. Isn't this fun?
10882
10883Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
10884
10885 * cplus-dem.c (demangle_signature): Set func_done after
10886 demangling a template.
10887 * cplus-dem.c (demangle_template): Fix several small bugs
10888 in demangling GNU style templates.
10889 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
10890 style constructors.
10891 * cplus-dem.c (gnu_special): Fix for templates in GNU style
10892 static data members.
10893
10894Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
10895
10896 * cplus-dem.c (demangle_signature): Modify to include type
10897 modifiers like static and const in remembered types.
10898
10899Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
10900
10901 * cplus-dem.c (demangled_qualified): Add new parameter that tells
10902 whether to prepend or append the qualifiers.
10903 * cplus-dem.c (string_prepends): Used now, remove #if 0.
10904 * cplus-dem.c (demangle_signature): Call demangle_qualified
10905 with prepending.
10906 * cplus-dem.c (gnu_special): Recognize static data members that
10907 use qualified names.
10908 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
10909 temporary buffer and the prepend or append them to the result,
10910 as specified by the new "append" flag.
10911 * cplus-dem.c (do_type): Call demangled_qualified with
10912 appending.
10913
10914Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
10915
10916 * strsignal.c (signal_table): Now const.
10917 (init_signal_tables): Variable eip now points to const.
10918
10919 * strerror.c (error_table): Now const.
10920 (init_error_tables): Variable eip now points to const.
10921
10922Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
10923
10924 * memchr.c (memchr): New (ANSI standard) function.
10925 * Makefile.in, functions.def: Added memchr.
10926 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10927
10928Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10929
10930 * getopt.c: remove use of USG around <alloca.h>, which never meant
10931 anything anyway
10932
10933 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10934 of USG and USGr4
10935
10936Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
10937
10938 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10939 it's now a type according to the ANSI X3J16 working paper; output
10940 "wchar_t" for it.
10941 (demangle_template): Accept `w' as an integral type.
10942 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
10943 counterparts malloc and realloc to `char *'.
10944 (main): Exit with a 0 status.
10945 * Makefile.in (demangle): Don't expect the user to define
10946 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
10947 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
10948
10949Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
10950
10951 * Makefile.in (AR_FLAGS): Avoid verbosity.
10952 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
10953 replace USGr4 with HAVE_SYSCONF.
10954 * config/mh-solaris: Remove; mh-sysv4 works now.
10955 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
10956 * configure.in: Simplify host matching table, remove separate
10957 solaris config file.
10958
10959Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10960
10961 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10962
10963Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
10964
10965 * cplus-dem.c (xmalloc, xrealloc): Add decls.
10966 (remember_type): Don't cast xmalloc.
10967 (string_need): Likewise; don't cast xrealloc either.
10968
10969Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
10970
10971 * Makefile.in, functions.defs, rename.c: added simple
10972 implementation of rename, since some binutils programs use it.
10973
10974Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
10975
10976 * strsignal.c: Add appropriate 'const' to sys_siglist
10977 extern declaration (if __STDC__). (Needed for Linux.)
10978 * strsignal.c (strsignal): Add cast to remove const-ness.
10979
10980Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
10981
10982 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
10983 before "'s, diagnosed by BSD 4.4 awk.
10984
10985Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
10986
10987 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
10988 and $(NEEDED_LIST), to give some hooks for xiberty.
10989
10990Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10991
10992 * configure.in: use cpu-vendor-triple instead of nested cases
10993
10994Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10995
10996 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
10997 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
10998 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
10999 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
11000 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
11001 Convert from using GPL to LGPL.
11002
11003Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
11004
11005 * Makefile.in (errors): Leave dummy.o and dummy around so that
11006 we can see how the needed list was generated (it's sometimes wrong).
11007 (mostlyclean): Remove them.
11008
11009Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
11010
11011 * getcwd.c: supply a default if MAXPATHLEN is not defined.
11012
11013 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
11014
11015Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
11016
11017 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
11018 when cross-compiling.
11019
11020Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
11021
11022 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
11023 as a time optimization.
11024
11025 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
11026 be more expensive than simply demangling.
11027
11028 * cplus-dem.c (cplus_match): new function.
11029
11030Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
11031
11032 * cplus-dem.c: #include <stdio.h>, to define NULL.
11033 Define current_demangling_style.
11034
11035Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
11036
11037 * cplus-dem.c: New file, moved from ../gdb.
11038 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
11039 function, to avoid compiling in target-dependency for CPLUS_MARKER.
11040 * cplus-dem.c (cplus_demangle): Allow demangling style option
11041 to be passed as a parameter, but using the global variable
11042 current_demangling_style as a default.
11043 * Makefile.in: Update for cplus-dem.c
11044
11045Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
11046
11047 * obstack.c: Merge in comment changes from FSF version. Now
11048 matches the FSF version exactly.
11049
11050Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
11051
11052 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
11053 least on losing DECstations!); use if-then-else instead.
11054
11055Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
11056
11057 * Makefile.in: always create installation directories.
11058
11059Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11060
11061 * Makefile.in: clean up definition of CFILES, more comments
11062
11063Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
11064
11065 * getopt.c (my_index): Make first arg const to match strchr,
11066 which it sometimes is remapped to.
11067
11068Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
11069
11070 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
11071 * obstack.c (_obstack_begin): Initialize use_extra_arg.
11072 * obstack.c (_obstack_begin_1): New, from FSF version.
11073
11074Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
11075
11076 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
11077 extra_arg.
11078 * obstack.c (_obstack_begin): Remove area_id and flags arguments
11079 (previously added for mmalloc support, interface has changed).
11080 Also convert flags usage to use use_extra_arg and maybe_empty_object.
11081
11082Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
11083
11084 * argv.c: Move expandargv inline and eliminate static variables.
11085 Rewrite to always allocate in powers of two. Fix to return an
11086 argv with a single null string arg if passed a null string.
11087
11088Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
11089
11090 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
11091 "(void)" casts from function calls where the return value is
11092 ignored, in accordance with GNU coding standards.
11093
11094Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
11095
11096 * bcopy.c, strerror.c, strsignal.c: Lint.
11097
11098Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11099
11100 * getopt.c: merge changes from make.
11101
11102Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
11103
11104 * alloca.c: Incorporate fixes from gdb/alloca.c.
11105 FIXME: Eventually move gdb's alloca configuration files here,
11106 and remove gdb/alloca.c and its Makefile.in support.
11107
11108Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
11109
11110 * dummy.c: Define NOTHING to /*nothing*/, change return type
11111 of main to int and return zero.
11112 * functions.def: Supply NOTHING as the fourth arg to macros
11113 that don't have an explicit arg, to satisfy picky preprocessors.
11114
11115Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
11116
11117 * Makefile.in: Clean up *clean rules, as per standards.texi.
11118
11119Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11120
11121 * getopt.c, getopt1.c: merged largely gratuitous, mostly
11122 whitespace diffs from other prep distributions.
11123
11124Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
11125
11126 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
11127 it is broken on ncr 3000's.
11128
11129Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
11130
11131 * sigsetmask.c: Rewrite. Old one was very confused about its
11132 arguments and result. New one can't do much, but at least knows
11133 what it can't do, and it's good enough for GDB's use.
11134
11135Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
11136
11137 * functions.def: Use proper prototype for strtoul.
11138
11139Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
11140
11141 * Makefile.in: Add random.c.
11142 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
11143 * configure.in: update solaris2 config.
11144
11145Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
11146
11147 * random.c: Add for random() and srandom().
11148 * functions.def: Add random
11149
11150Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
11151
11152 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
11153 using /usr/ucb/install.
11154
11155Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
11156
11157 * strerror.c: Kludge to guard against a conflict with
11158 possible declaration of sys_errlist in errno.h.
11159
11160Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
11161
11162 * configure.in, config/mh-solaris: add solaris2 config support.
11163
11164Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11165
11166 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
11167 is not defined (should be defined in signal.h, says Posix.).
11168
11169Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
11170
11171 * getopt.c: merged changes from make-3.62.11.
11172
11173Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
11174
11175 * getopt.c: merged changes from bison-1.18.
11176
11177Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
11178
11179 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
11180 since that introduces a circular dependency.
11181 ($(EXTRA_OFILES) are used to build config.h.)
11182
11183 * strtoul.c: Fixes to handle non-decimal bases better.
11184
11185Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
11186
11187 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
11188 * Makefile.dos: Finish MINUS_G eradication.
11189 * Makefile.in (CFILES): Add strsignal.c.
11190 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
11191 * Makefile.in (needed-list): Split creation of errors file to
11192 separate make target.
11193 * Makefile.in (config.h, needed2.awk, errors): New targets.
11194 * Makefile.in (clean): Split to multiple lines, add needed2.awk
11195 and config.h.
11196 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
11197 * functions.def (strerror): Remove from optional list.
11198 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
11199 * functions.def (strerror, psignal): DEFFUNC's
11200 * strerror.c: Rewrite from scratch to use sys_errlist only if
11201 available, add errno_max(), add strerrno(), add strtoerrno(),
11202 add test driver.
11203 * strsignal.c: New file, signal equivalent to strerror.c.
11204 Uses sys_siglist if available, defines signo_max(), strsignal(),
11205 strsigno(), strtosigno(), psignal(), and test driver.
11206
11207Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
11208
11209 * Makefile.in: do not print recursion line.
11210
11211 * Makefile.in: allow CFLAGS to be passed in from command line.
11212 Removed MINUS_G. Default CFLAGS to -g.
11213
11214Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
11215
11216 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
11217 so libg++ users don't have to be inconvenienced by a
11218 libc.a bug (libc.a needs copysign, but doesn't define it!).
11219 * configure.in: Use config/mh-aix.
11220 * strtoul.c: Handle '-' as required by ANSI.
11221 Clean up radix handling.
11222 * strstr.c: Fix buggy algorithm.
11223 * Makefile.in: Change so that ${EXTRA_OFILES} is
11224 appended to needed-list (which is used by libg++).
11225
11226Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
11227
11228 * configure.in: Recognize new ncr3000 config.
11229 * config/mh-ncr3000: New config file.
11230
11231Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
11232
11233 * argv.c, dummy.c: Lint.
11234
11235Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
11236
11237 * config/mh-sysv4: New config file.
11238 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
11239 host_os == sysv4.
11240 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
11241 pagesize.
11242
11243Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
11244
11245 * getopt.c: Lint.
11246
11247Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
11248
11249 * functions.def (alloca): Fix return type and args to avoid
11250 type clash with gcc's builtin alloca.
11251
11252Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
11253
11254 * configure.in, config/mh-irix4: irix4 support.
11255
11256 * Makefile.in, functions.def, alloca.c: added alloca.
11257
11258Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
11259
11260 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
11261
11262Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
11263
11264 * argv.c: Fix various external function definitions to be
11265 correct in an ANSI compilation environment.
11266
11267Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
11268
11269 * obstack.c: Changes to support calling mmalloc functions,
11270 which take an additional argument over malloc functions.
11271
11272Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
11273
11274 * added check target.
11275
11276Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
11277
11278 * argv.c: #include alloca-conf.h (needed by AIX).
11279
11280Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
11281
11282 * Makefile.in, configure.in: removed traces of namesubdir,
11283 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11284 copyrights to '92, changed some from Cygnus to FSF.
11285
11286Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
11287
11288 * argv.c: Check in Fred's version which fixes problems with
11289 alloca().
11290
11291Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
11292
11293 * makefile.dos: Remove NUL to keep patch from failing.
11294
11295Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
11296
11297 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
11298
11299Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
11300
11301 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
11302
11303Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
11304
11305 * argv.c: New file to build and destroy standard argument
11306 vectors from a command string.
11307
11308 * Makefile.in: Add argv.c and argv.o to appropriate macros.
11309
11310Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
11311
11312 * configure.in: Change svr4 references to sysv4.
11313
11314 * rindex.c: Declare return type of externally used function
11315 strrchr().
11316
11317Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
11318
11319 * Makefile.in: Remove "***" in normal output, since Make produces
11320 this on errors, and it's convenient to search for.
11321
11322Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
11323
11324 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
11325 New ANSI functions. The old non-ANSI functions (such as bcopy)
11326 should be avoided.
11327 * bcopy.c: Fix to correctly handle overlapping regions.
11328 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
11329 * functions.def: Add the new functions.
11330 * functions.def: Add 4th parameter to DEF macro,
11331 an ansidecl.h-style prototype.
11332 * dummy.c: Use expanded DEF macro to create a dummy function
11333 call, with correct parameter types. (This avoids some
11334 complaints from gcc about predefined builtins.)
11335
11336 Move the functionality of config/mh-default into Makefile.in.
11337 This avoid duplication, and simplifies things slightly.
11338 * Makefile.in: Tweak so we don't need config/mh-default.
11339 * README: Update.
11340 * configure.in: No longer need config/mh-default.
11341 * config/mh-default: Deleted.
11342 * config/mh-sysv: Remove lines copied from old mh-default.
11343
11344Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
11345
11346 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
11347 'mknod' device numbers.
11348
11349Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
11350
11351 * fdmatch.c, Makefile.in: Add new function that takes two
11352 open file descriptors and returns nonzero if they refer to
11353 the same file, zero otherwise. (used in gdb)
11354
11355Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11356 From DJ:
11357 * msdos.c: stub functions for dos.
11358 * makefile.dos, configdj.bat: new.
11359 * getopt.c: Don't include alloca-conf.h in a GO32 world.
11360
11361
11362Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11363
11364 * Makefile.in: infodir belongs in datadir.
11365
11366Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11367
11368 * Makefile.in: remove spaces following hyphens because bsd make
11369 can't cope. added standards.text support. install using
11370 INSTALL_DATA.
11371
11372 * configure.in: remove commontargets as it is no longer a
11373 recognized hook.
11374
11375Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11376
11377 * Makefile.in: idestdir and ddestdir go away. Added copyrights
11378 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11379 and mandir now keyed off datadir by default.
11380
11381Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
11382
11383 * Makefile.in: find-needed.awk does not fit in 14 chars.
11384
11385 * Makefile.in: Suppress error checking when compiling the test
11386 program, because Ultrix make/sh aborts there due to a bug.
11387
11388Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
11389
11390 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
11391 * README: Explained how the auto-configuration works,
11392 and how to add new files and/or configurations.
11393
11394Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
11395
11396 * strtoul.c: Avoid defining ULONG_MAX if already defined;
11397 cast a const char * to char * for pedants.
11398
11399 * getopt.c: Only define "const" after local include files get to,
11400 and only if they haven't defined it.
11401
11402Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
11403
11404 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
11405 emulate it with getwd() if available. This avoids callers having
11406 to find a MAXPATHLEN or PATH_MAX value from somewhere.
11407 * Makefile.in, functions.def: getwd->getcwd.
11408 * configure.in: Use generic case for every system.
11409 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
11410 * config/mh-sysv: Use default handling, just add -DUSG.
11411
11412Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
11413
11414 * Makefile.in, config/mh-default: Re-do make magic
11415 so that for the default ("automatic") mode we only
11416 compile the files we actually need. Do this using
11417 a recursive make: The top-level generates the list
11418 of needed files (loosely, the ones missing in libc),
11419 and then passes that list to the recursive make.
11420 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
11421
11422Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
11423
11424 RS/6000 host support (grumble).
11425
11426 * configure.in: Build alloca-conf.h file from alloca-norm.h
11427 (everything else) or alloca-botch.h (rs/6000).
11428 * Makefile.in: Include . on the include path.
11429 * getopt.c: Use alloca-conf.h.
11430 * alloca-norm.h: How to declare alloca on reasonable machines.
11431 * alloca-botch.h: How to declare alloca on braindead machines.
11432
11433Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
11434
11435 * concat.c : New file, like concat() in gdb but can take a
11436 variable number of arguments rather than fixed at 3 args. For
11437 now, client applications must supply an xmalloc(), which is a
11438 front end function to malloc() that deals with out-of-memory
11439 conditions.
11440
11441 * Makefile.in: Add concat.c and concat.o to appropriate macros.
11442
11443Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
11444
11445 * config/mh-svr4: Add sigsetmask to list of required functions.
11446
11447Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
11448
11449 * vsprintf.c: New file.
11450 * functions.def, Makefile.in: Add vsprintf.
11451
11452Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
11453
11454 * configure.in, config/mh-rs6000: Add rs/6000 host support.
11455 * Makefile.in: Compile with debug info.
11456
11457Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
11458
11459 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11460 config/mf-default: Added a default configuration mode,
11461 which includes into libiberty.a functions that are "missing" in libc.
11462 * strdup.c, vprintf.c, vfprintf.c: New files.
11463
11464Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
11465
11466 * config/hmake-svr4: New file.
11467
11468 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11469
11470 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11471 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11472 files containing either portable C versions or emulations using
11473 native library calls.
11474
11475 * strerror.c: Add copyright, internal documentation, etc.
11476
11477 * strtol.c: Replace hardwired hex constants with some more
11478 portable macros. Remove illegal (according to gcc) cast.
11479
11480 * strtoul.c: Replace hardwired hex constant with more portable
11481 macro.
11482
11483 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11484 can override them. Add new source and object file names to CFILES
11485 and OFILES respectively.
11486
11487 * configure.in: Add support for SVR4 makefile fragments.
11488
11489Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
11490
11491 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11492 over-ridden by config/hmake-*
11493 * configure.in: added m88kcvs to sysv list
11494
11495Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
11496
11497 * Makefile.in: Most hosts need strerror, but one or two don't,
11498 and they override these definitions in the host-dependent makefile
11499 fragment.
11500 * config/hmake-mach: The odd man out on strerror -- it's supplied.
11501 * strerror.c: New file.
11502
11503 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
11504 it and bfd uses it.
11505 * configure.in, Makefile.in, config/hmake-mach: Only configure
11506 strtol & strotoul in on Mach.
11507
11508Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
11509
11510 * obstack.c: Merge with latest FSF version.
11511
11512\f
11513Local Variables:
11514version-control: never
11515End: