]> git.ipfire.org Git - thirdparty/gcc.git/blame_incremental - libiberty/ChangeLog
libgcc: Dont use TARGET_SYSTEM_ROOT from gcc
[thirdparty/gcc.git] / libiberty / ChangeLog
... / ...
CommitLineData
12025-11-30 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * simple-object-mach-o.c
4 (simple_object_mach_o_segment): Handle non-LTO sections.
5
62025-11-06 Peter Damianov <peter0x44@disroot.org>
7
8 PR target/122472
9 * simple-object-coff.c (struct external_filehdr_bigobj): New
10 structure for BigObj file header.
11 (bigobj_magic): New constant for BigObj magic bytes.
12 (struct external_syment_bigobj): New structure for BigObj
13 20-byte symbol table entries.
14 (union external_auxent_bigobj): New union for BigObj 20-byte
15 auxiliary symbol entries.
16 (struct simple_object_coff_read): Add is_bigobj flag and make
17 nscns 32-bit to support both formats.
18 (struct simple_object_coff_attributes): Add is_bigobj flag.
19 (simple_object_coff_match): Add BigObj format detection.
20 (simple_object_coff_read_strtab): Use format-specific symbol
21 size when calculating string table offset.
22 (simple_object_coff_attributes_merge): Check is_bigobj flag.
23 (simple_object_coff_write_filehdr_bigobj): New function.
24 (simple_object_coff_write_to_file): Add logic for writing
25 BigObj vs regular COFF format with appropriate symbol
26 and auxiliary entry structures.
27
282025-11-03 Sam James <sam@gentoo.org>
29
30 * configure: Regenerate.
31
322025-10-02 H.J. Lu <hjl.tools@gmail.com>
33
34 * aclocal.m4: Regenerated.
35 * configure: Likewise.
36 * configure.ac: Synced from binutils-gdb.
37
382025-08-17 Nathaniel Shead <nathanieloshead@gmail.com>
39
40 PR c++/120503
41 PR c++/120824
42 * cp-demangle.c (d_unnamed_enum): New function.
43 (d_unqualified_name): Call it.
44 (cplus_demangle_type): Handle unscoped unnamed types
45 (Ue, Ul, etc.)
46 (d_count_templates_scopes): Handle unnamed enums.
47 (d_find_pack): Likewise.
48 (d_print_comp_inner): Print unnamed enums.
49 * testsuite/demangle-expected: Add tests.
50
512025-08-13 Jakub Jelinek <jakub@redhat.com>
52
53 * cp-demangle.c (d_encoding): Fix a comment typo, whaever -> whatever.
54
552025-08-06 Matthieu Longo <matthieu.longo@arm.com>
56
57 * testsuite/test-doubly-linked-list.c: disable debug logging on
58 stdout.
59
602025-07-09 Matthieu Longo <matthieu.longo@arm.com>
61
62 * Makefile.in: Add new header.
63 * testsuite/Makefile.in: Add new test.
64 * testsuite/test-doubly-linked-list.c: New test.
65
662025-05-13 Andreas Schwab <schwab@suse.de>
67
68 * regex.c (regex_compile): Don't write beyond array bounds when
69 collecting range expression.
70
712025-03-29 Iain Sandoe <iain@sandoe.co.uk>
72
73 PR cobol/119283
74 * Makefile.in: Add memrchr build rules.
75 * config.in: Regenerate.
76 * configure: Regenerate.
77 * configure.ac: Check for memrchr.
78 * functions.texi: Document memrchr.
79 * memrchr.c: New file.
80
812025-03-25 Iain Sandoe <iain@sandoe.co.uk>
82
83 PR other/119218
84 * config.in: Regenerate.
85 * configure: Regenerate.
86 * configure.ac: Append <libgen.h> to AC_INCLUDES_DEFAULT
87 when checking for the 'basename' decl.
88
892025-03-18 Jose E. Marchesi <jose.marchesi@oracle.com>
90
91 * ldirname.c: New file.
92 * Makefile.in (CFILES): Add ldirname.c.
93 (REQUIRED_OFILES): Add ldirname.$(objext).
94 (./ldirname.$(objext)): New rule.
95 * makefile.vms (OBJS): Add ldirname.obj.
96 * configure.com (FILES): Add ldirname.
97
982024-12-11 Matthieu Longo <matthieu.longo@arm.com>
99
100 * configure: Regenerate.
101 * configure.ac: Fix autoupdate warnings.
102
1032024-12-11 Sangamesh Mallayya <swamy.sangamesh@gmail.com>
104
105 * getopt.c: Remove _NO_PROTO block
106
1072024-11-19 Evgeny Karpov <evgeny.karpov@microsoft.com>
108
109 * simple-object-coff.c: Add aarch64.
110
1112024-11-16 Andrew Pinski <quic_apinski@quicinc.com>
112
113 * testsuite/test-demangle.c (get_line): Change K&R style
114 definition into ANSI C90 definitions.
115 (fail): Likewise.
116 (main): Likewise.
117
1182024-10-31 Mark Wielaard <mark@klomp.org>
119
120 * cplus-dem.c: Change preceeded to preceded.
121
1222024-10-10 Simon Martin <simon@nasilyan.com>
123
124 * cp-demangle.c (d_dump): Fix compilation when CP_DEMANGLE_DEBUG
125 is defined.
126
1272024-09-07 Jakub Jelinek <jakub@redhat.com>
128
129 PR lto/116614
130 * simple-object-elf.c (SHN_COMMON): Align comment with neighbouring
131 comments.
132 (SHN_HIRESERVE): Use uppercase hex digits instead of lowercase for
133 consistency.
134 (simple_object_elf_find_sections): Formatting fixes.
135 (simple_object_elf_fetch_attributes): Likewise.
136 (simple_object_elf_attributes_merge): Likewise.
137 (simple_object_elf_start_write): Likewise.
138 (simple_object_elf_write_ehdr): Likewise.
139 (simple_object_elf_write_shdr): Likewise.
140 (simple_object_elf_write_to_file): Likewise.
141 (simple_object_elf_copy_lto_debug_section): Likewise. Don't fail for
142 new_i - 1 >= SHN_LORESERVE, instead arrange in that case to copy
143 over .symtab_shndx sections, though emit those last and compute their
144 section content when processing associated .symtab sections. Handle
145 simple_object_internal_read failure even in the .symtab_shndx reading
146 case.
147
1482024-08-05 Andrew Burgess <aburgess@redhat.com>
149
150 * argv.c (only_whitespace): Delete.
151
1522024-07-16 Andrew Burgess <aburgess@redhat.com>
153
154 * argv.c (buildargv): Treat input of only whitespace as an empty
155 argument list.
156 (expandargv): Remove work around for intput that is only
157 whitespace.
158 * testsuite/test-expandargv.c: Add new tests 10, 11, and 12.
159 Extend testing to call buildargv in more cases.
160
1612024-07-16 Andrew Burgess <aburgess@redhat.com>
162
163 * argv.c (buildargv): Backslashes within single quotes are
164 literal, backslashes only escape POSIX defined special characters
165 within double quotes, and backslashed newlines should act as line
166 continuations.
167 * testsuite/test-expandargv.c: Add new tests 7, 8, and 9.
168
1692024-04-02 Tom Tromey <tom@tromey.com>
170
171 * cplus-dem.c (cplus_demangle): Try the D demangler with
172 "auto" format.
173 * testsuite/d-demangle-expected: Add --format=auto test.
174
1752024-04-02 Jakub Jelinek <jakub@redhat.com>
176
177 * regex.c (byte_re_match_2_internal): Fix duplicated words in comment;
178 next next -> next.
179 * dyn-string.c (dyn_string_init): Fix duplicated words in comment;
180 of of -> of.
181
1822024-02-19 Iain Sandoe <iain@sandoe.co.uk>
183
184 PR other/113957
185 * pex-unix.c (pex_unix_exec_child): Set pid = -1 in the error
186 paths, since that is used to signal an erroneous outcome for
187 the routine.
188
1892024-02-15 Richard Biener <rguenther@suse.de>
190
191 * hashtab.c (iterative_hash): Remove TBAA violating handling
192 of aligned little-endian case in favor of just keeping the
193 aligned case special-cased. Use | for composing a larger word.
194
1952024-02-12 Jakub Jelinek <jakub@redhat.com>
196
197 * vprintf-support.c (libiberty_vprintf_buffer_size): Handle
198 properly l, ll, z, t or on _WIN32 I64 modifiers for diouxX
199 and L modifier for fFgGeE.
200
2012024-01-13 Jakub Jelinek <jakub@redhat.com>
202
203 * cp-demangle.c (FNQUAL_COMPONENT_CASE): Add case for
204 DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
205 (d_dump): Handle DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
206 (d_nested_name): Parse H after N in nested name.
207 (d_count_templates_scopes): Handle
208 DEMANGLE_COMPONENT_XOBJ_MEMBER_FUNCTION.
209 (d_print_mod): Likewise.
210 (d_print_function_type): Likewise.
211 * testsuite/demangle-expected: Add tests for explicit object
212 member functions.
213
2142023-12-05 Jakub Jelinek <jakub@redhat.com>
215
216 * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): Verify __get_cpuid and
217 __get_cpuid_count are not implicitly declared.
218 * configure: Regenerated.
219
2202023-12-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
221
222 * pex-unix.c (pex_unix_wait): Change return type to pid_t.
223
2242023-12-01 Jason Merrill <jason@redhat.com>
225
226 * cp-demangle.c (d_make_comp): Handle
227 DEMANGLE_COMPONENT_CONSTRAINTS.
228 (d_count_templates_scopes): Likewise.
229 (d_print_comp_inner): Likewise.
230 (d_maybe_constraints): New.
231 (d_encoding, d_template_args_1): Call it.
232 (d_parmlist): Handle 'Q'.
233 * testsuite/demangle-expected: Add some constraint tests.
234
2352023-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
236
237 * configure.ac (GCC_CHECK_ASSEMBLER_HWCAP): Invoke.
238 * configure, aclocal.m4: Regenerate.
239 * Makefile.in (COMPILE.c): Add HWCAP_CFLAGS.
240
2412023-11-28 Jakub Jelinek <jakub@redhat.com>
242
243 * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): New check.
244 * sha1.c: If HAVE_X86_SHA1_HW_SUPPORT is defined, include x86intrin.h
245 and cpuid.h.
246 (sha1_hw_process_bytes, sha1_hw_process_block,
247 sha1_choose_process_bytes): New functions.
248 * config.in: Regenerated.
249 * configure: Regenerated.
250
2512023-11-15 Mark Wielaard <mjw@redhat.com>
252
253 * aclocal.m4: Rebuild.
254
2552023-11-10 Brendan Shanks <bshanks@codeweavers.com>
256
257 * configure.ac (AC_CHECK_HEADERS): Add spawn.h.
258 (checkfuncs): Add posix_spawn, posix_spawnp.
259 (AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
260 * aclocal.m4, configure, config.in: Rebuild.
261 * pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
262
2632023-08-22 Jason Merrill <jason@redhat.com>
264
265 PR c++/109751
266 * cp-demangle.c (d_make_comp): Handle DEMANGLE_COMPONENT_FRIEND.
267 (d_count_templates_scopes): Likewise.
268 (d_print_comp_inner): Likewise.
269 (d_unqualified_name): Handle member-like friend mangling.
270 * testsuite/demangle-expected: Add test.
271
2722023-08-07 John Ericson <git@JohnEricson.me>
273
274 * configure: Regenerate.
275
2762023-08-07 H.J. Lu <hjl.tools@gmail.com>
277
278 * configure: Regenerate.
279
2802023-08-07 H.J. Lu <hjl.tools@gmail.com>
281
282 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
283 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
284 (configure_deps): Depend on ../config/gcc-plugin.m4.
285 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
286 RANLIB_PLUGIN_OPTION.
287 * aclocal.m4: Regenerated.
288 * configure: Likewise.
289
2902023-06-15 Marek Polacek <polacek@redhat.com>
291
292 * configure.ac: Also set shared when enable_host_pie.
293 * configure: Regenerate.
294
2952023-06-13 Nathan Sidwell <nathan@acm.org>
296
297 * cp-demangle.c (d_print_conversion): Remove incorrect
298 template instantiation handling.
299 * testsuite/demangle-expected: Add testcases.
300
3012023-06-07 Costas Argyris <costas.argyris@gmail.com>
302
303 * argv.c (writeargv): Constant propagate "0" for "status",
304 simplifying the code slightly.
305
3062023-06-06 Costas Argyris <costas.argyris@gmail.com>
307
308 * argv.c (writeargv): Simplify & remove gotos.
309
3102023-06-05 Costas Argyris <costas.argyris@gmail.com>
311
312 * pex-win32.c: fix typos.
313
3142023-06-05 Costas Argyris <costas.argyris@gmail.com>
315
316 * pex-win32.c (win32_spawn): Check command line length
317 and generate a response file if necessary.
318 (spawn_script): Adjust parameters.
319 (pex_win32_exec_child): Ditto.
320
3212023-06-03 Patrick Palka <ppalka@redhat.com>
322
323 PR c++/70790
324 * cp-demangle.c (cplus_demangle_operators): Add the noexcept
325 operator.
326 (d_print_comp_inner) <case DEMANGLE_COMPONENT_UNARY>: Always
327 print parens around the operand of noexcept too.
328 * testsuite/demangle-expected: Test noexcept operator
329 demangling.
330
3312023-04-02 Jakub Jelinek <jakub@redhat.com>
332
333 PR other/109306
334 * strstr.c: Revert the 2020-11-13 changes.
335 (strstr): Return s1 if len is 0.
336
3372023-03-30 Gerald Pfeifer <gerald@pfeifer.com>
338
339 * obstacks.texi (Preparing for Obstacks): Remove a (broken)
340 reference to the Glibc manual.
341
3422023-03-03 Costas Argyris <costas.argyris@gmail.com>
343
344 * pex-win32.c (win32_spawn): Fix memory leak of cmdline
345 buffer and refactor to have cleanup code appear once
346 for all exit cases.
347
3482023-02-11 niXman <i.nixman@autistici.org>
349
350 * lrealpath.c (lrealpath): try to resolve symlink and
351 use UNC paths where applicable.
352
3532023-01-07 LIU Hao <lh_mouse@126.com>
354
355 PR middle-end/108300
356 * make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
357 * pex-win32.c: Likewise.
358
3592022-11-23 Marek Polacek <polacek@redhat.com>
360
361 Revert:
362 2022-11-23 Marek Polacek <polacek@redhat.com>
363
364 * configure.ac: Also set shared when enable_host_pie.
365 * configure: Regenerate.
366
3672022-11-23 Marek Polacek <polacek@redhat.com>
368
369 * configure.ac: Also set shared when enable_host_pie.
370 * configure: Regenerate.
371
3722022-11-15 Nathan Sidwell <nathan@acm.org>
373
374 * cp-demangle.c (struct d_print_info): Rename is_lambda_arg to
375 lambda_tpl_parms. Augment semantics.
376 (d_make_comp): Add checks for new components.
377 (d_template_parm, d_template_head): New.
378 (d_lambda): Add templated lambda support.
379 (d_print_init): Adjust.
380 (d_print_lambda_parm_name): New.
381 (d_print_comp_inner): Support templated lambdas,
382 * testsuite/demangle-expected: Add testcases.
383
3842022-11-14 Martin Liska <mliska@suse.cz>
385
386 Revert:
387 2022-11-14 Martin Liska <mliska@suse.cz>
388
389 * doc/bsd.rst: New file.
390 * doc/conf.py: New file.
391 * doc/copyright.rst: New file.
392 * doc/extensions.rst: New file.
393 * doc/function-variable-and-macro-listing.rst: New file.
394 * doc/index.rst: New file.
395 * doc/indices-and-tables.rst: New file.
396 * doc/introduction.rst: New file.
397 * doc/lesser-general-public-license-2.1.rst: New file.
398 * doc/overview.rst: New file.
399 * doc/replacement-functions.rst: New file.
400 * doc/supplemental-functions.rst: New file.
401 * doc/using.rst: New file.
402
4032022-11-14 Martin Liska <mliska@suse.cz>
404
405 Revert:
406 2022-11-14 Martin Liska <mliska@suse.cz>
407
408 * Makefile.in: Support Sphinx based documentation.
409
4102022-11-14 Martin Liska <mliska@suse.cz>
411
412 Revert:
413 2022-11-14 Martin Liska <mliska@suse.cz>
414
415 * at-file.texi: Removed.
416 * copying-lib.texi: Removed.
417 * functions.texi: Removed.
418 * libiberty.texi: Removed.
419 * obstacks.texi: Removed.
420
4212022-11-14 Martin Liska <mliska@suse.cz>
422
423 Revert:
424 2022-11-14 Martin Liska <mliska@suse.cz>
425
426 * Makefile.in: Support --with-sphinx-build.
427 * configure.ac: Likewise.
428 * configure: Regenerate.
429
4302022-11-14 Martin Liska <mliska@suse.cz>
431
432 Revert:
433 2022-11-14 Martin Liska <mliska@suse.cz>
434
435 * doc/bsd.rst:
436 Add trailing newline.
437 * doc/copyright.rst:
438 Add trailing newline.
439 * doc/extensions.rst:
440 Add trailing newline.
441 * doc/function-variable-and-macro-listing.rst:
442 Add trailing newline.
443 * doc/index.rst:
444 Add trailing newline.
445 * doc/indices-and-tables.rst:
446 Add trailing newline.
447 * doc/introduction.rst:
448 Add trailing newline.
449 * doc/lesser-general-public-license-2.1.rst:
450 Add trailing newline.
451 * doc/overview.rst:
452 Add trailing newline.
453 * doc/replacement-functions.rst:
454 Add trailing newline.
455 * doc/supplemental-functions.rst:
456 Add trailing newline.
457 * doc/using.rst:
458 Add trailing newline.
459
4602022-11-14 Martin Liska <mliska@suse.cz>
461
462 Revert:
463 2022-11-14 Martin Liska <mliska@suse.cz>
464
465 * doc/conf.py: Add newline at last line.
466
4672022-11-14 Martin Liska <mliska@suse.cz>
468
469 Revert:
470 2022-11-14 Martin Liska <mliska@suse.cz>
471
472 PR other/107620
473 * configure: Regenerate.
474 * configure.ac: Always set sphinx-build.
475
4762022-11-13 Martin Liska <mliska@suse.cz>
477
478 PR other/107620
479 * configure: Regenerate.
480 * configure.ac: Always set sphinx-build.
481
4822022-11-10 Martin Liska <mliska@suse.cz>
483
484 * doc/conf.py: Add newline at last line.
485
4862022-11-09 Martin Liska <mliska@suse.cz>
487
488 * doc/bsd.rst:
489 Add trailing newline.
490 * doc/copyright.rst:
491 Add trailing newline.
492 * doc/extensions.rst:
493 Add trailing newline.
494 * doc/function-variable-and-macro-listing.rst:
495 Add trailing newline.
496 * doc/index.rst:
497 Add trailing newline.
498 * doc/indices-and-tables.rst:
499 Add trailing newline.
500 * doc/introduction.rst:
501 Add trailing newline.
502 * doc/lesser-general-public-license-2.1.rst:
503 Add trailing newline.
504 * doc/overview.rst:
505 Add trailing newline.
506 * doc/replacement-functions.rst:
507 Add trailing newline.
508 * doc/supplemental-functions.rst:
509 Add trailing newline.
510 * doc/using.rst:
511 Add trailing newline.
512
5132022-11-09 Martin Liska <mliska@suse.cz>
514
515 * Makefile.in: Support --with-sphinx-build.
516 * configure.ac: Likewise.
517 * configure: Regenerate.
518
5192022-11-09 Martin Liska <mliska@suse.cz>
520
521 * at-file.texi: Removed.
522 * copying-lib.texi: Removed.
523 * functions.texi: Removed.
524 * libiberty.texi: Removed.
525 * obstacks.texi: Removed.
526
5272022-11-09 Martin Liska <mliska@suse.cz>
528
529 * Makefile.in: Support Sphinx based documentation.
530
5312022-11-09 Martin Liska <mliska@suse.cz>
532
533 * doc/bsd.rst: New file.
534 * doc/conf.py: New file.
535 * doc/copyright.rst: New file.
536 * doc/extensions.rst: New file.
537 * doc/function-variable-and-macro-listing.rst: New file.
538 * doc/index.rst: New file.
539 * doc/indices-and-tables.rst: New file.
540 * doc/introduction.rst: New file.
541 * doc/lesser-general-public-license-2.1.rst: New file.
542 * doc/overview.rst: New file.
543 * doc/replacement-functions.rst: New file.
544 * doc/supplemental-functions.rst: New file.
545 * doc/using.rst: New file.
546
5472022-10-18 Florian Weimer <fweimer@redhat.com>
548
549 * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
550 int return type and parameter list to the definition of main.
551 Include <stdlib.h> and <string.h> for prototypes.
552 (ac_cv_c_stack_direction): Add missing
553 int return type and parameter list to the definitions of
554 main, find_stack_direction. Include <stdlib.h> for exit
555 prototype.
556 * configure: Regenerate.
557
5582022-10-14 Jakub Jelinek <jakub@redhat.com>
559
560 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
561 * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
562 entry.
563 (cplus_demangle_type): Demangle DF16b.
564 * testsuite/demangle-expected (_Z3xxxDF16b): New test.
565
5662022-10-11 Nathan Sidwell <nathan@acm.org>
567
568 * cp-demangle.c (d_prefix): 'M' components are not
569 (re-)added to the substitution table.
570 * testsuite/demangle-expected: Add tests.
571
5722022-10-07 Nathan Sidwell <nathan@acm.org>
573
574 * cp-demangle.c (d_print_comp_inner): Allow parameter packs
575 in a lambda signature.
576 * testsuite/demangle-expected: Add tests.
577
5782022-09-27 Jakub Jelinek <jakub@redhat.com>
579
580 PR c++/106652
581 PR c++/85518
582 * cp-demangle.c (d_dump): Handle
583 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Don't handle
584 DEMANGLE_COMPONENT_FIXED_TYPE.
585 (d_make_extended_builtin_type): New function.
586 (cplus_demangle_builtin_types): Add _Float entry.
587 (cplus_demangle_type): For DF demangle it as _Float<N> or
588 _Float<N>x rather than fixed point which conflicts with it.
589 (d_count_templates_scopes): Handle
590 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Just break; for
591 DEMANGLE_COMPONENT_FIXED_TYPE.
592 (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
593 Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
594 (d_print_comp_inner): Likewise.
595 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
596 * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
597 with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb. Add
598 _Z3xxxDF32xDF64xDF128xCDF32xVb test.
599
6002022-09-22 Jonathan Wakely <jwakely@redhat.com>
601
602 * README: Replace gcc-bugs email address with Bugzilla URL.
603
6042022-08-25 Martin Liska <mliska@suse.cz>
605
606 * configure: Regenerate.
607
6082022-07-22 Martin Liska <mliska@suse.cz>
609
610 PR other/106370
611 * _doprnt.c: Remove continue as last stmt
612 in a loop.
613
6142022-07-14 Martin Liska <mliska@suse.cz>
615
616 * functions.texi: Replace strtoul with strtoull.
617
6182022-07-04 Nick Clifton <nickc@redhat.com>
619
620 * rust-demangle.c (demangle_const): Add a missing goto pass_return
621 at the end of the function.
622
6232022-07-04 Nick Clifton <nickc@redhat.com>
624
625 * rust-demangle.c (demangle_path_maybe_open_generics): Add
626 recursion limit.
627
6282022-07-01 Nick Clifton <nickc@redhat.com>
629
630 PR demangler/105039
631 * rust-demangle.c (demangle_const): Add recursion limit.
632
6332022-06-26 Simon Marchi <simon.marchi@efficios.com>
634
635 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
636 * configure: Re-generate.
637
6382022-05-23 Nathan Sidwell <nathan@acm.org>
639
640 * cp-demangle.c (d_make_comp): Adjust.
641 (d_name, d_prefix): Adjust subst handling. Add module handling.
642 (d_maybe_module_name): New.
643 (d_unqualified_name): Add incoming module parm. Handle it. Adjust all callers.
644 (d_special_name): Add 'GI' support.
645 (d_count_template_scopes): Adjust.
646 (d_print_comp_inner): Print module.
647 * testsuite/demangle-expected: New test cases
648
6492022-05-18 Nathan Sidwell <nathan@acm.org>
650
651 * cp-demangle.c (d_name): Add SUBSTABLE parameter,
652 push substitution if requested. Adjust unscoped name handling.
653 (d_prefix): Reorder main loop. Adjust all calls.
654 (d_unqualified_name): Add SCOPE parameter, create qualified
655 name here. Adjust all calls.
656 (cplus_demangle_type): Do not handle 'S' here, leave all
657 to d_class_enum_type.
658 (d_class_enum_type): Add SUBSTABLE parameter.
659
6602022-05-17 Nathan Sidwell <nathan@acm.org>
661
662 * cp-demangle.c (d_make_comp): Adjust.
663 (d_unqualified_name): Add 'DC' support.
664 (d_count_template_scopes): Adjust.
665 (d_print_comp_inner): Add structured binding.
666 * testsuite/demangle-expected: Add testcases.
667
6682022-05-10 Martin Liska <mliska@suse.cz>
669
670 * regex.c: Restore comments.
671
6722022-05-10 Martin Liska <mliska@suse.cz>
673 Alan Modra <amodra@gmail.com>
674
675 * hashtab.c (htab_empty): Use void * type instead of void **.
676 (htab_expand): Likewise.
677
6782022-05-10 Martin Liska <mliska@suse.cz>
679
680 * random.c: Remove 'define PTR'.
681
6822022-05-10 Martin Liska <mliska@suse.cz>
683
684 * alloca.c (C_alloca): Use void * instead PTR.
685 * calloc.c (malloc): Likewise.
686 (bzero): Likewise.
687 (calloc): Likewise.
688 * hashtab.c (find_empty_slot_for_expand): Likewise.
689 (eq_pointer): Likewise.
690 (htab_create_alloc_ex): Likewise.
691 (htab_create_typed_alloc): Likewise.
692 (htab_set_functions_ex): Likewise.
693 (htab_delete): Likewise.
694 (htab_empty): Likewise.
695 (htab_expand): Likewise.
696 (htab_find_with_hash): Likewise.
697 (htab_find): Likewise.
698 (htab_find_slot_with_hash): Likewise.
699 (htab_find_slot): Likewise.
700 (htab_remove_elt): Likewise.
701 (htab_remove_elt_with_hash): Likewise.
702 (htab_clear_slot): Likewise.
703 (htab_traverse_noresize): Likewise.
704 (htab_traverse): Likewise.
705 (htab_hash_string): Likewise.
706 (iterative_hash): Likewise.
707 (hash_pointer): Likewise.
708 * memchr.c (memchr): Likewise.
709 * memcmp.c (memcmp): Likewise.
710 * memcpy.c (memcpy): Likewise.
711 * memmove.c (memmove): Likewise.
712 * mempcpy.c (memcpy): Likewise.
713 (mempcpy): Likewise.
714 * memset.c (memset): Likewise.
715 * objalloc.c (malloc): Likewise.
716 (free): Likewise.
717 (objalloc_create): Likewise.
718 (_objalloc_alloc): Likewise.
719 (objalloc_free_block): Likewise.
720 * random.c (PTR): Likewise.
721 (void): Likewise.
722 (initstate): Likewise.
723 (setstate): Likewise.
724 * regex.c: Likewise.
725 * spaces.c (malloc): Likewise.
726 (free): Likewise.
727 * stpcpy.c (memcpy): Likewise.
728 * strdup.c (malloc): Likewise.
729 (memcpy): Likewise.
730 * strerror.c (malloc): Likewise.
731 (memset): Likewise.
732 * strndup.c (malloc): Likewise.
733 (memcpy): Likewise.
734 * strsignal.c (malloc): Likewise.
735 (memset): Likewise.
736 * vasprintf.c (malloc): Likewise.
737 * vprintf-support.c: Likewise.
738 * xatexit.c (malloc): Likewise.
739 * xmalloc.c (xmalloc): Likewise.
740 (xcalloc): Likewise.
741 (xrealloc): Likewise.
742 * xmemdup.c (xmemdup): Likewise.
743
7442022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
745
746 * floatformat.c (floatformat_ieee_quad_big): Renamed from
747 floatformat_ia64_quad_big.
748 (floatformat_ieee_quad_little): Similarly.
749
7502022-02-22 Jakub Jelinek <jakub@redhat.com>
751
752 PR lto/104617
753 * simple-object-elf.c (simple_object_elf_match): Fix up URL
754 in comment.
755 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
756 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
757 range (inclusive).
758
7592022-02-17 Mark Wielaard <mark@klomp.org>
760
761 * rust-demangle.c (rust_demangle_callback): Ignore everything
762 after '.' char in sym for v0. For legacy symbols search
763 backwards to find the last 'E' before any '.'.
764 * testsuite/rust-demangle-expected: Add new .suffix testcases.
765
7662022-01-31 Nick Clifton <nickc@redhat.com>
767
768 PR demangler/98886
769 PR demangler/99935
770 * rust-demangle.c (struct rust_demangler): Add a recursion
771 counter.
772 (demangle_path): Increment/decrement the recursion counter upon
773 entry and exit. Fail if the counter exceeds a fixed limit.
774 (demangle_type): Likewise.
775 (rust_demangle_callback): Initialise the recursion counter,
776 disabling if requested by the option flags.
777
7782022-01-15 Martin Sebor <msebor@redhat.com>
779
780 * regex.c: Suppress -Wuse-after-free.
781
7822021-12-30 Lancelot SIX <lsix@lancelotsix.com>
783
784 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
785 names.
786 * testsuite/demangle-expected: Check demangling of clone symbols
787 with digits in name.
788
7892021-12-16 H.J. Lu <hjl.tools@gmail.com>
790
791 Revert:
792 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
793
794 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
795 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
796 (configure_deps): Depend on ../config/gcc-plugin.m4.
797 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
798 RANLIB_PLUGIN_OPTION.
799 * aclocal.m4: Regenerated.
800 * configure: Likewise.
801
8022021-12-15 H.J. Lu <hjl.tools@gmail.com>
803
804 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
805 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
806 (configure_deps): Depend on ../config/gcc-plugin.m4.
807 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
808 RANLIB_PLUGIN_OPTION.
809 * aclocal.m4: Regenerated.
810 * configure: Likewise.
811
8122021-11-29 Eric Gallager <egallager@gcc.gnu.org>
813
814 PR other/103021
815 * Makefile.in: Use ETAGS variable in TAGS target.
816 * configure: Regenerate.
817 * configure.ac: Allow ETAGS variable to be overridden.
818
8192021-11-29 Andrew Pinski <apinski@marvell.com>
820
821 * make-temp-file.c (try_dir): Check to see if the dir
822 is actually a directory.
823
8242021-10-22 Eric Gallager <egallager@gcc.gnu.org>
825
826 PR other/102663
827 * Makefile.in: Allow dvi-formatted documentation
828 to be installed.
829
8302021-10-17 Luís Ferreira <contact@lsferreira.net>
831
832 PR d/102618
833 * d-demangle.c (dlang_parse_qualified): Handle anonymous
834 symbols correctly.
835 * testsuite/d-demangle-expected: New tests to cover anonymous
836 symbols.
837
8382021-10-14 Luís Ferreira <contact@lsferreira.net>
839
840 * testsuite/d-demangle-expected: Add test case for function literals.
841
8422021-10-14 Luís Ferreira <contact@lsferreira.net>
843
844 * testsuite/d-demangle-expected: Add test cases for simple special
845 mangles.
846
8472021-10-12 Luís Ferreira <contact@lsferreira.net>
848
849 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
850 around lhs and rhs of assignments.
851
8522021-10-01 Luís Ferreira <contact@lsferreira.net>
853
854 * testsuite/d-demangle-expected: Add missing format for new test
855
8562021-09-23 Luís Ferreira <contact@lsferreira.net>
857
858 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
859 * testsuite/d-demangle-expected: New test.
860
8612021-09-23 Luís Ferreira <contact@lsferreira.net>
862
863 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
864 string is less than length computed by dlang_number.
865
8662021-09-01 Iain Sandoe <iain@sandoe.co.uk>
867
868 * configure: Regenerate.
869 * configure.ac: Do not search for sbrk on Darwin.
870 * xmalloc.c: Do not declare sbrk unless it has been found
871 by configure.
872
8732021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
874
875 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
876 * testsuite/d-demangle-expected: Add tests.
877
8782021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
879
880 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
881 (dlang_parse_assocarray): Likewise.
882 (dlang_parse_structlit): Likewise.
883 (dlang_value): Likewise. Handle function literal symbols.
884 (dlang_template_args): Pass 'info' to dlang_value.
885 * testsuite/d-demangle-expected: Add new test.
886
8872021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
888
889 * d-demangle.c (dlang_attributes): Handle typeof(*null).
890 (dlang_type): Likewise. Demangle 'n' as typeof(null).
891 * testsuite/d-demangle-expected: Update tests.
892
8932021-08-23 Iain Sandoe <iain@sandoe.co.uk>
894
895 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
896 Cast the first argument to set_32 as needed.
897
8982021-08-18 Iain Sandoe <iain@sandoe.co.uk>
899
900 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
901 Arrange to swap the LTO index tables where needed.
902
9032021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
904
905 * make-temp-file.c (usrtmp): Remove.
906 (choose_tmpdir): Remove use of usrtmp.
907
9082021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
909
910 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
911
9122021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
913 David Faust <david.faust@oracle.com>
914 Jose E. Marchesi <jose.marchesi@oracle.com>
915 Weimin Pan <weimin.pan@oracle.com>
916
917 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
918 sections.
919
9202021-06-05 John David Anglin <danglin@gcc.gnu.org>
921
922 PR target/100734
923 * configure.ac: Use libiberty snprintf and vsnprintf on
924 hppa*-*-hpux*.
925 * configure: Regenerate.
926
9272021-05-06 Tom Tromey <tom@tromey.com>
928
929 * hashtab.c (htab_eq_string): New function.
930
9312021-05-04 Eric Botcazou <ebotcazou@adacore.com>
932
933 * configure.ac: Make test for variables more robust.
934 * configure: Regenerate.
935
9362021-05-03 H.J. Lu <hjl.tools@gmail.com>
937
938 PR bootstrap/99703
939 * configure: Regenerated.
940
9412021-04-21 Andreas Schwab <schwab@linux-m68k.org>
942
943 PR demangler/100177
944 * rust-demangle.c (demangle_const_char): Properly print the
945 character value.
946
9472021-03-31 Patrick Palka <ppalka@redhat.com>
948
949 PR c++/88115
950 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
951 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
952 (d_print_comp_inner): Likewise.
953 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
954 change.
955 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
956 * testsuite/demangle-expected: Adjust __alignof__ tests.
957
9582021-03-16 Nick Clifton <nickc@redhat.com>
959
960 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
961
9622021-02-20 Mike Frysinger <vapier@gentoo.org>
963
964 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
965 (configure_deps): Rename to ...
966 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
967 ($(srcdir)/configure): Replace $(configure_deps) with
968 $(srcdir)/aclocal.m4.
969 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
970 * acinclude.m4: New file.
971 * configure: Regenerate.
972
9732021-02-19 Ayush Mittal <ayush.m@samsung.com>
974
975 * argv.c (expandargv): free allocated buffer if read fails.
976
9772021-02-01 Martin Sebor <msebor@redhat.com>
978
979 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
980 to avoid -Wstringop-truncation.
981
9822021-01-04 Martin Liska <mliska@suse.cz>
983
984 * strverscmp.c: Convert to utf8 from iso8859.
985
9862020-12-22 Jason Merrill <jason@redhat.com>
987
988 PR c++/67343
989 * cp-demangle.h (struct d_info): Add unresolved_name_state.
990 * cp-demangle.c (d_prefix): Add subst parm.
991 (d_nested_name): Pass it.
992 (d_unresolved_name): Split out from...
993 (d_expression_1): ...here.
994 (d_demangle_callback): Maybe retry with old sr mangling.
995 * testsuite/demangle-expected: Add test.
996
9972020-12-21 Jason Merrill <jason@redhat.com>
998
999 * cp-demangle.c (d_expression_1): Recognize qualified-id
1000 on RHS of dt/pt.
1001 * testsuite/demangle-expected: Add test.
1002
10032020-12-21 Jason Merrill <jason@redhat.com>
1004
1005 * cp-demangle.c (d_unqualified_name): Clear is_expression.
1006 * testsuite/demangle-expected: Add tests.
1007
10082020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
1009
1010 * configure: Regenerate.
1011 * configure.ac: Avoid using sanitizer.
1012
10132020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1014
1015 * rust-demangle.c (struct rust_demangler): Add
1016 skipping_printing and bound_lifetime_depth fields.
1017 (eat): Add (v0-only).
1018 (parse_integer_62): Add (v0-only).
1019 (parse_opt_integer_62): Add (v0-only).
1020 (parse_disambiguator): Add (v0-only).
1021 (struct rust_mangled_ident): Add punycode{,_len} fields.
1022 (parse_ident): Support v0 identifiers.
1023 (print_str): Respect skipping_printing.
1024 (print_uint64): Add (v0-only).
1025 (print_uint64_hex): Add (v0-only).
1026 (print_ident): Respect skipping_printing,
1027 Support v0 identifiers.
1028 (print_lifetime_from_index): Add (v0-only).
1029 (demangle_binder): Add (v0-only).
1030 (demangle_path): Add (v0-only).
1031 (demangle_generic_arg): Add (v0-only).
1032 (demangle_type): Add (v0-only).
1033 (demangle_path_maybe_open_generics): Add (v0-only).
1034 (demangle_dyn_trait): Add (v0-only).
1035 (demangle_const): Add (v0-only).
1036 (demangle_const_uint): Add (v0-only).
1037 (basic_type): Add (v0-only).
1038 (rust_demangle_callback): Support v0 symbols.
1039 * testsuite/rust-demangle-expected: Add v0 testcases.
1040
10412020-11-13 Seija Kijin <doremylover456@gmail.com>
1042
1043 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
1044
10452020-11-11 Patrick Palka <ppalka@redhat.com>
1046
1047 PR c++/88115
1048 * cp-demangle.c (d_print_comp_inner)
1049 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
1050 "operator " prefix for __alignof__.
1051 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
1052 operand of __alignof__.
1053 * testsuite/demangle-expected: Test demangling for __alignof__.
1054
10552020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
1056
1057 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
1058
10592020-10-06 Martin Liska <mliska@suse.cz>
1060
1061 PR lto/97290
1062 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1063 Use sh_link of a .symtab_shndx section.
1064
10652020-09-24 Mark Wielaard <mark@klomp.org>
1066
1067 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
1068 and DW_UT_END.
1069
10702020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
1071
1072 * floatformat.c (floatformat_bfloat16_big): New.
1073 (floatformat_bfloat16_little): New.
1074
10752020-09-08 Alan Modra <amodra@gmail.com>
1076
1077 * d-demangle.c: Include limits.h.
1078 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
1079 (dlang_number): Simplify and correct overflow test. Only
1080 write *ret on returning non-NULL. Make "ret" an unsigned long*.
1081 Only succeed for result of [0,UINT_MAX].
1082 (dlang_decode_backref): Simplify and correct overflow test.
1083 Only write *ret on returning non-NULL. Only succeed for
1084 result [1,MAX_LONG].
1085 (dlang_backref): Remove now unnecessary range check.
1086 (dlang_symbol_name_p): Likewise.
1087 (string_need): Take a size_t n arg, and use size_t tem.
1088 (string_append): Use size_t n.
1089 (string_appendn, string_prependn): Take a size_t n arg.
1090 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
1091 (dlang_lname, dlang_parse_template): Take an unsigned long len
1092 arg.
1093 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
1094 (dlang_parse_integer, dlang_parse_string),
1095 (dlang_parse_arrayliteral, dlang_parse_assocarray),
1096 (dlang_parse_structlit, dlang_parse_tuple),
1097 (dlang_template_symbol_param, dlang_template_args): Use
1098 unsigned long variables.
1099 * testsuite/d-demangle-expected: Add new tests.
1100
11012020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
1102
1103 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
1104 parameter storage classes.
1105 (dlang_type): Remove identifier type.
1106 * testsuite/d-demangle-expected: Update tests.
1107
11082020-08-03 Richard Biener <rguenther@suse.de>
1109
1110 PR lto/96385
1111 * simple-object-elf.c
1112 (simple_object_elf_copy_lto_debug_sections): Localize global
1113 UNDEFs and reuse the prevailing name.
1114
11152020-07-30 H.J. Lu <hjl.tools@gmail.com>
1116
1117 PR bootstrap/96202
1118 * configure: Regenerated.
1119
11202020-07-14 Ian Lance Taylor <iant@golang.org>
1121
1122 PR demangler/96143
1123 * cp-demangle.c (d_lambda): Don't add substitution candidate.
1124 * testsuite/demangle-expected: Update a few existing test cases
1125 accordingly, and add a new test case.
1126
11272020-07-10 Jason Merrill <jason@redhat.com>
1128
1129 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
1130 (d_expression_1): Handle di and dX.
1131 (is_designated_init, d_maybe_print_designated_init): New.
1132 (d_print_comp_inner): Use d_maybe_print_designated_init.
1133 * testsuite/demangle-expected: Add designator tests.
1134
11352020-06-26 Nick Clifton <nickc@redhat.com>
1136
1137 * bsearch.c (bsearch): Remove use of register keyword.
1138 * bsearch_r.c (bsearch_r): Likewise.
1139
11402020-06-23 Nick Alcock <nick.alcock@oracle.com>
1141
1142 * bsearch_r.c: New file.
1143 * Makefile.in (CFILES): Add bsearch_r.c.
1144 (REQUIRED_OFILES): Add bsearch_r.o.
1145 * functions.texi: Regenerate.
1146
11472020-05-29 H.J. Lu <hjl.tools@gmail.com>
1148
1149 PR bootstrap/95413
1150 * configure: Regenerated.
1151
11522020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
1153
1154 * d-demangle.c (dlang_attributes): Add @live attribute.
1155 * testsuite/d-demangle-expected: Add new tests.
1156
11572020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
1158 Iain Buclaw <ibuclaw@gdcproject.org>
1159
1160 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
1161 (struct dlang_info): New struct
1162 (dlang_decode_backref): New function.
1163 (dlang_backref): New function.
1164 (dlang_symbol_backref): New function.
1165 (dlang_type_backref): New function.
1166 (dlang_symbol_name_p): New function.
1167 (dlang_function_type_noreturn): New function.
1168 (dlang_function_type): Add 'info' parameter. Decode function type
1169 with dlang_function_type_noreturn.
1170 (dlang_function_args): Add 'info' parameter.
1171 (dlang_type): Add 'info' parameter. Handle back referenced types.
1172 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
1173 referenced symbols. Split off decoding of plain identifiers to...
1174 (dlang_lname): ...here.
1175 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
1176 function type and return with dlang_type.
1177 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
1178 'suffix_modifier' parameter. Decode function type with
1179 dlang_function_type_noreturn.
1180 (dlang_parse_tuple): Add 'info' parameter.
1181 (dlang_template_symbol_param): New function.
1182 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
1183 with dlang_template_symbol_param. Handle back referenced values, and
1184 externally mangled parameters.
1185 (dlang_parse_template): Add 'info' parameter.
1186 (dlang_demangle_init_info): New function.
1187 (dlang_demangle): Initialize and pass 'info' parameter.
1188 * testsuite/d-demangle-expected: Add new tests.
1189
11902020-05-12 H.J. Lu <hongjiu.lu@intel.com>
1191
1192 PR bootstrap/94998
1193 * configure: Regenerated.
1194
11952020-04-28 H.J. Lu <hongjiu.lu@intel.com>
1196
1197 PR bootstrap/94739
1198 * configure: Regenerated.
1199
12002020-04-27 Jakub Jelinek <jakub@redhat.com>
1201
1202 PR demangler/94797
1203 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
1204 * testsuite/demangle-expected: Add operator<=> test.
1205
12062020-04-25 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 PR bootstrap/94739
1209 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
1210 (configure_deps): Add $(srcdir)/../config/cet.m4 and
1211 $(srcdir)/../config/enable.m4.
1212 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
1213 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
1214 AC_SUBST(CET_HOST_FLAGS).
1215 * configure: Regenerated.
1216
12172020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
1218
1219 * simple-object.c (handle_lto_debug_sections): Name
1220 ".GCC.command.line" among debug sections to be copied over
1221 from lto objects.
1222
12232020-03-02 Nick Clifton <nickc@redhat.com>
1224
1225 * testsuite/demangle-expected: Update expected demangling of
1226 enable_if pattern.
1227
12282020-03-02 H.J. Lu <hongjiu.lu@intel.com>
1229
1230 PR lto/93966
1231 * simple-object.c (handle_lto_debug_sections): Also copy
1232 .note.gnu.property section.
1233
12342020-02-12 Sandra Loosemore <sandra@codesourcery.com>
1235
1236 PR libstdc++/79193
1237 PR libstdc++/88999
1238
1239 * configure: Regenerated.
1240
12412020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
1242
1243 * hashtab.c (htab_remove_elt): Make a parameter const.
1244 (htab_remove_elt_with_hash): Likewise.
1245
12462020-01-23 Alexandre Oliva <oliva@adacore.com>
1247
1248 * argv.c (writeargv): Output empty args as "".
1249
12502020-01-01 Jakub Jelinek <jakub@redhat.com>
1251
1252 Update copyright years.
1253
12542019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
1255
1256 * make-relative-prefix.c (split_directories):
1257 Return early on empty 'name'
1258
12592019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
1260
1261 * cp-demangle.c (d_print_init): Remove const from 4th param.
1262 (cplus_demangle_fill_name): Initialize d->d_counting.
1263 (cplus_demangle_fill_extended_operator): Likewise.
1264 (cplus_demangle_fill_ctor): Likewise.
1265 (cplus_demangle_fill_dtor): Likewise.
1266 (d_make_empty): Likewise.
1267 (d_count_templates_scopes): Remobe const from 3rd param,
1268 Return on dc->d_counting > 1,
1269 Increment dc->d_counting.
1270 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
1271 (cplus_demangle_fill_builtin_type): Likewise.
1272 (cplus_demangle_fill_operator): Likewise.
1273
12742019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1275
1276 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
1277 (rust_demangle): Remove.
1278 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
1279 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
1280 (parse_legacy_escape): Rename to decode_legacy_escape.
1281 (rust_is_mangled): Remove.
1282 (struct rust_demangler): Add.
1283 (peek): Add.
1284 (next): Add.
1285 (struct rust_mangled_ident): Add.
1286 (parse_ident): Add.
1287 (rust_demangle_sym): Remove.
1288 (print_str): Add.
1289 (PRINT): Add.
1290 (print_ident): Add.
1291 (rust_demangle_callback): Add.
1292 (struct str_buf): Add.
1293 (str_buf_reserve): Add.
1294 (str_buf_append): Add.
1295 (str_buf_demangle_callback): Add.
1296 (rust_demangle): Add.
1297 * rust-demangle.h: Remove.
1298
12992019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
1300
1301 * testsuite/demangle-expected: Fix test.
1302
13032019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1304
1305 * cp-demangle.c (d_expr_primary): Handle
1306 nullptr demangling.
1307 * testsuite/demangle-expected: Added test.
1308
13092019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
1310
1311 * cp-demangle.c (d_number): Avoid signed int overflow.
1312
13132019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
1314
1315 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
1316 and `imaginary`, as opposed to after.
1317 * testsuite/demangle-expected: Adjust test.
1318
13192019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1320
1321 * rust-demangle.c (looks_like_rust): Remove.
1322 (rust_is_mangled): Don't check escapes.
1323 (is_prefixed_hash): Allow 0-9a-f permutations.
1324 (rust_demangle_sym): Don't bail on unknown escapes.
1325 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
1326
13272019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1328
1329 * rust-demangle.c (unescape): Remove.
1330 (parse_lower_hex_nibble): New function.
1331 (parse_legacy_escape): New function.
1332 (is_prefixed_hash): Use parse_lower_hex_nibble.
1333 (looks_like_rust): Use parse_legacy_escape.
1334 (rust_demangle_sym): Use parse_legacy_escape.
1335 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
1336
13372019-08-27 Martin Liska <mliska@suse.cz>
1338
1339 PR lto/91478
1340 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1341 First find a WEAK HIDDEN symbol in symbol table that will be
1342 preserved. Later, use the symbol name for all removed symbols.
1343
13442019-08-12 Martin Liska <mliska@suse.cz>
1345
1346 * Makefile.in: Add filedescriptor.c.
1347 * filedescriptor.c: New file.
1348 * lrealpath.c (is_valid_fd): Remove.
1349
13502019-08-08 Martin Liska <mliska@suse.cz>
1351
1352 PR bootstrap/91352
1353 * lrealpath.c (is_valid_fd): New function.
1354
13552019-07-24 Martin Liska <mliska@suse.cz>
1356
1357 PR lto/91228
1358 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1359 Find first '\0' starting from gnu_lto + 1.
1360
13612019-07-12 Ren Kimura <rkx1209dev@gmail.com>
1362
1363 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
1364 This fixes a Bug 90924.
1365
13662019-07-22 Martin Liska <mliska@suse.cz>
1367
1368 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1369 Do not search for gnu_lto_v1, but search for first '\0'.
1370
13712019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1372
1373 * cplus-dem.c: Include rust-demangle.h.
1374 * rust-demangle.c: Include rust-demangle.h.
1375 * rust-demangle.h: New file.
1376
13772019-05-31 Michael Forney <mforney@mforney.org>
1378
1379 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
1380 is non-zero.
1381
13822019-04-30 Ben L <bobsayshilol@live.co.uk>
1383
1384 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1385 * testsuite/d-demangle-expected: Add testcase.
1386
1387 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1388 * testsuite/d-demangle-expected: Add testcase.
1389
1390 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1391 * testsuite/d-demangle-expected: Add testcase.
1392
1393 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1394 * testsuite/d-demangle-expected: Add testcase.
1395
1396 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1397 * testsuite/d-demangle-expected: Add testcase.
1398
1399 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1400 * testsuite/demangle-expected: Add testcase.
1401
1402 * cp-demangle.c (d_encoding): Guard against NULL return values from
1403 d_right (dc).
1404 * testsuite/demangle-expected: Add testcase.
1405
14062019-04-29 Ben L <bobsayshilol@live.co.uk>
1407
1408 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
1409 char is valid.
1410 * testsuite/demangle-expected: Add testcase.
1411
14122019-04-10 Nick Clifton <nickc@redhat.com>
1413
1414 PR 89394
1415 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
1416 lengths.
1417 (d_count_templates_scopes): Replace num_templates and num_scopes
1418 parameters with a struct d_print_info pointer parameter. Adjust
1419 body of the function accordingly. Add recursion counter and check
1420 that the recursion limit is not reached.
1421 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
1422 Reset recursion counter afterwards, unless the recursion limit was
1423 reached.
1424
14252019-04-07 Alan Modra <amodra@gmail.com>
1426
1427 * functions.texi: Regenerate.
1428
14292019-03-14 Jason Merrill <jason@redhat.com>
1430 Jakub Jelinek <jakub@redhat.com>
1431
1432 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
1433 than if *slot is HTAB_EMPTY_ENTRY.
1434
14352019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1436
1437 * splay-tree.c (splay_tree_insert): Also release old KEY in case
1438 of insertion of a key equal to an already present key.
1439 (splay_tree_new_typed_alloc): Update comment.
1440
14412019-01-22 Nidal Faour <nidal.faour@wdc.com>
1442
1443 PR lto/88422
1444 * simple-object.c (O_BINARY): Define if not already defined.
1445 (simple_object_copy_lto_debug_sections): Create file in binary
1446 mode.
1447
14482019-01-21 Tom Tromey <tom@tromey.com>
1449
1450 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1451
14522019-01-14 Tom Honermann <tom@honermann.net>
1453
1454 * cp-demangle.c (cplus_demangle_builtin_types)
1455 (cplus_demangle_type): Add name demangling for char8_t (Du).
1456 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
1457 new char8_t type.
1458
14592019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1460
1461 PR other/16615
1462
1463 * cp-demangle.c: Mechanically replace "can not" with "cannot".
1464 * floatformat.c: Likewise.
1465 * strerror.c: Likewise.
1466
14672019-01-01 Jakub Jelinek <jakub@redhat.com>
1468
1469 Update copyright years.
1470
14712018-12-22 Jason Merrill <jason@redhat.com>
1472
1473 Remove support for demangling GCC 2.x era mangling schemes.
1474 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1475 internal_cplus_demangle, and all subroutines.
1476 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1477 Lucid, ARM, HP, and EDG demangling styles.
1478 (cplus_demangle): Remove 'work' variable. Don't call
1479 internal_cplus_demangle.
1480
14812018-12-07 Nick Clifton <nickc@redhat.com>
1482
1483 PR 87681
1484 PR 87675
1485 PR 87636
1486 PR 87350
1487 PR 87335
1488 * cp-demangle.h (struct d_info): Add recursion_level field.
1489 * cp-demangle.c (d_function_type): Add recursion counter.
1490 If the recursion limit is reached and the check is not disabled,
1491 then return with a failure result.
1492 (cplus_demangle_init_info): Initialise the recursion_level field.
1493 (d_demangle_callback): If the recursion limit is enabled, check
1494 for a mangled string that is so long that there is not enough
1495 stack space for the local arrays.
1496 * cplus-dem.c (struct work): Add recursion_level field.
1497 (squangle_mop_up): Set the numb and numk fields to zero.
1498 (work_stuff_copy_to_from): Handle the case where a btypevec or
1499 ktypevec field is NULL.
1500 (demangle_nested_args): Add recursion counter. If
1501 the recursion limit is not disabled and reached, return with a
1502 failure result.
1503
15042018-10-23 Jason Merrill <jason@redhat.com>
1505
1506 Implement P0732R2, class types in non-type template parameters.
1507 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1508 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1509 (d_special_name): Handle TA.
1510 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1511
15122018-10-31 Joseph Myers <joseph@codesourcery.com>
1513
1514 PR bootstrap/82856
1515 Merge from binutils-gdb:
1516 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1517
1518 * configure.ac: Remove AC_PREREQ.
1519 * configure: Re-generate.
1520 * config.in: Re-generate.
1521
15222018-10-01 Nathan Sidwell <nathan@acm.org>
1523
1524 * configure.ac (checkfuncs): Add pipe2.
1525 * config.in, configure: Rebuilt.
1526 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1527 to parent with a pipe, when possible.
1528
15292018-08-23 Nathan Sidwell <nathan@acm.org>
1530 Martin Liska <mliska@suse.cz>
1531
1532 PR driver/87056
1533 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1534 scopes to avoid potential clobber.
1535
15362018-08-20 Nathan Sidwell <nathan@acm.org>
1537
1538 * pex-unix.c (pex_child_error): Delete.
1539 (pex_unix_exec_child): Commonize error paths to single message &
1540 exit.
1541
15422018-07-30 Tom Tromey <tom@tromey.com>
1543
1544 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1545
15462018-07-26 Martin Liska <mliska@suse.cz>
1547
1548 PR lto/86548
1549 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1550 (make_temp_file): Call make_temp_file_with_prefix with
1551 first argument set to NULL.
1552 (make_temp_file_with_prefix): Support also prefix.
1553
15542018-07-19 Eli Zaretskii <eliz@gnu.org>
1555
1556 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1557 to ENOSYS.
1558
15592018-05-30 Jan Hubicka <hubicka@ucw.cz>
1560
1561 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1562 (handle_lto_debug_sections_rename): New function.
1563 (handle_lto_debug_sections_norename): New function.
1564 (simple_object_copy_lto_debug_sections): Add rename parameter.
1565
15662018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1567
1568 * splay-tree.c (splay_tree_compare_strings,
1569 splay_tree_delete_pointers): New utility functions.
1570
15712018-05-10 Martin Liska <mliska@suse.cz>
1572
1573 PR bootstrap/64914
1574 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1575
15762018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1577
1578 * argv.c (expandargv): Fix memory leak for copied argv.
1579
15802018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1581
1582 PR lto/81968
1583 * simple-object.c (handle_lto_debug_sections): Keep .comment
1584 section.
1585
15862018-03-02 David Malcolm <dmalcolm@redhat.com>
1587
1588 * cp-demangle.c: Update URL for g++ V3 ABI.
1589
15902018-01-20 Eli Zaretskii <eliz@gnu.org>
1591
1592 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1593 ulong_type to avoid warning about 32-bit shift.
1594
15952018-01-11 Richard Biener <rguenther@suse.de>
1596 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1597
1598 PR lto/81968
1599 * simple-object-common.h (struct simple_object_functions):
1600 Change copy_lto_debug_sections callback signature.
1601 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1602 SHF_INFO_LINK): Add defines.
1603 (simple_object_elf_copy_lto_debug_sections): Instead of
1604 leaving not to be copied sections empty unnamed SHT_NULL
1605 remove them from the target section headers and adjust section
1606 reference everywhere. Handle SHN_XINDEX in the symbol table
1607 processing properly.
1608 * simple-object.c (handle_lto_debug_sections): Change
1609 interface to return a modified string and handle renaming
1610 of relocation sections.
1611
16122018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1613
1614 * argv.c (expandargv): Correct check for dynamically
1615 allocated argv.
1616
16172018-01-03 Jakub Jelinek <jakub@redhat.com>
1618
1619 Update copyright years.
1620
16212017-01-02 Richard Biener <rguenther@suse.de>
1622
1623 PR lto/83452
1624 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1625 Do not use UNDEF locals for removed symbols but instead just
1626 define them in the first prevailing section and with no name.
1627 Use the same gnu_lto_v1 name for all removed globals we promote to
1628 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
1629 sh_info and sh_link in removed sections.
1630
16312017-10-30 Richard Biener <rguenther@suse.de>
1632
1633 PR lto/82757
1634 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1635 Strip two leading _s from the __gnu_lto_* symbols.
1636
16372017-10-24 Alan Modra <amodra@gmail.com>
1638
1639 PR lto/82687
1640 PR lto/82575
1641 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1642 Only make __gnu_lto symbols hidden.
1643
16442017-10-20 Alan Modra <amodra@gmail.com>
1645
1646 PR lto/82575
1647 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1648 Make discarded non-local symbols weak and hidden.
1649
16502017-10-18 Jakub Jelinek <jakub@redhat.com>
1651
1652 PR lto/82598
1653 * simple-object.c (handle_lto_debug_sections): Copy over also
1654 .note.GNU-stack section with unchanged name.
1655 * simple-object-elf.c (SHF_EXECINSTR): Define.
1656 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1657 on .note.GNU-stack section.
1658
16592017-09-25 Nathan Sidwell <nathan@acm.org>
1660
1661 PR demangler/82195
1662 * cp-demangle.c (d_encoding): Strip return type when name is a
1663 LOCAL_NAME.
1664 (d_local_name): Strip return type of enclosing TYPED_NAME.
1665 * testsuite/demangle-expected: Add and adjust tests.
1666
16672017-09-21 Nathan Sidwell <nathan@acm.org>
1668
1669 PR demangler/82195
1670 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1671 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1672 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1673 to strip modifiers that do not belong.
1674 (d_special_name, d_class_enum_type): Revert d_name call change.
1675 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1676 (d_local_name): Revert parsing of a function type.
1677 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1678 TEMPLATE.
1679 * testsuite/demangle-expected: Add & adjust tests
1680
16812017-09-15 Nathan Sidwell <nathan@acm.org>
1682
1683 PR demangler/82195
1684 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1685 (d_local_name): ... here. Parse trailing function args on nested
1686 local_name.
1687 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1688 * testsuite/demangle-expected: Add tests.
1689
16902017-09-15 Richard Biener <rguenther@suse.de>
1691
1692 PR lto/81968
1693 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1694 Iterate marking dependent sections necessary.
1695
16962017-09-15 Nathan Sidwell <nathan@acm.org>
1697
1698 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1699 FNQUAL_COMPONENT_CASE.
1700 (d_encoding): Hold bare_function_type in local var.
1701 (d_local_name): Build name in both cases and build result once.
1702 Collapse switch-if to single conditional.
1703 (d_local_name):
1704
1705 * testsuite/demangle-expected: Realign blank lines with tests.
1706
17072017-09-12 Jiong Wang <jiong.wang@arm.com>
1708
1709 * dwarfnames.c (DW_CFA_DUP): New define.
1710
17112017-09-01 Martin Liska <mliska@suse.cz>
1712
1713 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1714 Remove duplicite declaration.
1715
17162017-08-31 Richard Biener <rguenther@suse.de>
1717
1718 PR lto/81968
1719 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1720 Keep names of removed global symbols.
1721
17222017-08-29 Tony Reix <tony.reix@atos.net>
1723
1724 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1725 Improve .go_export csect handling. Don't make assumptions
1726 on containing section or number of auxiliary entries.
1727
17282017-08-28 Richard Biener <rguenther@suse.de>
1729
1730 PR lto/81968
1731 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1732 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1733 removed sections.
1734
17352017-08-22 Richard Biener <rguenther@suse.de>
1736
1737 PR lto/81925
1738 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1739 type of sh_addralign and sh_entsize and properly write
1740 sh_entsize as Elf_Addr.
1741 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1742
17432017-08-21 Richard Biener <rguenther@suse.de>
1744
1745 * simple-object-common.h (struct simple_object_functions): Add
1746 copy_lto_debug_sections hook.
1747 * simple-object.c: Include fcntl.h.
1748 (handle_lto_debug_sections): New helper function.
1749 (simple_object_copy_lto_debug_sections): New function copying
1750 early LTO debug sections to regular debug sections in a new file.
1751 (simple_object_start_write): Handle NULL segment_name.
1752 * simple-object-coff.c (simple_object_coff_functions): Adjust
1753 for not implemented copy_lto_debug_sections hook.
1754 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1755 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1756 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1757 SHT_GROUP): Add various sectopn header types.
1758 (SHF_EXCLUDE): Add flag.
1759 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1760 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1761 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1762 (STV_DEFAULT): Add symbol visibility.
1763 (SHN_COMMON): Add special section index name.
1764 (struct simple_object_elf_write): New.
1765 (simple_object_elf_start_write): Adjust for new private data.
1766 (simple_object_elf_write_shdr): Pass in values for all fields
1767 we write.
1768 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1769 section headers if requested.
1770 (simple_object_elf_release_write): Release private data.
1771 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1772 as denoted by PFN and all their dependences, symbols and relocations
1773 to the empty destination file.
1774 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1775
17762017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1777
1778 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1779
17802017-06-07 Tony Reix <tony.reix@atos.net>
1781 Matthieu Sarter <matthieu.sarter.external@atos.net>
1782 David Edelsohn <dje.gcc@gmail.com>
1783
1784 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1785 Search symbol table for .go_export symbol and apply pfn if found.
1786
17872017-05-31 DJ Delorie <dj@redhat.com>
1788
1789 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1790 * configure: Likewise.
1791 * config.in: Add HACE_DECL_STRNLEN.
1792
17932017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1794
1795 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1796 with `initializer for'.
1797 * testsuite/demangle-expected: Update tests.
1798
17992017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1800
1801 * d-demangle.c (dlang_call_convention_p): Move declaration
1802 before dlang_type.
1803 (dlang_type): Handle function types.
1804 * testsuite/d-demangle-expected: Add tests.
1805
18062017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1807
1808 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1809 the demangled hexadecimal directly to string.
1810 * testsuite/d-demangle-expected: Add tests.
1811
18122017-05-24 Eli Zaretskii <eliz@gnu.org>
1813
1814 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1815 that calls _cwait, so that this function works on MinGW.
1816
18172017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1818
1819 * d-demangle.c (dlang_hexdigit): New function.
1820 (ascii2hex): Remove function.
1821 (dlang_parse_string): Update to call dlang_hexdigit.
1822 * testsuite/d-demangle-expected: Add tests.
1823
18242017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1825
1826 * d-demangle.c (strtol): Remove declaration.
1827 Updated all callers to use dlang_number.
1828 (dlang_number): New function.
1829 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1830 * testsuite/d-demangle-expected: Add tests.
1831
18322017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1833
1834 * d-demangle.c (dlang_parse_symbol): Remove function.
1835 (dlang_parse_qualified): New function.
1836 (dlang_parse_mangle): New function.
1837 (dlang_type): Update to call dlang_parse_qualified.
1838 (dlang_identifier): Update to call either dlang_parse_qualified or
1839 dlang_parse_mangle.
1840 (dlang_type_modifier_p): Remove function.
1841 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1842 (dlang_template_args): Update to call dlang_identifier.
1843 (dlang_demangle): Update to call dlang_parse_mangle.
1844 * testsuite/d-demangle-expected: Add tests.
1845
18462017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1847
1848 * d-demangle.c (dlang_value): Add comment explaining why cases for
1849 digits are required.
1850 * testsuite/d-demangle-expected: Update integer value tests.
1851
18522017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1853
1854 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1855 * testsuite/d-demangle-expected: Add tests.
1856
18572017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1858
1859 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1860 (dlang_parse_template): Only advance if template symbol prefix is
1861 followed by a digit.
1862 * testsuite/d-demangle-expected: Add tests.
1863
18642017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1865
1866 * d-demangle.c (dlang_attributes): Handle scope attributes.
1867 * testsuite/d-demangle-expected: Add tests.
1868
18692017-04-27 Jonathan Wakely <jwakely@redhat.com>
1870
1871 PR demangler/80513
1872 * cp-demangle.c (d_number): Check for overflow.
1873 * cplus-dem.c (consume_count): Fix overflow check.
1874 (gnu_special): Check for underscore after thunk delta.
1875 * testsuite/demangle-expected: Add tests for overflows and invalid
1876 characters in thunks.
1877
18782017-04-21 Mark Wielaard <mark@klomp.org>
1879
1880 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1881 (struct d_print_info): Add recursion field.
1882 (d_print_init): Initialize recursion.
1883 (d_print_comp): Check and update d_print_info recursion depth.
1884
18852017-04-21 Mark Wielaard <mark@klomp.org>
1886
1887 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1888 fails.
1889
18902017-04-21 Mark Wielaard <mark@klomp.org>
1891
1892 * cp-demangle.h (struct d_info): Remove did_subs field.
1893 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1894 (d_template_param): Don't update did_subs.
1895 (d_substitution): Likewise.
1896 (d_checkpoint): Don't assign did_subs.
1897 (d_backtrack): Likewise.
1898 (cplus_demangle_init_info): Don't initialize did_subs.
1899
19002017-03-27 Pedro Alves <palves@redhat.com>
1901
1902 * cp-demint.c (cplus_demangle_fill_component): Handle
1903 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1904
19052017-03-12 Mark Wielaard <mark@klomp.org>
1906
1907 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1908 demangle_component d_printing.
1909 (cplus_demangle_fill_extended_operator): Likewise.
1910 (cplus_demangle_fill_ctor): Likewise.
1911 (cplus_demangle_fill_dtor): Likewise.
1912
19132017-03-08 Mark Wielaard <mark@klomp.org>
1914
1915 PR demangler/70909
1916 PR demangler/67264
1917 * cp-demangle.c: Fix endless recursion. Pass
1918 struct demangle_component as non const.
1919 (d_make_empty): Initialize variable.
1920 (d_print_comp_inner): Limit recursion.
1921 (d_print_comp): Decrement variable.
1922 * cp-demint.c (cplus_demangle_fill_component): Initialize
1923 variable.
1924 (cplus_demangle_fill_builtin_type): Likewise.
1925 (cplus_demangle_fill_operator): Likewise.
1926 * testsuite/demangle-expected: Add tests.
1927
19282017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1929
1930 PR PR c++/70182
1931 * cp-demangle.c (d_unqualified_name): Handle "on" for
1932 operator names.
1933 * testsuite/demangle-expected: Add tests.
1934
19352017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1936
1937 PR c++/77489
1938 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1939 * testsuite/demangle-expected: Add tests for discriminator.
1940
19412017-01-04 Jakub Jelinek <jakub@redhat.com>
1942
1943 Update copyright years.
1944
19452017-01-04 Alan Modra <amodra@gmail.com>
1946
1947 * Makefile.in (configure_deps): Update.
1948 * configure: Regenerate.
1949
19502016-12-13 Jakub Jelinek <jakub@redhat.com>
1951
1952 PR c++/78761
1953 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1954 * testsuite/demangle-expected: Add test for decltype(auto).
1955
19562016-12-12 Nathan Sidwell <nathan@acm.org>
1957
1958 PR c++/78252
1959 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1960 (d_print_init): Initialize it.
1961 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1962 is_lambda_arg for auto.
1963 <DEMANGLE_COMPONENT_REFERENCE,
1964 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1965 is_lambda_arg.
1966 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1967 printing.
1968 * testsuite/demangle-expected: Add lambda auto mangling cases.
1969
19702016-12-06 DJ Delorie <dj@redhat.com>
1971
1972 * argv.c (expandargv): Check for directories passed as @-files.
1973
19742016-11-30 David Malcolm <dmalcolm@redhat.com>
1975
1976 PR c/78498
1977 * strndup.c (strlen): Delete decl.
1978 (strnlen): Add decl.
1979 (strndup): Call strnlen rather than strlen.
1980 * xstrndup.c (xstrndup): Likewise.
1981
19822016-11-29 Nathan Sidwell <nathan@acm.org>
1983
1984 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1985
19862016-11-03 David Tolnay <dtolnay@gmail.com>
1987 Mark Wielaard <mark@klomp.org>
1988
1989 * Makefile.in (CFILES): Add rust-demangle.c.
1990 (REQUIRED_OFILES): Add rust-demangle.o.
1991 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1992 (cplus_demangle): Handle RUST_DEMANGLING.
1993 (rust_demangle): New function.
1994 * rust-demangle.c: New file.
1995 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1996 (check-rust-demangle): New rule.
1997 * testsuite/rust-demangle-expected: New file.
1998
19992016-11-15 Mark Wielaard <mark@klomp.org>
2000
2001 * cp-demangle.c (d_expression_1): Make sure third expression
2002 exists for ?: and fold expressions.
2003 * testsuite/demangle-expected: Add examples of strings that could
2004 crash the demangler because of missing expression.
2005
20062016-11-14 Mark Wielaard <mark@klomp.org>
2007
2008 * cplus-dem.c (demangle_signature): After 'H', template function,
2009 no success and don't advance position if end of string reached.
2010 (demangle_template): After 'z', template name, return zero on
2011 premature end of string.
2012 (gnu_special): Guard strchr against searching for zero characters.
2013 (do_type): If member, only advance mangled string when 'F' found.
2014 * testsuite/demangle-expected: Add examples of strings that could
2015 crash the demangler by reading past end of input.
2016
20172016-11-06 Mark Wielaard <mark@klomp.org>
2018
2019 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
2020 * configure: Regenerated.
2021
20222016-11-07 Jason Merrill <jason@redhat.com>
2023
2024 * cp-demangle.c (is_fnqual_component_type): New.
2025 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
2026 (FNQUAL_COMPONENT_CASE): New.
2027 (d_make_comp, has_return_type, d_print_comp_inner)
2028 (d_print_function_type): Use it.
2029 (next_is_type_qual): New.
2030 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
2031
20322016-11-02 Mark Wielaard <mjw@redhat.com>
2033
2034 * cplus-dem.c (demangle_signature): Move fall through comment.
2035 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
2036 * hashtab.c (iterative_hash): Add fall through comments.
2037 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
2038 (byte_re_match_2_internal): Add Fall through comment after jump_n.
2039 Change "Note fall through" to "Fall through".
2040 (common_op_match_null_string_p): Return false after set_number_at
2041 instead of fall through.
2042
20432016-11-01 Jason Merrill <jason@redhat.com>
2044
2045 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
2046
20472016-10-31 Mark Wielaard <mjw@redhat.com>
2048
2049 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
2050 XDELETEVEC demangled when unknown.
2051
20522016-09-19 Andrew Stubbs <ams@codesourcery.com>
2053
2054 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
2055 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
2056
20572016-09-10 Mark Wielaard <mjw@redhat.com>
2058
2059 * cp-demangle.c (d_substitution): Change struct demangle_component
2060 variable name from c to dc.
2061
20622016-08-12 Marek Polacek <polacek@redhat.com>
2063
2064 PR c/7652
2065 * cp-demangle.c (d_print_mod): Add FALLTHRU.
2066
20672016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
2068
2069 PR c++/71696
2070 * cplus-dem.c: Prevent infinite recursion when there is a cycle
2071 in the referencing of remembered mangled types.
2072 (work_stuff): New stack to keep track of the remembered mangled
2073 types that are currently being processed.
2074 (push_processed_type): New method to push currently processed
2075 remembered type onto the stack.
2076 (pop_processed_type): New method to pop currently processed
2077 remembered type from the stack.
2078 (work_stuff_copy_to_from): Copy values of new variables.
2079 (delete_non_B_K_work_stuff): Free stack memory.
2080 (demangle_args): Push/Pop currently processed remembered type.
2081 (do_type): Do not demangle a cyclic reference and push/pop
2082 referenced remembered type.
2083
20842016-07-29 Aldy Hernandez <aldyh@redhat.com>
2085
2086 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
2087 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
2088
20892016-07-15 Jason Merrill <jason@redhat.com>
2090
2091 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
2092 (d_expression_1): Handle them.
2093 (d_maybe_print_fold_expression): New.
2094 (d_print_comp_inner): Use it.
2095 (d_index_template_argument): Handle negative index.
2096
2097 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
2098 (d_print_comp_inner): Handle them.
2099 (d_template_args_1): Split out from d_template_args.
2100 (d_args_length): New.
2101
21022016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
2103
2104 PR c++/70926
2105 * cplus-dem.c: Handle large values and overflow when demangling
2106 length variables.
2107 (demangle_template_value_parm): Read only until end of mangled string.
2108 (do_hpacc_template_literal): Likewise.
2109 (do_type): Handle overflow when demangling array indices.
2110
21112016-06-12 Brooks Moses <bmoses@google.com>
2112
2113 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
2114 VLAs.
2115
21162016-05-31 Alan Modra <amodra@gmail.com>
2117
2118 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
2119
21202016-05-19 Jakub Jelinek <jakub@redhat.com>
2121
2122 PR c++/70498
2123 * cp-demangle.c (d_expression_1): Formatting fix.
2124
21252016-05-18 Artemiy Volkov <artemiyv@acm.org>
2126
2127 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
2128 constant.
2129 (demangle_template_value_parm): Handle tk_rvalue_reference
2130 type kind.
2131 (do_type): Support 'O' type id (rvalue references).
2132
2133 * testsuite/demangle-expected: Add tests.
2134
21352016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
2136
2137 PR c++/70498
2138 * cp-demangle.c: Parse numbers as integer instead of long to avoid
2139 overflow after sanity checks. Include <limits.h> if available.
2140 (INT_MAX): Define if necessary.
2141 (d_make_template_param): Takes integer argument instead of long.
2142 (d_make_function_param): Likewise.
2143 (d_append_num): Likewise.
2144 (d_identifier): Likewise.
2145 (d_number): Parse as and return integer.
2146 (d_compact_number): Handle overflow.
2147 (d_source_name): Change variable type to integer for parsed number.
2148 (d_java_resource): Likewise.
2149 (d_special_name): Likewise.
2150 (d_discriminator): Likewise.
2151 (d_unnamed_type): Likewise.
2152 * testsuite/demangle-expected: Add regression test cases.
2153
21542016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
2155
2156 * configure: Remove SH5 support.
2157
21582016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
2159
2160 PR c++/69687
2161 * cplus-dem.c: Include <limits.h> if available.
2162 (INT_MAX): Define if necessary.
2163 (remember_type, remember_Ktype, register_Btype, string_need):
2164 Abort if we detect cases where we the size of the allocation would
2165 overflow.
2166
2167 PR c++/70492
2168 * cplus-dem.c (gnu_special): Handle case where consume_count returns
2169 -1.
2170
21712016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
2172 Marcel Bohme <boehme.marcel@gmail.com>
2173
2174 PR c++/67394
2175 PR c++/70481
2176 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
2177 btypevec/ktypevec.
2178 * testsuite/demangle-expected: Add coverage tests.
2179
21802016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2181
2182 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
2183 function calling convention.
2184 (dlang_call_convention_p): Likewise.
2185 (dlang_type): Likewise.
2186 * testsuite/d-demangle-expected: Add coverage tests.
2187
21882016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2189
2190 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
2191 only if parameters were seen before the elipsis symbol.
2192 * testsuite/d-demangle-expected: Add coverage test for parameter-less
2193 variadic functions.
2194
21952016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
2196
2197 * d-demangle.c (dlang_type): Handle function types only in the context
2198 of seeing a pointer type symbol.
2199 * testsuite/d-demangle-expected: Update function pointer tests.
2200
22012016-01-05 Mike Frysinger <vapier@gentoo.org>
2202
2203 * argv.c (dupargv): Change arg to char * const *. Update comment.
2204 (writeargv, countargv): Likewise.
2205 * functions.texi (dupargv, writeargv, countargv): Likewise.
2206
22072016-01-05 Mike Frysinger <vapier@gentoo.org>
2208
2209 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
2210
22112015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
2212
2213 * crc32.c: In the documentation, don't refer to GDB's
2214 now-nonexistent crc32 implementation. In the table-generation
2215 program embedded within the documentation, change the type of
2216 the induction variables i and j from int to unsigned int, to
2217 avoid undefined behavior.
2218
22192015-12-21 Nick Clifton <nickc@redhat.com>
2220
2221 PR 66827
2222 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
2223 shifting.
2224
22252015-11-27 Pedro Alves <palves@redhat.com>
2226
2227 PR other/61321
2228 PR other/61233
2229 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
2230 DEMANGLE_COMPONENT_CONVERSION.
2231 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
2232 instead of DEMANGLE_COMPONENT_CAST.
2233 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
2234 component if handling a conversion.
2235 (d_count_templates_scopes, d_print_comp_inner): Handle
2236 DEMANGLE_COMPONENT_CONVERSION.
2237 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
2238 of DEMANGLE_COMPONENT_CAST.
2239 (d_print_cast): Rename as ...
2240 (d_print_conversion): ... this. Adjust comments.
2241 (d_print_cast): Rewrite - simply print the left subcomponent.
2242 * cp-demint.c (cplus_demangle_fill_component): Handle
2243 DEMANGLE_COMPONENT_CONVERSION.
2244
2245 * testsuite/demangle-expected: Add tests.
2246
22472015-11-12 Mike Stump <mikestump@comcast.net>
2248
2249 * Makefile.in (etags tags TAGS): Use && instead of ;.
2250
22512015-11-09 Alan Modra <amodra@gmail.com>
2252
2253 * configure.ac: Check size of size_t.
2254 * configure: Regenerate.
2255 * config.in: Regenerate.
2256
22572015-11-09 Alan Modra <amodra@gmail.com>
2258
2259 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
2260 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
2261 after alloc failure check.
2262
22632015-11-09 Alan Modra <amodra@gmail.com>
2264
2265 PR gdb/17133
2266 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
2267 (obstack_exit_failure): Don't use exitfail.h.
2268 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
2269 Provide default. Don't include gettext.h.
2270 (_Noreturn): Define.
2271 * obstacks.texi: Adjust node references to external libc info files.
2272
22732015-11-09 Alan Modra <amodra@gmail.com>
2274
2275 PR gdb/17133
2276 * obstack.c: Import current gnulib file.
2277 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
2278
22792015-11-06 Joel Brobecker <brobecker@adacore.com>
2280
2281 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
2282 Android hosts.
2283 * configure: Regenerate.
2284
22852015-10-28 Jason Merrill <jason@redhat.com>
2286
2287 * Makefile.in (TAGS): Fix for separate build directory.
2288
22892015-10-18 Roland McGrath <roland@gnu.org>
2290 Iain Sandoe <iain@codesourcery.com>
2291
2292 PR other/63758
2293 * pex-unix.c: Obtain the environment interface from settings in
2294 environ.h rather than in-line code. Update copyright date.
2295 * setenv.c: Likewise.
2296 * xmalloc.c: Likewise.
2297
22982015-09-30 Jason Merrill <jason@redhat.com>
2299
2300 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
2301 (cplus_demangle_type): Let d_cv_qualifiers handle it.
2302 (d_dump, d_make_comp, has_return_type, d_encoding)
2303 (d_count_templates_scopes, d_print_comp_inner)
2304 (d_print_mod_list, d_print_mod, d_print_function_type)
2305 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
2306
23072015-08-15 Ian Lance Taylor <iant@google.com>
2308
2309 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
2310 ABI tags.
2311
23122015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
2313
2314 * d-demangle.c (dlang_parse_real): Remove call to strtod.
2315 (strtod): Remove declaration.
2316 * testsuite/d-demangle-expected: Update float and complex literal
2317 tests to check correct hexadecimal demangling.
2318
23192015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
2320
2321 * cp-demangle.c (d_dump): Fix syntax error.
2322 (d_identifier): Adjust type of len to match d_source_name.
2323 (d_expression_1): Fix out-of-bounds access. Check code variable for
2324 NULL before dereferencing it.
2325 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
2326 (d_print_comp_inner): Add NULL pointer check.
2327 * cp-demangle.h (d_peek_next_char): Define as inline function when
2328 CHECK_DEMANGLER is defined.
2329 (d_advance): Likewise.
2330 * testsuite/demangle-expected: Add new testcases.
2331
23322015-07-09 Uros Bizjak <ubizjak@gmail.com>
2333
2334 * getruntime.c (RUSAGE_SELF): Define if not already defined.
2335 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
2336
23372015-06-01 Jason Merrill <jason@redhat.com>
2338
2339 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
2340 extended qualifier.
2341
23422015-05-22 Yunlian Jiang <yunlian@google.com>
2343
2344 * configure.ac: Add AC_GNU_SOURCE.
2345 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
2346 * configure, config.in: Rebuild.
2347 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
2348
23492015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2350
2351 * d-demangle.c (dlang_symbol_kinds): New enum.
2352 (dlang_parse_symbol): Update signature. Handle an ambiguity between
2353 pascal functions and template value arguments. Only check for a type
2354 if parsing a function, or at the top level. Return failure if the
2355 entire symbol was not successfully demangled.
2356 (dlang_identifier): Update signature. Handle an ambiguity between two
2357 adjacent digits in a mangled symbol string.
2358 (dlang_type): Update call to dlang_parse_symbol.
2359 (dlang_template_args): Likewise.
2360 (dlang_parse_template): Likewise.
2361 (dlang_demangle): Likewise.
2362 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
2363 examples to the unittests.
2364
23652015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2366
2367 * d-demangle.c (dlang_template_args): Skip over specialized template
2368 parameters in mangled symbol.
2369 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
2370 template parameters.
2371
23722015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2373
2374 * d-demangle.c (dlang_type): Handle cent and ucent types.
2375 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
2376
23772015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2378
2379 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
2380 return parameters in the mangled string. Return NULL if have encountered
2381 an unknown attribute.
2382 (dlang_function_args): Handle return parameters in the mangled string.
2383 * testsuite/d-demangle-expected: Add coverage tests for functions with
2384 return parameters and return attributes.
2385
23862015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2387
2388 * d-demangle.c (dlang_identifier): Check encoded length of identifier
2389 to verify strncmp matches entire string.
2390 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
2391
23922015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2393
2394 * d-demangle.c (dlang_type_modifiers): New function.
2395 (dlang_type_modifier_p): New function.
2396 (dlang_call_convention_p): Ignore any kind of type modifier.
2397 (dlang_type): Handle and emit the type modifier after delegate types.
2398 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
2399 * testsuite/d-demangle-expected: Add coverage tests for all valid
2400 usages of function symbols with type modifiers.
2401
24022015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2403
2404 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
2405 end of the symbol, but expected something to read.
2406 (dlang_attributes): Likewise.
2407 (dlang_function_type): Likewise.
2408 (dlang_type): Likewise.
2409 (dlang_identifier): Likewise.
2410 (dlang_value): Likewise.
2411
24122015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2413
2414 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
2415 non-printable characters as hex or escape sequences.
2416 * testsuite/d-demangle-expected: Add test for templates with tabs and
2417 newlines embedded into the signature.
2418
24192015-05-08 Joel Brobecker <brobecker@adacore.com>
2420
2421 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
2422 but not HAVE_SYS_TIME_H.
2423
24242015-04-22 Eli Zaretskii <eliz@gnu.org>
2425
2426 * setenv.c <environ>: Declare only if not a macro.
2427
24282015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
2429
2430 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2431
24322015-04-10 Jakub Jelinek <jakub@redhat.com>
2433 Iain Sandoe <iain@codesourcery.com>
2434
2435 PR target/65351
2436 * configure: Regenerate.
2437
24382015-04-07 Jakub Jelinek <jakub@redhat.com>
2439 Iain Sandoe <iain@codesourcery.com>
2440
2441 PR target/65351
2442 * configure: Regenerate.
2443
24442015-01-19 Eli Zaretskii <eliz@gnu.org>
2445
2446 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2447 macros.
2448
24492014-12-24 Uros Bizjak <ubizjak@gmail.com>
2450 Ben Elliston <bje@au.ibm.com>
2451 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2452
2453 * xasprintf.c: New file.
2454 * Makefile.in (CFILES): Add xasprintf.c.
2455 (REQUIRED_OFILES): Add xasprintf.$(objext).
2456 (xasprintf.$(objext)): New target.
2457 * functions.texi: Regenerate.
2458
24592014-12-11 Uros Bizjak <ubizjak@gmail.com>
2460 Ben Elliston <bje@au.ibm.com>
2461 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2462
2463 * xvasprintf.c: New file.
2464 * vprintf-support.h: Likewise.
2465 * vprintf-support.c: Likewise.
2466 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
2467 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
2468 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
2469 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
2470 * functions.texi: Regenerate.
2471 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
2472
24732014-11-22 John David Anglin <danglin@gcc.gnu.org>
2474
2475 PR other/63694
2476 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2477 declarations.
2478 * configure: Regenerated.
2479
24802014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2481
2482 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2483 unsigned long.
2484
24852014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
2486 Manuel López-Ibáñez <manu@gcc.gnu.org>
2487
2488 PR driver/36312
2489 * filename_cmp.c (canonical_filename_eq): New function to check if
2490 file names are the same.
2491 * functions.texi: Updated with documentation for new function.
2492
24932014-11-11 David Malcolm <dmalcolm@redhat.com>
2494
2495 * ChangeLog.jit: New.
2496
24972014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2498
2499 * sigsetmask.c (_POSIX_SOURCE): Remove.
2500
25012014-10-28 Yury Gribov <y.gribov@samsung.com>
2502
2503 * strtoll.c: New file.
2504 * strtoull.c: New file.
2505 * configure.ac: Add long long checks. Add harness for strtoll and
2506 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
2507 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2508 * config.in: Regenerate.
2509 * configure: Regenerate.
2510 * functions.texi: Regenerate.
2511 * testsuite/Makefile.in (check-strtol): New rule.
2512 (test-strtol): Likewise.
2513 (mostlyclean): Clean up strtol test.
2514 * testsuite/test-strtol.c: New test.
2515
25162014-10-15 David Malcolm <dmalcolm@redhat.com>
2517
2518 * choose-temp.c (choose_tmpdir): Remove now-redundant local
2519 copy of prototype.
2520 * functions.texi: Regenerate.
2521 * make-temp-file.c (choose_tmpdir): Convert return type from
2522 char * to const char * - given that this returns a pointer to
2523 a memoized allocation, the caller must not touch it.
2524
25252014-10-14 Joel Brobecker <brobecker@adacore.com>
2526
2527 * d-demangle.c: Replace strtold with strtod in global comment.
2528 (strtold): Remove declaration.
2529 (strtod): New declaration.
2530 (dlang_parse_real): Declare value as double instead of long
2531 double. Replace call to strtold by call to strtod.
2532 Update format in call to snprintf.
2533
25342014-09-26 Jason Merrill <jason@redhat.com>
2535
2536 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2537
25382014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
2539
2540 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2541 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2542 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2543 * pex-win32.c (pex_win32_open_write): Likewise.
2544 * pex-common.c (pex_run_in_environment): Likewise.
2545
25462014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
2547
2548 * Makefile.in (CFILES): Add d-demangle.c.
2549 (REQUIRED_OFILES): Add d-demangle.o.
2550 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2551 (cplus_demangle): Likewise.
2552 * d-demangle.c: New file.
2553 * testsuite/Makefile.in (really-check): Add check-d-demangle.
2554 * testsuite/d-demangle-expected: New file.
2555
25562014-09-19 Ian Lance Taylor <iant@google.com>
2557
2558 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2559 handle objects with more than SHN_LORESERVE sections.
2560 (simple_object_elf_write_shdr): Add sh_link parameter.
2561 (simple_object_elf_write_to_file): Correctly handle objects with
2562 more than SHN_LORESERVE sections.
2563
25642014-08-29 Andrew Burgess <aburgess@broadcom.com>
2565
2566 * cp-demangle.c (d_dump): Only access field from s_fixed part of
2567 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2568 (d_count_templates_scopes): Likewise.
2569
25702014-08-13 Gary Benson <gbenson@redhat.com>
2571
2572 * testsuite/demangler-fuzzer.c: New file.
2573 * testsuite/Makefile.in (fuzz-demangler): New rule.
2574 (demangler-fuzzer): Likewise.
2575 (mostlyclean): Clean up demangler fuzzer.
2576
25772014-06-11 Andrew Burgess <aburgess@broadcom.com>
2578
2579 * cplus-dem.c (do_type): Call string_delete even if the call to
2580 demangle_template fails.
2581
25822014-06-01 Ray Donnelly <mingw.android@gmail.com>
2583
2584 * pex-win32.c (argv_to_cmdline): Don't quote
2585 args unnecessarily
2586
25872014-05-28 Pedro Alves <palves@redhat.com>
2588
2589 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2590 and DEMANGLE_COMPONENT_NUMBER.
2591
25922014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2593
2594 * testsuite/demangle-expected: Fix last commit.
2595
25962014-05-14 Andrew Burgess <aburgess@broadcom.com>
2597
2598 * cplus-dmem.c (internal_cplus_demangle): Free any resources
2599 allocated by possible previous call to gnu_special.
2600 (squangle_mop_up): Reset pointers to NULL after calling free.
2601 * testsuite/demangle-expected: New test case.
2602
26032014-05-08 Gary Benson <gbenson@redhat.com>
2604
2605 * cp-demangle.c (struct d_component_stack): New structure.
2606 (struct d_print_info): New field component_stack.
2607 (d_print_init): Initialize the above.
2608 (d_print_comp_inner): Renamed from d_print_comp.
2609 Do not restore template stack if it would cause a loop.
2610 (d_print_comp): New function.
2611 * testsuite/demangle-expected: New test cases.
2612
26132014-04-17 Jakub Jelinek <jakub@redhat.com>
2614
2615 PR sanitizer/56781
2616 * maint-tool: Also emit rule for noasan/ subdirectory.
2617 * configure.ac (NOASANFLAG): Set and substitute.
2618 * Makefile.in: Regenerated.
2619 (NOASANFLAG): Set.
2620 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2621 subdir.
2622 (stamp-noasandir): New goal.
2623 * configure: Regenerated.
2624
26252014-04-01 Richard Biener <rguenther@suse.de>
2626
2627 * simple-object.c (simple_object_internal_write): Handle
2628 EINTR and short writes.
2629
26302014-03-28 Richard Biener <rguenther@suse.de>
2631
2632 * simple-object.c (simple_object_internal_read): Handle
2633 EINTR and short reads.
2634
26352014-03-13 Uros Bizjak <ubizjak@gmail.com>
2636
2637 * regex.c (bzero) [!_LIBC]: Define without coma expression.
2638 (regerror): Cast the call to memcpy to (void) to avoid unused
2639 value warnings.
2640
26412014-01-28 Thomas Schwinge <thomas@codesourcery.com>
2642
2643 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2644 to help the compiler.
2645
26462014-01-21 Tom Tromey <tromey@redhat.com>
2647
2648 * _doprint.c (checkit): Use stdarg, not VA_* macros.
2649 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2650 * concat.c (concat_length, concat_copy, concat_copy2, concat)
2651 (reconcat): Use stdarg, not VA_* macros.
2652 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2653 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2654 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2655
26562014-01-06 Mike Frysinger <vapier@gentoo.org>
2657
2658 PR other/56780
2659 * configure.ac: Delete target_header_dir assignment.
2660 * configure: Regenerated.
2661
26622014-01-06 Gary Benson <gbenson@redhat.com>
2663
2664 * cp-demangle.c (struct d_print_info): New fields
2665 next_saved_scope, copy_templates, next_copy_template and
2666 num_copy_templates.
2667 (d_count_templates): New function.
2668 (d_print_init): New parameter "dc".
2669 Estimate numbers of templates and scopes required.
2670 (d_print_free): Removed function.
2671 (cplus_demangle_print_callback): Allocate stack for
2672 templates and scopes. Removed call to d_print_free.
2673 (d_copy_templates): Removed function.
2674 (d_save_scope): New function.
2675 (d_get_saved_scope): Likewise.
2676 (d_print_comp): Replace state saving/restoring code with
2677 calls to d_save_scope and d_get_saved_scope.
2678
26792013-12-23 Bill Maddox <maddox@google.com>
2680
2681 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2682 Handle unified ctor/dtor.
2683 (d_ctor_dtor_name): Handle unified ctor/dtor.
2684
26852013-11-22 Cary Coutant <ccoutant@google.com>
2686
2687 PR other/59195
2688 * cp-demangle.c (struct d_info_checkpoint): New struct.
2689 (struct d_print_info): Add current_template field.
2690 (d_operator_name): Set flag when processing a conversion
2691 operator.
2692 (cplus_demangle_type): When processing <template-args> for
2693 a conversion operator, backtrack if necessary.
2694 (d_expression_1): Renamed from d_expression.
2695 (d_expression): New wrapper around d_expression_1.
2696 (d_checkpoint): New function.
2697 (d_backtrack): New function.
2698 (d_print_init): Initialize current_template.
2699 (d_print_comp): Set current_template.
2700 (d_print_cast): Put current_template in scope for
2701 printing conversion operator name.
2702 (cplus_demangle_init_info): Initialize is_expression and
2703 is_conversion.
2704 * cp-demangle.h (struct d_info): Add is_expression and
2705 is_conversion fields.
2706 * testsuite/demangle-expected: New test cases.
2707
27082013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2709
2710 * configure: Regenerate.
2711
27122013-11-12 Uros Bizjak <ubizjak@gmail.com>
2713
2714 * cp-demangle.c (d_copy_templates): Cast result of malloc
2715 to (struct d_print_template *).
2716 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2717
27182013-10-29 Marc Glisse <marc.glisse@inria.fr>
2719
2720 PR tree-optimization/58689
2721 * concat.c: Remove note about xmalloc.
2722
27232013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2724
2725 * testsuite/test-demangle.c: Include unistd.h.
2726
27272013-10-25 Gary Benson <gbenson@redhat.com>
2728
2729 * cp-demangle.c (struct d_saved_scope): New structure.
2730 (struct d_print_info): New fields saved_scopes and
2731 num_saved_scopes.
2732 (d_print_init): Initialize the above.
2733 (d_print_free): New function.
2734 (cplus_demangle_print_callback): Call the above.
2735 (d_copy_templates): New function.
2736 (d_print_comp): New variables saved_templates and
2737 need_template_restore.
2738 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2739 Capture scope the first time the component is traversed, and use the
2740 captured scope for subsequent traversals.
2741 * testsuite/demangle-expected: Add regression test.
2742
27432013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2744
2745 * testsuite/test-expandargv.c: Include unistd.h.
2746
27472013-10-15 David Malcolm <dmalcolm@redhat.com>
2748
2749 * configure.ac: If --enable-host-shared, use -fPIC.
2750 * configure: Regenerate.
2751
27522013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2753
2754 * cp-demangle.c (d_name): Demangle local-source-names.
2755 * testsuite/demangle-expected: New test.
2756
27572013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2758
2759 PR bootstrap/58386
2760 Revert:
2761
2762 2013-09-10 Gary Benson <gbenson@redhat.com>
2763
2764 * cp-demangle.c: Include hashtab.h.
2765 (struct d_print_info): New field saved_scopes.
2766 (d_print_init): Initialize the above.
2767 (d_print_free): New function.
2768 (cplus_demangle_print_callback): Call the above.
2769 (struct d_saved_scope): New structure.
2770 (d_store_scope): New function.
2771 (d_free_scope) Likewise.
2772 (d_restore_scope) Likewise.
2773 (d_hash_saved_scope) Likewise.
2774 (d_equal_saved_scope) Likewise.
2775 (d_print_comp): New variable saved_scope.
2776 [DEMANGLE_COMPONENT_REFERENCE,
2777 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2778 time the component is traversed, and use the captured scope for
2779 subsequent traversals.
2780 * testsuite/demangle-expected: Add regression test.
2781
27822013-09-10 Gary Benson <gbenson@redhat.com>
2783
2784 * cp-demangle.c: Include hashtab.h.
2785 (struct d_print_info): New field saved_scopes.
2786 (d_print_init): Initialize the above.
2787 (d_print_free): New function.
2788 (cplus_demangle_print_callback): Call the above.
2789 (struct d_saved_scope): New structure.
2790 (d_store_scope): New function.
2791 (d_free_scope) Likewise.
2792 (d_restore_scope) Likewise.
2793 (d_hash_saved_scope) Likewise.
2794 (d_equal_saved_scope) Likewise.
2795 (d_print_comp): New variable saved_scope.
2796 [DEMANGLE_COMPONENT_REFERENCE,
2797 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2798 time the component is traversed, and use the captured scope for
2799 subsequent traversals.
2800 * testsuite/demangle-expected: Add regression test.
2801
28022013-08-20 Alan Modra <amodra@gmail.com>
2803
2804 * floatformat.c (floatformat_ibm_long_double): Rename to..
2805 (floatformat_ibm_long_double_big): ..this.
2806 (floatformat_ibm_long_double_little): New.
2807
28082013-07-09 Tristan Gingold <gingold@adacore.com>
2809
2810 * makefile.vms (OBJS): Add dwarfnames.obj
2811
28122013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2813
2814 PR other/56780
2815 * configure.ac: Move test for --enable-install-libiberty
2816 outside of the 'with_target_subdir' test so that it actually gets
2817 run. Add output messages to show the test result.
2818 * configure: Regenerate.
2819 * Makefile.in (install_to_libdir): Place the
2820 installation of the libiberty library in the same guard as that
2821 used for the headers to prevent it being installed unless
2822 requested via --enable-install-libiberty.
2823
28242013-05-06 David Edelsohn <dje.gcc@gmail.com>
2825 Peter Bergner <bergner@vnet.ibm.com>
2826 Segher Boessenkool <segher@kernel.crashing.org>
2827 Jakub Jelinek <jakub@redhat.com>
2828
2829 * hashtab.c (hash_pointer): Remove conditional and avoid
2830 unexecuted shift equal to wordsize.
2831
28322013-04-22 Andi Kleen <ak@linux.intel.com>
2833
2834 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2835
28362013-04-03 Jason Merrill <jason@redhat.com>
2837
2838 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2839 (d_pointer_to_member_type): Simplify.
2840
2841 Demangle C++11 ref-qualifier.
2842 * cp-demangle.c (d_ref_qualifier): New.
2843 (d_nested_name, d_function_type): Use it.
2844 (d_parmlist): Don't get confused by a ref-qualifier.
2845 (cplus_demangle_type): Reorder ref-qualifier.
2846 (d_pointer_to_member_type): Likewise.
2847 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2848 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2849 (d_make_comp, has_return_type, d_encoding): Likewise.
2850 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2851 (d_print_function_type, is_ctor_or_dtor): Likewise.
2852
28532013-03-27 Kai Tietz <ktietz@redhat.com>
2854
2855 * configure: Regenerated.
2856
28572013-03-06 Tobias Burnus <burnus@net-b.de>
2858
2859 * libiberty.texi: Update comment, remove lowersections.
2860 * obstacks.texi: Regenerate.
2861
28622013-03-05 Jakub Jelinek <jakub@redhat.com>
2863
2864 PR middle-end/56526
2865 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2866 wrapper_sect_offset to avoid a warning.
2867
28682013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2869
2870 * obstacks.texi (Obstacks): Trim @node to only contain the
2871 node name.
2872 * libiberty.texi (Obstacks): Lower section.
2873
28742013-02-14 Jason Merrill <jason@redhat.com>
2875
2876 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2877 (d_print_comp): Likewise.
2878
28792013-02-09 Jakub Jelinek <jakub@redhat.com>
2880
2881 PR other/56245
2882 * regex.c (PTR_INT_TYPE): Define.
2883 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2884
28852013-01-31 Kai Tietz <ktietz@redhat.com>
2886
2887 PR other/54620
2888 * sha1.c (sha1_process_block): Handle case that size_t is
2889 a wider-integer-scalar as a 32-bit unsigned integer.
2890
2891 PR other/53413
2892 * md5.c (md5_process_block): Handle case that size_t is
2893 a wider-integer-scalar a 32-bit unsigned integer.
2894
28952013-01-04 Ian Lance Taylor <iant@google.com>
2896
2897 PR other/54800
2898 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2899 bother to zero out a buffer we are about to set anyhow.
2900
29012013-01-01 David Edelsohn <dje.gcc@gmail.com>
2902
2903 * simple-object-xcoff.c: New file.
2904 * Makefile.in: Add it to build machinery.
2905 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2906 * simple-object.c (format_functions): Add
2907 simple_object_xcoff_functions.
2908
29092012-11-10 Jason Merrill <jason@redhat.com>
2910
2911 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2912 (d_name): Not here.
2913
29142012-11-09 Jason Merrill <jason@redhat.com>
2915
2916 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2917 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2918 (d_abi_tags): New.
2919 (d_name): Call it.
2920
29212012-10-08 Jason Merrill <jason@redhat.com>
2922
2923 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2924 (d_make_comp, d_print_comp): Likewise.
2925
29262012-09-18 Ian Lance Taylor <iant@google.com>
2927
2928 * strnlen.c: New file.
2929 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2930 present.
2931 * Makefile.in: Rebuild dependencies.
2932 (CFILES): Add strnlen.c.
2933 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2934 * configure, config.in, functions.texi: Rebuild.
2935
2936 * maint-tool: Accept .def files in the include directory.
2937
29382012-09-18 Florian Weimer <fweimer@redhat.com>
2939
2940 PR other/54411
2941 * objalloc.c (_objalloc_alloc): Add overflow check covering
2942 alignment and CHUNK_HEADER_SIZE addition.
2943
29442011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2945
2946 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2947 xmalloc return.
2948 (buildargv): Likewise. Also replace strdup with xstrdup.
2949 (expandargv): Don't check dupargv return.
2950
29512011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2952
2953 PR binutils/14526
2954 * argv.c (buildargv): Replace alloca with xmalloc/free.
2955
29562012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2957
2958 * floatformat.c (floatformat_to_double): Correctly handle numbers
2959 between 1 and 2. Simplify handling of denormal number.
2960 (main): Test with 1.1.
2961
29622012-07-31 Mike Frysinger <vapier@gentoo.org>
2963
2964 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2965 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2966
29672012-07-26 Kazu Hirata <kazu@codesourcery.com>
2968 Sandra Loosemore <sandra@codesourcery.com>
2969
2970 * pex-win32.c (pex_win32_exec_child): Only close original file
2971 descriptors if child is launched successfully.
2972
29732012-07-18 Jason Merrill <jason@redhat.com>
2974
2975 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2976 (op_is_new_cast): New.
2977 (d_expression, d_print_comp): Check it.
2978
29792012-07-13 Doug Evans <dje@google.com>
2980
2981 * filename_cmp.c (filename_hash, filename_eq): New functions.
2982
29832012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2984
2985 * copying-lib.texi (Library Copying): Don't use @heading inside
2986 @enumerate.
2987
29882012-05-22 Tom Tromey <tromey@redhat.com>
2989
2990 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2991 * testsuite/demangle-expected: Add regression test.
2992 * cp-demangle.c (d_find_pack): Return NULL for
2993 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2994
29952012-04-27 Tom Tromey <tromey@redhat.com>
2996
2997 * dwarfnames.c: New file.
2998 * Makefile.in (CFILES): Add dwarfnames.
2999 (REQUIRED_OFILES): Add dwarfnames.
3000 (./dwarfnames.$(objext)): New target.
3001
30022012-04-04 Tristan Gingold <gingold@adacore.com>
3003
3004 * pex-unix.c (to_ptr32): Fix style.
3005
30062012-04-02 Tristan Gingold <gingold@adacore.com>
3007
3008 * stack-limit.c: Includes ansidecl.h.
3009 (stack_limit_increase): Add ATTRIBUTE_UNUSED
3010
30112012-03-20 Jason Merrill <jason@redhat.com>
3012
3013 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
3014
30152012-03-07 Jason Merrill <jason@redhat.com>
3016
3017 * cp-demangle.c (cplus_demangle_operators): Add li.
3018 (d_unqualified_name): Handle it specially.
3019
30202012-01-26 Jakub Jelinek <jakub@redhat.com>
3021
3022 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
3023 about using preprocessor directives inside of macro arguments.
3024
30252012-01-22 Douglas B Rupp <rupp@gnat.com>
3026
3027 * configure: Regenerate.
3028
30292012-01-10 Jason Merrill <jason@redhat.com>
3030
3031 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
3032 Omit a trailing space in the operator name.
3033
30342012-01-06 Jason Merrill <jason@redhat.com>
3035
3036 PR c++/6057
3037 PR c++/48051
3038 PR c++/50855
3039 PR c++/51322
3040 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
3041 DEMANGLE_COMPONENT_INITIALIZER_LIST.
3042 (d_make_comp): Likewise. Allow null right arg for
3043 DEMANGLE_COMPONENT_TRINARY_ARG2.
3044 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
3045 (d_template_args, d_template_arg): Handle 'J' for argument packs.
3046 (d_exprlist): Add terminator parm.
3047 (d_expression, d_print_comp): Handle initializer lists, nullary
3048 expressions, prefix/suffix operators, and new.
3049 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
3050 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
3051 * testsuite/demangle-expected: Add tests.
3052
3053 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
3054 and vector are substitutable.
3055 (cplus_demangle_operators): Sort.
3056
30572012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3058
3059 * configure: Regenerate.
3060
30612012-01-02 Jakub Jelinek <jakub@redhat.com>
3062
3063 * make-relative-prefix.c (make_relative_prefix_1): Avoid
3064 stack overflow if PATH contains just a single entry and
3065 HOST_EXECUTABLE_SUFFIX needs to be used.
3066
3067 PR driver/48306
3068 * make-relative-prefix.c: Include sys/stat.h.
3069 (make_relative_prefix_1): If access succeeds, check also stat
3070 if nstore is a regular file.
3071
30722011-12-20 Andreas Schwab <schwab@linux-m68k.org>
3073
3074 * configure: Regenerate.
3075
30762011-12-20 Tristan Gingold <gingold@adacore.com>
3077
3078 * aclocal.m4: Assume strncmp works in cross case.
3079 * configure: Regenerate
3080
30812011-12-19 Andreas Schwab <schwab@linux-m68k.org>
3082
3083 * configure: Regenerate.
3084
30852011-11-07 Richard Henderson <rth@redhat.com>
3086
3087 Merged from transactional-memory.
3088
3089 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
3090 gnu_v3_object_ctor_group.
3091 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
3092 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
3093 and gnu_v3_object_dtor_group.
3094 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
3095 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
3096 (d_make_comp, d_print_comp): Likewise.
3097 (d_special_name): Generate them.
3098
30992011-11-04 Jason Merrill <jason@redhat.com>
3100
3101 PR c++/48370
3102 * cp-demangle.c (d_special_name, d_print_comp): Handle a
3103 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
3104
31052011-11-02 Doug Evans <dje@google.com>
3106
3107 * Makefile.in (CFILES): Add timeval-utils.c.
3108 (REQUIRED_OFILES): Add timeval-utils.$(objext).
3109 (INSTALLED_HEADERS): Add timeval-utils.h.
3110 (timeval-utils.$(objext)): Add rule.
3111
31122011-10-28 Ian Lance Taylor <iant@google.com>
3113
3114 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
3115
31162011-10-26 Iain Sandoe <iains@gcc.gnu.org>
3117
3118 PR target/48108
3119 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
3120 GNU_WRAPPER_NAMES): New macros.
3121 (simple_object_mach_o_segment): Handle wrapper scheme.
3122 (simple_object_mach_o_write_section_header): Allow the segment name
3123 to be supplied.
3124 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
3125 that the top-level segment name in the load command is empty.
3126 (simple_object_mach_o_write_to_file): Determine the number of
3127 sections during segment output, use that in writing the header.
3128
31292011-10-10 Ian Lance Taylor <iant@google.com>
3130
3131 PR c++/48665
3132 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
3133 function type, change them to apply to the "this" parameter.
3134 * testsuite/demangle-expected: Add test case.
3135
31362011-09-28 Doug Evans <dje@google.com>
3137
3138 * timeval-utils.c: New file.
3139
3140 * argv.c (countargv): New function.
3141
31422011-09-23 Cary Coutant <ccoutant@google.com>
3143
3144 PR 40831
3145 * cp-demangle.c (d_make_comp): Add new component type.
3146 (cplus_demangle_mangled_name): Check for clone suffixes.
3147 (d_parmlist): Don't error out if we see '.'.
3148 (d_clone_suffix): New function.
3149 (d_print_comp): Print info for clone suffixes.
3150 * testsuite/demangle-expected: Add new testcases.
3151
31522011-09-23 Ian Lance Taylor <iant@google.com>
3153 Pierre Vittet <piervit@pvittet.com>
3154
3155 * md5.c (md5_process_bytes): Correct handling of unaligned
3156 buffer.
3157
31582011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3159
3160 * aclocal.m4: Include ../config/picflag.m4.
3161 * configure.ac (GCC_PICFLAG): Call it.
3162 (enable_shared): Clear PICFLAG unless shared.
3163 * configure: Regenerate.
3164
31652011-08-12 Steve Ellcey <sje@cup.hp.com>
3166
3167 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
3168
31692011-08-06 Uros Bizjak <ubizjak@gmail.com>
3170
3171 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
3172
31732011-08-01 Jason Merrill <jason@redhat.com>
3174
3175 PR c++/49932
3176 * cp-demangle.c (d_prefix): Handle decltype.
3177 * testsuite/demangle-expected: Test it.
3178
31792011-07-26 H.J. Lu <hongjiu.lu@intel.com>
3180
3181 * testsuite/demangle-expected: Remove an extra line.
3182
31832011-07-26 Ian Lance Taylor <iant@google.com>
3184
3185 * cp-demangle.c (d_print_init): Initialize pack_index field.
3186 (d_print_comp): Check for NULL template argument.
3187 * testsuite/demangle-expected: Add test case.
3188
31892011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
3190
3191 PR target/49817
3192 * stack-limit.c: Include <stdint.h>.
3193
31942011-07-22 Jakub Jelinek <jakub@redhat.com>
3195
3196 PR c++/49756
3197 * stack-limit.c: New file.
3198 * Makefile.in: Regenerate deps.
3199 (CFILES): Add stack-limit.c.
3200 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
3201 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
3202 (AC_CHECK_FUNCS): Likewise.
3203 * configure: Regenerated.
3204 * config.in: Regenerated.
3205
32062011-07-04 Jason Merrill <jason@redhat.com>
3207
3208 * cp-demangle.c (d_expression): Handle 'this'.
3209 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
3210
32112011-07-01 Joel Brobecker <brobecker@adacore.com>
3212
3213 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
3214 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
3215
32162011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3217
3218 PR debug/49408
3219 * cp-demangle.c (d_print_comp): Suppress argument list for function
3220 references by the '&' unary operator. Keep also already processed
3221 variant without the argument list. Suppress argument list types for
3222 function call used in an expression.
3223 * testsuite/demangle-expected: Fix excessive argument list types in
3224 `test for typed function in decltype'. New testcase for no argument
3225 list types printed. 3 new testcases for function references by the
3226 '&' unary operator..
3227
32282011-06-20 Jason Merrill <jason@redhat.com>
3229
3230 PR c++/37089
3231 * cp-demangle.c (d_print_comp): Handle reference smashing.
3232 * testsuite/demangle-expected: Test it.
3233
32342011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3235
3236 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
3237 Suppress d_print_mod for DMGL_RET_POSTFIX.
3238 * testsuite/demangle-expected: New testcases for --ret-postfix.
3239
32402011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3241
3242 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
3243 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
3244 * testsuite/demangle-expected: New testcases for --ret-drop.
3245 * testsuite/test-demangle.c: Document --ret-drop in a comment.
3246 (main): New variable ret_drop, fill it, call cplus_demangle with it.
3247
32482011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3249
3250 * cp-demangle.c (struct d_print_info): Remove field options.
3251 (d_print_init): Remove parameter options.
3252 (cplus_demangle_print_callback): Update all the callers.
3253 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
3254 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
3255 Add parameter options, update all the callers.
3256
32572011-04-20 Jim Meyering <meyering@redhat.com>
3258
3259 * cp-demint.c (cplus_demangle_v3_components): Remove useless
3260 if-before-free.
3261 * cplus-dem.c (squangle_mop_up): Likewise.
3262 (delete_non_B_K_work_stuff): Likewise.
3263 * pex-common.c (pex_free): Likewise.
3264 * pex-msdos.c (pex_msdos_cleanup): Likewise.
3265 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
3266 (win32_spawn): Likewise.
3267 * regex.c (FREE_VAR, weak_alias): Likewise.
3268 * spaces.c (spaces): Likewise.
3269
32702011-04-10 Jim Meyering <meyering@redhat.com>
3271
3272 Avoid memory overrun in a test leading to potential double-free.
3273 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
3274 i.e., do copy the trailing NUL byte.
3275
32762011-03-31 Tristan Gingold <gingold@adacore.com>
3277
3278 * makefile.vms (OBJS): Add filename_cmp.obj
3279
32802011-02-28 Kai Tietz <kai.tietz@onevision.com>
3281
3282 * filename_cmp.c (filename_ncmp): New function.
3283 * functions.texi: Regenerated.
3284
32852011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3286
3287 * splay-tree.c: Escape wrapping newlines in texinfo markup
3288 with '@', to fix function declaration output rendering.
3289 * gather-docs: Relax and improve macro name matching to actually
3290 match all current names and to allow input line wrapping.
3291 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
3292 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
3293 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
3294 pexecute.txh, random.c, setenv.c, setproctitle.c,
3295 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
3296 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
3297 Wrap long texinfo input lines.
3298 * functions.texi: Regenerate.
3299
33002011-01-18 Mike Frysinger <vapier@gentoo.org>
3301
3302 * .gitignore: New file.
3303
33042010-12-08 Doug Evans <dje@google.com>
3305
3306 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
3307 all callers updated. Rewrite to be non-recursive.
3308
33092010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3310
3311 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
3312
33132010-11-20 Anthony Green <green@moxielogic.com>
3314
3315 * configure.ac: Turn PR_SET_NAME link test into a test for
3316 sys/prctl.h.
3317 * configure, config.in: Rebuilt.
3318 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
3319 (setproctitle) Test for PR_SET_NAME definition.
3320
33212010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3322
3323 PR other/46202
3324 * Makefile.in (install-strip): New phony target.
3325 (install): Also mark as phony.
3326
33272010-11-16 Ian Lance Taylor <iant@google.com>
3328
3329 * simple-object.c (simple_object_attributes_merge): Rename from
3330 simple_object_attributes_compare. Call merge field.
3331 * simple-object-common.h (struct simple_object_functions): Rename
3332 attributes_compare field to attribute_merge.
3333 * simple-object-elf.c (EM_SPARC): Define.
3334 (EM_SPARC32PLUS): Define.
3335 (simple_object_elf_attributes_merge): Renamed from
3336 simple_object_elf_attributes_compare. Permit EM_SPARC and
3337 EM_SPARC32PLUS objects to be merged.
3338 (simple_object_elf_functions): Update function name.
3339 * simple-object-coff.c (simple_object_coff_attributes_merge):
3340 Rename from simple_object_coff_attributes_compare.
3341 (simple_object_coff_functions): Update function name.
3342 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
3343 Renamed from simple_object_mach_o_attributes_compare.
3344 (simple_object_mach_o_functions): Update function name.
3345
33462010-11-16 H.J. Lu <hongjiu.lu@intel.com>
3347
3348 PR other/42670
3349 PR binutils/11137
3350 * cp-demangle.c (d_make_demangle_mangled_name): New.
3351 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
3352
3353 * testsuite/demangle-expected: Updated.
3354
33552010-11-14 Kai Tietz <kai.tietz@onevision.com>
3356
3357 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
3358 offset.
3359
33602010-11-12 Ian Lance Taylor <iant@google.com>
3361
3362 PR other/46332
3363 * cp-demangle.c (d_print_function_type): Don't print parentheses
3364 if there are no modifiers to print.
3365 * testsuite/demangle-expected: Tweak one test case, add another.
3366
33672010-11-04 Richard Henderson <rth@redhat.com>
3368
3369 * configure.ac (AC_CHECK_HEADERS): Add process.h.
3370 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
3371 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
3372 * configure, config.in: Rebuild.
3373 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
3374 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
3375
33762010-11-02 Ian Lance Taylor <iant@google.com>
3377 Dave Korn <dave.korn.cygwin@gmail.com>
3378 Iain Sandoe <iains@gcc.gnu.org>
3379
3380 * simple-object.c: New file.
3381 * simple-object-common.h: New file.
3382 * simple-object-elf.c: New file.
3383 * simple-object-mach-o.c: New file.
3384 * simple-object-coff.c: New file.
3385 * simple-object.txh: New file.
3386 * configure.ac: Add AC_TYPE_SSIZE_T.
3387 * Makefile.in: Rebuild dependencies.
3388 (CFILES): Add simple-object.c, simple-object-coff,
3389 simple-object-elf.c, and simple-object-mach-o.c.
3390 (REQUIRED_OFILES): Add corresponding object files.
3391 * configure: Rebuild.
3392 * config.in: Rebuild.
3393 * functions.texi: Rebuild.
3394
33952010-10-29 Ian Lance Taylor <iant@google.com>
3396
3397 * setproctitle.c: Add space after function name in @deftypefn
3398 comment.
3399 * functions.texi: Rebuild.
3400
34012010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3402
3403 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3404 * configure: Regenerate.
3405
34062010-10-07 Andi Kleen <ak@linux.intel.com>
3407
3408 * configure: Regenerate.
3409 * configure.ac: Turn PR_SET_NAME check into link check.
3410
34112010-10-06 Andi Kleen <ak@linux.intel.com>
3412
3413 * Makefile.in (CFILES): Add setproctitle.
3414 (CONFIGURED_OFILES): Add setproctitle.
3415 (setproctitle): Add rule.
3416 * config.in: Regenerate.
3417 * configure: Regenerate.
3418 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
3419 * setproctitle.c: Add file.
3420 * functions.texi: Regenerate.
3421
34222010-09-22 Tristan Gingold <gingold@adacore.com>
3423
3424 * cplus-dem.c (ada_demangle): Add comments.
3425 Handle stream and controlled type operations.
3426 Decoding of some uppercase letters moved before separators.
3427 * testsuite/demangle-expected: Add tests.
3428
34292010-09-10 James Lyon <jameslyon0@googlemail.com>
3430
3431 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
3432 * cp-demangle.c (d_find_pack): Add case for
3433 DEMANGLE_COMPONENT_LAMBDA.
3434 * testsuite/demangle-expected: Add regression test.
3435
34362010-09-08 Tristan Gingold <gingold@adacore.com>
3437
3438 PR 44001
3439 * maint-tool (missing): Fix pattern for object file.
3440 (deps): Use $(objext) for object extension.
3441 * Makefile.in (objext): New variable.
3442 Replace all occurences of .o with .$(objext)
3443 Regenerate with maint-deps
3444 * configure.ac (pexecute): Set to the basename.
3445 * configure: Regenerate.
3446
34472010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
3448
3449 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
3450 corresponding stream has been opened.
3451 (pex_free): Close pipe file descriptors corresponding to child's
3452 stdout and stderr before waiting.
3453
34542010-08-13 Nick Clifton <nickc@redhat.com>
3455
3456 * argv.c (expandargv): Limit the number of times that response
3457 files are opened in order to prevent infinite recursion.
3458
34592010-07-21 Pascal Obry <obry@adacore.com>
3460
3461 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3462
34632010-07-06 Ken Werner <ken.werner@de.ibm.com>
3464
3465 * floatformat.c (floatformat_ieee_half_big): New variable.
3466 (floatformat_ieee_half_little): Likewise.
3467
34682010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
3469
3470 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
3471 Update copyright years.
3472 Move to GFDL 1.3.
3473
34742010-06-10 Jakub Jelinek <jakub@redhat.com>
3475
3476 PR other/43838
3477 * cp-demangle.c (struct d_print_info): Add flush_count field.
3478 (d_print_init): Initialize it to 0.
3479 (d_print_flush): Increment it.
3480 (d_print_comp): If needed flush before appending ", ". Only
3481 decrement dpi->len if no flushes happened during the recursive
3482 call.
3483 * testsuite/demangle-expected: Add a test for this.
3484
34852010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3486
3487 * splay-tree.c: Update copyright years.
3488 (splay_tree_new_typed_alloc): New.
3489 (splay_tree_new_with_allocator): Use it.
3490
3491 * hashtab.c: Update copyright years.
3492 (htab_create_typed_alloc): New.
3493 (htab_create_alloc): Use it.
3494
3495 * functions.texi: Regenerate.
3496
34972010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
3498 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3499
3500 PR bootstrap/42798
3501 * configure.ac: Check for declaration of 'basename(char *)'.
3502 * configure: Regenerate.
3503
35042010-05-26 Kai Tietz <kai.tietz@onevision.com>
3505
3506 * testsuite/demangle-expected: Add tests for __int128
3507 and unsigned __int128 types.
3508
35092010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3510 Jason Merrill <jason@redhat.com>
3511
3512 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3513 (cplus_demangle_type): Handle nullptr.
3514 * testsuite/demangle-expected: Test it.
3515
35162010-04-23 Pedro Alves <pedro@codesourcery.com>
3517
3518 * lbasename.c (lbasename): Split into ...
3519 (unix_lbasename, dos_basename): ... these.
3520 (lbasename): ... and reimplement on top of them.
3521 * Makefile.in (lbasename.o): Add dependency on
3522 $(INCDIR)/filenames.h.
3523
35242010-04-07 Jakub Jelinek <jakub@redhat.com>
3525
3526 * regex.c (byte_re_match_2_internal): Avoid set but not used
3527 warning.
3528
35292010-03-22 Jason Merrill <jason@redhat.com>
3530
3531 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3532
35332010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3534
3535 * Makefile.in (all): Do not use exec.
3536
35372010-02-04 Tom Tromey <tromey@redhat.com>
3538
3539 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3540
35412010-02-03 Jason Merrill <jason@redhat.com>
3542
3543 * cp-demangle.c (d_expression): Handle dependent operator name.
3544
3545 PR c++/12909
3546 * cp-demangle.c (d_number_component, d_vector_type): New.
3547 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3548
35492010-01-25 Ian Lance Taylor <iant@google.com>
3550
3551 * cp-demangle.c (cplus_demangle_type): Check for invalid type
3552 after "DF".
3553 * testsuite/demangle-expected: Add test.
3554
35552010-01-20 Jason Merrill <jason@redhat.com>
3556
3557 PR c++/42338
3558 * cp-demangle.c (d_print_comp): Fix array index printing.
3559
35602010-01-11 Tristan Gingold <gingold@adacore.com>
3561
3562 * cplus-dem.c (ada_demangle): Remove prototype.
3563 (grow_vect): Removed.
3564 (ada_demangle): Rewritten.
3565 (cplus_demangle): Fix indentation.
3566 * testsuite/demangle-expected: Add tests for Ada.
3567
35682010-01-09 Ian Lance Taylor <iant@google.com>
3569
3570 PR other/42230
3571 * cp-demangle.c (d_demangle): Return dgs.alc on success.
3572
35732010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3574
3575 PR target/42316
3576 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3577 * configure: Regenerate.
3578
35792009-12-07 Doug Evans <dje@google.com>
3580
3581 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3582
35832009-11-26 Ben Elliston <bje@au.ibm.com>
3584
3585 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3586 * configure: Regenerate.
3587
35882009-11-25 Ben Elliston <bje@au.ibm.com>
3589
3590 * functions.texi: Rebuild.
3591
35922009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3593 Ben Elliston <bje@au.ibm.com>
3594
3595 * README: Mention changes to Makefile.in and functions.texi.
3596 * gather-docs: Mention 'make stamp-functions' in the header.
3597
35982009-11-23 Ben Elliston <bje@au.ibm.com>
3599 Ian Lance Taylor <iant@google.com>
3600
3601 * pex-unix.c (pex_child_error): Improve warning avoidance by
3602 checking the results of write(3) and exiting with -2 if any write
3603 returns a negative value.
3604
36052009-11-22 Steve Ward <planet36@gmail.com>
3606
3607 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3608
36092009-11-20 Ben Elliston <bje@au.ibm.com>
3610
3611 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3612 unused result warnings from write(3) calls. Undefine writeerr
3613 after all uses.
3614
36152009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3616 Daniel Jacobowitz <dan@codesourcery.com>
3617 Pedro Alves <pedro@codesourcery.com>
3618
3619 * argv.c (consume_whitespace): New function.
3620 (only_whitespace): New function.
3621 (buildargv): Always use ISSPACE by calling consume_whitespace.
3622 (expandargv): Skip empty files. Do not stop at the first empty
3623 argument (calling only_whitespace)..
3624 * testsuite/test-expandargv.c: (test_data): Test empty lines
3625 and empty arguments.
3626 (run_tests): Fix false positives due to shorter arguments.
3627
36282009-09-30 Martin Thuresson <martint@google.com>
3629
3630 * regex.c (byte_re_match_2_internal): Split declaration and
3631 assignment to avoid -Wc++-compat warning due to goto.
3632
36332009-09-29 Jason Merrill <jason@redhat.com>
3634
3635 * Makefile.in: Enable demangle target.
3636 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3637 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3638 (d_parmlist): Factor out from d_bare_function_type.
3639 (d_compact_number): Factor out from d_template_param and d_expression.
3640 (d_append_num): Factor out from d_print_comp.
3641 (d_print_comp, d_print_mod_list): Handle lambdas.
3642 * testsuite/demangle-expected: Add lambda tests.
3643
36442009-09-23 Matthew Gingell <gingell@adacore.com>
3645
3646 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3647
36482009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3649
3650 * choose-temp.c: Include unistd.h for mingw targets.
3651
36522009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3653
3654 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3655
36562009-09-15 Tristan Gingold <gingold@adacore.com>
3657
3658 * config.h-vms (intptr_t): Define to compile hashtab.c
3659
36602009-09-04 Ozkan Sezer <sezeroz@gmail.com>
3661
3662 PR target/39065
3663 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3664 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3665 * config.in: Regenerated.
3666 * configure: Regenerated.
3667
36682009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3669
3670 PR target/39065
3671 * configure.ac: Also check for intptr_t.
3672 * config.h.in: Regenerated.
3673 * configure: Regenerated.
3674 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3675 instead of of long.
3676
36772009-09-02 Tristan Gingold <gingold@adacore.com>
3678
3679 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3680 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3681 dependencies. Remove unused FORMAT variable.
3682 * configure.com: New file to create build.com DCL script for
3683 Itanium VMS or Alpha VMS.
3684
36852009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3686
3687 * configure.ac (AC_PREREQ): Bump to 2.64.
3688
36892009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3690
3691 PR ld/10536
3692 * Makefile.in (install-html-recursive): Removed.
3693
36942009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3695
3696 * config.in: Regenerate.
3697 * configure: Regenerate.
3698
36992009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3700
3701 * Makefile.in (AUTOCONF, configure_deps): New variables.
3702 ($(srcdir)/configure): New rule, active only in maintainer mode.
3703
37042009-07-29 Douglas B Rupp <rupp@gnat.com>
3705
3706 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3707
37082009-07-27 Douglas B Rupp <rupp@gnat.com>
3709
3710 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3711 file instead).
3712 (to_ptr32): New function.
3713 (pex_unix_exec_child): Use it.
3714
37152009-07-24 Ian Lance Taylor <iant@google.com>
3716
3717 PR bootstrap/40854
3718 * crc32.c (xcrc32): Rename from crc32.
3719
37202009-07-24 Ian Lance Taylor <iant@google.com>
3721
3722 * crc32.c: New file.
3723 * Makefile.in: Rebuild dependencies.
3724 (CFILES): Add crc32.c.
3725 (REQUIRED_OFILES): Add ./crc32.o.
3726 * functions.texi: Rebuild.
3727
37282009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3731 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3732 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3733 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3734 (d_demangle_callback): The variable type is now declared as enum.
3735 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3736
37372009-06-21 Jakub Jelinek <jakub@redhat.com>
3738
3739 * hashtab.c (htab_traverse): Don't call htab_expand for
3740 nearly empty hashtabs with sizes 7, 13 or 31.
3741
37422009-06-16 Nick Clifton <nickc@redhat.com>
3743
3744 PR 10197
3745 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3746 conflicts with system function of the same name.
3747
37482009-05-30 Eli Zaretskii <eliz@gnu.org>
3749
3750 * snprintf.c: Doc fix.
3751
3752 * vsnprintf.c: Doc fix.
3753
37542009-05-29 Kai Tietz <kai.tietz@onevision.com>
3755
3756 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
3757
37582009-05-29 Michael Matz <matz@suse.de>
3759
3760 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3761 out when forcing the minimum.
3762 (fibheap_delete_node): Assert that we managed to force the minimum.
3763
37642009-05-25 Tristan Gingold <gingold@adacore.com>
3765
3766 * config.h-vms: Rewritten. Define configure macros.
3767 Use DEC-C builtin alloca.
3768
3769 * makefile.vms (OBJS): Update list.
3770 (OPT): New variable.
3771 (CFLAGS): Update compilation flags.
3772 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3773
37742009-05-19 Ian Lance Taylor <iant@google.com>
3775 Ben Elliston <bje@au.ibm.com>
3776
3777 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3778 (cplus_demangle_fill_dtor): Likewise.
3779
37802009-05-17 Julian Brown <julian@codesourcery.com>
3781
3782 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3783 standard handles (stdin, stdout, stderr) in parent.
3784
37852009-04-29 Julian Brown <julian@codesourcery.com>
3786
3787 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
3788 (pex_win32_exec_child): Ensure each process has only one handle open
3789 on pipe endpoints. Close standard input after creating child for
3790 symmetry with standard output/standard error.
3791
37922009-04-25 Eli Zaretskii <eliz@gnu.org>
3793
3794 * Makefile.in (needed-list): Target removed (not used in GCC
3795 3.0 and later). All references deleted.
3796 (mostlyclean): Remove references to needed.awk and needed2.awk.
3797
37982009-04-14 Eli Zaretskii <eliz@gnu.org>
3799
3800 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3801 existing and required library functions to with_target_subdir
3802 section, so that the native build does detect them at configure
3803 time.
3804 * configure: Regenerated.
3805
38062009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3807
3808 PR target/39397
3809 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3810 not as long (members *children and (*wait))
3811 * pex-common.c (pex_run_in_environment): Likewise.
3812 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3813 returned pid value.
3814 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3815 * pex-msdos.c (pex_msdos_wait): Likewise.
3816
38172009-04-07 Arnaud Patard <apatard@mandriva.com>
3818
3819 * configure.ac: Fix Linux/MIPS matching rule.
3820 * configure: Regenerate.
3821
38222009-03-27 Ian Lance Taylor <iant@google.com>
3823
3824 * memmem.c: New file, from gnulib.
3825 * configure.ac: Add memmem to list of functions provided if they
3826 are not available on the host.
3827 * Makefile.in: Rebuild dependencies.
3828 (CFILES): Add memmem.c.
3829 (CONFIGURED_OFILES): Add memmem.o.
3830 * configure, config.in, functions.texi: Rebuild.
3831
38322009-03-23 Jason Merrill <jason@redhat.com>
3833
3834 * cp-demangle.c (d_expression): Handle pack expansion.
3835 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3836 (d_print_subexpr): Don't wrap function parms in ().
3837 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3838 not finding a pack.
3839
38402009-03-17 Jason Merrill <jason@redhat.com>
3841
3842 * cp-demangle.c (d_make_function_param): new fn.
3843 (cplus_demangle_mangled_name): Work around abi v2 bug.
3844 (d_expr_primary): Likewise.
3845 (cplus_demangle_operators): Add alignof ops.
3846 (d_expression): Handle function parameters and conversions
3847 with other than 1 operand.
3848 (d_print_comp): Handle function parameters. Fix bug with
3849 function used in type of function.
3850 * testsuite/demangle-expected: Update tests.
3851
38522009-02-21 Mark Mitchell <mark@codesourcery.com>
3853
3854 * make-temp-file.c (<windows.h>): Include on Windows.
3855 (choose_tmpdir): On Windows, use GetTempPath.
3856
38572009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3858
3859 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3860 as it no longer shares libiberty object files.
3861 * configure: Regenerated.
3862
38632009-01-07 Jason Merrill <jason@redhat.com>
3864
3865 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3866
38672009-01-06 Ben Elliston <bje@au.ibm.com>
3868
3869 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3870 character following a 'D' cannot be recognised.
3871
38722008-12-18 Jason Merrill <jason@redhat.com>
3873
3874 PR c++/38561
3875 * cp-demangle.c (d_expression, d_print_comp): Revert
3876 cast changes.
3877
38782008-12-17 Jason Merrill <jason@redhat.com>
3879
3880 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3881 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3882 (d_print_comp): Avoid extra ", " with empty template argument packs.
3883 Remove handling for obsolete T() mangling.
3884
38852008-12-10 Jason Merrill <jason@redhat.com>
3886
3887 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3888 (d_print_comp, d_dump): Likewise.
3889
38902008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3891
3892 * Makefile.in (CPPFLAGS): Define.
3893 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3894
38952008-10-15 Paolo Bonzini <bonzini@gnu.org>
3896
3897 PR bootstrap/37137
3898 * Makefile.in (LIBCFLAGS): Remove.
3899 (FLAGS_TO_PASS): Don't mention it.
3900 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3901
39022008-10-08 David Edelsohn <edelsohn@gnu.org>
3903
3904 * xstrdup.c: Include <sys/types.h> after "config.h"
3905
39062008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 * configure.ac: Call AC_SYS_LARGEFILE.
3909 * config.in: Regenerated.
3910 * configure: Likewise.
3911
39122008-10-06 Jason Merrill <jason@redhat.com>
3913
3914 * cp-demangle.c (struct d_print_info): Add pack_index.
3915 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3916 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3917 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3918 (cplus_demangle_builtin_types): Add char16/32_t.
3919 (cplus_demangle_type): Recognize them.
3920 (d_template_args): Handle empty argument packs.
3921 (d_template_arg): Handle argument packs.
3922 (d_expression): Handle dependent name.
3923 (d_index_template_argument): New fn.
3924 (d_lookup_template_argument): New fn.
3925 (d_find_pack, d_pack_length): New fn.
3926 (d_print_subexpr): Split out...
3927 (d_print_comp): ...from here. Use d_*_template_argument.
3928 Handle empty arg lists. Support pack expansions.
3929 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3930
39312008-09-09 Jason Merrill <jason@redhat.com>
3932
3933 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3934 (d_make_comp): Likewise.
3935 (cplus_demangle_type): Handle decltype and DFP types.
3936 (cplus_demangle_operators): Call operator takes 2 args.
3937 (cplus_demangle_builtin_types): Add DFP types.
3938 (d_exprlist): New fn.
3939 (d_expression): Handle parm placeholders, T() and calls.
3940 (d_print_comp): Handle decltype, T() and calls.
3941 * testsuite/demangle-expected: Test the above.
3942
39432008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3944
3945 * pex-win32.c (argv_to_argc): New function.
3946 (spawn_script): Duplicate argv before calling win32_spawn.
3947
39482008-07-31 Jakub Jelinek <jakub@redhat.com>
3949
3950 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3951
39522008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3953
3954 * mkstemps.c (mkstemps): If open failed with errno other than
3955 EEXIST, return immediately.
3956 * make-temp-file.c: Include errno.h.
3957 (make_temp_file): If mkstemps failed, print an error message
3958 before aborting.
3959
39602008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3961
3962 * maint-tool (deps): Output config.h instead of stamp-h.
3963 * Makefile.in: Rebuild deps.
3964 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3965 Reverts 2007-07-11 change.
3966
39672008-06-19 Eric Blake <ebb9@byu.net>
3968
3969 Adjust strsignal to POSIX 200x prototype.
3970 * strsignal.c (strsignal): Remove const.
3971
39722008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3973
3974 * configure: Regenerate.
3975
39762008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3977
3978 * libiberty.texi: Expand TABs, drop indentation outside examples.
3979 * obstacks.texi: Likewise.
3980
39812008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3982
3983 * configure.ac: use -fPIC on Linux/MIPS hosts.
3984 * configure: Regenerate.
3985
39862008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3987
3988 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3989
39902008-04-18 Paolo Bonzini <bonzini@gnu.org>
3991
3992 PR bootstrap/35457
3993 * aclocal.m4: Add override.m4.
3994 * configure: Regenerate.
3995
39962008-03-31 Ian Lance Taylor <iant@google.com>
3997
3998 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3999 -fstrict-overflow optimizations.
4000
40012008-03-27 Paolo Bonzini <bonzini@gnu.org>
4002
4003 * configure.ac (frags): Don't set, use frag instead.
4004 (PICFLAG): Set here and substitute.
4005 * Makefile.in (PICFLAG): Substitute from autoconf.
4006 * configure: Regenerate.
4007
40082008-03-24 Ian Lance Taylor <iant@google.com>
4009
4010 * sha1.c: New file, from gnulib.
4011 * Makefile.in: Rebuild dependencies.
4012 (CFILES): Add sha1.c.
4013 (REQUIRED_OFILES): Add sha1.o.
4014
40152008-03-24 Doug Evans <dje@google.com>
4016
4017 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
4018 return from strdup.
4019
40202008-03-12 Seongbae Park <seongbae.park@gmail.com>
4021
4022 * cplus-dem.c (malloc, realloc): Use void * instead of char *
4023 as return type.
4024
40252008-03-11 Nick Clifton <nickc@redhat.com>
4026
4027 * md5.c (md5_process_bytes): Do not assume that memcpy will
4028 provide a return value.
4029
40302008-02-19 Ben Elliston <bje@au.ibm.com>
4031
4032 PR other/12618
4033 * testsuite/Makefile.in (mostlyclean): Remove any core file.
4034
40352008-01-26 David Daney <ddaney@avtrex.com>
4036
4037 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
4038 DEMANGLE_COMPONENT_COMPOUND_NAME, and
4039 DEMANGLE_COMPONENT_CHARACTER cases.
4040 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
4041 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
4042 (d_make_character): New function.
4043 (d_java_resource): Same.
4044 (d_special_name): Handle "Gr" case.
4045 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
4046 DEMANGLE_COMPONENT_COMPOUND_NAME, and
4047 DEMANGLE_COMPONENT_CHARACTER cases.
4048 * testsuite/demangle-expected: Add test for java resource name
4049 mangling.
4050
40512008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
4052
4053 * cplus-dem.c (demangle_function_name): Changed to return value
4054 indicating if a name was correctly demangled.
4055 (iterate_demangle_function): Use demangle_function_name return
4056 value.
4057
40582008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4059
4060 PR other/33768
4061 * splay-tree.c (rotate_left): Fix minor typo in comment.
4062 (rotate_right): Likewise.
4063
40642007-11-12 Joseph Myers <joseph@codesourcery.com>
4065
4066 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
4067 compiler warnings.
4068 (floatformat_ibm_long_double): Use
4069 floatformat_ibm_long_double_is_valid.
4070
40712007-11-07 Joseph Myers <joseph@codesourcery.com>
4072 Daniel Jacobowitz <dan@codesourcery.com>
4073
4074 * floatformat.c (mant_bits_set): New.
4075 (floatformat_to_double): Use it. Note no special handling of
4076 split formats.
4077 (floatformat_from_double): Note no special handing of split
4078 formats.
4079 (floatformat_ibm_long_double_is_valid,
4080 floatformat_ibm_long_double): New.
4081 (floatformat_ieee_single_big, floatformat_ieee_single_little,
4082 floatformat_ieee_double_big, floatformat_ieee_double_little,
4083 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
4084 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
4085 floatformat_m68881_ext, floatformat_i960_ext,
4086 floatformat_m88110_ext, floatformat_m88110_harris_ext,
4087 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
4088 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
4089 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
4090 for addition of split_half field.
4091
40922007-09-06 Tom Tromey <tromey@redhat.com>
4093
4094 * pexecute.txh (pex_free): Document process killing.
4095
40962007-08-31 Douglas Gregor <doug.gregor@gmail.com>
4097
4098 * cp-demangle.c (d_dump): Handle
4099 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
4100 (d_make_comp): Ditto.
4101 (cplus_demangle_type): Ditto.
4102 (d_print_comp): Ditto.
4103 (d_print_mod): Ditto.
4104 (d_print_function_type): Ditto.
4105
41062007-08-24 Kai Tietz <kai.tietz@onevision.com>
4107
4108 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
4109 * pex-djgpp.c: Likewise.
4110 * pex-msdos.c: Likewise.
4111 * pex-unix.c: Likewise.
4112 * pex-win32.c: Likewise.
4113
41142007-08-17 Michael Snyder <msnyder@access-company.com>
4115
4116 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
4117
41182007-08-03 Michael Snyder <msnyder@access-company.com>
4119
4120 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
4121 leak.
4122
41232007-07-31 Michael Snyder <msnyder@access-company.com>
4124
4125 * cp-demangle.c (d_print_comp): Guard against null.
4126
41272007-07-25 Ben Elliston <bje@au.ibm.com>
4128
4129 * Makefile.in (CFILES): Remove ternary.c.
4130 (REQUIRED_OFILES): Remove ./ternary.o.
4131 (INSTALLED_HEADERS): Remove ternary.h.
4132 (ternary.o): Remove.
4133 * ternary.c: Remove.
4134
41352007-07-23 DJ Delorie <dj@redhat.com>
4136
4137 * argv.c (writeargv): Fix typo in inline documentation.
4138 * functions.texi: Regenerate.
4139
41402007-07-17 DJ Delorie <dj@redhat.com>
4141
4142 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
4143 gettimeofday entry.
4144 * configure: Likewise.
4145
41462007-07-11 Alexandre Oliva <aoliva@redhat.com>
4147
4148 * maint-tool (deps): Output stamp-h instead of config.h.
4149 * Makefile.in: Rebuild deps.
4150 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
4151
41522007-07-02 Simon Baldwin <simonb@google.com>
4153
4154 * argv.c (writeargv): Removed declaration of unused variable.
4155
41562007-06-14 Paolo Bonzini <bonzini@gnu.org>
4157
4158 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
4159 * configure: Regenerate.
4160
41612007-06-14 Paolo Bonzini <bonzini@gnu.org>
4162
4163 * aclocal.m4: Include config/warnings.m4.
4164 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
4165 * configure: Regenerate.
4166
41672007-06-07 Geoffrey Keating <geoffk@apple.com>
4168
4169 * configure.ac: Non-default multilibs can be cross compilations.
4170 * configure: Regenerate
4171
41722007-05-07 Nathan Froyd <froydnj@codesourcery.com>
4173
4174 * argv.c (writeargv): New function.
4175
41762007-05-05 Geoffrey Keating <geoffk@apple.com>
4177
4178 * cp-demangle.c (d_name): Detect local-source-name.
4179 (d_prefix): Likewise.
4180 (d_unqualified_name): Implement local-source-name.
4181
41822007-05-03 Joel Brobecker <brobecker@adacore.com>
4183
4184 * filename_cmp.c: Replace include of ctype.h by include of
4185 safe-ctype.h.
4186 (filename_cmp): Use TOLOWER instead of tolower for conversions
4187 that are locale-independent.
4188 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
4189
41902007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
4191
4192 * argv.c: Use ANSI C declarations.
4193 * make-relative-prefix.c: Likewise.
4194
41952007-04-06 Joel Brobecker <brobecker@adacore.com>
4196
4197 * filename_cmp.c (filename_cmp): Improve documentation.
4198
41992007-04-02 Andreas Schwab <schwab@suse.de>
4200
4201 * filename_cmp.c: Include "config.h".
4202
42032007-03-29 Joel Brobecker <brobecker@adacore.com>
4204
4205 * filename_cmp.c: New file.
4206 * Makefile.in (CFILES): Add filename_cmp.c.
4207 (REQUIRED_OFILES): Add filename_cmp.o
4208 (filename_cmp.o): New rule.
4209 * functions.texi: Regenerate.
4210
42112007-03-15 Geoffrey Keating <geoffk@apple.com>
4212
4213 * cp-demangle.c (d_encoding): Exit early on error.
4214 (d_pointer_to_member_type): Exit early if cplus_demangle_type
4215 returns NULL.
4216 (cplus_demangle_type): Likewise.
4217 * testsuite/demangle-expected: New testcase.
4218
42192007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
4220
4221 * Makefile.in: Add install-pdf target as copied from
4222 automake v1.10 rules.
4223 * testsuite/Makefile.in: Add dummy install-pdf target.
4224
42252007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
4226 Eric Botcazou <ebotcazou@libertysurf.fr>
4227
4228 PR other/16513
4229 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
4230 Install headers in multilib independent location.
4231
42322007-02-26 DJ Delorie <dj@redhat.com>
4233
4234 * configure.ac: add djgpp-specific results, so we don't have to
4235 link during a cross compilation.
4236 * configure: Regenerated.
4237
42382007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4239
4240 * hex.c: Fix typo.
4241 * choose-temp.c: Likewise.
4242 * functions.texi: Regenerate.
4243
42442007-01-31 Vladimir Prus <vladimir@codesourcery.com>
4245
4246 * pex-common.h (struct pex_obj): New fields
4247 stderr_pipe and read_err.
4248 * pex-common.c (pex_init_common): Initialize
4249 stderr_pipe.
4250 (pex_run_in_environment): Add error checking
4251 for PEX_STDERR_TO_PIPE. Create a pipe
4252 for stderr if necessary.
4253 (pex_read_err): New.
4254 (pex_free): Close read_err.
4255 * pexecute.txh: Document changes.
4256 * functions.texi: Regenerated.
4257
42582007-01-31 Ben Elliston <bje@au.ibm.com>
4259
4260 * strsignal.c (psignal): Change type of signo to int.
4261 * functions.texi: Regenerate.
4262
42632007-01-29 Simon Baldwin <simonb@google.com>
4264
4265 * cp-demangle.h (cplus_demangle_operators): External definition
4266 suppressed if not building for libstdc++.
4267 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
4268 to demangling, provides a malloc-less version of __cxa_demangle.
4269 (cplus_demangle_print_callback): Public callback version of
4270 cplus_demangle_print.
4271 (struct d_growable_string): New growable string structure.
4272 (d_growable_string_init): New function, provides support for
4273 growable strings separate from print info.
4274 (d_growable_string_resize): Likewise.
4275 (d_growable_string_append_buffer): Likewise.
4276 (d_growable_string_callback_adapter):): Likewise.
4277 (d_print_init): New print info initialization function.
4278 (d_print_error): Macro replace by inline function.
4279 (d_print_saw_error): Likewise.
4280 (d_append_char): Likewise.
4281 (d_append_buffer): Likewise.
4282 (d_append_string): New inline function, replaces the
4283 d_append_string_constant macro.
4284 (d_flush_buffer): New function, flushes buffer to callback.
4285 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
4286 for unsupported dynamic arrays replaced by alloca().
4287 (d_demangle): Return string length estimating removed.
4288 (d_dump): Moved error case handling from call site into function.
4289 (d_print_resize): Function removed.
4290 (d_print_append_char): Likewise.
4291 (d_print_append_buffer): Likewise.
4292 (d_print_error): Likewise.
4293 (d_print_comp): Added special case handling for Java arrays.
4294 (java_demangle_v3): Removed string post-processing for Java arrays,
4295 now replaced by special case handling in d_print_comp.
4296 (cplus_demangle_v3_callback): Augmented interface to demangling,
4297 provides a malloc-less version of cplus_demangle_v3.
4298 (java_demangle_v3_callback): Augmented interface to demangling,
4299 provides a malloc-less version of java_demangle_v3.
4300
43012007-01-12 Ben Elliston <bje@au.ibm.com>
4302
4303 * pex-unix.c (writeerr): Cast write result to void.
4304
4305 * choose-temp.c (choose_temp_base): Check the result of the call
4306 to mktemp rather than testing the length of the modified string.
4307
43082006-12-20 Geoffrey Keating <geoffk@apple.com>
4309
4310 * cp-demangle.h: Add comment explaining what to do to avoid
4311 overrunning string.
4312 (d_check_char): New.
4313 (d_next_char): Don't advance past trailing '\0'.
4314 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
4315 (d_nested_name): Likewise.
4316 (d_special_name): Likewise.
4317 (d_call_offset): Likewise.
4318 (d_function_type): Likewise.
4319 (d_array_type): Likewise.
4320 (d_pointer_to_member_type): Likewise.
4321 (d_template_param): Likewise.
4322 (d_template_args): Likewise.
4323 (d_template_arg): Likewise.
4324 (d_expr_primary): Likewise.
4325 (d_local_name): Likewise.
4326 (d_substitution): Likewise.
4327 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
4328 * testsuite/test-demangle.c: Include sys/mman.h.
4329 (MAP_ANONYMOUS): Define.
4330 (protect_end): New.
4331 (main): Use protect_end.
4332 * testsuite/demangle-expected: Add testcases for overrunning
4333 the end of the string.
4334
43352006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
4336 J"orn Rennecke <joern.rennecke@st.com>
4337
4338 PR driver/29931
4339 * make-relative-prefix.c (make_relative_prefix_1): New function,
4340 broken out of make_relative_prefix. Make link resolution dependent
4341 on new parameter.
4342 (make_relative_prefix): Use make_relative_prefix_1.
4343 (make_relative_prefix_ignore_links): New function.
4344
43452006-11-08 Vladimir Prus <vladimir@codesourcery.com>
4346
4347 * pex-win32.c (no_suffixes): Remove.
4348 (std_suffixes): Add "" as first element.
4349 (find_executable): Remove detection of already-present
4350 extension. Try all suffixes in std_suffixes.
4351
43522006-11-07 Julian Brown <julian@codesourcery.com>
4353
4354 * floatformat.c (get_field): Fix segfault with little-endian word
4355 order on 64-bit hosts.
4356 (put_field): Likewise.
4357 (min): Move definition.
4358
43592006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
4360
4361 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
4362 (find_executable): Likewise.
4363 (win32_spawn): Cast alloca return to (char**).
4364 Replace malloc with XNEWVEC.
4365 bcopy.c (bcopy): Add explict casts in assignments.
4366
43672006-10-25 Ben Elliston <bje@au.ibm.com>
4368
4369 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
4370
43712006-10-10 Brooks Moses <bmoses@stanford.edu>
4372
4373 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
4374 * testsuite/Makefile.in: Added empty "pdf" target.
4375
43762006-09-22 Ian Lance Taylor <ian@airs.com>
4377
4378 PR other/29176
4379 * cp-demangle.c (d_substitution): Check for overflow when
4380 computing substitution index.
4381
43822006-08-30 Corinna Vinschen <corinna@vinschen.de>
4383
4384 * configure.ac: Add case for Mingw as host.
4385 * configure: Regenerate.
4386
43872006-08-27 Ian Lance Taylor <ian@airs.com>
4388
4389 PR driver/27622
4390 * pex-common.h (struct pex_funcs): Add toclose parameter to
4391 exec_child field.
4392 * pex-common.c (pex_run_in_environment): Pass toclose to
4393 exec_child.
4394 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
4395 * pex-unix.c (pex_unix_exec_child): Likewise.
4396 * pex-msdos.c (pex_msdos_exec_child): Likewise.
4397 * pex-win32.c (pex_win32_exec_child): Likewise.
4398
4399 PR other/28797
4400 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
4401 for a qualified member which is not a function.
4402 * testsuite/demangle-expected: Add test case.
4403
44042006-07-27 Jan Hubicka <jh@suse.cz>
4405
4406 PR rtl-optimization/28071
4407 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
4408 downsize the hashtable.
4409
44102006-07-04 Peter O'Gorman <peter@pogma.com>
4411
4412 * Makefile.in: chmod 644 before ranlib during install.
4413
44142006-06-02 Mark Shinwell <shinwell@codesourcery.com>
4415
4416 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4417 to environ.
4418
44192006-06-01 Mark Shinwell <shinwell@codesourcery.com>
4420
4421 * pex-common.c: New function pex_run_in_environment.
4422 * pex-common.h: Add environment parameter to exec_child.
4423 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
4424 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
4425 (pex_djgpp_exec_child): Pass environment to child process.
4426 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
4427 (pex_unix_exec_child): Pass environment to child process.
4428 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
4429 New function env_compare for comparing VAR=VALUE pairs.
4430 (win32_spawn): Assemble environment block and pass to CreateProcess.
4431 (spawn_script): Pass environment through to win32_spawn.
4432 (pex_win32_exec_child): Pass environment through to spawn_script and
4433 win32_spawn.
4434 * functions.texi: Regenerate.
4435 * pexecute.txh: Document pex_run_in_environment.
4436
44372006-05-28 Mark Shinwell <shinwell@codesourcery.com>
4438
4439 * mkstemps.c: Open temporary files in binary mode.
4440
44412006-05-12 Anton Blanchard <anton@samba.org>
4442
4443 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
4444 hold "int%u_t".
4445
44462006-04-24 Julian Brown <julian@codesourcery.com>
4447
4448 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4449
44502006-03-29 Jim Blandy <jimb@codesourcery.com>
4451
4452 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
4453 (pex_init_common): Initialize obj->input_file.
4454 (pex_run): Close any file opened by pex_input_file.
4455 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4456 * pex-common.h (struct pex_obj): New field input_file.
4457 (struct pex_funcs): New function ptr fdopenw.
4458 * pex-unix.c (pex_unix_fdopenw): New function.
4459 (funcs): List it as our fdopenw function.
4460 * pex-win32.c (pex_win32_fdopenw): New function.
4461 (funcs): List it as our fdopenw function.
4462 * pex-djgpp.c (funcs): Leave fdopenw null.
4463 * pex-msdos (funcs): Same.
4464 * functions.texi: Regenerated.
4465
44662006-04-10 Jim Blandy <jimb@codesourcery.com>
4467
4468 * pex-common.c (temp_file): New function, containing guts of
4469 pex-style temporary file name generation.
4470 (pex_run): Use it.
4471
44722006-04-06 Carlos O'Donell <carlos@codesourcery.com>
4473
4474 * Makefile.in: Add install-html, install-html-am, and
4475 install-html-recursive targets. Define mkdir_p and
4476 NORMAL_INSTALL.
4477 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4478 * configure: Regenerate.
4479 * testsuite/Makefile.in: Add install-html and html targets.
4480
44812006-03-31 Mark Mitchell <mark@codesourcery.com>
4482
4483 * pex-win32.c (<errno.h>): Include.
4484 (fix_argv): Remove.
4485 (argv_to_cmdline): New function.
4486 (std_suffixes): New variable.
4487 (no_suffixes): Likewise.
4488 (find_executable): New function.
4489 (win32_spawn): Likewise.
4490 (spawn_script): Use win32_spawn instead of _spawnv[p].
4491 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4492 (pex_win32_wait): Likewise.
4493
44942006-03-24 Jim Blandy <jimb@codesourcery.com>
4495
4496 * pex-common.c (pex_run): Simplify output name handling.
4497
44982006-03-12 Jim Blandy <jimb@red-bean.com>
4499
4500 * pex-common.h (struct pex_obj): Doc fixes.
4501
45022006-03-11 Jim Blandy <jimb@red-bean.com>
4503
4504 * functions.texi: Regenerate.
4505
45062006-02-21 Ben Elliston <bje@au.ibm.com>
4507
4508 * pexecute.c (pwait): Syntax fix for previous change.
4509
45102006-02-17 Uttam Pawar <uttamp@us.ibm.com>
4511
4512 * pexecute.c (pwait): Free vector pointer.
4513 * partition.c (partition_print): Free class_elements pointer.
4514
45152006-02-11 Roger Sayle <roger@eyesopen.com>
4516 R. Scott Bailey <scott.bailey@eds.com>
4517 Bill Northcott <w.northcott@unsw.edu.au>
4518
4519 PR bootstrap/16787
4520 * floatformat.c: Include <float.h> where available.
4521 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4522
45232006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4524
4525 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
4526 supported.
4527 * configure: Regenerated.
4528
45292006-01-20 Carlos O'Donell <carlos@codesourcery.com>
4530
4531 * testsuite/Makefile.in: Add test-expandargv test.
4532 * testsuite/test-expandargv.c: New test.
4533 * argv.c (expandargv): Check for errors with ferror,
4534 rather than just by looking at return value from fread.
4535
45362005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4537
4538 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4539 to convert from "from".
4540 (floatformat_to_double): Likewise.
4541 (floatformat_from_double): Use explicit cast to convert from "to".
4542
45432005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
4544
4545 PR java/9861
4546 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4547 and include return type when found.
4548 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4549 conditional logic to change printing order of return type.when
4550 the DMGL_RET_POSTFIX option is present.
4551 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4552 call.
4553 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4554 * testsuite/demangle-expected: Test cases to verify extended encoding.
4555 Updated comment to document --ret-postfix option.
4556
45572005-11-06 Richard Guenther <rguenther@suse.de>
4558
4559 * splay-tree.c (rotate_left): New function.
4560 (rotate_right): Likewise.
4561 (splay_tree_splay_helper): Remove.
4562 (splay_tree_splay): Re-implement.
4563
45642005-10-31 Mark Kettenis <kettenis@gnu.org>
4565
4566 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4567 New variables.
4568
45692005-10-07 Mark Mitchell <mark@codesourcery.com>
4570
4571 * at-file.texi: Fix typo.
4572
45732005-10-03 Mark Mitchell <mark@codesourcery.com>
4574
4575 * at-file.texi: New file.
4576
45772005-09-27 Mark Mitchell <mark@codesourcery.com>
4578
4579 * argv.c (expandargv): Do not use xmalloc_failed.
4580
45812005-09-26 Mark Mitchell <mark@codesourcery.com>
4582
4583 * argv.c (safe-ctype.h): Include it.
4584 (ISBLANK): Remove.
4585 (stdio.h): Include.
4586 (buildargv): Use ISSPACE instead of ISBLANK.
4587 (expandargv): New function.
4588 * Makefile.in: Regenerated.
4589
45902005-09-14 Christopher Faylor <cgf@timesys.com>
4591
4592 * pex-win32.c: Include "windows.h".
4593 (backslashify): New function.
4594 (fix_argv): Use backslashify to convert path to windows format.
4595 Allocate one more place in new argv for potential executable from '#!'
4596 parsing.
4597 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
4598 (openkey): Ditto.
4599 (mingw_rootify): Ditto.
4600 (msys_rootify): Ditto.
4601 (spawn_script): New function.
4602 (pex_win32_exec_child): Save translated argv in newargv. Pass to
4603 spawn_script if spawnv* fails.
4604 (main): New function. Conditional on MAIN. Useful for testing.
4605
46062005-08-17 Mark Kettenis <kettenis@gnu.org>
4607
4608 * floatformat.c (floatformat_always_valid): Change type of last
4609 argument to `void *'.
4610 (floatformat_i387_ext_is_valid): Likewise.
4611 (floatformat_to_double): Change type of second argument to `const
4612 void *'.
4613 (floatformat_from_double): Change type of last argument to `void
4614 *'.
4615 (floatformat_is_valid): Change type of last argument to `const
4616 void *'.
4617 (ieee_test): Remove redundant casts.
4618
46192005-08-17 Kelley Cook <kcook@gcc.gnu.org>
4620
4621 * strverscmp.c: Update FSF address.
4622 * testsuite/Makefile.in: Likewise.
4623 * testsuite/test-demangle.c: Likewise.
4624 * testsuite/test-pexecute.c: Likewise.
4625
46262005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4627
4628 * getopt.c: Include ansidecl.h before system headers.
4629
46302005-07-22 Ben Elliston <bje@gnu.org>
4631
4632 * getopt.c: Include "ansidecl.h".
4633 (_getopt_initialize): Mark argc and argv parameters as unused.
4634
46352005-07-22 Ben Elliston <bje@gnu.org>
4636
4637 * regex.c (regcomp): Change type of `i' from unsigned to int.
4638
46392005-07-22 Ben Elliston <bje@gnu.org>
4640
4641 Recover patch lost in the sourceware repository:
4642 2005-07-09 Ben Elliston <bje@au.ibm.com>
4643 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4644 * memmove.c: Likewise.
4645 * objalloc.c: Likewise.
4646
46472005-07-22 Ben Elliston <bje@gnu.org>
4648
4649 * configure.ac: Check for a getopt(3) declaration.
4650 * configure, config.in: Regenerate.
4651
46522005-07-15 Ben Elliston <bje@au.ibm.com>
4653
4654 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4655
46562005-07-12 Ben Elliston <bje@au.ibm.com>
4657
4658 * floatformat.c (floatformat_to_double): Add a comment about a
4659 potential source of warnings when compiling this file.
4660
46612005-07-12 Ben Elliston <bje@au.ibm.com>
4662
4663 * pexecute.c (pexecute): Cast string litrals to char *.
4664 * regex.c (re_comp): Cast a call to gettext() to char *.
4665
46662005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4667
4668 * config.table: Delete file. Move former contents into ...
4669 * configure.ac: ... here and escape any brackets for m4.
4670 * Makefile.in (config.status): Remove dependency on config.table.
4671 * configure: Regenerate.
4672
46732005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4674
4675 * config.in: Regenerate for 6/20 change.
4676
46772005-07-03 Steve Ellcey <sje@cup.hp.com>
4678
4679 PR other/13906
4680 * md5.c (md5_process_bytes): Check alignment.
4681
46822005-07-01 Ian Lance Taylor <ian@airs.com>
4683
4684 PR other/22268
4685 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4686 string while looking for the end of a literal value.
4687 * testsuite/demangle-expected: Add test case.
4688
46892005-06-30 Daniel Berlin <dberlin@dberlin.org>
4690
4691 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
4692 (DELETED_ENTRY): Ditto.
4693
46942005-06-20 Geoffrey Keating <geoffk@apple.com>
4695
4696 * strverscmp.c: New.
4697 * Makefile.in (CFILES): Add strverscmp.c.
4698 (CONFIGURED_OFILES): Add strverscmp.o.
4699 (strverscmp.o): New rule.
4700 (stamp-functions): Add $(srcdir) to files in source directory.
4701 * configure.ac (funcs): Add strverscmp.
4702 (AC_CHECK_FUNCS): Add strverscmp.
4703 * configure: Regenerate.
4704 * functions.texi: Regenerate.
4705
47062005-05-28 Eli Zaretskii <eliz@gnu.org>
4707
4708 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4709 * config.in, configure: Regenerate.
4710
47112005-05-25 Richard Henderson <rth@redhat.com>
4712
4713 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4714 (d_make_comp, d_print_comp): Likewise.
4715 (d_special_name): Generate one.
4716 * testsuite/demangle-expected: Add a hidden alias test.
4717
47182005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4719
4720 * configure.ac: Check declarations for calloc(), getenv(),
4721 malloc(), realloc() and sbrk().
4722 * config.in: Regenerate.
4723 * configure: Likewise.
4724
4725 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4726 instead of xmalloc.
4727 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4728 * concat.c (liiberty_concat_ptr): Surround definition with an
4729 extern "C" block, if __cplusplus.
4730 (concat): Use XNEWVEC instead of xmalloc.
4731 (reconcat): Likewise.
4732 * cp-demangle.c (struct d_print_template): Rename member
4733 "template" to "template_decl". Adjust use throughout the file.
4734 (d_print_resize): Properly cast return value of realloc().
4735 (cplus_demangle_print): Same for malloc().
4736 (d_demangle): Likewise.
4737 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4738 "typename" to "type_name".
4739 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4740 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4741 (demangle_template_value_parm): Likewise.
4742 (demangle_template): Likewise.
4743 (recursively_demangle): Likewise.
4744 (do_hpacc_template_literal): Likewise.
4745 (do_arg): Likewise.
4746 (remember_type): Likewise.
4747 (remember_Ktype): Likewise.
4748 (register_Btype): Likewise.
4749 (string_need): Use XRESIZEVEC instead of xrealloc().
4750 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4751 (dyn_string_new): Use XNEW.
4752 (dyn_string_resize): Use XRESIZEVEC.
4753 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4754 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4755 Otherwise include <stdlib.h>.
4756 (exchange): Cast return value of malloc().
4757 * hashtab.c (htab_size): Define as both macro and non-inline
4758 function.
4759 (htab_elements): Likewise.
4760 * getpwd.c (getpwd): Use XNEWVEC.
4761 (htab_create_alloc_ex): Use C90 prototype-style.
4762 * lrealpath.c (lrealpath): Appropriately cast return value of
4763 malloc().
4764 * make-relative-prefix.c (save_string): Likewise.
4765 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4766 the file.
4767 (choose_tmpdir): Use XNEWVEC.
4768 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4769 * pex-common.c (pex_init_common): Use XNEW.
4770 (pex_add_remove): Use XRESIZEVEC.
4771 (pex_run): Likewise.
4772 (pex_get_status_and_time): Likewise.
4773 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4774 * pex-msdos.c (pex_init): Use XNEW.
4775 (pex_msdos_exec_child): Likewise.
4776 (pex_msdos_exec_child): Use XRESIZEVEC.
4777 * pex-unix.c (pex_wait): Use XNEW.
4778 * pex-win32.c (fix_argv): Use XNEWVEC.
4779 * pexecute.c (pwait): Likewise.
4780 * setenv.c (setenv): Properly cast return value of malloc().
4781 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4782 "new" to "old_sig" and "new_sig".
4783 * sort.c (main): Use XNEWVEC.
4784 * spaces.c (spaces): Cast return value of malloc().
4785 * strndup.c (strndup): Likewise.
4786 * ternary.c (ternary_insert): Use XNEW.
4787 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4788 with an extern "C" block if __cplusplus.
4789 * xstrdup.c (xstrdup): Cast return value of memcpy().
4790 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4791 block if __cplusplus.
4792 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4793
47942005-05-16 Andreas Jaeger <aj@suse.de>
4795
4796 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4797 that it's only declared if needed.
4798
4799 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4800 defined.
4801
48022005-05-15 Andreas Jaeger <aj@suse.de>
4803
4804 * functions.texi: Regenerated.
4805
48062005-05-15 Eli Zaretskii <eliz@gnu.org>
4807
4808 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4809 braces. Minor wording fixes. Use --- for em-dash. Use
4810 @enumerate in enumerated lists.
4811
4812 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4813 braces.
4814
48152005-05-11 Eli Zaretskii <eliz@gnu.org>
4816
4817 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4818 sys/stat.h.
4819 (pex_init): Fix last argument to pex_init_common.
4820 (pex_djgpp_exec_child): Remove leading underscore from _open,
4821 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4822 which is undeclared, with `executable', which was unused. Remove
4823 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4824 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4825
48262005-05-11 Paul Brook <paul@codesourcery.com>
4827
4828 * Makefile.in: Regenerate dependencies.
4829
48302005-05-10 Nick Clifton <nickc@redhat.com>
4831
4832 * Update the address and phone number of the FSF organization in
4833 the GPL notices in the following files:
4834 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4835 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4836 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4837 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4838 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4839 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4840 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4841 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4842 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4843 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4844 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4845 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4846 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4847
48482005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4849
4850 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4851 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4852 * configure: Regenerate.
4853
48542005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4855
4856 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4857 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4858 * aclocal.m4: Don't include accross.m4.
4859 * configure, config.in: Regenerate.
4860
48612005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4862
4863 * fopen_unlocked.c (unlock_std_streams): New.
4864
4865 * functions.texi: Regenerate.
4866
48672005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4868
4869 * fopen_unlocked.c (unlock_stream): New.
4870 Consolidate unlocking code into a helper function.
4871
4872 * functions.texi: Regenerate.
4873
48742005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4875
4876 * asprintf.c: Include config.h.
4877 * basename.c: Likewise.
4878 * fdmatch.c: Likewise.
4879 * hex.c: Likewise.
4880 * lbasename.c: Likewise.
4881 * spaces.c: Likewise.
4882 * xatexit.c:Likewise.
4883 * configure.ac: Do check declarations for basename, ffs, asprintf
4884 and vasprintf for real.
4885 * configure: Regenerate.
4886
48872005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4888
4889 * argv.c (dupargv): Allocate space of argv[argc], not
4890 sizeof(char *) of that amount. Cast result to char *.
4891
48922005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4893
4894 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
4895 Replace not with negate.
4896
48972005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4898
4899 * configure.ac: Check declarations for basename, ffs, asprintf,
4900 vasprintf.
4901 * configure: Regenerate.
4902 * config.in: Likewise.
4903
49042005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4905
4906 * Makefile.in (CFILES): Add fopen_unlocked.c.
4907 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4908 Regenerate dependencies.
4909
4910 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4911
4912 * fopen_unlocked.c: New file.
4913
4914 * functions.texi, configure, config.in: Regenerate.
4915
49162005-04-04 Ian Lance Taylor <ian@airs.com>
4917
4918 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4919 declaration before statement.
4920
49212005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4922
4923 * bcmp.c: Fix warnings and implement using memcmp.
4924 * bcopy.c: Fix warnings.
4925 * bzero.c: Fix warnings and implement using memset.
4926
4927 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4928 -Wstrict-prototypes.
4929 * configure, config.in: Regenerate.
4930
4931 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4932 warnings and reconcile interfaces with relevant standards.
4933
49342005-04-02 Ian Lance Taylor <ian@airs.com>
4935
4936 * cp-demangle.c: Update copyright.
4937
49382005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4939
4940 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4941 * functions.texi: Regenerate.
4942
49432005-03-28 Ian Lance Taylor <ian@airs.com>
4944
4945 * pex-common.c: New file.
4946 * pex-one.c: New file.
4947 * pexecute.c: New file.
4948 * pex-common.h: Include <stdio.h>.
4949 (struct pex_obj): Define.
4950 (struct pex_funcs): Define.
4951 (pex_init_common): Declare.
4952 * pex-unix.c: Rewrite.
4953 * pex-win32.c: Rewrite.
4954 * pex-djgpp.c: Rewrite.
4955 * pex-msdos.c: Rewrite.
4956 * testsuite/text-pexecute.c: New file.
4957 * pexecute.txh: Rewrite.
4958 * configure.ac: Check for wait3 and wait4. Set CHECK to
4959 really-check rather than check-cplus-dem.
4960 * functions.texi: Rebuild.
4961 * Makefile.in: Rebuild dependencies.
4962 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4963 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4964 * testsuite/Makefile.in (really-check): New target.
4965 (check-pexecute, test-pexecute): New targets.
4966 * configure: Rebuild.
4967
49682005-03-28 Mark Kettenis <kettenis@gnu.org>
4969
4970 * unlink-if-ordinary.c: Include <sys/types.h>.
4971
49722005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4973
4974 Convert libiberty to use ISO C prototype style 7/n.
4975 * regex.c (PARAMS): Remove definition.
4976 (PREFIX): Unconditionaly define using ISO C ## operator.
4977 (init_syntax_once, extract_number, extract_number_and_incr,
4978 print_fastmap, print_partial_compiled_pattern,
4979 print_compiled_pattern, print_double_string, printchar,
4980 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4981 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
4982 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4983 insert_space, wcs_compile_range, byte_compile_range,
4984 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4985 re_set_registers, re_search, re_search_2, re_search_3, re_match,
4986 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4987 byte_re_match_2_internal, group_match_null_string_p,
4988 alt_match_null_string_p, common_op_match_null_string_p,
4989 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
4990 regexec, regerror, regfree): Use ISO C prototype style.
4991 * partition.c: (elem_compare): Likewise.
4992 * cp-demangle.c (print_usage): Likewise.
4993
49942005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4995
4996 Convert libiberty to use ISO C prototype style 5/n.
4997 * random.c (srandom, initstate, setstate, random): Use ISO C
4998 prototypes.
4999 * putenv.c (putenv): Likewise.
5000 * physmem.c (physmem_available, physmem_total, main): Likewise.
5001 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
5002 * pex-unix.c (pexecute, pwait): Likewise.
5003 * pex-msdos.c (pexecute, pwait): Likewise.
5004 * pex-djgpp.c (pexecute, pwait): Likewise.
5005 * partition.c (partition_new, partition_delete, partition_union)
5006 (elem_compare, partition_print): Likewise.
5007 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
5008 _obstack_allocated_p, _obstack_free, obstack_free,
5009 _obstack_memory_used, print_and_abort, obstack_next_free,
5010 obstack_object_size, obstack_base): Likewise. Remove codes
5011 predicated on !defined(__STDC__).
5012 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
5013 objalloc_free_block): Use ISO C prototypes.
5014 * mkstemps.c (mkstemps): Likewise.
5015 * memset.c (memset): Likewise.
5016 * mempcpy.c (mempcpy): Likewise.
5017 * rename.c (rename): Likewise.
5018 * rindex.c (rindex): Likewise.
5019 * setenv.c (setenv, unsetenv): Likewise.
5020 * sigsetmask.c (sigsetmask): Likewise.
5021 * snprintf.c (snprintf): Likewise.
5022 * sort.c (sort_pointers, xmalloc): Likewise.
5023 * spaces.c (spaces): Likewise.
5024 * splay-tree.c (splay_tree_delete_helper,
5025 splay_tree_splay_helper, splay_tree_splay,
5026 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
5027 splay_tree_new, splay_tree_xmalloc_allocate,
5028 splay_tree_new_with_allocator, splay_tree_delete,
5029 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
5030 splay_tree_max, splay_tree_min, splay_tree_predecessor,
5031 splay_tree_successor, splay_tree_foreach,
5032 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
5033 * stpcpy.c (stpcpy): Likewise.
5034 * stpncpy.c (stpncpy): Likewise.
5035 * strcasecmp.c (strcasecmp): Likewise.
5036 * strchr.c (strchr): Likewise.
5037 * strdup.c (strdup): Likewise.
5038
50392005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5040
5041 Convert libiberty to use ISO C prototype style 6/n.
5042 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
5043 strtoerrno, main): Use ISO C prototype style.
5044 * strncasecmp.c (strncasecmp): Likewise.
5045 * strncmp.c (strncmp): Likewise.
5046 * strndup.c (strndup): Likewise.
5047 * strrchr.c (strrchr): Likewise.
5048 * strsignal.c (init_signal_tables, signo_max, strsignal,
5049 strsigno, strtosigno, psignal, main): Likewise.
5050 * strstr.c (strstr): Likewise.
5051 * strtod.c (strtod, atof): Likewise.
5052 * strtol.c (strtol): Likewise.
5053 * strtoul.c (strtoul): Likewise.
5054 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
5055 ternary_recursivesearch): Likewise.
5056 * tmpnam.c (tmpnam): Likewise.
5057 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
5058 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
5059 * vfork.c (vfork): Likewise.
5060 * vfprintf.c (vfprintf): Likewise.
5061 * vprintf.c (vprintf): Likewise.
5062 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
5063 * vsprintf.c (vsprintf): Likewise.
5064 * waitpid.c (waitpid): Likewise.
5065 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
5066 * xexit.c (xexit): Likewise.
5067 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
5068 xcalloc, xrealloc): Likewise.
5069 * xmemdup.c (xmemdup): Likewise.
5070 * xstrdup.c (xstrdup): Likewise.
5071 * xstrerror.c (xstrerror): Likewise.
5072 * xstrndup.c (xstrndup): Likewise.
5073
50742005-03-27 Andreas Jaeger <aj@suse.de>
5075
5076 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
5077 flags.
5078 * configure: Regenerated.
5079
50802005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5081
5082 * getopt1.c (getopt_long_only): Fix thinko.
5083
50842005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5085
5086 Convert libiberty to use ISO C prototype style 4/n.
5087 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
5088 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
5089 htab_create_alloc, htab_set_functions_ex, htab_create,
5090 htab_try_create, htab_delete, htab_empty,
5091 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
5092 htab_find, htab_find_slot_with_hash, htab_find_slot,
5093 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
5094 htab_traverse_noresize, htab_traverse, htab_collisions,
5095 htab_hash_string, iterative_hash): Use ISO C prototype.
5096 * hex.c (hex_init): Likewise.
5097 * index.c (index): Likewise.
5098 * insque.c (insque, remque): Likewise.
5099 * lbasename.c (lbasename): Likewise.
5100 * lrealpath.c (lrealpath): Likewise.
5101 * make-relative-prefix.c (save_string, split_directories,
5102 free_split_directories, make_relative_prefix): Likewise.
5103 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
5104 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
5105 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
5106 * memchr.c (memchr): Likewise.
5107 * memcpy.c (memcpy): Likewise.
5108 * memmove.c (memmove): Likewise.
5109 * gettimeofday.c (gettimeofday): Likewise.
5110 * getruntime.c (get_run_time): Likewise.
5111 * getpwd.c (getpwd, getpwd): Likewise.
5112 * getpagesize.c (getpagesize): Likewise.
5113 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
5114 * getopt.c (my_index, exchange, _getopt_initialize,
5115 _getopt_internal, getopt, main): Likewise.
5116 * getcwd.c (getcwd): Likewise.
5117 * fnmatch.c (fnmatch): Likewise.
5118 * floatformat.c (floatformat_always_valid,
5119 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
5120 put_field, floatformat_from_double, floatformat_is_valid,
5121 ieee_test, main): Likewise.
5122 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
5123 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
5124 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
5125 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
5126 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
5127 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
5128 fibheap_link, fibheap_cut, fibheap_cascading_cut,
5129 fibnode_insert_after, fibnode_remove): Likewise.
5130 * ffs.c (ffs): Likewise.
5131 * fdmatch.c (fdmatch): Likewise.
5132 * dyn-string.c (dyn_string_init, dyn_string_new,
5133 dyn_string_delete, dyn_string_release, dyn_string_resize,
5134 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
5135 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
5136 dyn_string_insert_cstr, dyn_string_insert_char,
5137 dyn_string_append, dyn_string_append_cstr,
5138 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
5139 Likewise.
5140
51412005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5142
5143 Convert libiberty to use ISO C prototype style 3/n.
5144 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
5145 consume_count_with_underscores, code_for_qualifier,
5146 qualifier_string, demangle_qualifier, cplus_demangle_opname,
5147 cplus_mangle_opname, cplus_demangle_set_style,
5148 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
5149 ada_demangle, internal_cplus_demangle, squangle_mop_up,
5150 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
5151 delete_work_stuff, mop_up, demangle_signature,
5152 demangle_method_args, demangle_template_template_parm,
5153 demangle_expression, demangle_integral_value,
5154 demangle_real_value, demangle_template_value_parm,
5155 demangle_template, arm_pt, demangle_arm_hp_template,
5156 demangle_class_name, demangle_class, iterate_demangle_function,
5157 demangle_prefix, gnu_special, recursively_demangle, arm_special,
5158 demangle_qualified, get_count, do_type, demangle_fund_type,
5159 do_hpacc_template_const_value, do_hpacc_template_literal,
5160 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
5161 register_Btype, remember_Btype, forget_B_and_K_types,
5162 forget_types, demangle_args, demangle_nested_args,
5163 demangle_function_name, string_need, string_delete, string_init,
5164 string_clear, string_empty, string_append, string_appends,
5165 string_appendn, string_prepend, string_prepends, string_prependn,
5166 string_append_template_idx): Use ISO C prootype style.
5167 * cp-demint.c (cplus_demangle_fill_component,
5168 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
5169 cplus_demangle_v3_components): Likewise.
5170
51712005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
5172
5173 Convert libiberty to use ISO C prototype style 2/n.
5174 * cp-demangle.h: Remove uses of PARAMS.
5175 * cp-demangle.c: Likewise.
5176 (d_dump, cplus_demangle_fill_name,
5177 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
5178 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
5179 d_make_builtin_type, d_make_operator, d_make_extended_operator,
5180 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
5181 cplus_demangle_mangled_name, has_return_type,
5182 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
5183 d_prefix, d_unqualified_name, d_source_name, d_number,
5184 d_identifier, d_operator_name, d_special_name, d_call_offset,
5185 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
5186 d_function_type, d_bare_function_type, d_class_enum_type,
5187 d_array_type, d_pointer_to_member_type, d_template_param,
5188 d_template_args, d_template_arg, d_expression, d_expr_primary,
5189 d_local_name, d_discriminator, d_add_substitution,
5190 d_substitution, d_print_resize, d_print_append_char,
5191 d_print_append_buffer, d_print_error, cplus_demangle_print,
5192 d_print_comp, d_print_java_identifier, d_print_mod_list,
5193 d_print_mod, d_print_function_type, d_print_array_type,
5194 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
5195 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
5196 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
5197 print_usage, main):
5198
51992005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
5200
5201 Convert libiberty to ISO C prototype style 1/n.
5202 * _doprnt.c: Remove conditional #include <varargs.h> on
5203 ANSI_PROTOTYPES as the latter is always assumed.
5204 (_doprnt, checkit, main): Use ISO C prototype.
5205 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
5206 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
5207 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
5208 * atexit.c (atexit): Likewise
5209 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
5210 (asprintf): Use ISO C prototype.
5211 * basename.c (basename): Likewise
5212 * bcmp.c (bcmp): Likewise.
5213 * bcopy.c (bcopy): Likewise.
5214 * bzero.c (bzero): Likewise.
5215 * bsearch.c (bsearch): Likewise. Improve const-correctness.
5216 * choose-temp.c (choose_temp_base): Likewise.
5217 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
5218 (calloc): Use ISO C prototype.
5219 * clock.c (clock): Likewise.
5220 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
5221 (vconcat_length, vconcat_copy, concat_length, concat_copy,
5222 concat_copy2, concat, reconcat, main): Use ISO C prototype.
5223 * copysign.c (copysign): Likewise.
5224
52252005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5226
5227 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
5228 (REQUIRED_OFILES): Add xstrndup.o.
5229 (CONFIGURED_OFILES): Add strndup.o.
5230 Regenerate dependencies.
5231
5232 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
5233
5234 * strndup.c, xstrndup.c: New.
5235
5236 * config.in, configure, functions.texi: Regenerate.
5237
52382005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5239
5240 * xmemdup.c, xstrdup.c: Expose the tail call.
5241
52422005-03-09 Mark Mitchell <mark@codesourcery.com>
5243
5244 * configure.ac (funcs): Add gettimeofday.
5245 * configure: Regenerated.
5246 * gettimeofday.c: New file.
5247 * Makefile.in (CFILES): Add gettimeofday.
5248 (CONFIGURED_OFILES): Add gettimeofday.o.
5249 (./gettimeofday.o): New rule.
5250
52512005-03-09 Ian Lance Taylor <ian@airs.com>
5252
5253 * pex-os2.c: Remove.
5254 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
5255 * Makefile.in (CFILES): Remove pex-os2.c.
5256 (CONFIGURED_OFILES): Remove pex-os2.o.
5257 (pex-os2.o): Remove target.
5258 * configure: Rebuild.
5259
52602005-03-07 Ian Lance Taylor <ian@airs.com>
5261
5262 * mpw-config.in: Remove.
5263 * mpw-make.sed: Remove.
5264 * mpw.c: Remove.
5265 * Makefile.in (CFILES): Remove pex-mpw.c.
5266 (CONFIGURED_OFILES): Remove pex-mpw.o.
5267 (mpw.o, pex-mpw.o): Remove targets.
5268 * maint-tool (undoc): Remove reference to mpw.c.
5269
52702005-03-06 DJ Delorie <dj@redhat.com>
5271
5272 * configure.ac (target_header_dir): vfork is a stub under djgpp.
5273 * configure: Regenerated.
5274
52752005-03-01 Jan Beulich <jbeulich@novell.com>
5276
5277 * Makefile.in (CFILES): Add unlink-if-ordinary.c
5278 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
5279 Add dependencies and rule for unlink-if-ordinary.o.
5280 * unlink-if-ordinary.c: New.
5281
52822005-03-01 Ben Elliston <bje@au.ibm.com>
5283
5284 * hashtab.c (htab_find_slot_with_hash): Make function
5285 documentation clearer.
5286
52872005-02-13 Jason Merrill <jason@redhat.com>
5288
5289 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
5290 arguments.
5291
52922005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
5293
5294 * hex.c (hex_value): Group 'unsigned int' together to get correct
5295 markup.
5296 * functions.texi: Regenerated.
5297
52982004-12-27 H.J. Lu <hongjiu.lu@intel.com>
5299
5300 * Makefile.in: Undo to 2004-12-17.
5301 * aclocal.m4: Likewise.
5302 * config.table: Likewise.
5303 * configure.ac: Likewise.
5304 * maint-tool: Likewise.
5305 * configure: Likewise.
5306
53072004-12-19 H.J. Lu <hongjiu.lu@intel.com>
5308
5309 PR bootstrap/19072
5310 * Makefile.in (enable_shared): New substitute.
5311 (LTTARGETLIB): New.
5312 (PREFIXTARGETLIB): New.
5313 (LTTESTLIB): New.
5314 (PREFIXTESTLIB): New.
5315 (CCLD): New.
5316 (LINK): New.
5317 ($(TARGETLIB)): Use $(LINK) to create libraries and create
5318 targets by hand.
5319 ($(TESTLIB)): Likewise.
5320 (mostlyclean): Don't remove .libs. Remove the libtool object
5321 directory.
5322
5323 * config.table (enable_shared): Removed.
5324
5325 * configure.ac (enable_static): Set to yes.
5326 (AC_PROG_LIBTOOL): Removed.
5327 (AM_DISABLE_SHARED): Uncommented.
5328 (AM_PROG_LIBTOOL): Likewise.
5329 (LIBOBJS): Add `./' to avoid VPATH.
5330 (LTLIBOBJS): Likewise.
5331 (enable_shared): Substitute.
5332 * configure: Regenerated.
5333
53342004-12-18 H.J. Lu <hongjiu.lu@intel.com>
5335
5336 * Makefile.in (top_builddir): Set to `.'.
5337 (OUTPUT_OPTION): Removed.
5338 (LIBTOOL): New.
5339 (LTLIBOBJS): New.
5340 (EXTRA_LTOFILES): New.
5341 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
5342 (all): Remove stamp-picdir.
5343 (LTCOMPILE): New.
5344 (.c.lo): New rule.
5345 (REQUIRED_LTOFILES): New.
5346 (CONFIGURED_LTOFILES): New.
5347 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
5348 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
5349 (stamp-picdir): Completely removed.
5350 (maint-missing): Pass $(REQUIRED_LTOFILES)
5351 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
5352 $(CONFIGURED_OFILES)
5353 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
5354 $(CONFIGURED_LTOFILES).
5355 (mostlyclean): Also remove *.lo .libs.
5356 Run "make maint-deps".
5357
5358 * aclocal.m4: Include ../libtool.m4.
5359
5360 * config.table: Don't check --enable-shared.
5361
5362 * configure.ac (AC_PROG_LIBTOOL): Add.
5363 (AC_PROG_CC_C_O): Removed.
5364 (OUTPUT_OPTION): Removed.
5365 (NO_MINUS_C_MINUS_O): Removed.
5366 (ltpexecute): New substitute.
5367 (LIBOBJS): Cleanup.
5368 * configure: Regenerated.
5369
5370 * maint-tool: Updated for .lo/libtool.
5371
53722004-12-11 Ben Elliston <bje@au.ibm.com>
5373
5374 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
5375 * configure: Regenerate.
5376 * config.in: Likewise.
5377
53782004-12-07 DJ Delorie <dj@redhat.com>
5379
5380 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
5381 that recursion (and thus large stack space) is not needed.
5382
53832004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
5384
5385 * pex-unix.c: Fix the spelling of longjmp.
5386
53872004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
5388
5389 PR other/18623
5390 * cp-demangle.c (d_call_offset): Remove useless local variables
5391 offset and virtual_offset.
5392 * cplus-dem.c (ada_demangle): Remove useless local variable
5393 at_start_name.
5394 (demangle_template): Remove useless local variable start.
5395
53962004-11-19 Roger Sayle <roger@eyesopen.com>
5397
5398 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
5399 "ansidecl.h" to avoid redeclaration errors with native compilers.
5400 * regex.c: Protect config.h from multiple inclusion.
5401
54022004-11-12 Mike Stump <mrs@apple.com>
5403
5404 * Makefile.in (libiberty.html): Fix html generation.
5405
54062004-09-08 Adam Nemet <anemet@lnxw.com>
5407
5408 * vasprintf.c: Accept __va_copy in addition to va_copy.
5409
54102004-09-03 Paolo Bonzini <bonzini@gnu.org>
5411
5412 * configure: Regenerate.
5413
54142004-09-02 Paolo Bonzini <bonzini@gnu.org>
5415
5416 * configure.ac: Do not enable multilibs for build-side libiberty.
5417
54182004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
5419
5420 * lrealpath.c (lrealpath): Add _WIN32 support.
5421
54222004-06-28 Zack Weinberg <zack@codesourcery.com>
5423
5424 * cp-demangle.h: Declare cplus_demangle_operators,
5425 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
5426 cplus_demangle_type as static if IN_GLIBCPP_V3.
5427
54282004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
5429
5430 PR other/16240
5431 * cp-demangle.c (d_expr_primary): Check for a failure return from
5432 cplus_demangle_type.
5433 * testsuite/demangle-expected: Add test case.
5434
54352004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
5436
5437 * pex-win32.c (fix_argv): Expand comment.
5438
54392004-05-25 Daniel Jacobowitz <drow@false.org>
5440
5441 * Makefile.in: Add .NOEXPORT.
5442
54432004-04-29 Douglas B Rupp <rupp@gnat.com>
5444
5445 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5446 copyright.
5447
54482004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5449
5450 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5451 * configure: Regenerate.
5452
54532004-04-22 Richard Henderson <rth@redhat.com>
5454
5455 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
5456 (CHAR_BIT): Provide default.
5457 (struct prime_ent, prime_tab): New.
5458 (higher_prime_index): Rename from higher_prime_number, return index.
5459 (htab_mod_1): New.
5460 (htab_mod, htab_mod_m2): Use it.
5461 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
5462 (htab_expand): Likewise.
5463 * configure.ac: Check for stdint.h.
5464 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
5465 * config.in, configure: Rebuild.
5466
54672004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
5468
5469 * strerror.c: Include config.h, and redefine sys_nerr and
5470 sys_errlist, before including ansidecl.h and libiberty.h.
5471
54722004-04-13 Jeff Law <law@redhat.com>
5473
5474 * hashtab.c (htab_remove_elt_with_hash): New function.
5475 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5476
54772004-03-31 Richard Henderson <rth@redhat.com>
5478
5479 * hashtab.c (htab_size): Move to top of file; mark inline.
5480 (htab_elements): Likewise.
5481 (htab_mod, htab_mod_m2): New.
5482 (htab_delete): Refactor htab->size and htab->entries.
5483 (htab_empty): Likewise.
5484 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5485 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5486 (htab_clear_slot): Use htab_size, htab_elements.
5487 (htab_traverse_noresize, htab_traverse): Likewise.
5488
54892004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5490
5491 * pex-unix.c (pexecute): Use vfork instead of fork, with
5492 appropriate changes to make this safe.
5493 * pex-common.h (STDERR_FILE_NO): Define.
5494
5495 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5496 an 80 column screen. Run maint-deps.
5497
54982004-03-09 Kelley Cook <kcook@gcc.gnu.org>
5499
5500 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
5501 * acconfig.h: Delete redundant file.
5502 * config.in: Regenerate.
5503 * configure: Regenerate.
5504
55052004-03-09 Hans-Peter Nilsson <hp@axis.com>
5506
5507 * configure: Regenerate for config/accross.m4 correction.
5508
55092004-03-07 Andreas Jaeger <aj@suse.de>
5510
5511 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5512 prototypes.
5513 (main): Initialize style.
5514
55152004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5516
5517 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5518 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5519 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5520 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5521 short types to D_PRINT_DEFAULT. Change other integer types to use
5522 new D_PRINT_* values where appropriate. Change float types to
5523 D_PRINT_FLOAT.
5524 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5525 values.
5526 * testsuite/demangle-expected: Adjust two test cases.
5527
5528 * cp-demangle.c (d_print_function_type): Print a space before the
5529 parenthesis around the function type in more cases.
5530 * testsuite/demangle-expected: Adjust one test case.
5531
5532 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5533 parentheses around a cast.
5534 * testsuite/demangle-expected: Adjust two test cases to match new
5535 output.
5536
5537 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5538
5539 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5540 push more than one of the same CV-qualifier on the top of the
5541 stack.
5542 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5543 move the CV-qualifiers to apply to the element type instead.
5544 (d_print_array_type): When checking the modifiers, keep looking
5545 past ones which have been printed already.
5546 * testsuite/demangle-expected: Add three test cases.
5547
55482004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5549
5550 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5551 empty string correctly.
5552
5553 * cp-demangle.c (__cxa_demangle): It is not an error if status is
5554 not NULL. It is an error if the mangled name is the same as a
5555 built-in type name.
5556 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5557 than cplus_demangle_v3.
5558
5559 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5560 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5561
55622004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
5563
5564 * regex.c: Include <ansidecl.h>.
5565 (regcomp): Cast i to int.
5566 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5567
55682004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5569
5570 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5571 * configure: Regenerate.
5572
55732004-01-22 DJ Delorie <dj@redhat.com>
5574
5575 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
5576 with explicit build rules.
5577 (VPATH): Remove.
5578 (.c.o): Poison.
5579 * configure.ac (pexecute, LIBOBJS): Add ./ .
5580 * maint-tool: Build dependencies with explicit rules.
5581
55822004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5583
5584 * strdup.c (strdup): Constify the argument.
5585
55862004-01-14 Loren J. Rittle <ljrittle@acm.org>
5587
5588 * Makefile.in (distclean): Remove config.cache.
5589
55902004-01-13 Daniel Jacobowitz <drow@mvista.com>
5591
5592 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5593 takes two parameters.
5594 * cp-demint.c (cplus_demangle_fill_component): Likewise.
5595
55962004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
5597
5598 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
5599 defined, rename some functions which are to become static via
5600 #define.
5601 (CP_STATIC_IF_GLIBCPP_V3): Define.
5602 (struct d_operator_info): Move definition to cp-demangle.h, and
5603 rename to demangle_operator_info. Change all uses.
5604 (enum d_builtin_type_print): Move definition to cp-demangle.h.
5605 (struct d_builtin_type_info): Move definition to cp-demangle.h,
5606 and rename to demangle_builtin_type_info. Change all uses.
5607 (enum d_comp_type): Move definition to include/demangle.h, and
5608 rename to demangle_component_type, and change all enums to start
5609 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
5610 (struct d_comp): Move definition to include/demangle.h, and rename
5611 to demangle_component. Change all uses.
5612 (struct d_info): Move definition to cp-demangle.h.
5613 (cplus_demangle_fill_name): New function.
5614 (cplus_demangle_fill_extended_operator): New function.
5615 (cplus_demangle_fill_ctor): New function.
5616 (cplus_demangle_fill_dtor): New function.
5617 (d_make_empty): Remove type parameter. Change all callers.
5618 (d_make_name): Use cplus_demangle_fill_name.
5619 (d_make_extended_operator): Use
5620 cplus_demangle_fill_extended_operator.
5621 (d_make_ctor): Use cplus_demangle_fill_ctor.
5622 (d_make_dtor): Use cplus_demangle_fill_dtor.
5623 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
5624 non-static by default. Change all callers.
5625 (cplus_demangle_operators): Rename from d_operators. Change all
5626 uses. Make non-static by default. Add sentinel at end of array.
5627 (d_operator_name): Adjust initialization of high for new sentinel
5628 in cplus_demangle_operators.
5629 (cplus_demangle_builtin_types): Rename from d_builtin_types.
5630 Change all uses. Make non-static by default. Change initializer
5631 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5632 (cplus_demangle_type): Rename from d_type. Make non-static by
5633 default. Change all callers.
5634 (cplus_demangle_init_info): Rename from d_init_info. Make
5635 non-static by default. Change all callers.
5636 * cp-demangle.h: New file.
5637 * cp-demint.c: New file.
5638 * Makefile.in: Rebuild dependencies.
5639 (CFILES): Add cp-demint.c.
5640 (REQUIRED_OFILES): Add cp-demint.o.
5641
56422004-01-09 Kelley Cook <kcook@gcc.gnu.org>
5643
5644 * configure.in: Rename file to ...
5645 * configure.ac: ... this.
5646 * Makefile.in: Update a comment for above change.
5647 * README: Likewise.
5648 * config.in: Regenerate.
5649
56502004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
5651
5652 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5653 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5654 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5655 demangling template parameters.
5656 * testsuite/test-demangle.c (fail): New static function.
5657 (main): Support new options in input file: --no-params,
5658 --is-v3-ctor, and --is-v3-dtor.
5659 * testsuite/demangle-expected: Add --no-params to most tests, and
5660 add the correct result when parameters are not demangled. Add
5661 some simple tests for V3 constructor/destructor recognition.
5662
56632003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5664
5665 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5666
56672003-12-22 Daniel Jacobowitz <drow@mvista.com>
5668
5669 PR debug/13272
5670 * Makefile.in (lbasename.o): Depend on filenames.h.
5671 * lbasename.c: Include "filenames.h" instead of defining
5672 its macros locally.
5673
56742003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5675
5676 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5677 dynamic arrays.
5678 (struct d_operator_info): Add len field.
5679 (struct d_builtin_type_info): Add len and java_len fields.
5680 (struct d_standard_sub_info): Add simple_len, full_len, and
5681 set_last_name_len fields.
5682 (struct d_comp): Add len field to s_string.
5683 (struct d_info): Add send, did_subs, and expansion fields.
5684 (d_append_string_constant): Define.
5685 (d_append_string): Remove. Change all users to use
5686 d_append_string_constant or d_append_buffer instead.
5687 (d_make_sub): Add len parameter. Change all callers.
5688 (d_name): Increase expansion when substituting std::.
5689 (d_unqualified_name): Increase expansion for an operator.
5690 (d_number): Don't use multiplication for negative numbers.
5691 (d_identifier): Make sure there are enough characters in the
5692 string for the specified length. Adjust expansion for an
5693 anonymous namespace.
5694 (d_operators): Initialize len field.
5695 (d_special_name, d_ctor_dtor_name): Increase expansion.
5696 (d_builtin_types): Initialize len and java_len fields.
5697 (d_type): Increase expansion for a builtin type.
5698 (d_cv_qualifiers): Increase expansion for each qualifier.
5699 (d_bare_function_type): Decrease expansion when removing single
5700 void parameter.
5701 (d_template_param): Increment did_subs.
5702 (d_expression): Increase expansion for an operator.
5703 (d_expr_primary): Decrease expansion for a type we will print
5704 specially.
5705 (standard_subs): Initialize new fields.
5706 (d_substitution): Increment did_subs when doing a normal
5707 substitution. Increase expansion for a special substitution.
5708 (d_print): Add estimate parameter. Change all callers.
5709 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5710 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5711 (d_print_java_identifier): Rename from d_print_identifier. Handle
5712 only Java case. Change caller.
5713 (d_init_info): Change return type to void. Change all callers.
5714 Initialize send, did_subs, and expansion fields. Do not
5715 initialize comps and subs fields.
5716 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5717 arrays on stack. Make an estimate of the length of the demangled
5718 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5719 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5720 subs arrays on stack.
5721
57222003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5723
5724 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5725 after the identifier.
5726 * testsuite/demangle-expected: Add test case.
5727
57282003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5729
5730 Fix for PR c++/13447:
5731 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5732 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5733 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5734 D_COMP_QUAL_NAME.
5735 (is_ctor_or_dtor): Likewise.
5736 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5737 D_COMP_QUAL_NAME.
5738 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5739 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5740 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5741 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5742 * testsuite/demangle-expected: Add two test cases.
5743
5744 * cp-demangle.c (d_print_function_type): Clear the global modifier
5745 list when printing the modifiers, not just when printing the
5746 function parameters.
5747 * testsuite/demangle-expected: Add two test cases.
5748
57492003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5750
5751 * cp-demangle.c (d_print_function_type): Print the function
5752 parameters with no modifiers.
5753 * testsuite/demangle-expected: Add test case.
5754
5755 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5756 expect that we've read the entire string.
5757 (is_ctor_or_dtor): Don't expect that we've read the entire
5758 string--reverse patch of 2003-11-29.
5759
57602003-12-15 Brendan Kehoe <brendan@zen.org>
5761
5762 * Makefile.in (floatformat.o): Add dependency on
5763 config.h to accompany change of 2003-12-03.
5764
57652003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5766
5767 Fix handling of constructor/destructor of standard substitution:
5768 * cp-demangle.c (struct d_standard_sub_info): Define.
5769 (d_substitution): Add prefix argument. Change all callers.
5770 Rework handling of standard substitutions to print full name when
5771 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5772 * testsuite/demangle-expected: Add test case.
5773
5774 Fix handling of negative literal constants:
5775 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5776 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5777 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5778 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5779 * testsuite/demangle-expected: Add test case.
5780
57812003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5782
5783 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5784 (d_last_char): Define new macro.
5785 (d_make_name): Reject an empty name.
5786 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5787 (d_substitution, d_print_identifier): Likewise.
5788 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5789 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5790 (d_print_mod) Use new d_last_char macro.
5791 (d_print_cast): Use new d_last_char macro.
5792 (is_ctor_or_dtor): Don't leak memory.
5793
5794 Fix handling of member function modifiers:
5795 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5796 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5797 (d_dump): Dump new d_comp_type values.
5798 (d_make_comp): Accept new d_comp_type values.
5799 (has_return_type): Only accept _THIS variants of qualifiers.
5800 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5801 qualifiers.
5802 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5803 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5804 qualifiers and printing them at the end, add _THIS qualifiers to
5805 the modifier list.
5806 (d_print_comp) [D_COMP_*_THIS]: New cases.
5807 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5808 qualifiers.
5809 (d_print_mod_list): Add suffix parameter. Change all callers.
5810 Keep walking the list even if the current modifier has been
5811 printed.
5812 (d_print_mod): Handle new _THIS qualifiers.
5813 (d_print_function_type): Handle new _THIS qualifiers when deciding
5814 whether to print a parenthesis. Put a space before the
5815 parenthesis in some cases. Call d_print_mod_list again at the
5816 end, passing suffix as 1.
5817 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5818 * testsuite/demangle-expected: Add test case.
5819
5820 Fix for PR gcc/13304:
5821 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5822 before the '<' is itself a '<', insert a space.
5823 (d_print_cast): Likewise.
5824 * testsuite/demangle-expected: Add test case.
5825
5826 Fix for PR gcc/13244:
5827 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5828 which uses the '>' operator in an extra layer of parens.
5829 * testsuite/demangle-expected: Add test case.
5830
58312003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5832
5833 * floatformat.c: Include "config.h" and <string.h> if available.
5834 (INFINITY, NAN): Define if not defined by <math.h>.
5835 (floatformat_to_double): Handle NaN, infinity, and denormalized
5836 numbers.
5837 (floatformat_from_double): Likewise.
5838 (ieee_test): In debugging code, use little endian rather than big
5839 endian. Correct tests to handle NaN and to check correct sign of
5840 zero. Omit m68k extended test.
5841 (main): Add more debugging cases.
5842
58432003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5844
5845 * cp-demangle.c (d_demangle): Only return success if we consumed
5846 the entire demangled string.
5847 (is_ctor_or_dtor): Likewise.
5848
5849 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5850 to restore expected result of EDG test case to original expected
5851 result.
5852
58532003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5854
5855 * cp-demangle.c (struct d_print_mod): Add templates field.
5856 (d_make_builtin_type): Check for NULL type.
5857 (d_make_extended_operator): Check for NULL name.
5858 (d_make_ctor, d_make_dtor): Likewise.
5859 (d_mangled_name): Add top_level parameter. Change all callers.
5860 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5861 CV-qualifiers.
5862 (d_type): Check some return values we rely on.
5863 (d_bare_function_type, d_array_type): Likewise.
5864 (d_pointer_to_member_type, d_template_args): Likewise.
5865 (d_add_substitution): Fail if argument is NULL.
5866 (d_print_resize): Check whether buf is NULL.
5867 (d_print_comp): Save current templates list with each modifier.
5868 Don't pass the modifier list down when printing a template.
5869 (d_print_cast): Don't pass the modifier list down when printing a
5870 template.
5871 (d_print_mod_list): Temporarily set templates list while printing
5872 a modifier.
5873 (d_print_mod): Check that buf is not NULL before using it.
5874 (d_print_function_type): Print parens if there is no modifier.
5875 (d_init_info): Permit as many substitutions as there are
5876 characters in the mangled name.
5877 * testsuite/demangle-expected: Add two new test cases.
5878
58792003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5880
5881 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5882 d_demangle.
5883
58842003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5885
5886 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5887 callers.
5888 (print_usage): Display new -p option.
5889 (long_options): Add --no-params.
5890 (main): Accept and handle -p.
5891
58922003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5893
5894 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5895 whether we have a template.
5896 * testsuite/demangle-expected: Add four new tests.
5897
58982003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5899
5900 * testsuite/demangle-expected: Minor changes to match output of
5901 new demangler: adjust whitespace in four tests, and change order
5902 of qualifiers in one test.
5903
5904 * cp-demangle.c: Complete rewrite.
5905
59062003-11-19 Mark Mitchell <mark@codesourcery.com>
5907
5908 * cp-demangle.c (demangle_type): Correct thinko in substitution
5909 processing.
5910
59112003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5912
5913 * cp-demangle.c (demangle_operator_name): Remove space before
5914 "sizeof".
5915 (demangle_type_ptr): Put qualifiers in the right place. Handle
5916 qualifiers in pointer to member specially.
5917 (demangle_type): Handle qualifiers for pointer or reference
5918 specially. Handle function type.
5919 (demangle_local_name): Save and restore caret around demangling of
5920 initial encoding.
5921
5922 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5923 cplus_demangle.
5924
5925 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5926
59272003-10-31 Andreas Jaeger <aj@suse.de>
5928
5929 * floatformat.c (floatformat_always_valid): Add unused attribute.
5930
59312003-10-30 Josef Zlomek <zlomekj@suse.cz>
5932
5933 Jan Hubicka <jh@suse.cz>
5934 * vasprintf.c (int_vasprintf): Pass va_list by value.
5935 Use va_copy for copying va_list.
5936 (vasprintf): Pass va_list by value.
5937
59382003-10-30 Josef Zlomek <zlomekj@suse.cz>
5939
5940 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5941 instead of increasing n_elements when inserting to deleted slot.
5942
59432003-10-20 J. Brobecker <brobecker@gnat.com>
5944
5945 * cplus-dem.c (demangle_template): Register a new Btype only
5946 when needed.
5947 * testsuite/demangle-expected: Add a new test.
5948
59492003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 * testsuite/demangle-expected: Update the expected output of
5952 _GLOBAL__I__Z2fnv.
5953
59542003-10-02 Daniel Jacobowitz <drow@mvista.com>
5955
5956 * strerror.c: Revert last change. Declare static sys_nerr
5957 and sys_errlist using different names.
5958
59592003-10-01 Daniel Jacobowitz <drow@mvista.com>
5960
5961 * strerror.c: Don't provide or reference sys_errlist if
5962 strerror is available.
5963
59642003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5965
5966 * configure.in: Check if $MAKEINFO is missing.
5967 * configure: Regenerated.
5968
59692003-09-24 Daniel Jacobowitz <drow@mvista.com>
5970
5971 * configure.in: Use AC_PROG_CPP_WERROR.
5972 * configure: Regenerated.
5973
59742003-09-22 Andrew Cagney <cagney@redhat.com>
5975
5976 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5977 (floatformat_always_valid): New function.
5978 (floatformat_i387_ext): Initialize new "is_valid" field to
5979 "floatformat_i387_ext_is_valid".
5980 (floatformat_ieee_single_little): Initialize "is_valid" field to
5981 floatformat_always_valid.
5982 (floatformat_ieee_double_big): Ditto.
5983 (floatformat_ieee_double_little): Ditto.
5984 (floatformat_ieee_double_little): Ditto.
5985 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5986 (floatformat_i960_ext): Ditto.
5987 (floatformat_m88110_ext): Ditto.
5988 (floatformat_m88110_harris_ext): Ditto.
5989 (floatformat_arm_ext_big): Ditto.
5990 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5991 (floatformat_ia64_spill_big): Ditto.
5992 (floatformat_ia64_spill_little): Ditto.
5993 (floatformat_ia64_quad_big): Ditto.
5994 (floatformat_ia64_quad_little): Ditto.
5995 (floatformat_ia64_quad_little): Ditto.
5996 (floatformat_is_valid): Call "is_valid".
5997
59982003-09-15 Andrew Cagney <cagney@redhat.com>
5999
6000 * floatformat.c (get_field): Make "data" constant.
6001 (floatformat_is_valid, floatformat_to_double): Make "from"
6002 constant, fix casts.
6003 (floatformat_from_double): Make "from" constant.
6004
60052003-09-15 Daniel Jacobowitz <drow@mvista.com>
6006
6007 * floatformat.c (floatformat_is_valid): New function.
6008 (get_field, put_field): Correct comments.
6009
60102003-09-06 Josef Zlomek <zlomekj@suse.cz>
6011
6012 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
6013 FIBHEAPKEY_T.
6014
60152003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6016
6017 PR bootstrap/12100
6018 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
6019 * configure: Rebuilt.
6020
60212003-08-27 Daniel Jacobowitz <drow@mvista.com>
6022
6023 * aclocal.m4: Include acx.m4 and no-executables.m4.
6024 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
6025 (LIB_AC_PROG_CC): Remove.
6026 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
6027 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
6028 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
6029 performing link tests.
6030 * configure: Regenerated.
6031
60322003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
6033
6034 * cp-demangle.c: Clarify what package(s) this is part of.
6035
60362003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
6037
6038 * pex-win32.c (pexecute): Mark parameters this_pname and
6039 temp_base as unused. Remove unused variables retries,
6040 sleep_interval. Initialize org_stdin, org_stdout.
6041 (pwait): Mark parameter flags as unused.
6042
60432003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
6044
6045 * pex-win32.c (fix_argv): Ensure that the executable pathname
6046 uses Win32 backslashes.
6047 (pexecute): Cast away constness when assigning *errmsg_arg.
6048
60492003-06-26 H.J. Lu <hongjiu.lu@intel.com>
6050
6051 * testsuite/demangle-expected: Add more GNU V3 testcases.
6052
60532003-06-22 Zack Weinberg <zack@codesourcery.com>
6054
6055 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
6056 not HC_ASCII and HC_EBCDIC.
6057 Add documentation in form expected by gather-docs.
6058 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
6059 * Makefile.in, functions.texi: Regenerate.
6060
60612003-06-21 Zack Weinberg <zack@codesourcery.com>
6062
6063 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
6064 for charset determination.
6065
60662003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
6067
6068 * configure.in: Add check for malloc.h needed by
6069 m68k for function free().
6070 * configure: Regenerated.
6071 * config.in: Add HAVE_MALLOC_H.
6072 * hashtab.c: include malloc.h were available for
6073 free().
6074
60752003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
6076
6077 PR bootstrap/10974
6078 * physmem.c: Update comment.
6079 * configure.in: Modify test for _system_configuration for older
6080 AIX systems.
6081
6082 * config.in, configure: Regenerated.
6083
60842003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6085
6086 PR other/10810
6087 * test-demangle.c (getline): Fix fence-post error.
6088
60892003-06-03 Nick Clifton <nickc@redhat.com>
6090
6091 * asprintf.c: Change comment to note that -1 is returned upon
6092 error.
6093 * vasprintf.c: Likewise.
6094 (vasprintf): Return -1 upon error.
6095 * functions.texi: Document changes to asprintf and vasprintf.
6096
60972003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
6098
6099 * config.table: Accept i[345867]86 variant.
6100
61012003-05-15 Jim Blandy <jimb@redhat.com>
6102
6103 * hex.c (_hex_value): Make this unsigned.
6104 (hex_value): Update documentation for new return type. hex_value
6105 now expands to an unsigned int expression, to avoid unexpected
6106 sign extension when we store it in a bfd_vma, which is larger than
6107 int on some platforms.
6108 * functions.texi: Regenerated.
6109
61102003-05-07 Josef Zlomek <zlomekj@suse.cz>
6111
6112 * splay-tree.c (splay_tree_predecessor): Fix comment.
6113 (splay_tree_successor): Fix comment.
6114
61152003-05-07 Jason Merrill <jason@redhat.com>
6116
6117 * hashtab.c (iterative_hash): New fn.
6118 * configure.in: Add AC_C_BIGENDIAN_CROSS.
6119 * aclocal.m4: Include accross.m4.
6120 * configure, config.in: Regenerate.
6121
61222003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6123
6124 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
6125 * configure: Regenerate.
6126
61272003-05-03 Carlo Wood <carlo@alinoe.com>
6128
6129 * cp-demangle.c: Fix typo in "char_traints" string-literal.
6130
61312003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6132
6133 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
6134 (main): Test that we don't write too much data.
6135
61362003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6137
6138 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
6139 vsnprintf.
6140 * snprintf.c, vsnprintf.c: New files.
6141 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
6142 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
6143 Regenerate dependencies.
6144
6145 * functions.texi, configure, config.in: Regenerated.
6146
61472003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6148
6149 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
6150 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
6151 and stpncpy.
6152 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
6153 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
6154 Regenerate dependencies.
6155
6156 * functions.texi, configure, config.in: Regenerated.
6157
61582003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6159
6160 * argv.c: Fix comments.
6161 * calloc.c: Don't unnecessarily include "libiberty.h".
6162 (bzero): Add prototype.
6163 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6164 * getcwd.c (getcwd): Use standard definition to avoid conflicts
6165 with system headers.
6166 * hashtab.c (htab_traverse): Delete unused variables.
6167 * rename.c: Include "ansidecl.h".
6168 (rename): Use standard definition to avoid conflicts with system
6169 headers.
6170 * strsignal.c: Rely on ANSI_PROTOTYPES.
6171 * strstr.c: Check GNUC >= 2, not GNUC == 2.
6172 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
6173 * vprintf.c: Include "ansidecl.h" earlier, rely on
6174 ANSI_PROTOTYPES.
6175 * vsprintf.c: Include "ansidecl.h" earlier, rely on
6176 ANSI_PROTOTYPES and possibly include <stdarg.h>.
6177
6178 * Makefile.in: Regenerate dependencies.
6179
61802003-04-15 DJ Delorie <dj@redhat.com>
6181
6182 * maint-tool (deps): Scan for headers in $srcdir also.
6183
61842003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6185
6186 PR target/10338
6187 PR bootstrap/10198
6188 PR bootstrap/10140
6189 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
6190 __mempcpy.
6191 * regex.c (regerror): Likewise.
6192
61932003-04-14 Roger Sayle <roger@eyesopen.com>
6194
6195 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
6196 * memchr.c: Likewise.
6197 * strcasecmp.c: Likewise.
6198 * strncasecmp.c: Likewise.
6199 * strncmp.c: Likewise.
6200 * xatexit.c: Likewise.
6201 * xmalloc.c: Likewise.
6202
6203 * copysign.c: Use traditional function declaration instead of DEFUN.
6204 * sigsetmask.c: Likewise.
6205
6206 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
6207 * memset.c: Likewise.
6208
6209 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
6210 * memmove.c: Likewise.
6211
62122003-04-14 Roger Sayle <roger@eyesopen.com>
6213
6214 * strdup.c (strdup): Tweak implementation to use memcpy.
6215
62162003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6217
6218 * configure.in (HAVE_UINTPTR_T): Always define.
6219 * configure: Regenerated.
6220
62212003-03-23 Alexandre Oliva <aoliva@redhat.com>
6222
6223 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
6224 instead of $$CC alone.
6225 (install_to_tooldir): Use it.
6226
62272003-17-03 Jan Hubicka <jh@suse.cz>
6228
6229 * hashtab.c (htab_traverse_noresize): Break out from ...
6230 * hashtab.c (htab_traverse): ... here.
6231
62322003-12-03 Jan Hubicka <jh@suse.cz>
6233
6234 * hashtab.c (htab_expand): Fix warning.
6235
6236 * hashtab.c (htab_expand): Compute the size of hashtable based
6237 on the number of elements actually used.
6238 (htab_traverse): Call htab_expand when table is too empty.
6239
62402003-03-11 Carlo Wood <carlo@gnu.org>
6241
6242 * cplus-dem.c (demangle_integral_value): Correction to reflect
6243 patch of 2002-01-10 in order to also make negative multi-digits
6244 without leading underscore work.
6245
62462003-03-03 Mark Mitchell <mark@codesourcery.com>
6247
6248 * cplus-dem.c: Add license exception to copyright notice.
6249
62502003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * physmem.c: Formatting changes from upstream.
6253
62542003-02-24 Danny Smith <dannysmith@users.source.forge.net>
6255
6256 * physmem.c (physmem_total): Add _WIN32 support.
6257 (physmem_available): Likewise.
6258
62592003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6260
6261 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
6262 GSI_PHYSMEM.
6263 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
6264
62652003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6266
6267 * configure.in: Check for sys/systemcfg.h and
6268 _system_configuration.
6269 * physmem.c: Add support for AIX. Tweek formatting as per
6270 upstream coreutils beta.
6271
62722003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6273 Richard Earnshaw <rearnsha@arm.com>
6274 Geoffrey Keating <geoffk@apple.com>
6275
6276 * configure.in: Check for sys/sysctl.h and sysctl.
6277 * physmem.c: Add support for *bsd and darwin.
6278 * Makefile.in: Generate depedency for physmem.o.
6279
62802003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6281
6282 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
6283 Tru64 UNIX.
6284 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
6285 Tru64 UNIX.
6286
6287 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
6288 machine/hal_sysinfo.h, sys/table.h.
6289 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
6290 * configure, config.in: Regenerate.
6291
62922003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6293
6294 * configure.in: Check for sys/sysmp.h and sysmp.
6295 * physmem.c: Pull upstream copy, add support for irix6.
6296
6297 * config.in, configure: Regenerated.
6298
62992003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6300
6301 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
6302 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
6303 pstat_getdynamic.
6304
63052003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6306
6307 * Makefile.in (CFILES): Add physmem.c.
6308 (REQUIRED_OFILES): Add physmem.o.
6309 * configure.in: Check for sys/pstat.h.
6310 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
6311 * physmem.c: New file, copied from textutils.
6312
6313 * config.in, configure: Regenerated.
6314
63152003-02-20 Daniel Jacobowitz <drow@mvista.com>
6316
6317 * Makefile.in (CFILES): Add lrealpath.c.
6318 (REQUIRED_OFILES): Add lrealpath.o.
6319 (lrealpath.o): Add rule.
6320 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
6321 * configure.in: Add realpath and canonicalize_file_name to
6322 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
6323 for canonicalize_file_name.
6324 * lrealpath.c: New file.
6325 * make-relative-prefix.c: Update documentation.
6326 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
6327 * config.in: Regenerated.
6328 * configure: Regenerated.
6329 * functions.texi: Regenerated.
6330
63312003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
6332
6333 * cplus_dem.c: Fix typo: intializes -> initializes.
6334
63352003-02-20 Alexandre Oliva <aoliva@redhat.com>
6336
6337 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6338 config.status.
6339 * configure: Rebuilt.
6340
63412003-02-13 Daniel Jacobowitz <drow@mvista.com>
6342
6343 Fix PR c++/7612.
6344 * cplus-dem.c (demangle_signature): Call string_delete.
6345 Remove extra string_init.
6346 (demangle_arm_hp_template): Call string_delete instead of
6347 string_clear. Add missing string_delete call.
6348 (demangle_qualified): Add missing string_delete call.
6349 (do_type): Remove unused variable btype. Add missing string_delete
6350 call. Call string_delete instead of string_clear.
6351 (demangle_fund_type): Move variable btype inside of the switch
6352 statement. Add missing string_delete call.
6353 (do_arg): Call string_delete instead of string_clear. Remove extra
6354 string_init.
6355 (demangle_nested_args): Free work->previous_argument.
6356
63572003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6358
6359 * acconfig.h: New file. Add uintptr_t.
6360 * config.in: Regenerated.
6361
63622003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6363
6364 * libiberty.texi: Update to GFDL 1.2.
6365
63662003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6367
6368 * Makefile.in (libiberty_topdir): New subst.
6369 (mkinstalldirs): Redefine in terms of the above.
6370 * configure.in: AC_SUBST it.
6371 * configure: Regenerate.
6372
63732003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6374
6375 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
6376 (info-subdir, install-info-subdir, clean-info-subdir)
6377 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
6378 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
6379 Pass $(FLAGS_TO_PASS).
6380
63812003-01-27 Alexandre Oliva <aoliva@redhat.com>
6382
6383 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
6384 /`$$CC -print-multi-os-directory`.
6385
63862003-01-26 Daniel Jacobowitz <drow@mvista.com>
6387
6388 * hashtab.c (htab_create_alloc_ex): New function.
6389 (hatab_set_functions_ex): New function.
6390 (htab_delete, htab_expand): Support alternate allocation functions.
6391
63922003-01-24 Christopher Faylor <cgf@redhat.com>
6393
6394 * configure.in: Remove special pex-cygwin consideration.
6395 * configure: Regenerate.
6396 * pex-cygwin.c: Remove.
6397 * Makefile.in: Remove pex-cygwin.[co] lines.
6398
63992003-01-24 Zack Weinberg <zack@codesourcery.com>
6400
6401 * Makefile.in (CFILES): Add pex-*.c.
6402 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
6403 (CONFIGURED_OFILES): Add pex-*.o.
6404 (TEXIFILES): Add pexecute.txh.
6405 (pexecute.o): Delete rule.
6406 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
6407 pex-unix.o, pex-win32.o): New rules.
6408 * configure.in: Change AC_INIT argument to xmalloc.c.
6409 Compute appropriate pexecute implementation and substitute it
6410 as @pexecute@.
6411
6412 * pexecute.c: Split up into...
6413 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
6414 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
6415 new files.
6416
6417 * functions.texi: Regenerate.
6418 * configure: Regenerate.
6419
64202003-01-20 Josef Zlomek <zlomekj@suse.cz>
6421
6422 * hashtab.c (htab_expand): Fix allocation of new entries.
6423
64242003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6425
6426 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6427
6428 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6429 mkinstalldirs command.
6430
64312002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
6432
6433 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
6434 Define for hosts with HOST_EXECUTABLE_SUFFIX.
6435
64362002-11-24 Nick Clifton <nickc@redhat.com>
6437
6438 * make-relative-prefix.c (make_relative_prefix): Ensure return
6439 string is empty before using strcat to construct it.
6440
64412002-11-22 Daniel Jacobowitz <drow@mvista.com>
6442
6443 * Makefile.in: Add make-relative-prefix.c.
6444 * make-relative-prefix.c: New file.
6445 * functions.texi: Rebuilt.
6446
64472002-11-16 Jakub Jelinek <jakub@redhat.com>
6448
6449 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
6450 used with arguments in traditional C' warnings.
6451
64522002-10-16 Jakub Jelinek <jakub@redhat.com>
6453
6454 * config.table: Use mh-s390pic for s390x too.
6455
64562002-10-06 Andreas Jaeger <aj@suse.de>
6457
6458 * cplus-dem.c (ada_demangle): Get rid of unneeded
6459 variable and of strict-aliasing warning.
6460 (grow_vect): Use char as first parameter.
6461
64622002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6463
6464 * Makefile.in (all): Fix multilib parallel build.
6465
64662002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
6467
6468 * cp-demangle.c (demangling_new): Cast 0 to enum.
6469 (demangle_char): Cast return of strdup to char *.
6470 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
6471 (is_gnu_v3_mangled_dtor): Likewise.
6472 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
6473 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
6474 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6475 * md5.c (md5_process_bytes): Cast results back to const void *.
6476 (md5_process_block): Add cast to const md5_uint32 *.
6477 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6478 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6479 unsigned short.
6480 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6481 to void *.
6482 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6483
64842002-09-19 Nick Clifton <nickc@redhat.com>
6485
6486 * README: Update email addresses for bugs and patches.
6487
64882002-09-10 Mike Stump <mrs@apple.com>
6489
6490 * splay-tree.c (splay_tree_successor): Fix comments.
6491
64922002-09-11 Zack Weinberg <zack@codesourcery.com>
6493
6494 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
6495 * testsuite/Makefile.in: Adjust for test-demangle.
6496 * testsuite/regress-demangle: Deleted.
6497 * testsuite/test-demangle.c: New file.
6498 * testsuite/demangle-expected: Change \$ to $ throughout, now that
6499 this file is not being read by a shell script.
6500
65012002-09-05 Roger Sayle <roger@eyesopen.com>
6502
6503 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6504
65052002-08-07 DJ Delorie <dj@redhat.com>
6506
6507 * regex.c (re_error_msgid): Just use a simple array of strings.
6508 (re_compile_pattern): Compensate.
6509 (re_comp): Likewise.
6510 (re_comp): Likewise.
6511 (regerror): Likewise.
6512
65132002-07-29 Neil Booth <neil@daikokuya.co.uk>
6514
6515 * cplus-dem.c (PREPEND_BLANK): Remove.
6516
65172002-07-10 Jason Merrill <jason@redhat.com>
6518
6519 * cp-demangle.c (demangle_identifier): Support extended Unicode
6520 characters.
6521
65222002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6523
6524 * cp-demangle.c (demangle_v3_with_details): Wrap in
6525 !defined IN_GLIBCPP_V3.
6526
65272002-07-01 Mark Mitchell <mark@codesourcery.com>
6528
6529 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6530 Set it for the "st" operator.
6531 (demangle_expression): Handle expressions with types as arguments.
6532
65332002-06-30 Douglas Rupp <rupp@gnat.com>
6534
6535 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6536 * Makefile.in (OUTPUT_OPTION): Use.
6537
65382002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6539
6540 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6541 (install_to_tooldir): Likewise.
6542
65432002-06-17 Douglas Rupp <rupp@gnat.com>
6544
6545 * lbasename.c: Add 2002 to copyright.
6546 (IS_DIR_SEPARATOR): Remove VMS junk.
6547
65482002-06-05 Geoffrey Keating <geoffk@redhat.com>
6549
6550 * hashtab.c (htab_create): New stub function for backward
6551 compatibility.
6552 (htab_try_create): Likewise.
6553
65542002-06-03 Geoffrey Keating <geoffk@redhat.com>
6555
6556 * hashtab.c (htab_create): Delete.
6557 (htab_try_create): Delete.
6558 (htab_create_alloc): New.
6559 (htab_delete): Support user-specified memory allocation.
6560 (htab_expand): Likewise.
6561
65622002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6563
6564 * configure.in: Fix typo in the code checking for sys_errlist.
6565 * configure: Regenerated.
6566
65672002-05-13 Andreas Schwab <schwab@suse.de>
6568
6569 * config.table: Use mh-x86pic also for x86-64.
6570
65712002-05-08 Alexandre Oliva <aoliva@redhat.com>
6572
6573 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6574 script entry, and set LD to it when configuring multilibs.
6575 * configure: Rebuilt.
6576
65772002-05-07 Mark Mitchell <mark@codesourcery.com>
6578
6579 * configure.in (AC_TYPE_PID_T): Use it.
6580 * configure: Regenerated.
6581 * getruntime.c: Include <sys/types.h>.
6582 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
6583
65842002-04-09 Richard Henderson <rth@redhat.com>
6585
6586 * hashtab.c (higher_prime_number): Use 7 as minimum.
6587 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6588 (htab_find_slot_with_hash): Likewise.
6589
65902002-04-01 Phil Edwards <pme@gcc.gnu.org>
6591
6592 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
6593 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
6594 not compile if IN_GLIBCPP_V3 defined.
6595 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
6596
65972002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6598
6599 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
6600 if it is NULL.
6601
66022002-03-27 DJ Delorie <dj@redhat.com>
6603
6604 * hex.c: Add documentation.
6605 (_hex_value): Provide non-ASCII empty table.
6606 (hex_init): Initialize the non-ASCII table.
6607 * functions.texi: Regenerate.
6608
66092002-03-27 Mark Mitchell <mark@codesourcery.com>
6610
6611 * dyn-string.c: Add libgcc exception to copyright notice.
6612
66132002-03-26 H.J. Lu (hjl@gnu.org)
6614
6615 * config.table: Support --with-build-subdir.
6616 * configure.in: Likewise.
6617 * configure: Rebuild.
6618
66192002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6620
6621 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6622 seen.
6623
66242002-03-12 Mark Mitchell <mark@codesourcery.com>
6625
6626 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6627 notice.
6628
66292002-03-11 Douglas B Rupp <rupp@gnat.com>
6630
6631 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6632
66332002-03-06 Jim Blandy <jimb@redhat.com>
6634
6635 * splay-tree.c (splay_tree_xmalloc_allocate,
6636 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6637 prototyped definitions. Mark `data' arguments as unused.
6638
66392002-03-06 Andrew Cagney <ac131313@redhat.com>
6640
6641 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6642
66432002-03-04 Phil Edwards <pme@gcc.gnu.org>
6644
6645 * configure.in: Add --enable-install-libiberty option.
6646 * Makefile.in (INSTALLED_HEADERS): New variable.
6647 (install_to_libdir): Possibly also copy headers.
6648 * configure: Regenerated.
6649
66502002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6651
6652 * xmalloc.c (xmalloc_fail): Clarify error message further.
6653
66542002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6655
6656 * xmalloc.c (xmalloc_fail): Clarify error message.
6657
66582002-02-22 Jim Blandy <jimb@redhat.com>
6659
6660 * splay-tree.c (splay_tree_xmalloc_allocate,
6661 splay_tree_xmalloc_deallocate): New functions.
6662 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6663 above functions and a dummy data pointer.
6664 (splay_tree_new_with_allocator): New function.
6665 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6666 splay_tree_remove): Use the splay tree's allocation and
6667 deallocation functions.
6668
66692002-02-19 Scott Snyder <snyder@fnal.gov>
6670
6671 * testsuite/demangle-expected: Add test case for infinite loop in
6672 demangler.
6673 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6674 if do_type() doesn't make any progress --- prevents an infinite
6675 loop.
6676
66772002-02-18 Carlo Wood <carlo@gnu.org>
6678
6679 PR c++/5390
6680 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6681 numbers that do not start with an underscore; This is needed
6682 for integer template parameters. This doesn't break anything
6683 because multi-digit numbers are never followed by a digit.
6684 * testsuite/demangle-expected: Corrected all mangled test
6685 cases with multi-digit template parameters: g++ 2.95.x does
6686 not generate underscores around these parameters.
6687
66882002-02-05 Jason Merrill <jason@redhat.com>
6689
6690 * cplus-dem.c (flags): Add DMGL_VERBOSE
6691 (cplus_demangle_v3_p): Remove.
6692 (demangle_it): Add DMGL_TYPES to passed flags.
6693 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6694 (cplus_demangle_v3_type): Remove.
6695 (cplus_demangle_v3): Add options parm.
6696
66972002-02-02 H.J. Lu (hjl@gnu.org)
6698
6699 * cp-demangle.c (cp_demangle_type): Do not protect with
6700 IN_LIBGCC2.
6701 (cplus_demangle_v3_all): New.
6702 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6703 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6704
6705 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6706 Initialized to cplus_demangle_v3.
6707 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6708 of cplus_demangle_v3.
6709 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6710 command line symbol.
6711
6712 * testsuite/regress-demangle: Pass the mangled name at the
6713 command line.
6714
67152002-02-01 H.J. Lu <hjl@gnu.org>
6716
6717 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6718 DMGL_GNU_V3.
6719
67202002-01-31 Phil Edwards <pme@gcc.gnu.org>
6721
6722 * cp-demangle.c: Revert yesterday's change.
6723
67242002-01-31 Adam Megacz <adam@xwt.org>
6725
6726 * configure.in: Treat mingw the same as cywin
6727 wrt HAVE_SYS_ERRLIST.
6728
67292002-01-30 Phil Edwards <pme@gcc.gnu.org>
6730
6731 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6732 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6733 cp_demangle_type.
6734 * testsuite/demangle-expected: New gnu-v3 test.
6735
67362002-01-22 Momchil Velikov <velco@fadata.bg>
6737
6738 * configure.in (variable detection): Use arrays of unspecified
6739 size instead of plain integers.
6740
67412002-01-18 DJ Delorie <dj@redhat.com>
6742
6743 * Makefile.in (TESTLIB): New. This library is for future
6744 testsuites.
6745 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6746 break down by letter.
6747 (REQUIRED_OFILES): List long-to-compile files first.
6748 (maint-deps): New, target for updating dependencies.
6749 (dependencies): Update.
6750 * maint-tool: Add dependency-generating option.
6751 * configure.in: Check for _doprnt even if we're not providing it.
6752 * configure: Regenerate.
6753
6754 * _doprnt.c: Modifications to allow compiling on any platform.
6755 * copysign.c: Likewise.
6756 * putenv.c: Likewise.
6757 * setenv.c: Likewise.
6758 * vsprintf.c: Likewise.
6759
67602002-01-15 Douglas B Rupp <rupp@gnat.com>
6761
6762 * mkstemps.c (mkstemps): On VMS, open temp file with option
6763 that causes it to be deleted when closed.
6764
67652002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6766
6767 * cp-demangle.c (long_options): Const-ify.
6768 * cplus-dem.c (long_options): Likewise.
6769
6770 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6771 strstr instead.
6772
67732001-12-31 Ira Ruben <ira@apple.com>
6774
6775 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6776 * configure: Regenerated.
6777
67782001-12-24 Douglas B. Rupp <rupp@gnat.com>
6779
6780 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6781 * configure: Regenerated.
6782
67832001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6784
6785 PR other/2719
6786 * cplus-dem.c (consume_count): Treat negative count as an error.
6787 * testsuite/demangle-expected: Added testcase.
6788
6789Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6790
6791 * configure.in: Hardcode that vfork works on VMS host.
6792 * configure: Regenerated.
6793
67942001-12-06 Richard Henderson <rth@redhat.com>
6795
6796 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6797 (cplus_demangle): Support no_demangling.
6798
67992001-11-27 Zack Weinberg <zack@codesourcery.com>
6800
6801 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6802 in libiberty context. Fix typo in leading comment.
6803 * configure.in: Fix various AC_DEFINEs so autoheader works.
6804 If any of vprintf, vsprintf, vfprintf is missing from libc,
6805 then AC_REPLACE_FUNCS(_doprnt).
6806
68072001-11-26 DJ Delorie <dj@redhat.com>
6808 Daniel Jacobowitz <drow@mvista.com>
6809
6810 * Makefile.in (stamp-h): Depend on Makefile for proper
6811 serialization.
6812 (*-subdir): Depend on config.h for proper serialization.
6813
68142001-11-26 DJ Delorie <dj@redhat.com>
6815
6816 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6817 * configure: Regenerate.
6818 * config.h: Add HAVE_ALLOCA_H.
6819
68202001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6821
6822 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6823 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6824 is available.
6825
6826Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6827
6828 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6829 * configure.in (HAVE_UINTPTR_T): Test for system defining
6830 uintptr_t and define HAVE_UINTPTR_T appropriately.
6831 * regex.c (uintptr_t): Do not provide a definition if the
6832 system provided one.
6833
6834 * regex.c (PREFIX): Provide an alternate definition for
6835 non-ANSI/ISO compilers.
6836 (ARG_PREFIX): Likewise.
6837
68382001-11-12 Jim Meyering <meyering@lucent.com>
6839
6840 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6841 this code would end up calling gettext even in packages built
6842 with --disable-nls.
6843 * getopt.c (_): Likewise.
6844 * regex.c (_): Likewise.
6845
68462001-11-03 Alan Modra <amodra@bigpond.net.au>
6847
6848 * configure.in: Cope with missing makeinfo.
6849 * configure: Regenerate.
6850
68512001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6852
6853 * hex.c (hex_init): Provide empty stub.
6854
6855 * hex.c (hex_init): Delete.
6856 (_hex_value): Const-ify and initialize at compile-time.
6857
68582001-10-19 H.J. Lu <hjl@gnu.org>
6859
6860 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6861 necessary.
6862
68632001-10-17 DJ Delorie <dj@redhat.com>
6864
6865 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6866 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
6867 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
6868 Improve manual formatting.
6869 * functions.texi: Regenerate.
6870
68712001-10-15 DJ Delorie <dj@redhat.com>
6872
6873 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6874 (maint-undoc): New.
6875 maint-tool: Add "undoc" tool.
6876 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6877 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6878 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6879 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6880 documentation.
6881 * fnmatch.txh: New.
6882 * functions.texi: Regenerate.
6883
68842001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6885
6886 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6887 * strtod.c: Use "ISO C" instead of "ANSI C".
6888 * functions.texi: Regenerate.
6889
68902001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6891
6892 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6893 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6894 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6895 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6896 spelling. Give names to function arguments in documentation. Use
6897 (void) prototypes in documentation.
6898 * functions.texi: Regenerate.
6899
69002001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6901
6902 * argv.c (buildargv, tests, main): Const-ify.
6903 * cp-demangle.c (operator_code): Likewise.
6904 * cplus-dem.c (optable, libiberty_demanglers,
6905 cplus_demangle_set_style, cplus_demangle_name_to_style,
6906 print_demangler_list): Likewise.
6907 * hashtab.c (higher_prime_number): Likewise.
6908 * strcasecmp.c (charmap): Likewise.
6909 * strerror.c (error_info, strerror, main): Likewise.
6910 * strncasecmp.c (charmap): Likewise.
6911 * strsignal.c (signal_info): Likewise.
6912
69132001-09-29 DJ Delorie <dj@redhat.com>
6914
6915 * configure: Regenerate.
6916
69172001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6918
6919 * concat.c: Include stdlib.h.
6920
69212001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6922
6923 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6924 @dircategory and @direntry directives. Add @finalout.
6925 (many nodes): Lose the next,prev,up pointers on the @nide line.
6926 (Using, Supplemental Functions, Replacement Functions): Fix
6927 markup.
6928 (Functions): Move around, to allow makeinfo to build the manual
6929 without next,prev,up pointers in thye node lines.
6930 (Licenses): Fix typos.
6931
6932 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6933 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6934 * functions.texi: Regenerate.
6935
6936 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6937 line.
6938
69392001-09-27 DJ Delorie <dj@redhat.com>
6940
6941 * configure.in: Don't use in-tree texinfo, because libiberty must
6942 be built before it. Check for makeinfo version 4 or higher.
6943 * functions.texi: Regenerate.
6944
69452001-09-20 DJ Delorie <dj@redhat.com>
6946 Phil Edwards <pedwards@disaster.jaj.com>
6947
6948 * configure.in (MAKEINFO, PERL): Detect these.
6949 (--enable-maintainer-mode): Add.
6950 * configure: Regenerate.
6951 * Makefile.in (MAKEINFO, PERL): Define.
6952 (libiberty.info, libiberty.dvi, libiberty.html): New.
6953 (CFILES): Add bsearch.c.
6954 (CONFIGURED_OFILES): New, list of objects configure might add.
6955 (maint-missing, maint-buildall): New, for maintainers only.
6956 (clean, mostlyclean): Add info/dvi/html files.
6957 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6958 * gather-docs: New, for maintainers.
6959 * maint-tool: New, for maintainers.
6960 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6961 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6962 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6963 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6964 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6965 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6966 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6967 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6968 documentation.
6969
69702001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6971
6972 * concat.c (reconcat): Fix for traditional C.
6973
69742001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6975
6976 * concat.c (reconcat): New function.
6977
69782001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6979
6980 * concat.c (vconcat_length, vconcat_copy, concat_length,
6981 concat_copy, concat_copy2): New functions.
6982 (concat): Use vconcat_length/vconcat_copy.
6983
6984 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6985 Define.
6986
69872001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6988
6989 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6990 VA_FIXEDARG & VA_CLOSE.
6991
6992 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6993 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6994 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6995
69962001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6997
6998 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6999
70002001-08-23 Ulrich Drepper <drepper@redhat.com>
7001
7002 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
7003
70042001-08-23 Ulrich Drepper <drepper@redhat.com>
7005
7006 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
7007 instead of mbrtowc.
7008 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
7009 wcslen, and __wcscoll instead of wcscoll.
7010
70112001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7012
7013 * fibheap.c (fibheap_init, fibnode_init): Remove.
7014 (fibheap_new, fibnode_new): Use xcalloc to allocate and
7015 initialize memory.
7016 (fibheap_insert): Remove check for node allocation failure.
7017
70182001-08-21 Richard Henderson <rth@redhat.com>
7019
7020 * Makefile.in (fibheap.o): Depend on config.h.
7021 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
7022 functions for inlining.
7023
7024Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
7025
7026 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
7027 hosting on cygwin.
7028 * configure: Regenerate.
7029
70302001-08-20 Andrew Cagney <ac131313@redhat.com>
7031
7032 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
7033 HARRIS_FLOAT_FORMAT.
7034 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
7035 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
7036 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
7037 (floatformat_m88110_harris_ext): New float formats.
7038
70392001-08-20 Daniel Berlin <dan@cgsoftware.com>
7040
7041 * fibheap.c: New file. Fibonacci heap.
7042
7043 * Makefile.in (CFILES): Add fibheap.c.
7044 (REQUIRED_OFILES): Add fibheap.o.
7045 (fibheap.o): Add dependencies for fibheap.o.
7046
70472001-08-17 Christopher Faylor <cgf@cygnus.com>
7048
7049 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
7050 * configure: Regenerate.
7051
70522001-08-16 Richard Henderson <rth@redhat.com>
7053
7054 * hashtab.c (htab_hash_string): New.
7055
70562001-08-13 Andrew Cagney <ac131313@redhat.com>
7057
7058 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
7059 name.
7060
70612001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
7062
7063 * regex.c (wcs_regex_compile): Use appropriate string
7064 to compare with collating element.
7065 Fix the padding for the alignment.
7066
70672001-08-10 Andrew Cagney <ac131313@redhat.com>
7068
7069 * lbasename.c (lbasename): Change function definition to return a
7070 const char pointer.
7071
70722001-08-07 Jason Merrill <jason_merrill@redhat.com>
7073
7074 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
7075 for".
7076
70772001-08-03 Richard Henderson <rth@redhat.com>
7078
7079 * Makefile.in (concat.o): Depend on config.h.
7080
70812001-07-30 Andreas Jaeger <aj@suse.de>
7082
7083 * concat.c: Include "config.h".
7084
70852001-07-30 Andreas Jaeger <aj@suse.de>
7086
7087 * regex.c: Declare wcs functions only if compiling with
7088 MBS_SUPPORT.
7089 Don't use #elif for traditional C.
7090
70912001-07-23 Ulrich Drepper <drepper@redhat.com>
7092
7093 * regex.c: Revamp memory allocation for WCHAR functions to
7094 not use too much stack.
7095
70962001-07-30 Andreas Jaeger <aj@suse.de>
7097
7098 * regex.c: Declare wcs functions only if compiling with
7099 MBS_SUPPORT.
7100 Don't use #elif for traditional C.
7101
71022001-07-25 Daniel Jacobowitz <drow@mvista.com>
7103
7104 * Makefile.in (regex.o): Add dependency on config.h.
7105
71062001-07-18 Andreas Schwab <schwab@suse.de>
7107
7108 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
7109 underscore character.
7110
71112001-07-18 Ulrich Drepper <drepper@redhat.com>
7112
7113 * regex.c: Limit string length printed in debug messages to 100
7114 chars.
7115
71162001-07-18 Andreas Jaeger <aj@suse.de>
7117
7118 * regex.c: Place under LGPL version 2.1.
7119
71202001-07-10 Jeff Johnston <jjohnstn@redhat.com>
7121
7122 * Makefile.in: Add support for regex code.
7123 * regex.c: New file.
7124
71252001-07-05 Mark Klein <mklein@dis.com>
7126
7127 * Makefile.in: Add ffs.c dependency.
7128 * configure.in: Add ffs.c.
7129 * ffs.c: New file.
7130
71312001-06-18 Richard Henderson <rth@redhat.com>
7132
7133 * concat.c: Include <sys/types.h>.
7134
71352001-06-11 Loren J. Rittle <ljrittle@acm.org>
7136
7137 bootstrap/3106
7138 * strerror.c (sys_nerr): Hide the OS header version.
7139 * strsignal.c (sys_nsig): Likewise.
7140
71412001-06-10 Richard Henderson <rth@redhat.com>
7142
7143 * concat.c: Include string.h. Fix int vs size_t usage.
7144 Simplify the iteration loops. Use memcpy.
7145
71462001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
7147
7148 * partition.c: Fix misspelling of `implementation'.
7149
71502001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7151
7152 * md5.c (md5_init_ctx): Declare constants as unsigned.
7153 (md5_process_block): Likewise.
7154
71552001-05-07 Zack Weinberg <zackw@stanford.edu>
7156
7157 * cp-demangle.c (demangle_v3_with_details,
7158 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
7159 function definition.
7160 * ternary.c: Use K+R style function definitions. Use PTR, not
7161 void *. Make arguments constant where possible.
7162
71632001-05-07 Mark Mitchell <mark@codesourcery.com>
7164
7165 * splay-tree.h (splay_tree_max): New function.
7166 (splay_tree_min): Likewise.
7167
71682001-04-15 Daniel Berlin <dan@cgsoftware.com>
7169
7170 * ternary.c: New file - Ternary search tree implementation.
7171
7172 * Makefile.in: Add ternary.o, and ternary.c dependencies.
7173
71742001-04-03 Zack Weinberg <zackw@stanford.edu>
7175
7176 * make-temp-file.c (try): Inline.
7177
71782001-02-28 Richard Henderson <rth@redhat.com>
7179
7180 * Makefile.in (make-temp-file.o): Depend on config.h.
7181
71822001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7183
7184 * memchr.c (memchr): Adjust condition to avoid infinite loop.
7185
71862001-03-23 Jakub Jelinek <jakub@redhat.com>
7187
7188 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
7189 `_' not followed by a digit is invalid.
7190
71912001-03-22 Jim Blandy <jimb@redhat.com>
7192
7193 * cp-demangle.c (string_list_delete): Use dyn_string_delete
7194 instead of free, to free the contents as well as the string
7195 structure.
7196
71972001-03-21 Zack Weinberg <zackw@stanford.edu>
7198
7199 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
7200 Don't default P_tmpdir to anything. Try /var/tmp before
7201 /usr/tmp.
7202
72032001-03-20 Zack Weinberg <zackw@stanford.edu>
7204
7205 * choose-temp.c: Split off make_temp_file, and the code
7206 duplicated between it and choose_temp_base, into...
7207 * make-temp-file.c: ... here; new file.
7208
7209 * Makefile.in (CFILES): Add make-temp-file.c.
7210 (REQUIRED_OFILES): Add make-temp-file.o.
7211
72122001-03-20 Jim Blandy <jimb@redhat.com>
7213
7214 * cp-demangle.c (struct demangling_def): New fields:
7215 is_constructor and is_destructor.
7216 (demangling_new): Initialize them.
7217 (demangle_ctor_dtor_name): Set them, if we detect a constructor
7218 or destructor.
7219 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
7220 is_gnu_v3_mangled_dtor): New functions.
7221
72222001-03-20 Jason Merrill <jason@redhat.com>
7223
7224 * cplus-dem.c (main): Skip initial $.
7225
72262001-03-15 Michael Meissner <meissner@redhat.com>
7227
7228 * hashtab.c (higher_prime_number): Silence warning that 4294967291
7229 might be a signed integer under pre-ISO C systems.
7230
72312001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7232 John David Anglin <dave@hiauly1.hia.nrc.ca>
7233
7234 * lbasename.c: New file.
7235 * Makefile.in: Update for lbasename.
7236
72372001-03-06 Zack Weinberg <zackw@stanford.edu>
7238
7239 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
7240 * configure.in: Replace all alloca logic with a simple use of
7241 the above new macro.
7242 * config.table: Kill *-*-beos* entry.
7243 * config/mh-beos: Delete.
7244 * configure, config.in: Regenerate.
7245
7246 * Makefile.in (ALLOCA, HFILES): Kill.
7247 (REQUIRED_OFILES): Add alloca.o.
7248 (alloca.o): Depend on libiberty.h.
7249 (argv.o): Don't depend on alloca-conf.h.
7250 * alloca-conf.h: Delete.
7251 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
7252 blocks. Provide the C alloca unconditionally. Use PTR where
7253 appropriate. Make i00afunc static.
7254 * argv.c: Don't include alloca-conf.h.
7255
72562001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7257
7258 * cplus-dem.c (main): Cast enum style to int.
7259
72602001-02-16 Loren J. Rittle <ljrittle@acm.org>
7261
7262 * cplus-dem.c (main): Initialize style.
7263
72642001-02-02 Phil Edwards <pme@sources.redhat.com>
7265
7266 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
7267
72682001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
7269
7270 Add support for Java demangling under the v3 ABI:
7271 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
7272 (struct demangling_def): Add `style' field.
7273 (demangling_new): New parameter `style'. Set it in demangling_t.
7274 (demangle_prefix): Use NAMESPACE_SEPARATOR.
7275 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
7276 (cp_demangle): New parameter `style'. Pass it to demangling_new().
7277 (main): Call cp_demangle with extra parameter.
7278 (java_demangle_v3): New function.
7279 (java_builtin_type_names): New. Table of primitive type names used
7280 for Java demangling.
7281 (demangle_builtin_type): Look up in java_builtin_type_names if doing
7282 Java output.
7283 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
7284 demangling.
7285 (long_options): Remove obsolete `java' option.
7286 (main): Remove explicit handling of `java' option. Instead, pass style
7287 parameter in cplus_demangle flags as gdb does.
7288 * testsuite/demangle.expected: Add some Java test cases.
7289
72902000-12-29 DJ Delorie <dj@redhat.com>
7291
7292 * fnmatch.c: Make the note about the origins of this file more
7293 accurate, at least until we can sync with glibc.
7294 * getopt.c: Ditto.
7295 * getopt1.c: Ditto.
7296 * md5.c: Ditto.
7297 * obstack.c: Ditto.
7298
72992000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7300
7301 * bsearch.c: New file.
7302 * configure.in (funcs): Add bsearch.
7303 (AC_CHECK_FUNCS): Likewise.
7304 * configure, config.in: Regenerate.
7305
73062000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7307
7308 * safe-ctype.c: #include "ansidecl.h".
7309 * strtod.c: Likewise.
7310
73112000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7312
7313 * strtoul.c: Include safe-ctype.h, not ctype.h.
7314
73152000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
7316
7317 * safe-ctype.c: New file.
7318 * Makefile.in (CFILES): Add safe-ctype.c.
7319 (REQUIRED_OFILES): Add safe-ctype.o.
7320
7321 * argv.c: Define ISBLANK and use it, not isspace.
7322 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
7323 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
7324 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
7325 before calling TOLOWER(c)/TOUPPER(c).
7326
73272000-12-07 Mike Stump <mrs@wrs.com>
7328
7329 * Makefile.in (distclean): When cleaning, remove testsuite.
7330
73312000-12-05 Jason Merrill <jason@redhat.com>
7332
7333 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
7334 name before allocating the dyn_string.
7335
73362000-12-04 Jason Merrill <jason@redhat.com>
7337
7338 * cp-demangle.c: s/new_abi/v3/.
7339 * cplus-dem.c: Likewise.
7340 (current_demangling_style): Now auto_demangling.
7341 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
7342 (main): Use standard symbol chars for auto_demangling.
7343
73442000-11-26 Mark Mitchell <mark@codesourcery.com>
7345
7346 * hashtab.c (higher_prime_number): Use a table, rather than a
7347 seive, to find the next prime.
7348
73492000-11-22 H.J. Lu <hjl@gnu.org>
7350
7351 * cplus-dem.c (main): Handle gnat_demangling.
7352
73532000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
7354
7355 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
7356 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
7357 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
7358 argument form of AC_DEFINE in dummy definitions block. Use
7359 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
7360 in dummy block. Preload cache variables instead of bypassing
7361 tests, where possible.
7362 * acconfig.h: Removed.
7363
7364 * xmalloc.c (xmalloc_failed): New function, does error
7365 reporting on failed allocation.
7366 (xmalloc, xcalloc, xrealloc): Use it.
7367
73682000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
7369
7370 * cplus-dem.c (cplus_demangle): Fix formatting.
7371 (grow_vect): Ditto.
7372 (ada_demangle): Ditto.
7373 (internal_cplus_demangle): Ditto.
7374 (mop_up): Ditto.
7375
73762000-11-21 H.J. Lu <hjl@gnu.org>
7377
7378 * cplus-dem.c (main): Handle java_demangling.
7379
73802000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7381
7382 * cplus-dem.c (grow_vect): Prototype.
7383 (ada_demangle): Cast the arg of ctype macros to unsigned char.
7384
73852000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7386
7387 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7388 parameter `option'.
7389
73902000-11-15 Kenneth Block <kenneth.block@compaq.com>
7391
7392 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
7393 be used in GCC.
7394
73952000-11-15 Kenneth Block <kenneth.block@compaq.com>
7396
7397 * cplus-dem.c: Add gnat demangler. Add java to demangle style
7398 list.
7399
74002000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
7401
7402 * hashtab.c (htab_expand): Change to return int. Use calloc or
7403 xcalloc depending on htab->return_allocation_failure. Return zero
7404 if calloc fails.
7405 (htab_create): Update comment to cover memory allocation.
7406 (htab_try_create): New.
7407 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
7408 Update comment to cover this.
7409
74102000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
7411
7412 * hashtab.c: Change void * to PTR where necessary.
7413 (htab_create, htab_expand): Correct formatting of comment before
7414 function.
7415
74162000-10-22 Alex Samuel <samuel@codesourcery.com>
7417
7418 * cp-demangle.c (string_list_def): Add caret_position and comments.
7419 (result_caret_pos): New macro.
7420 (result_append_string): Rename to...
7421 (result_add_string): ... this, and insert at caret position.
7422 Rename throughout.
7423 (result_append): Rename to...
7424 (result_add): ... this, and insert at caret position. Rename
7425 throughout.
7426 (result_append_char): Rename to...
7427 (result_add_char): ... this, and insert at caret position. Rename
7428 throughout.
7429 (result_append_space): Remove.
7430 (string_list_new): Initialize caret position.
7431 (result_add_separated_char): Use caret position.
7432 (result_get_caret): New funtion.
7433 (result_set_caret): Likewise.
7434 (result_shift_caret): Likewise.
7435 (result_previous_char_is_space): Likewise.
7436 (substitution_start): Use caret position.
7437 (substitution_add): Likewise.
7438 (demangling_new): Initialize caret position.
7439 (demangle_encoding): Use caret position.
7440 (demanglin_nested_name): Put CV qualifiers after name.
7441 (demangle_type_ptr): Use switch statement. Handle pointers to
7442 arrays. Don't use result_append_space. Use caret position.
7443 (demangle_type): Emit CV qualifiers after underlying type. Adjust
7444 call to demangle_array_type.
7445 (demangle_array_type): Add parameter to handle pointers to arrays.
7446
74472000-10-01 Mark Mitchell <mark@codesourcery.com>
7448
7449 * splay-tree.c (splay_tree_insert): Fix formatting.
7450
74512000-09-16 Mark Mitchell <mark@codesourcery.com>
7452
7453 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7454
74552000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7456
7457 * splay-tree.c: #include <stdio.h>.
7458
74592000-09-14 Hans-Peter Nilsson <hp@axis.com>
7460
7461 * testsuite/demangle-expected: Add two tests for anonymous
7462 namespaces.
7463 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
7464
74652000-09-10 Mark Mitchell <mark@codesourcery.com>
7466
7467 * splay-tree.c (splay_tree_predecessor): New function.
7468 (splay_tree_successor): Likewise.
7469
74702000-09-10 Hans-Peter Nilsson <hp@axis.com>
7471
7472 * testsuite/demangle-expected: Add four tests for type_info
7473 mangling.
7474 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7475 for a non-template non-qualified type_info function or node.
7476
74772000-09-08 Alex Samuel <samuel@codesourcery.com>
7478
7479 * cp-demangle.c: Fix copyright banner.
7480
74812000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7482
7483 * md5.c: #include "ansidecl.h".
7484
74852000-09-06 Alex Samuel <samuel@codesourcery.com>
7486
7487 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7488 (demangle_type): Handle substitution candidates correctly in the
7489 face of special substitutions.
7490
74912000-09-05 Alex Samuel <samuel@codesourcery.com>
7492
7493 * cp-demangle.c (demangle_encoding): Rename variable.
7494 (demangle_name): Rename parameter. Handle return type
7495 suppression.
7496 (demangle_nested_name): Rename parameter.
7497 (demangle_prefix): Likewise. Change return type suppression.
7498 (demangle_unqualified_name): Add parameter. Flag constructors and
7499 conversion operators.
7500 (demangle_special_name): Fix comment.
7501 (demangle_type): Rename variable.
7502 (demangle_bare_function_type): Check for missing return type and
7503 parameter.
7504 (demangle_class_enum_type): Rename parameter.
7505 (demangle_discriminator): Fix misspelling in comment.
7506
75072000-08-31 DJ Delorie <dj@redhat.com>
7508
7509 * configure.in (Cygwin): special case cygwin only when we're
7510 building cygwin, not when we're hosting cygwin.
7511
75122000-09-04 Alex Samuel <samuel@codesourcery.com>
7513
7514 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
7515 <expression>.
7516
75172000-09-04 Alex Samuel <samuel@codesourcery.com>
7518
7519 * cp-demangle.c (demangle_type_ptr): Increment position past
7520 pointer and reference characters.
7521
75222000-09-04 Alex Samuel <samuel@codesourcery.com>
7523
7524 * cp-demangle.c (demangle_nv_offset): New function.
7525 (demangle_v_offset): Likewise.
7526 (demangle_call_offset): Likewise.
7527 (demangle_special_name): Update thunk demangling to comply with
7528 ABI changes.
7529
75302000-09-03 Alex Samuel <samuel@codesourcery.com>
7531
7532 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7533 (substitution_def): Remove template_parm_number.
7534 (NOT_TEMPLATE_PARM): Remove.
7535 (result_insert_string): New macro.
7536 (result_insert): Likewise.
7537 (result_insert_char): Likewise.
7538 (substitution_add): Remove last parameter. Don't store template
7539 parm number.
7540 (BFT_NO_RETURN_TYPE): Define as NULL.
7541 (demangle_encoding): Adjust call to demangle_bare_function_type.
7542 (demangle_name): Adjust substitution. Adjust call to
7543 substitution_add.
7544 (demangle_prefix): Adjust call to substitution_add.
7545 (demangle_identifier): Handle anonymous namespaces.
7546 (demangle_operator_name): Change demangling of vendor-extended
7547 operator to match ABI changes.
7548 (demangle_type_ptr): Change parameters. Make recursive. Handle
7549 substitutions here.
7550 (demangle_type): Adjust calls to demangle_template_param,
7551 substitution_add, and demangle_type_ptr. Fix substitution of
7552 templated types.
7553 (demangle_function_type): Change parameter to a pointer.
7554 (demangle_bare_function_type): Likewise. Adjust insertion point.
7555 (demangle_template_param): Remove last parameter.
7556 (demangle_expr_primary): Remove unused variable. Adjust call to
7557 demangle_template_param.
7558 (is_mangled_char): Accept `$' and `.'.
7559 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7560 * dyn-string.c (dyn_string_insert_char): New function.
7561
75622000-08-31 Hans-Peter Nilsson <hp@axis.com>
7563
7564 * testsuite/demangle-expected: Add nine tests for
7565 underscore-after-number followed by five tests for name-signature
7566 delimiter.
7567
75682000-08-28 Richard Henderson <rth@cygnus.com>
7569
7570 * Makefile.in (md5.o): Depend on config.h.
7571
75722000-08-28 Jason Merrill <jason@redhat.com>
7573
7574 * Makefile.in (REQUIRED_OFILES): Add md5.o.
7575 (CFILES): Add md5.c.
7576 * md5.c: New file.
7577
75782000-08-27 Alex Samuel <samuel@codesourcery.com>
7579
7580 * cp-demangle.c (demangle_name): Initialize template_p in local
7581 name case. Don't re-add substitutions as candidates.
7582 (demangle_nested_name): Use <unqualified-name>.
7583 (demangle_prefix): Likewise. Don't add template names as
7584 substitution candidates twice, or re-add a substitution or the
7585 last prefix component.
7586 (demangle_local_name): Adjust output format.
7587
75882000-08-25 Alex Samuel <samuel@codesourcery.com>
7589
7590 * cp-demangle.c (result_add_separated_char): Change parameter to
7591 int.
7592 (substitution_add): Don't check for duplicates. Check if
7593 previously allocated size is zero.
7594 (demangle_name): Remove duplicate check for std substitution.
7595 Clear template flag appropriately.
7596 (demangle_prefix): Remove argument to demangle_substitution.
7597 Don't check that template flag is already set.
7598 (demangle_operator_name): Add pt operator.
7599 (demangle_type): Don't treat r as built-in type. Remove argument
7600 to demangle_substitution. Fix substitution candidate mechanics.
7601 Handle <template-template-parm>s. Improve comments.
7602 (demangle_template_param): Don't handle template arg lists here.
7603 (demangle_substitution): Remove parameter.
7604 (print_usage): Remove extra fprintf option.
7605
76062000-08-24 Greg McGary <greg@mcgary.org>
7607
7608 * random.c (end_ptr): Revert previous change.
7609
76102000-08-24 Greg McGary <greg@mcgary.org>
7611
7612 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
7613 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
7614 * random.c (end_ptr): Likewise.
7615
76162000-08-23 Alex Samuel <samuel@codesourcery.com>
7617
7618 * cp-demangle.c (result_close_template_list): Remove function.
7619 (result_add_separated_char): New function.
7620 (result_open_template_list): New macro.
7621 (result_close_template_list): Likewise.
7622 (demangle_prefix): Don't set template_p if the
7623 prefix ends with a ctor name.
7624 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7625 (demangle_type): Check for template args after substitution.
7626 (demangle_template_args): Use result_open_template_list.
7627
76282000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7629
7630 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7631
76322000-07-26 Dave Pitts <dpitts@cozx.com>
7633
7634 * config/mh-openedition.h: Added -DLE370 definition.
7635
76362000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7637
7638 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7639 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7640 Cast program to 'char *' in errmsg_arg assignment.
7641 (PWAIT_ERROR): Define.
7642 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
7643 to DJGPP's WIF* macros.
7644
76452000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7646 Jeff Law <law@cygnus.com>
7647
7648 * getcwd.c: Include string.h, stdlib.h for prototypes
7649
7650 * Makefile.in (rename.o, waitpid.o): Depend on config.h
7651 * rename.c: Include config.h, unistd.h
7652 * waitpid.c: Include config.h, sys/wait.h
7653
76542000-07-24 Hans-Peter Nilsson <hp@axis.com>
7655
7656 * cplus-dem.c (work_stuff_copy_to_from): New.
7657 (delete_non_B_K_work_stuff): New.
7658 (delete_work_stuff): New.
7659 (mop_up): Break out work_stuff partly destruction to
7660 delete_non_B_K_work_stuff.
7661 (iterate_demangle_function): New.
7662 (demangle_prefix): Call iterate_demangle_function instead of
7663 demangle_function_name. Leave handling of name-signature
7664 __-delimiters to iterate_demangle_function.
7665 (demangle_integral_value): Strip an optional
7666 following underscore cautiously. Handle negative numbers.
7667
76682000-07-24 Daniel Berlin <dberlin@redhat.com>
7669
7670 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
7671 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7672
76732000-07-21 Alex Samuel <samuel@codesourcery.com>
7674
7675 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7676 allocating ctor mangling.
7677 (demangle_array_type): Handle empty and non-constant array length.
7678
76792000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7680 Jeff Law <law@cygnus.com>
7681
7682 * configure.in (AC_CHECK_HEADERS): Add time.h.
7683 (AC_HEADER_TIME): Add check.
7684 * configure, config.in: Regenerate.
7685 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7686
7687 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7688 * configure, config.in: Regenerate.
7689 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7690 * strtol.c, strtoul.c: #include "config.h". Portably #include
7691 <limits.h> and/or <sys/param.h>.
7692 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
7693
7694 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7695 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7696 * configure, config.in: Regenerate.
7697 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7698
7699 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7700
77012000-07-21 Mike Stump <mrs@wrs.com>
7702
7703 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7704 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
7705
77062000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7707
7708 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7709
7710 * setenv.c (setenv): Initialize variable `ep'.
7711
7712 * sigsetmask.c (abort): Prototype.
7713
7714 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7715 __STDC__ for stdarg.h include.
7716 (int_vasprintf): Prototype.
7717 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7718 definition. Cast `global_total_width' in comparison.
7719 (main): Prototype. Return a value.
7720
7721 * vfork.c (fork): Prototype.
7722
7723 * xexit.c: Include config.h.
7724
77252000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7726
7727 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7728 and print it with %u.
7729
77302000-07-17 Hans-Peter Nilsson <hp@axis.com>
7731
7732 * testsuite/regress-demangle (failed test): Show result and
7733 expected output.
7734
77352000-07-07 Andrew Haley <aph@cygnus.com>
7736
7737 * cplus-dem.c (main): fflush() after emitting last char before
7738 waiting for input.
7739
77402000-06-28 Alex Samuel <samuel@codesourcery.com>
7741
7742 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7743 (demangle_name): Handle <substitution> followed by
7744 <unqualified-template-name>.
7745 (demangle_type): Follow special substitutions with
7746 <class-enum-type>
7747 (demangle_subtitution): Set template_p for special substitutions.
7748 (main): Fix typos.
7749
77502000-06-27 Alex Samuel <samuel@codesourcery.com>
7751
7752 * cp-demangle.c (demangle_special_name): Swap base and derived
7753 class when demangling construction vtables.
7754
77552000-06-21 Alex Samuel <samuel@codesourcery.com>
7756
7757 * cp-demangle.c: Don't include ctype.h.
7758 (IS_DIGIT): New macro.
7759 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7760 instead of isdigit and isalpanum.
7761 (demangling_def): Make name and next const pointers.
7762 (STATUS_ALLOCATION_FAILED): New status code.
7763 (dyn_string_append_space): Handle failure in
7764 dyn_string_append_char.
7765 (int_to_dyn_string): Likewise. Change return value to status_t.
7766 (string_list_new): Handle failure of dyn_string_init.
7767 (result_close_template_list): Change return type to status_t.
7768 Handle failure in dyn_string_append.
7769 (result_push): Change return value to status_t. Handle failure in
7770 string_list_new. Handle failure of result_push throughout.
7771 (substitution_add): Change return value to status_t. Handle
7772 dyn_string failures. Handle failure of substitution_add
7773 throughout.
7774 (template_arg_list_new): Return NULL on allocation failure.
7775 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7776 Handle error result throughout.
7777 (result_append): Likewise.
7778 (result_append_char): Likewise.
7779 (result_append_space): Likewise.
7780 (demangling_new): Make argument a const pointer. Handle
7781 allocation failures.
7782 (demangle_template_args): Handle failure in template_arg_list_new
7783 and result_close_template_list.
7784 (demangle_discriminator): Return if int_to_dyn_string fails.
7785 (cp_demangle): Likewise.
7786 (cp_demangle_type): New function.
7787 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7788 memory allocation failure.
7789 (main): Likewise.
7790 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7791 IN_LIBGCC2.
7792 (dyn_string_init): Change return value to int. Handle
7793 RETURN_ON_ALLOCATION_FAILURE case.
7794 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7795 (dyn_string_release): Delete the dyn_string.
7796 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7797 (dyn_string_copy): Change return type to int.
7798 (dyn_string_copy_cstr): Likewise.
7799 (dyn_string_prepend): Likewise.
7800 (dyn_string_prepend_cstr): Likewise.
7801 (dyn_string_insert): Likewise.
7802 (dyn_string_insert_cstr): Likewise.
7803 (dyn_string_append): Likewise.
7804 (dyn_string_append_cstr): Likewise.
7805 (dyn_string_append_char): Likewise.
7806 (dyn_string_substring): Likewise.
7807
78082000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7809
7810 * cp-demangle.c (demangle_operator_name): Add spaces before
7811 names beginning with a letter: delete, delete[], new, new[],
7812 sizeof.
7813 (demangle_special_name): Handle TF <type> and TJ <type>.
7814
7815Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7816
7817 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7818
7819Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7820
7821 * cp-demangle.c (stdio.h): File included unconditionaly.
7822 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7823 * dyn-string.c (stdio.h): File included.
7824 * partition.c (partition_print): No `&' needed to take the address of
7825 a function.
7826
78272000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7828
7829 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
7830
7831 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7832
7833 * cp-demangle.c (demangle_char): Change parameter from char to int.
7834 (demangle_expression, demangle_expr_primary): Remove extra
7835 semi-colon in prototype.
7836
7837 * dyn-string.c (dyn_string_append_char): Change parameter from
7838 char to int.
7839
7840 * memcmp.c (memcmp): Constify.
7841
7842 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7843 __extension__.
7844
7845 * partition.c (elem_compare): Prototype. Don't cast away
7846 const-ness.
7847
7848 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
7849
78502000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7851
7852 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7853
7854 * cp-demangle.c: Include demangle.h.
7855 (template_arg_list_new): DeANSIfy.
7856 (cp_demangle): Make static and add prototype.
7857 (operator_code, operators): Constify.
7858 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7859
78602000-06-05 Alex Samuel <samuel@codesourcery.com>
7861
7862 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7863 unsigned char.
7864 (demangle_unqualified_name): Likewise.
7865 (demangle_number_literally): Likewise.
7866 (demangle_type): Likewise.
7867 (demangle_substitution): Likewise.
7868 (is_mangled_char): Likewise, for isalnum.
7869
78702000-06-04 Alex Samuel <samuel@codesourcery.com>
7871
7872 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7873 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7874 (cp-demangle.o): New dependency.
7875 (dyn-string.o): Likewise.
7876
7877 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7878
7879 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7880 demangler.
7881 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7882 demangling mode.
7883 (gnu_new_abi_symbol_characters): New function.
7884 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7885 file.
7886 * cp-demangle.c: New file.
7887
7888Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7889
7890 * floatformat.c: Add name to each floatformat field.
7891
7892Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7893
7894 * Makefile.in (objalloc.o): Depend on config.h
7895
78962000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7897
7898 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7899 if HAVE_STRING_H.
7900 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7901 * objalloc.c: Include config.h. Include stdlib.h and don't
7902 declare malloc or free if HAVE_STDLIB_H.
7903 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7904 else declare malloc without prototype. Include string.h if
7905 HAVE_STRING_H, else declare memset without prototype. Don't
7906 include stddef.h.
7907
79082000-05-23 Mike Stump <mrs@wrs.com>
7909
7910 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
7911 -j3.
7912
79132000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7914
7915 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7916
79172000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7918
7919 * hashtab.c (hash_pointer): Delete low-order bits which are
7920 probably zero, also eliminate a warning on alpha.
7921
79222000-05-15 David Edelsohn <edelsohn@gnu.org>
7923
7924 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
7925 on $(enable_shared).
7926
79272000-05-10 Jakub Jelinek <jakub@redhat.com>
7928
7929 * config.table: Use mh-sparcpic for sparc*-*-*.
7930
79312000-05-08 Nick Clifton <nickc@cygnus.com>
7932
7933 * Makefile.in (CFILES): Add strncmp.c.
7934 (NEEDED): Add strncmp.
7935
79362000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7937
7938 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7939 Cast the arguments to `islower' to `unsigned char'.
7940 (print_demangler_list): Prototype.
7941
7942Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7943
7944 * sort.c (UCHAR_MAX): Provide fallback definition.
7945
79462000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7947
7948 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7949 SUBDIRS.
7950
79512000-04-28 Kenneth Block <block@zk3.dec.com>
7952 Jason Merrill <jason@casey.cygnus.com>
7953
7954 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7955 (cplus_demangle_set_style): New function for setting style.
7956 (cplus_demangle_name_to_style): New function to translate name.
7957
79582000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7959
7960 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7961
7962 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7963 (libiberty_AC_FUNC_STRNCMP): Invoke.
7964
7965 * strncmp.c: New file.
7966
7967Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7968
7969 * hashtab.c (htab_expand): Add prototype.
7970 (find_empty_slot_for_expand): Likewise.
7971
79722000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7973
7974 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7975 match prototype.
7976 (htab_expand): Cast the return value of xcalloc.
7977
79782000-04-24 Mark Mitchell <mark@codesourcery.com>
7979
7980 * hashtab.c (hash_pointer): New function.
7981 (eq_pointer): Likewise.
7982 (htab_hash_pointer): New variable.
7983 (htab_eq_pointer): Likewise.
7984
79852000-04-23 Mark Mitchell <mark@codesourcery.com>
7986
7987 * sort.c (sort_pointers): Fix endianness bugs.
7988
7989 * sort.c: New file.
7990 * Makefile.in (CFILES): Add sort.c
7991 (REQUIRED_OFILES): Add sort.o.
7992 (sort.o): New target.
7993
79942000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7995
7996 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7997 4.3BSD systems.
7998
7999Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8000
8001 * hashtab.c: Various minor cleanups.
8002 (htab_find_slot_with_hash): INSERT is now enum insert_option.
8003 (htab_find_slot): Likewise.
8004
80052000-04-16 Dave Pitts <dpitts@cozx.com>
8006
8007 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
8008
80092000-04-05 Richard Henderson <rth@cygnus.com>
8010
8011 * splay-tree.c (splay_tree_remove): New.
8012
80132000-03-30 Mark Mitchell <mark@codesourcery.com>
8014
8015 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
8016 codes.
8017 (htab_find_with_hash): Likewise.
8018 (htab_find_slot_with_hash): Likewise.
8019
80202000-03-29 Zack Weinberg <zack@wolery.cumb.org>
8021
8022 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
8023 unless it will be used. Rearrange loop for better
8024 optimization.
8025 (higher_prime_number): Add static prototype.
8026
8027Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
8028
8029 * Makefile.in (partition.o): Depend on config.h
8030
80312000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
8032
8033 * hashtab.c (find_empty_slot_for_expand): New function.
8034 (htab_expand): Use it instead of htab_find_slot.
8035 (htab_find_with_hash): Renamed from htab_find; now accepts extra
8036 argument HASH.
8037 (htab_find_slot_with_hash): Likewise for htab_find_slot.
8038 (htab_find): New wrapper function.
8039 (htab_find_slot): Likewise.
8040 (htab_traverse): Pass slot, not entry, to called function.
8041
80422000-03-09 Alex Samuel <samuel@codesourcery.com>
8043
8044 * Makefile.in (CFILES): Add partition.c.
8045 (REQUIRED_OFILES): Add partition.o.
8046 (partition.o): New rule.
8047 * partition.c: New file.
8048
80492000-03-09 Zack Weinberg <zack@wolery.cumb.org>
8050
8051 * hashtab.c (htab_create): Set del_f.
8052 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
8053 Use it.
8054
80552000-03-08 Zack Weinberg <zack@wolery.cumb.org>
8056
8057 * hashtab.c: Remove debugging variables (all_searches,
8058 all_collisions, all_expansions). Delete
8059 all_hash_table_collisions.
8060 (create_hash_table, delete_hash_table, empty_hash_table,
8061 find_hash_table_entry, remove_element_from_hash_table_entry,
8062 clear_hash_table_slot, traverse_hash_table, hash_table_size,
8063 hash_table_elements_number, hash_table_collisions): Rename to:
8064 htab_create, htab_delete, htab_empty, htab_find_slot,
8065 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
8066 htab_elements, htab_collisions.
8067 (htab_find): New function, handles common case where you don't
8068 plan to add or delete an entry.
8069 (htab_expand): Don't create a whole new table, just a new
8070 entry vector.
8071 (htab_find_slot): Simplify logic.
8072
80731999-08-03 Ian Lance Taylor <ian@zembu.com>
8074
8075 * floatformat.c: Add casts to avoid signed/unsigned warnings.
8076 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
8077
8078 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
8079 $(TARGETLIB)n so it works on MSDOS.
8080 (install_to_tooldir): Likewise.
8081
80821999-07-21 Ian Lance Taylor <ian@zembu.com>
8083
8084 From Mark Elbrecht:
8085 * makefile.dos: Remove; obsolete.
8086 * configure.bat: Remove; obsolete.
8087
80881999-07-11 Ian Lance Taylor <ian@zembu.com>
8089
8090 * splay-tree.c (splay_tree_insert): Add initialization to avoid
8091 warning.
8092
80932000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
8094
8095 * pexecute.c: Conditionally include string.h.
8096 (fix_argv): Handle embedded whitespace in args for Mingw32.
8097
80982000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8099
8100 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
8101 we're using gcc.
8102
8103 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
8104
81051999-12-27 Geoff Keating <geoffk@cygnus.com>
8106
8107 * vasprintf.c (int_vasprintf): Don't re-read the format character
8108 as this mishandles strings like '%%s'.
8109
81101999-12-05 Mark Mitchell <mark@codesourcery.com>
8111
8112 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
8113 rather than struct splay_tree_node.
8114 (splay_tree_insert): Use struct splay_tree_s rather than struct
8115 splay_tree.
8116
8117Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
8118
8119 * hashtab.c (sys/types.h): File included.
8120
81211999-11-22 Jason Merrill <jason@casey.cygnus.com>
8122
8123 * strtoul.c, strtol.c, random.c: Remove advertising clause from
8124 BSD license, pursuant with
8125
8126 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
8127
8128Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
8129
8130 * hashtab.c: Include stdio.h.
8131
8132Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
8133
8134 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
8135
8136Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
8137
8138 * xstrdup (sys/types.h): Include this file.
8139
81401999-10-28 Nathan Sidwell <nathan@acm.org>
8141
8142 * Makefile.in (SUBDIRS): New macro.
8143 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
8144 avoid multiple subdirectory cleaning.
8145 (*-subdir): Use SUBDIRS.
8146
81471999-10-25 Jim Kingdon <http://developer.redhat.com/>
8148
8149 * cplus-dem.c: Move declarations of standard_symbol_characters and
8150 hp_symbol_characters inside #ifdef MAIN to avoid compiler
8151 warnings.
8152
81531999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
8154
8155 * hashtab.c (find_hash_table_entry): When returning a
8156 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
8157 (clear_hash_table_slot): New function which deletes an entry
8158 by its position in the table, not its value.
8159 (traverse_hash_table): New function which calls a hook
8160 function for every live entry in the table.
8161
81621999-10-19 Mark Mitchell <mark@codesourcery.com>
8163
8164 * cplus-dem.c (INTBUF_SIZE): New macro.
8165 (string_append_template_idx): New function.
8166 (demangle_expression): Likewise.
8167 (demangle_integral_value): Use it.
8168 (demangle_real_value): New function, split out from ...
8169 (demangle_template_value_parm): ... here. Use
8170 string_append_template_idx. Use demangle_real_value.
8171 (demangle_template): Use string_append_template_idx.
8172 (demangle_qualified): Use consume_count_with_underscores.
8173 (get_count): Tweak formatting.
8174 (do_type): Use string_append_template_idx.
8175
81761999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8177
8178 * calloc.c: Add a public domain notice.
8179
8180Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
8181
8182 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
8183
8184Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
8185
8186 * Makefile.in (CFILES): Add hashtab.c
8187 (REQUIRED_OFILES): Add hashtab.o
8188 (hashtab.o): Add dependencies.
8189 * hashtab.c: New file
8190
8191Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
8192
8193 * basename.c (DIR_SEPARATOR): New macro.
8194 (DIR_SEPARATOR_2): Likewise.
8195 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
8196 (IS_DIR_SEPARATOR): Likewise.
8197 (main): Handle MSDOS style pathname.
8198
81991999-10-11 Mark Mitchell <mark@codesourcery.com>
8200
8201 * cplus-dem.c (do_type): Handle pointer to member types whose
8202 enclosing classes have namespace scope.
8203
8204Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
8205
8206 * config.table: Provide a backup shell for executing move-if-change.
8207
82081999-10-02 Mark Mitchell <mark@codesourcery.com>
8209
8210 * xmalloc.c (xmalloc): Fix spelling error.
8211 (xcalloc, xrealloc): Likewise.
8212
82131999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8214
8215 * cplus-dem.c (fancy_abort, demangle_integral_value,
8216 demangle_arm_hp_template, recursively_demangle,
8217 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
8218 (program_name, program_version, fatal): Constify a char*.
8219 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
8220 (main): Call return, not exit.
8221
82221999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8223
8224 * choose-temp.c: Remove obsolete comment about gcc.
8225 (make_temp_file): Constify a char*.
8226
8227Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8228
8229 * xmemdup.c: Include sys/types.h.
8230
82311999-09-07 Jeff Garzik <jgarzik@pobox.com>
8232
8233 * xmemdup.c: New xmemdup function.
8234 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
8235
8236Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
8237
8238 * config.table: Add openedition target.
8239 * config/mh-openedition: New file.
8240
8241Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
8242
8243 * pexecute.c (pexecute): Fill in temp_base when needed.
8244
82451999-08-31 Richard Henderson <rth@cygnus.com>
8246
8247 * getpwd.c: Check HAVE_GETCWD before defining it away.
8248
82491999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8250
8251 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
8252 (REQUIRED_OFILES): Add getpwd.o.
8253 (getpwd.o): Add target.
8254
8255 * configure.in (AC_PREREQ): Bump to 2.13.
8256 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
8257
8258 * getpwd.c: New file, moved here from gcc.
8259
82601999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8261
8262 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
8263 comparing against a signed quantity.
8264 (arm_special): Likewise.
8265 (demangle_fund_type): Likewise.
8266 (do_hpacc_template_const_value): Mark parameter `work' with
8267 ATTRIBUTE_UNUSED.
8268 (main): Constify variable `valid_symbols'.
8269
8270Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
8271
8272 * strtoul.c (strtoul): Add parentheses around && within ||.
8273
8274Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
8275
8276 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
8277 libdir, libsubdir and tooldir.
8278
82791999-08-01 Mark Mitchell <mark@codesourcery.com>
8280
8281 * splay-tree.c (splay_tree_insert): Return the new node.
8282
82831999-07-14 Richard Henderson <rth@cygnus.com>
8284
8285 * argv.c: Include stdlib.h and string.h instead of
8286 prototyping directly.
8287 * choose-temp.c: Conditionally include string.h.
8288
82891999-07-12 Jason Merrill <jason@yorick.cygnus.com>
8290
8291 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
8292
82931999-07-11 Ian Lance Taylor <ian@zembu.com>
8294
8295 * splay-tree.c (splay_tree_insert): Add initialization to avoid
8296 warning.
8297
82981999-07-07 Jason Merrill <jason@yorick.cygnus.com>
8299
8300 * Makefile.in (needed-list): Only include stuff we actually need
8301 for libstdc++.
8302
83031999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8304
8305 * configure.in (checkfuncs): Add gettimeofday.
8306 * config.in, configure: Regenerated.
8307
8308Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
8309
8310 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
8311 the test fails.
8312 * configure: Regenerate.
8313
83141999-06-10 Mike Stump <mrs@wrs.com>
8315
8316 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
8317 parallel builds.
8318
83191999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8320
8321 * putenv.c: Include ansidecl.h to define `const'.
8322 * setenv.c: Likewise.
8323
8324Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
8325
8326 * Makefile.in (CFILES): Add putenv.c and setenv.c.
8327 * configure.in (funcs): Add putenv and setenv.
8328 (AC_CHECK_FUNCS): Check for putenv and setenv.
8329 * configure: Rebuilt.
8330 * putenv.c setenv.c: New files.
8331
8332 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
8333 bytes of space using malloc.
8334
8335Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8336
8337 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
8338 the *mangled pointer beyond the end of the string. Clean up code to
8339 match prevailing coding style.
8340
83411999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8342
8343 * tmpnam.c (L_tmpnam): Fix typo.
8344
8345Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
8346
8347 * cplus-dem.c (standard_symbol_characters): Renamed from
8348 standard_symbol_alphabet. No longer modify TABLE.
8349 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
8350 modify TABLE.
8351 (main): Corresponding changes. Use strchr to determine if a
8352 character is valid.
8353
83541999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
8355
8356 * cplus-dem.c (main): Use table lookup to distinguish identifier
8357 characters from non-identifier characters.
8358 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
8359
8360Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
8361
8362 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
8363 * getruntime.c: Only attempt to include sys/resource.h and
8364 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
8365 are defined.
8366
8367Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
8368
8369 * configure.in (alloca detection): Handle alloca directly for interix.
8370 * configure: Rebuilt.
8371
8372Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
8373
8374 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
8375
83761999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
8377
8378 Fix from Dale Hawkins:
8379 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
8380 reallocated properly if we use it again.
8381
8382 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
8383 stricter about syntax. Always null-terminate string.
8384
8385Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
8386
8387 * configure.in (checkfuncs): Check for sbrk.
8388 * config.in: Rebuilt.
8389 * configure: Likewise.
8390 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
8391
83921999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
8393
8394 Fix from Marcus Daniels:
8395 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
8396 identifier looking for another underscore.
8397
8398Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
8399
8400 * pexecute.c: Change all references to __UWIN__ to _UWIN.
8401 * xmalloc.c: Likewise.
8402 (xcalloc): UWIN has sbrk.
8403 (xrealloc): Fix guard macro.
8404
84051999-04-11 Richard Henderson <rth@cygnus.com>
8406
8407 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
8408 or <alloca.h>.
8409 * clock.c (GNU_HZ): New definition.
8410 (clock): Use it.
8411 * getruntime.c: Likewise.
8412
8413 * config.table: Use mh-beos.
8414 * config/mh-beos: New file.
8415
84161999-04-11 Mark Mitchell <mark@codesourcery.com>
8417
8418 * cplus-dem.c (demangle_template_value_parm): Handle
8419 pointers-to-members.
8420 (do_type): Handle template parameters as qualifiers.
8421
84221999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
8423
8424 * cplus-dem.c: Attempt to handle overflows in counts with some
8425 semblance of grace.
8426 (consume_count): Detect overflows. Return -1 to indicate errors,
8427 instead of zero.
8428 (demangle_template_value_parm, demangle_template): Handle change
8429 to consume_count's return convention.
8430
84311999-04-05 Tom Tromey <tromey@cygnus.com>
8432
8433 * testsuite/regress-demangle: New file.
8434 * testsuite/demangle-expected: New file.
8435
8436 * Makefile.in (all, check, installcheck, info, install-info,
8437 clean-info, dvi, install, etags, tags, mostlyclean, clean,
8438 distclean, maintainer-clean, realclean): Depend on corresponding
8439 `-subdir' target.
8440 (all-subdir check-subdir installcheck-subdir info-subdir
8441 install-info-subdir clean-info-subdir dvi-subdir
8442 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
8443 distclean-subdir maintainer-clean-subdir): New target.
8444 * testsuite/Makefile.in: New file.
8445 * configure: Rebuilt.
8446 * configure.in: Create testsuite/Makefile.
8447
84481999-04-02 Mark Mitchell <mark@codesourcery.com>
8449
8450 * splay-tree.h (splay_tree_compare_pointers): Define.
8451
84521999-03-30 Mark Mitchell <mark@codesourcery.com>
8453
8454 * splay-tree.c (splay_tree_compare_ints): Define.
8455
84561999-03-30 Tom Tromey <tromey@cygnus.com>
8457
8458 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
8459 don't advance input pointer.
8460 (demangle_class_name): If consume_count didn't find a count, do
8461 nothing. Don't bother with `strlen' sanity check; consume_count
8462 does it for us.
8463
84641999-03-16 Stan Shebs <shebs@andros.cygnus.com>
8465
8466 From Art Haas <ahaas@neosoft.com>:
8467 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
8468 when doing arm or hp style.
8469 (demangle_nested_args): Decr forgetting_types field when done.
8470
8471Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
8472
8473 * pexecute.c (__CYGWIN32__): Rename to
8474 (__CYGWIN__): this.
8475 * xmalloc.c: Likewise.
8476
8477 Changes to support i386-pc-uwin.
8478 * configure.in (*-*-uwin*): Workaround for vfork bug.
8479 * configure: Regenerate.
8480 * pexecute.c (pexecute): Be like standard Unix.
8481 (pwait): Likewise.
8482 * xmalloc.c (first_break): Define.
8483 (xmalloc_set_program_name): Use.
8484 (xmalloc): Use.
8485
8486Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8487
8488 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8489
8490Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8491
8492 * config.table: Check cygwin*, not cygwin32*.
8493
8494Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8495
8496 * Makefile.in: Change mkstemp -> mkstemps.
8497
8498Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
8499
8500 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8501 * configure.in (funcs): Check for and conditionally add mkstemps to
8502 the list of functions libiberty will provide.
8503 * configure: Rebuilt.
8504
8505Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8506
8507 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
8508 platforms that don't have HZ.
8509 * getruntime.c (HZ): Likewise.
8510
8511Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8512
8513 * Makefile.in (xstrdup.o): Depend on config.h.
8514
8515Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
8516
8517 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8518 freeing it.
8519
8520Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8521
8522 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8523
8524Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8525
8526 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8527 splay-tree.o.
8528
85291999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8530
8531 * configure.in: Require autoconf 2.12.1 or higher.
8532
85331998-12-30 Michael Meissner <meissner@cygnus.com>
8534
8535 * random.c (NULL): Don't redefine NULL if it is already defined.
8536
8537Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8538
8539 * argv.c (buildargv): Cast the result of alloca in assignment.
8540
8541 * choose-temp.c: Include stdlib.h.
8542
8543 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8544 (snarf_numeric_literal): Constify first parameter.
8545 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8546 int, not a char.
8547 (demangle_qualifier): Likewise.
8548 (demangle_signature): Cast the argument of a ctype function to
8549 unsigned char.
8550 (arm_pt): Add parens around assignment used as truth value.
8551 (demangle_arm_hp_template): Constify variable `args'.
8552 (do_hpacc_template_const_value): Cast the argument of a ctype
8553 function to unsigned char.
8554 (do_hpacc_template_literal): Remove unused variable `i'.
8555 (snarf_numeric_literal): Constify parameter `args'.
8556 Cast the argument of a ctype function to unsigned char.
8557
8558 * floatformat.c (floatformat_to_double): Add explicit braces to
8559 avoid ambiguous `else'.
8560
8561 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8562 `cstart' and `cend' to unsigned char. Cast the argument of macro
8563 `FOLD', which uses ctype functions, to unsigned char.
8564
8565 * objalloc.c (free): Add prototype.
8566
8567Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
8568
8569 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8570
8571Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8572
8573 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8574 doesn't exist.
8575 (do_hpacc_template_literal): remove unused variable `i'.
8576
8577Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8578
8579 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8580 bumping the pointer we read from. Also prepend these codes,
8581 as we do in other places.
8582
85831998-12-18 Nick Clifton <nickc@cygnus.com>
8584
8585 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8586 'const char *' in order to match its usage when calling siblings.
8587 (snarf_numeric_literal): Make first arg 'const char **' in order
8588 to match usage.
8589
8590Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8591
8592 * choose-temp.c: Don't check IN_GCC anymore.
8593
8594 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8595 * memchr.c (memchr): Likewise.
8596 * memcpy.c (memcpy): Likewise.
8597 * memmove.c (memmove): Likewise.
8598
8599 * mkstemp.c: Don't check IN_GCC anymore.
8600 * pexecute.c: Likewise.
8601 * splay-tree.c: Likewise.
8602
8603 * strchr.c (strchr): Use `const', not `CONST'.
8604 * strrchr.c (strrchr): Likewise.
8605 * strtol.c (strtol): Likewise.
8606 * strtoul.c (strtoul): Likewise.
8607
8608Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
8609 Elena Zannoni <ezannoni@cygnus.com>
8610 Stan Shebs <shebs@cygnus.com>
8611 Edith Epstein <eepstein@cygnus.com>
8612 Andres MacLeod <amacleod@cygnus.com>
8613 Satish Pai <pai@apollo.hp.com>
8614
8615 * HP aCC demangling support.
8616 * cplus-dem.c
8617 (main): Remove default to HP style demangling, set to EDG
8618 demangling correctly when -edg specified; set the demangling style
8619 when user specifies 'edg'. Set strip_underscore to
8620 prepends_underscore, if not HPUXHPPA. Set
8621 current_demangling_style to hp_demangling if HPUXHPPA. Set
8622 current demangling style correctly if the switch is hp. Read
8623 label correctly also in the HP style case.
8624 (work_stuff): add temp_start field; add field for volatile member
8625 function.
8626 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8627 style for this case is the same as ARM.
8628 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8629 (demangle_arm_hp_template): new function. (It was
8630 demangle_arm_pt.); check and set value of temp_start field in
8631 multiple places. Also, when ceching for end of template args,
8632 check to see if at end of static member of template class.
8633 (demangle_class): new local variable : save_class_name_end Don't
8634 include template args in string defining class.
8635 (demangle_class_name): use demangel_arm_hp_template.
8636 (demangle_function_name): handle case where demangling style is
8637 HP_DEMANGLING and currently point at an 'X' in the mangled name.
8638 Handle EDG_DEMANGLING style. Handle constructor and destructor
8639 ops for HP style.
8640 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8641 styles. global destructor and constructor for HP style are same
8642 as for ARM style. Same for local variables.
8643 (demangle_qualified): handle EDG_DEMANGLING style.
8644 (demangle_signature): add case for volatile member function. For
8645 cases '1' - '9' : initialize the temp_start field to -1 and handle
8646 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
8647 and AUTO_DEMANGLING styles. If expecting a function and managed
8648 to demangle the funct args, then handle the LUCID_DEMANGLING,
8649 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
8650 class name after "Lnnn_ in HP style case. HP style too needs to
8651 forget types. _nnn is OK for HP style, so don't report failure.
8652 (do_hpacc_template_const_value): new function. Handle template's
8653 value param for HP/aCC.
8654 (do_hpacc_template_literal): new function. Handle a template's
8655 literal parameter for HP aCC.
8656 (recursively_demangle): new function
8657 (snarf_numeric_literal): new function.
8658 (usage): add 'edg' to the list of demangling styles; add hp switch
8659 to message.
8660
8661Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8662
8663 * pexecute.c: Remove obsolete ifdefed cygwin code.
8664
8665Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8666
8667 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8668 * cplus-dem.c: Likewise. Conform to libiberty.h.
8669 * pexecute.c: Likewise.
8670 * splay-tree.c: Likewise.
8671
86721998-11-25 Mike Stump <mrs@wrs.com>
8673
8674 * Makefile.in (splay-tree.o): Add config.h dependency.
8675
8676Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8677
8678 * configure.in: Use AC_PREREQ(2.12.1).
8679
86801998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8681
8682 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
8683
8684Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8685
8686 * mpw.c (mpw_access): Add missing parens.
8687
8688Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8689
8690 * configure.in: Call AC_HEADER_SYS_WAIT.
8691
8692 * pexecute.c: Include sys/wait.h when !IN_GCC.
8693
8694Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8695
8696 * pexecute.c: revert back to checking old Cygwin
8697 preprocessor symbol until some time has passed.
8698
8699Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8700
8701 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8702 since it will now support similar constructs.
8703
8704Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8705
8706 * configure.in: Check for calloc.
8707
8708 * calloc.c: New file.
8709
8710 * xmalloc.c (xcalloc): New function.
8711
8712Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8713
8714 *cplus-dem.c (demangle_prefix): Use the last "__"
8715 in the mangled name when looking for the signature. This allows
8716 template names to begin with "__".
8717
87181998-11-08 Mark Mitchell <mark@markmitchell.com>
8719
8720 * cplus-dem.c (type_kind_t): Add tk_reference.
8721 (demangle_template_value_parm): Handle it.
8722 (do_type): Use it for references, instead of tk_pointer.
8723
8724 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8725 not internal_cplus_demangle.
8726
8727Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8728
8729 * choose-temp.c: Don't include gansidecl.h.
8730 * mkstemp.c: Likewise.
8731 * pexecute.c: Likewise.
8732
8733Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8734
8735 * configure.in: detect cygwin* instead of cygwin32*
8736 * configure: regenerate
8737
8738Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8739
8740 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8741 whether to include config.h. Possibly include unistd.h in the
8742 !IN_GCC case. Define VFORK_STRING as a printable function call
8743 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8744 defined, include vfork.h. If VMS is defined, define vfork()
8745 appropriately. Remove vfork check on USG, we're using autoconf.
8746 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8747 locally what string to use.
8748
87491998-10-26 Mark Mitchell <mark@markmitchell.com>
8750
8751 * splay-tree.c: Tweak include directives to make sure declarations of
8752 xmalloc and free are available.
8753
87541998-10-25 Mark Mitchell <mark@markmitchell.com>
8755
8756 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8757 anonymous namespaces.
8758
87591998-10-23 Mark Mitchell <mark@markmitchell.com>
8760
8761 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8762 with type_quals.
8763 (TYPE_UNQUALIFIED): New macro.
8764 (TYPE_QUAL_CONST): Likewise.
8765 (TYPE_QUAL_VOLATILE): Likewise.
8766 (TYPE_QUAL_RESTRICT): Likewise.
8767 (code_for_qualifier): New function.
8768 (qualifier_string): Likewise.
8769 (demangle_qualifier): Likewise.
8770 (internal_cplus_demangle): Use them.
8771 (demangle_signature): Likewise.
8772 (demangle_template_value_parm): Likewise.
8773 (do_type): Likewise.
8774 (demangle_fund_type)): Likewise.
8775
8776Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8777
8778 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8779 to match prototype.
8780
87811998-10-21 Mark Mitchell <mark@markmitchell.com>
8782
8783 * splay-tree.c: New file.
8784 * Makefile.in (CFILES): Add it.
8785 (REQUIRED_OFILES): Likewise.
8786 (splay-tree.o): Add dependencies.
8787
8788Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8789
8790 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8791 range of 'K' index.
8792
8793Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8794
8795 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8796
8797 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8798 `unsigned char'.
8799 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8800 comparing against one.
8801 (cplus_mangle_opname): Likewise.
8802 (demangle_integral_value): Cast argument of ctype macro to
8803 `unsigned char'.
8804 (demangle_template_value_parm): Likewise.
8805 (demangle_template): Initialize variable `bindex'. Cast the
8806 result of `strlen' to (int) when comparing against one. Remove
8807 unused variable `start_of_value_parm'.
8808 (demangle_class_name): Cast the result of `strlen' to (int) when
8809 comparing against one.
8810 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8811 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8812 when comparing against one.
8813 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8814 (get_count): Likewise.
8815 (do_type): Likewise. Cast the result of `strlen' to (int) when
8816 comparing against one.
8817 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8818 (demangle_function_name): Cast the result of `strlen' to (int)
8819 when comparing against one.
8820
8821 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8822 comparing against one.
8823
8824Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8825
8826 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8827 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8828 * config.in, configure: Rebuilt.
8829
8830 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8831 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8832 * config.in, configure: Rebuilt.
8833
8834Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8835
8836 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
8837
8838Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8839
8840 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8841
8842Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8843
8844 * Merge egcs & devo libiberty.
8845
88461998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
8847
8848 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8849
8850Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8851
8852 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
8853 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8854 IN_GCC.
8855
8856 * vasprintf.c: Include stdarg.h/varargs.h first.
8857
8858 * vprintf.c: Likewise.
8859
8860Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8861
8862 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8863 is the canonical copy. Define ISSPACE if !IN_GCC.
8864 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
8865 * getopt1.c, obstack.c: Similarly.
8866 * Makefile.in: Build mkstemp.o
8867
8868Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8869
8870 * configure.in: Include asprintf in list of functions known not
8871 to be in newlib.
8872 * configure: Rebuild.
8873
8874Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8875
8876 * cplus-dem.c (work_stuff): Add dllimported.
8877 (demangled_prefix): Mark symbols imported from PE DLL.
8878 (internal_cplus_demangled): Handle.
8879
88801998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8881
8882 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8883 stay failed.
8884
8885Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8886
8887 * cplus-dem.c: Include config.h if it exists. Also, only
8888 prototype malloc/realloc if we can't get stdlib.h.
8889
8890Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8891
8892 * configure.in: Switch back to checking --with-target-subdir when
8893 deciding whether to check for newlib, undoing part of July 15
8894 change.
8895 * configure: Rebuild.
8896
8897Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8898
8899 * cplus-dem.c (type_kind_t): New type.
8900 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8901 on this paramter, rather than demangling the type again.
8902 (demangle_integral_value): Pass tk_integral.
8903 (demangle_template_: Pass the value returned from do_type.
8904 (do_type): Return a type_kind_t. Pass tk_integral to
8905 demangle_template_value_parm for array bounds.
8906 (demangle_fund_type): Likewise.
8907
8908 Also incorporate from GCC version:
8909
8910 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8911
8912 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8913
8914Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8915
8916 * cplus-dem.c (demangle_nested_args): Make function definition
8917 static to match the prototype.
8918
8919Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8920
8921 * cplus-dem.c (type_kind_t): New type.
8922 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8923 on this paramter, rather than demangling the type again.
8924 (demangle_integral_value): Pass tk_integral.
8925 (demangle_template_: Pass the value returned from do_type.
8926 (do_type): Return a type_kind_t. Pass tk_integral to
8927 demangle_template_value_parm for array bounds.
8928 (demangle_fund_type): Likewise.
8929
8930 Also incorporate from GCC version:
8931
8932 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8933
8934 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8935
8936Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8937
8938 * Makefile.in (ALLOCA): New variable.
8939 ($(TARGETLIB)): Add $(ALLOCA) to library.
8940 (needed-list): Add $(ALLOCA).
8941 ($(ALLOCA)): Depend upon stamp-picdir.
8942
8943Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8944
8945 * cplus-dem.c (demangle_nested_args): Make function definition
8946 static to match the prototype.
8947
8948Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8949
8950 * configure.in: Check --with-cross-host rather than
8951 --with-target-subdir when deciding whether build uses a cross
8952 compiler, and when deciding where to install the library.
8953 * configure: Rebuild.
8954
8955Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8956
8957 * cplus-dem.c (demangle_nested_args): Return a value.
8958
8959Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8960
8961 * cplus-dem.c (string): Move definition before work_stuff.
8962 (work_stuff): Add volatile_type, forgetting_types,
8963 previous_argument, and nrepeats fields.
8964 (SCOPE_STRING): New macro.
8965 (demangle_template): Add `remember' parameter. Add comment.
8966 Register the `B' code type here, if remembering. Tidy. Fix crash
8967 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8968 (demangle_nested_args): New function.
8969 (internal_cplus_demangle): Handle volatile-qualified member
8970 functions.
8971 (mop_up): Delete the previous_argument string if present.
8972 (demangle_signature): Tidy. Handle volatile-qualified member
8973 functions. Handle back-references using the `B' code. Use extra
8974 parameter to demangle_template and SCOPE_STRING where appropriate.
8975 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
8976 code.
8977 (demangle_class): Use SCOPE_STRING.
8978 (gnu_special): Pass additional argument to demangle_template.
8979 Use SCOPE_STRING.
8980 (demangle_qualified): Save qualified types for later
8981 back-references. Handle constructors and destructors for template
8982 types correctly.
8983 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8984 demangle_template. Use demangled_nested_args. Don't remember
8985 qualified types here; that's now done in demangle_qualified.
8986 Similarly for templates.
8987 (do_arg): Improve commment. Handle 'n' repeat code.
8988 (remember_type): Check forgetting_types.
8989 (demangle_args): Deal with 'n' repeat codes. Tidy.
8990
8991Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8992
8993 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8994 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8995
8996Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8997
8998 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8999 From Chris Faylor <cgf@cygnus.com>.
9000
9001Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
9002
9003 * obstack.c: Update to latest FSF version.
9004
9005Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
9006
9007 * Makefile.in: Add a dependency on stamp-picdir for the
9008 objects, so that we can do a parallel build.
9009
9010Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
9011
9012 * configure.in (checkfuncs): Add missing "'".
9013
9014Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
9015
9016 * obstack.c (_obstack_memory_used): Elide this function if we're
9017 on a system with GNU libc.
9018
9019Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
9020
9021 * Makefile.in (distclean): Remove config.log.
9022
9023Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9024
9025 * Makefile.in (distclean): Don't remove alloca-conf.h.
9026
9027Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
9028
9029 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
9030
90311998-05-21 Mark Mitchell <mmitchell@usa.net>
9032
9033 * cplus-dem.c (do_type): Handle volatile qualification.
9034
90351998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
9036
9037 * configure.in: Check for unistd.h as well.
9038 * configure: Rebuild.
9039 * config.in: Rebuild.
9040 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
9041 is defined in unistd.h. Reformat conditional block for easier reading.
9042
9043 * config.table (shared): Default to no if ${enable_shared}
9044 is unset or empty; this logic is used by the toplevel
9045 configure scripts, too.
9046
9047Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
9048
9049 * config.table: Add line to set enable_shared in the Makefile
9050 as needed.
9051
9052Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9053
9054 * cplus-dem.c (squangle_mop_up): Change return type to void.
9055 (internal_cplus_demangle): Remove unused parameter `options'.
9056 All callers changed.
9057 (cplus_demangle_opname): Remove function wide variable `int i' and
9058 replace with `size_t i' at each location where it is used.
9059 (cplus_mangle_opname): change type of `i' from int to size_t.
9060
9061Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
9062
9063 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
9064 than sparc or sun.
9065 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
9066
9067Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
9068
9069 * configure.in: Set libiberty_topdir correctly when srcdir is
9070 "." and with_target_subdir is not set.
9071 * configure: Rebuild.
9072
9073Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
9074
9075 * configure.in: Add *-*-mingw32* case.
9076 * configure: Rebuild.
9077
9078Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
9079
9080 * config.table: Never use a PIC file for *-*-cygwin32*.
9081
9082 * Makefile.in (config.status): Depend upon config.table.
9083
9084 * configure.in: On a cygwin32 host, always compile random, and
9085 don't test for sys_siglist, strsignal, or psignal.
9086 * configure: Rebuild.
9087
9088 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
9089 * getcwd.c: Likewise.
9090 * getpagesize.c: Likewise.
9091 * getruntime.c: Likewise.
9092
9093Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
9094
9095 Use autoconf tests rather than the old dummy.c test:
9096 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
9097 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
9098 most functions. Add special cases to handle newlib and VxWorks.
9099 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
9100 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
9101 CONFIG_FILES is set; set ac_file before calling it.
9102 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
9103 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
9104 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
9105 (i[3456]-*-mingw32*): Remove.
9106 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
9107 (LIBOBJS): New variable.
9108 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
9109 (all): Depend upon needed-list. Don't check RULE1.
9110 (@target_makefile_frag@): Remove.
9111 (COMPILE.c): Include @DEFS@.
9112 (HFILES): Add alloca-conf.h.
9113 (REQUIRED_OFILES): Remove basename.o.
9114 ($(TARGETLIB)): New target.
9115 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
9116 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
9117 (needed-list, config.h): Rewrite.
9118 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
9119 (.always.): Remove.
9120 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
9121 (stamp-h): New target.
9122 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
9123 (basename.o): Don't depend upon config.h.
9124 (getruntime.o): Depend upon config.h.
9125 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
9126 NEED_on_exit.
9127 * basename.c: Don't include config.h. Don't check NEED_basename.
9128 * clock.c: Include config.h.
9129 * getcwd.c: Likewise.
9130 * getpagesize.c: Likewise.
9131 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
9132 HAVE_TIMES.
9133 * strerror.c: Change uses of NEED_sys_errlist to
9134 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
9135 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
9136 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
9137 HAVE_PSIGNAL.
9138 * acconfig.h: New file.
9139 * dummy.c: Remove.
9140 * functions.def: Remove.
9141 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
9142 * config/mh-windows (HDEFINES): Remove.
9143 * config/mh-cygwin32: Remove.
9144 * config/mh-go32: Remove.
9145 * config/mh-irix4: Remove.
9146 * config/mh-riscix: Remove.
9147 * config/mh-sysv4: Remove.
9148 * config/mt-mingw32: Remove.
9149 * config/mt-vxworks5: Remove.
9150 * config.in: New file, generated using autoheader.
9151 * configure: Rebuild.
9152
9153Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
9154
9155 * configure.in: Rewrite to use autoconf.
9156 * configure: Generate using autoconf.
9157 * config/mh-a68bsd: Remove.
9158 * config/mh-apollo68: Remove.
9159 * config/mh-hpbsd: Remove.
9160 * config/mh-ncr3000: Remove.
9161 * config/mh-sysv: Remove.
9162 * config/mh-aix (RANLIB, INSTALL): Don't define.
9163 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
9164 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
9165 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
9166 * config.table: Change config_shell to CONFIG_SHELL, and use
9167 libiberty_topdir to find move-if-change.
9168 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
9169 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
9170 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
9171 * Makefile.in (srcdir): Set to @srcdir@.
9172 (VPATH): Likewise.
9173 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
9174 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
9175 (CC, CFLAGS, RANLIB)): Likewise.
9176 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
9177 (target_makefile_frag, host_makefile_frag): Add substitutions.
9178 (INSTALL_DEST): Set to @INSTALL_DEST@.
9179 (Makefile): Depend upon config.status. Don't depend upon
9180 $(host_makefile_frag) or $(target_makefile_frag).
9181 (config.status): New target.
9182
9183Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
9184
9185 * config/mt-sunos4: Remove. Should be handled by --with-headers
9186 and --with-libraries options at top level.
9187 * config.table: Never use mt-sunos4.
9188
9189 * alloca-conf.h: New file, combining alloca-norm.h and
9190 alloca-botch.h.
9191 * alloca-norm.h: Remove.
9192 * alloca-botch.h: Remove.
9193 * configure.in: Set shell variables files and links to empty.
9194 * config.table: Don't set shell variable files.
9195 * configure.bat: Don't create alloca-conf.h.
9196 * makefile.vms: Likewise.
9197 * mpw-config.in: Likewise.
9198 * vmsbuild.com: Likewise.
9199
9200Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
9201
9202 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
9203 target depending upon config.h.
9204 (alloca.o): Add target depending upon config.h
9205 (basename.o, choose-temp.o, fnmatch.o): Likewise.
9206 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
9207 (strsignal.o, xstrerror.o): Likewise.
9208
9209Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9210
9211 * cplus-dem.c (cplus_demangle_opname): Initialize work.
9212
9213Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9214
9215 * cplus-dem.c (demangle_qualified): Replace missing else.
9216
9217Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
9218
9219 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
9220 length in the name of a virtual table.
9221
9222Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9223
9224 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
9225 (cplus_demangle_opname): Call mop_up_squangle.
9226 (cplus_demangle): Initialize squangle info, then call
9227 internal_cplus_demangle. (Most code moved there as well)
9228 (internal_cplus_demangle): New function, performs most of what use
9229 to be done in cplus_demangle, but is only called with this file.
9230 (squangle_mop_up): New function to clean up B and K code data.
9231 (mop_up): set pointers to NULL after freeing.
9232 (demangle_signature, demangle_template, demangle_class): Add
9233 switch elements to handle K and B codes.
9234 (demangle_prefix, gnu_special, demangle_qualified): Add
9235 code to handle K and B codes.
9236 (do_type, demangle_fund_type): Handle B and K codes.
9237 (remember_Ktype): New function to store K info.
9238 (register_Btype, remember_Btype): New functions for B codes.
9239 (forget_B_and_K_types): New function to destroy B and K info.
9240
9241Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9242
9243 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
9244
9245Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
9246
9247 * config.table: Make locating frag files failsafe even for the
9248 special case if configuring and building in srcdir.
9249
9250Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
9251
9252 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
9253
9254Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
9255
9256 * choose-temp.c: Sync with copy in gcc.
9257
9258Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
9259
9260 * getopt.c: Update to latest FSF version.
9261 * getopt1.c: Likewise.
9262
9263Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
9264
9265 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
9266 strings that are not actually lengths.
9267
9268Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
9269
9270 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
9271 (.c.o): Check value of enable_shared, not PICFLAG.
9272 (stamp-picdir): Dito.
9273
9274Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
9275
9276 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
9277 since it gets built automatically
9278
9279Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
9280
9281 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
9282 the currently shipping OS.
9283
9284Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
9285
9286 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
9287 Add fnmatch.o and objalloc.o; remove vasprintf.o.
9288 [config.h]: Define NEED_strsignal.
9289
9290Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
9291
9292 * functions.def: Correct argument types for strerror and
9293 strsignal. Reported by Alex Gutman <agutman@emc.com>.
9294
9295Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
9296
9297 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
9298 values.
9299
9300Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
9301 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
9302
9303 Add mingw32 support.
9304 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
9305 (pwait): New function for mingw32.
9306
9307 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
9308 * config/mt-mingw32: New file.
9309 * xmalloc.c (first_break): Not used for mingw32.
9310 (xmalloc_set_program_name): Don't use sbrk on mingw32.
9311 (xmalloc): Likewise.
9312 (xrealloc): Likewise.
9313
9314Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
9315
9316 * choose-temp.c: Sync with gcc version.
9317
9318Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
9319
9320 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
9321 to all filenames in libdir and tooldir.
9322 (distclean): Do MULTICLEAN before deleting Makefile.
9323 (stamp-needed, stamp-config): Add MULTISRCTOP to
9324 pathname for move-if-change.
9325
9326Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
9327
9328 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
9329
9330Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
9331
9332 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
9333 was already defined previously.
9334
9335Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
9336
9337 * Makefile.in (INSTALL): Use ../install-sh, not install.
9338
9339Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
9340
9341 * Makefile.in (CFILES): Add pexecute.c.
9342
9343Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
9344
9345 * asprintf.c: Consistently use either stdarg or varargs.
9346
9347Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
9348
9349 * cplus-dem.c (demangle_signature): Don't look for return types on
9350 constructors. Handle member template constructors.
9351
9352Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
9353
9354 * README: Fix configuration instructions.
9355
9356Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
9357
9358 * pexecute.c: Update to current version from /gd/gnu/lib:
9359
9360 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
9361
9362 * pexecute.c: Use spawn if __CYGWIN32__.
9363
9364 1997-08-08 Paul Eggert <eggert@twinsun.com>
9365
9366 * pexecute.c: Include "config.h" first, as per autoconf manual.
9367
9368 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
9369
9370 * pexecute.c (fix_argv): New function.
9371 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9372 Add underscore to cwait function call.
9373
9374Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
9375
9376 * cplus-dem.c (demangle_template): Add new parameter. Handle new
9377 template-function mangling.
9378 (consume_count_with_underscores): New function.
9379 (demangle_signature): Handle new name-mangling scheme.
9380
9381Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
9382
9383 * asprintf.c: stdarg.h when ALMOST_STDC
9384 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
9385 strncasecmp.o.
9386
9387Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
9388
9389 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
9390
9391 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
9392
9393 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
9394
9395Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
9396
9397 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
9398
9399Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
9400
9401 * asprintf.c (asprintf): New file.
9402 * Makefile.in (CFILES): Add asprintf.c
9403 * functions.def: Ditto.
9404
9405Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
9406
9407 * argv.c (dupargv): New function, duplicate an argument vector.
9408
9409Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
9410
9411 * config/mh-cygwin32: also build random.o
9412
9413Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
9414
9415 * cplus-dem.c: Add 'extern' to prepends_underscore.
9416
9417Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
9418
9419 * cplus-dem.c: Various changes to produce Java output when passed
9420 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
9421 (main): Support --java and -j flags to set DMGL_JAVA.
9422
9423Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
9424
9425 * config/mh-go32 (CC, AR, RANLIB): Don't define.
9426
9427Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
9428
9429 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
9430 (pexecute.o): New target.
9431
9432 * Makefile.in (stamp-needed): New target, replacing needed-list.
9433 (needed-list): Just depend upon stamp-needed.
9434 (stamp-config): New target, replacing config.h.
9435 (config.h): Just depend upon stamp-config.
9436 (mostlyclean): Remove stamp-*.
9437
9438Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
9439
9440 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
9441 INSTALL_DATA for multilibbed installs
9442
9443Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
9444
9445 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
9446
9447 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
9448
9449 * choose-temp.c (try): Insist that temp dir be searchable.
9450
9451 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
9452
9453 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
9454 for current directory.
9455
9456 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
9457
9458 * pexecute.c: Remove special cases for cygwin32.
9459 (pwait): Remove local definition of `pid'.
9460
9461 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
9462
9463 * pexecute.c (vfork): Supply new definition for VMS.
9464 (pwait): Use waitpid instead of wait for VMS.
9465
9466Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9467
9468 * cplus-dem.c (do_type): Handle `J'.
9469 (demangle_fund_type): Print "complex" for it.
9470
9471Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
9472
9473 * configure.in: Don't turn on multilib here.
9474
9475Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9476
9477 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
9478 elided; needed by gdb and not present in libc.
9479
9480Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9481
9482 * Makefile.in (clean): Remove tmpmulti.out.
9483
9484Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9485
9486 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
9487 Add new floatformat, mainly for ARM doubles.
9488
9489Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
9490
9491 * config.table: Use ${config_shell} with ${moveifchange}. From
9492 Thomas Graichen <graichen@rzpd.de>.
9493
9494Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
9495
9496 * configure.in: Enable multilibing by default.
9497 Update multilib template to read config-ml.in.
9498
9499Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9500
9501 * makefile.vms: Add objalloc.
9502
9503Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
9504
9505 * cplus-dem.c (demangle_it): Add prototype declaration.
9506 (usage, fatal): Likewise.
9507
9508 * xexit.c (_xexit_cleanup): Add prototype.
9509
9510 * strerror.c (init_error_tables): Declare.
9511
9512Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
9513
9514 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9515 * strsignal.c: Only define strsignal if NEED_strsignal.
9516 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9517 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
9518 to xneeded-list.
9519 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9520 (EXTRA_OFILES): Define to vasprintf.o.
9521 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9522 (EXTRA_OFILES): Add vasprintf.o.
9523 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9524 (vxneeded-list): Add vasprintf.o.
9525
9526Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9527
9528 * objalloc.c: Include <stdio.h>.
9529
9530Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
9531
9532 * objalloc.c: New file.
9533 * Makefile.in (CFILES): Add objalloc.c
9534 (REQUIRED_OFILES): Add objalloc.o.
9535 (objalloc.o): New target.
9536
9537Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9538
9539 * obstack.c: Update to current FSF version.
9540
9541Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9542
9543 * cplus-dem.c: Add prototypes for all static functions.
9544 (mystrstr): Make static. Make arguments and result const.
9545 (cplus_match): Remove; not used.
9546
9547Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9548
9549 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9550 __t* symbols.
9551
9552Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
9553
9554 * spaces.c: Declare malloc and free properly.
9555 * strsignal.c (init_signal_tables): Add prototype.
9556 * xatexit.c (_xexit_cleanup): Add parameter declarations.
9557
9558Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9559
9560 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9561 also required because of xmalloc.o.
9562
9563Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
9564
9565 * strsignal.c: Unconditionally redefine sys_siglist around the
9566 inclusion of the system header files.
9567
9568Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
9569
9570 * makefile.vms: Remove 8 bit characters. Update to latest
9571 gcc release.
9572
9573Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
9574
9575 * strsignal.c: Use NEED_sys_siglist instead of
9576 LOSING_SYS_SIGLIST.
9577 * config.table: Don't use mh-lynxos.
9578 * config/mh-lynxos: Remove.
9579
9580Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
9581
9582 * cplus-dem.c: Fix indenting; make identical to the copy
9583 in GCC.
9584 (do_type, case 'M'): Check for a template as well as a class.
9585
9586Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
9587
9588 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9589 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9590 libiberty is incorrect, as well.
9591
9592Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9593
9594 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9595 alloca takes a size_t argument, not just unsigned.
9596
9597Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9598
9599 * cplus-dem.c: Note that this file also lives in GCC.
9600
9601Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9602
9603 * alloca.c: Remove include of libiberty.h for hpux.
9604 * argv.c: Replace defs from libiberty.h.
9605 * spaces.c: Put back externs from removed from libiberty.h.
9606 * vasprintf.c: Remove include of libiberty.h for hpux.
9607
9608Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9609
9610 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9611
9612Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9613
9614 * cplus-dem.c: Revert last two commits due to conflicts with
9615 hpux system headers.
9616
9617Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9618
9619 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
9620 Revert last commit due to conflicts with hpux system headers.
9621
9622Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9623
9624 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9625 libiberty.h when compiled with a standard compiler.
9626
9627Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9628
9629 * alloca.c: Include libiberty.h for definition of xmalloc.
9630 Don't redefine NULL.
9631 * argv.c: Move prototypes to libiberty.h.
9632 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
9633 Don't redefine NULL.
9634 Use casts to eliminate compiler warnings.
9635 * spaces.c: Remove prototypes for malloc and free which are
9636 already in libibrty.h.
9637 * strcasecmp.c: Use casts to eliminate compiler warnings.
9638 * vasprintf.c: Include libiberty.h for definition of malloc.
9639 Don't redefine NULL.
9640 * vprintf.c: Include stdarg.h if __STDC__.
9641
9642Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9643
9644 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9645
9646Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
9647
9648 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9649 upward components correctly.
9650
9651Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
9652
9653 * config.table, config/mh-windows: Add support for building under
9654 MSVC (the Microsoft build environment).
9655
9656Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9657
9658 * fnmatch.c: Undef const if not __STDC__.
9659
9660Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
9661
9662 * fnmatch.c: New file.
9663 * Makefile.in (CFILES): Add fnmatch.c.
9664 (REQUIRED_OFILES): Add fnmatch.o.
9665 (fnmatch.o): New target.
9666
9667Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9668
9669 * cplus-dem.c (demangle_template): Fix handling of address args.
9670 (gnu_special): Handle type_info stuff.
9671
9672Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9673
9674 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9675 (mpwify_filename): Handle "::/" case.
9676
9677Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9678
9679 * config/mh-cygwin32: new file (need -DNEED_basename and
9680 -DNEED_sys_siglist for native NT rebuilding)
9681 * config.table (*-*-cygwin32): new entry
9682 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9683
9684Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9685
9686 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9687
9688Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9689
9690 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9691 messed with arguments that included a '/', add escape chars
9692 to double quotes, remove const decl from arg that Mac
9693 compilers don't seem to like.
9694
9695Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9696
9697 * pexecute.c: Update test for win32 (&& ! cygwin32).
9698 * choose-temp.c: fix WIN32 preprocessor defines
9699
9700Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9701
9702 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9703 to editing of default makefile rule.
9704
9705Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9706
9707 * alloca-norm.h: Include <malloc.h> if _WIN32.
9708 * argv.c: Include non-prototyped decls for malloc and string
9709 functions if ! _WIN32 or if __GNUC__.
9710
9711Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9712
9713 * config.h-vms: New file.
9714 * makefile.vms: Use it.
9715
9716Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9717
9718 * getopt.c (_getopt_internal): If argc is 0, just return (before
9719 we reference *argv and segfault).
9720
9721Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9722
9723 * Makefile.in (distclean): Add multilib.out.
9724
9725Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9726
9727 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9728 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9729
9730Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9731
9732 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9733
9734 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9735
9736 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9737
9738 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9739 (do_ofiles): Allow nonexistent source file in pass 3.
9740 (chk_deffunc): New routine.
9741
9742Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9743
9744 * pexecute.c (PEXECUTE_VERBOSE): Define.
9745 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9746
9747Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9748
9749 * Makefile.in (docdir): Removed.
9750
9751Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9752
9753 * Makefile.in (oldincludedir): Removed.
9754
9755Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9756
9757 * Makefile.in (datadir): Set to $(prefix)/share.
9758
9759Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9760
9761 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9762 checking for errors from do_type.
9763
9764Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9765
9766 * makefile.vms: New file.
9767 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9768 than declaring malloc, realloc, and sbrk.
9769
9770Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9771
9772 * pexecute.c: New file.
9773
9774Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9775
9776 * xmalloc.c: Declare sbrk.
9777
9778Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9779
9780 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9781 declaration.
9782
9783Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9784
9785 * xstrerror.c: Include <stdio.h>.
9786
9787Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9788
9789 * Makefile.in (CFILES): Add atexit.c.
9790
9791Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9792
9793 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9794
9795Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9796
9797 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9798 #include <stdio.h>
9799 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9800
9801Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9802
9803 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9804 Reverts Feb 8, 1995 change.
9805
9806Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9807
9808 * choose-temp.c: New file.
9809 * Makefile.in (CFILES): Add choose-temp.c.
9810 (REQUIRED_OFILES): Add choose-temp.o.
9811
9812Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9813
9814 * floatformat.c (floatformat_to_double): Don't bias exponent when
9815 handling zero's, denorms or NaNs.
9816
9817Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9818
9819 * floatformat.c (floatformat_to_double): Fix bugs with handling
9820 numbers with fractions < 32 bits.
9821
9822Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9823
9824 * config.table: Permit --enable-shared to specify a list of
9825 directories.
9826
9827Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9828
9829 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9830 arguments.
9831
9832Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9833
9834 * configure.in: If srcdir is `.' and with_target_subdir is not
9835 `.', then set MULTISRCTOP before calling config-ml.in.
9836
9837Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9838
9839 * mpw.c (mpw_open): Add debugging output option.
9840
9841Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9842
9843 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9844
9845Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9846
9847 * mpw.c (mpwify_filename): Change 6 to 5 in
9848 strncmp (unixname, "/tmp/", 5).
9849
9850Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9851
9852 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9853 handle 0 as a pointer value parameter.
9854
9855Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9856
9857 * Makefile.in (all): Depend upon required-list.
9858 (required-list): New target.
9859 (clean): Remove required-list.
9860
9861Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9862
9863 * win32.c: Deleted.
9864 * config.table (i386-*-win32): Deleted.
9865 * config/mh-i386win32: Deleted.
9866
9867Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9868
9869 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9870 const char *.
9871 (cplus_mangle_opname): Change return type and opname parameter to
9872 const char *. Don't cast return value.
9873
9874Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9875
9876 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9877 definition.
9878
9879Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9880
9881 * obstack.c: Update copyright to 1996.
9882 (_obstack_memory_used): Define new function. Called via
9883 obstack_memory_used macro.
9884
9885Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9886
9887 * xstrdup.c: New file.
9888 * Makefile.in (CFILES): Add xstrdup.c.
9889 (REQUIRED_OFILES): Add xstrdup.o.
9890 (xstrdup.o): New target.
9891
9892Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9893
9894 * atexit.c: New stub to provide atexit on systems that have
9895 on_exit, like SunOS 4.1.x systems.
9896 * functions.def (on_exit, atexit): Ditto.
9897
9898Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9899
9900 * mpw.c (mpw_abort): Remove decl.
9901 (mpw_access): Move debugging printf.
9902
9903Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9904
9905 * config.table: Consistently use ${host} rather than ${xhost} or
9906 ${target}.
9907 * configure.in: Don't bother to set ${xhost} before calling
9908 config.table.
9909
9910Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9911
9912 * Makefile.in (.c.o): Use test instead of the left bracket, to
9913 avoid problems with some versions of make.
9914
9915Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9916
9917 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9918
9919Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9920
9921 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9922 which was set to just alloca.o, which is now automatically marked
9923 as needed by the autoconfiguration process.
9924
9925Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9926
9927 * config.table: Check ${with_cross_host} rather than comparing
9928 ${host} and ${target}.
9929
9930Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9931
9932 * configure.in: If with_target_subdir is empty, set xhost to
9933 ${host} rather than ${target} before calling config.table.
9934
9935Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9936
9937 * Makefile.in (MULTITOP): Deleted.
9938 (MULTISRCTOP, MULTIBUILDTOP): New.
9939 (FLAGS_TO_PASS): Delete INCDIR.
9940 (INCDIR): Add $(MULTISRCTOP).
9941 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9942 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9943 instead of cfg-ml-pos.in.
9944 (cross-compile check): Change to test for with_target_subdir.
9945 (EXTRA_LINKS): Delete.
9946
9947Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9948
9949 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9950 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9951 functions that are supplied by Metrowerks libraries.
9952 (fstat): Clean up descriptor->pointer conversion code.
9953 (InstallConsole, etc): Empty definitions, for when linking
9954 with SIOUX.
9955
9956Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9957
9958 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9959 (.c.o): Stylistic change.
9960
9961Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9962
9963 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9964 phdm@info.ucl.ac.be (Philippe De Muyter).
9965
9966Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9967
9968 * configure.in: Correct sed call.
9969
9970Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9971
9972 * configure.in: Clean up / simplify for native.
9973
9974 * configure.in: Merge in stuff from ../xiberty/configure.in.
9975 * Makefile.in (CC): Add definition (so it can be overrridden
9976 by ../configure).
9977
9978Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9979
9980 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9981 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9982 (link): Remove useless definition with error return.
9983 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9984 Use UnsignedWide type for microsecond counts.
9985
9986Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9987
9988 * memcmp.c (memcmp): Argument types are const void *, not void
9989 *const.
9990
9991 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9992 sys/types.h.
9993 * strcasecmp.c (strcasecmp): Ditto.
9994
9995Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9996
9997 * Makefile.in (BISON): Remove macro.
9998
9999Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
10000
10001 * Makefile.in (HFILES): Add default empty definition.
10002 * mpw-config.in (config.h): Only update if changed.
10003 * mpw-make.in: Remove.
10004 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
10005 * mpw.c: Remove semi-clone of strerror code.
10006 (sys_nerr, sys_errlist): Define here.
10007 (Microseconds): Only define as A-line trap if m68k Mac.
10008
10009Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
10010
10011 * Makefile.in (maintainer-clean): New synonym for distclean.
10012
10013Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
10014
10015 * config.table: For host, generalize rs6000-ibm-aix*
10016 to *-ibm-aix* so we also include powerpc.
10017
10018Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
10019
10020 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
10021
10022 * xstrerror.c: New file.
10023 * Makefile.in, vmsbuild.com: Compile it.
10024
10025Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
10026
10027 * config.table (i386-*-win32): New.
10028
10029Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
10030
10031 * Makefile.in (MULTITOP): New variable.
10032 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
10033 (all): Add multilib support.
10034 (install_to_tooldir, *clean): Likewise.
10035
10036Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
10037
10038 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
10039
10040Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
10041
10042 * vmsbuild.com: create "new-lib.olb", build libiberty under that
10043 name, and then make it become "liberty.olb" when done, so that an
10044 incomplete build attempt never leaves behind something which looks
10045 like a complete library.
10046
10047Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
10048
10049 * config/mh-i386pe: New file for PE hosts.
10050 * config.table: Understand PE hosts.
10051
10052Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10053
10054 * cplus-dem.c: Update from gcc.
10055
10056 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
10057 <stddef.h>.
10058 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
10059
10060Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
10061
10062 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
10063 * mpw.c: Only test DebugPI once whenever printing debug info.
10064 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
10065 also fix to not write on input filename buffer.
10066 (mpw_access): Use stat() instead of open(), works for directories
10067 as well as files.
10068
10069Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10070
10071 * Makefile.in: Massage broken shells that require 'else true'.
10072
10073Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
10074
10075 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
10076 Declare __builtin_alloca in the sparc case, as argv.c did.
10077 * argv.c: Replace inline version of alloca-norm.h at start of file with
10078 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
10079 because alloca-norm.h needs to declare alloca as "PTR".
10080
10081Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
10082
10083 * win32.c: New file.
10084
10085Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10086
10087 * dummy.c: #include "alloca-conf.h".
10088
10089Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10090
10091 * Makefile.in (mostlyclean): Remove stamp-picdir.
10092 (clean): Don't.
10093
10094Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10095
10096 * config.table (frags): Use toplevel pic frags.
10097
10098 * Makefile.in (PICFLAG): New macro.
10099 (all): Depend on stamp-picdir.
10100 (needed-list): Ditto.
10101 (.c.o): Also build pic object.
10102 (stamp-picdir): New rule.
10103 (mostlyclean): Remove pic.
10104 (clean): Remove stamp-picdir.
10105
10106Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
10107
10108 * vmsbuild.com (config.h): Add `#define NEED_basename'.
10109
10110Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
10111
10112 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
10113 to libio-style copyright.
10114 * getpagesize.c: Remove FSF copyright.
10115
10116Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
10117
10118 Added improved VMS support from Pat Rankin:
10119
10120 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
10121
10122 * vmsbuild.com: new file.
10123
10124 * getpagesize.c (getpagesize): implement for VMS;
10125 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
10126 support for EVMSERR.
10127
10128Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
10129
10130 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
10131
10132 * floatformat.c (floatformat_arm_ext): Define.
10133
10134Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
10135
10136 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
10137 strerror.c, strsignal.c: Remove FSF copyright.
10138 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
10139
10140Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
10141
10142 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
10143 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
10144 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
10145 * strchr.c, strrchr.c: Add cast to suppress const warning.
10146
10147Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10148
10149 * cplus-dem.c: Use const instead of CONST. Don't include
10150 ansidecl.h directly.
10151
10152Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10153
10154 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
10155 xrealloc.
10156 (-DMAIN): Don't rely on an externally-defined version number;
10157 instead, require the version number to be defined as a
10158 preprocessor macro. Handle the RS/6000 leading dot. Define
10159 xmalloc, xrealloc and fatal. Don't strip a leading underscore
10160 if we couldn't demangle the word.
10161
10162Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
10163
10164 (Old mpw.c change descriptions retained for informational value.)
10165 * mpw.c (warning_threshold): Default to .4 sec.
10166 (overflow_count, current_progress): New globals.
10167 (warn_if_spin_delay): Include current progress type,
10168 such as program name, in message.
10169 (mpw_start_progress): Set current_progress variable from arg.
10170 (mpw_end_progress): Report spin delays by power-of-two-size
10171 buckets instead of constant-size buckets.
10172
10173 * mpw.c: Clean up formatting, types, returns, etc.
10174 (ENOSYS): Define.
10175 (mpw_fread, mpw_fwrite): Define.
10176 (sleep): Define correctly.
10177
10178 * mpw.c: New code to implement cursor spinning support.
10179 (umask): New function.
10180 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
10181
10182 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
10183 basenames for MPW and MPW/Unix filenames.
10184 (mpw_special_init): New function, calls Macsbug if desired.
10185
10186 * mpw.c: Add GPL notice.
10187 (mpwify_filename): Add more transformations.
10188 (mpw_fopen): Call mpwify_filename on file names.
10189 (rename): Remove.
10190 (chdir, getcwd): Add simple definitions.
10191
10192 * mpw.c: Random cleanups, remove unused code bits.
10193 Added copy of strerror.c for gcc's use.
10194 (stat, fstat, _stat): New versions based on Guido van Rossum code.
10195
10196 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
10197
10198 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
10199 (fork, vfork, etc): Print error messages if called.
10200 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
10201 rename, chown): Define.
10202
10203 * mpw-config.in: New file, MPW version of configure.in.
10204 * mpw-make.in: New file, MPW version of Makefile.in.
10205 * mpw.c: New file, MPW compatibility routines.
10206
10207Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
10208
10209 * basename.c: Include config.h before checking for NEED_basename.
10210
10211Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10212
10213 * functions.def: Add DEFFUNC for basename.
10214
10215 * basename.c: Only define basename if NEED_basename.
10216
10217Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10218
10219 * config.table: Fix --enable-shared logic for native builds.
10220
10221Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10222
10223 * cplus-dem.c (demangle_template): Demangle bool literals properly.
10224
10225Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
10226
10227 * strtol.c strtoul.c: Replace these with less buggy versions from
10228 NetBSD. (strtoul in particular couldn't handle base 16.)
10229
10230Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
10231
10232 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
10233
10234 * clock.c: If NO_SYS_PARAM_H is defined, don't include
10235 <sys/param.h>.
10236 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
10237
10238Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
10239
10240 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
10241 a number; ANSI appears to permit any expression, including a
10242 function call.
10243
10244 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
10245 xiberty.
10246 * config/mt-vxworks5: New file.
10247
10248Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
10249
10250 * basename.c (basename): Change argument to be const.
10251
10252Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10253
10254 * Makefile.in (lneeded-list): Don't worry about xmalloc.
10255
10256Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
10257
10258 * Makefile.in (distclean): Delete xhost-mkfrag.
10259
10260Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10261
10262 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
10263
10264Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
10265
10266 * hex.c: New file.
10267 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
10268 (hex.o): Add dependencies.
10269
10270 * cplus-dem.c (demangle_prefix): For GNU style constructor and
10271 destructor names, try demangling the remainder of the string.
10272
10273Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
10274
10275 * vasprintf.c (int_vasprintf): New static function.
10276 (vasprintf): Use int_vasprintf. Removes assumption that va_list
10277 is assignment compatible.
10278
10279Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10280
10281 * Makefile.in (LIBCFLAGS): New variable.
10282 (FLAGS_TO_PASS): Pass it.
10283 (.c.o): Use it.
10284
10285Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
10286
10287 * getopt.c, getopt1.c: Do compile these functions under Linux,
10288 since many native versions are based on glibc but are buggy.
10289
10290Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
10291
10292 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
10293 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
10294
10295Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10296
10297 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
10298 * functions.def: Remove vasprintf.
10299
10300Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10301
10302 * xmalloc.c (first_break): New static variable.
10303 (xmalloc_set_program_name): Record sbrk (0) in first_break.
10304 (xmalloc): If memory allocation fails, try to report how much
10305 memory was allocated by the program up to this point.
10306 (xrealloc): Likewise.
10307
10308Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
10309
10310 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
10311 when linking dummy.
10312 * config.table: Add host RISCiX Makefile frag.
10313 * config/mh-riscix: New file.
10314
10315Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10316
10317 * Makefile.in (FLAGS_TO_PASS): Define.
10318 ($(RULE1)): Use $(FLAGS_TO_PASS).
10319
10320Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10321
10322 * vasprintf.c: Include <string.h>.
10323 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
10324 * xatexit.c: Declare malloc.
10325
10326Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10327
10328 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
10329 one below).
10330
10331Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10332
10333 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
10334 the type index is greater than 9.
10335
10336Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
10337
10338 * cplus-dem.c (demangle_qualified): accept optional '_' between
10339 qualified name. This is baecause the template name may end with
10340 numeric and can mixed up with the length of next qualified name.
10341
10342Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
10343
10344 * config/mt-sunos4: Use our standard location for cross-includes
10345 and cross-libs when the target is also a "host" environment (ie no
10346 newlib; includes and such don't belong to us). This is specific
10347 to the Cygnus Support environment.
10348
10349Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10350
10351 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
10352 xxx<ch=81>.
10353
10354Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
10355
10356 * cplus-dem.c (main): flush stdout to make pipe work.
10357
10358Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10359
10360 * config.table (*-*-cxux7*): Recognize.
10361 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
10362 Harris-specific float format.
10363 * config/mh-cxux7: New file.
10364
10365Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10366
10367 * cplus-dem.c (demangle_template): Make sure that the result of
10368 consume_count doesn't index beyond the end of the string.
10369
10370Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10371
10372 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
10373 earlier. Improve test for new vtable mangling. Change output back
10374 to `virtual table'.
10375
10376Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10377
10378 * obstack.c: Always compile this code, even if using the GNU
10379 library. Avoids problems with relatively recent binary
10380 incompatibility.
10381
10382Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10383
10384 * cplus-dem.c: Include libiberty.h.
10385 (xmalloc, xrealloc, free): Don't declare.
10386 (strstr): Don't declare parameters.
10387 (xmalloc, xrealloc): Don't define.
10388 (long_options): Add no-strip-underscores.
10389 (main): Call xmalloc_set_program_name. Pass n in short options to
10390 getopt_long. Handle option 'n' to not strip underscores.
10391 (usage): Mention -n and --no-strip-underscores.
10392
10393Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
10394
10395 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
10396 space.
10397 (gnu_special): Demangle template and qualified names in a vtable name.
10398
10399Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10400
10401 From gas-2.3 and binutils-2.4 net releases:
10402
10403 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
10404
10405 * makefile.dos: [new] Makefile for dos/go32
10406 * configure.bat: update for latest files
10407 * msdos.c: remove some functions now in libc.a
10408
10409Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
10410
10411 * cplus-dem.c (gnu_special): Recognize thunks, as well as
10412 the new naming style for vtables (when -fvtable-thunks).
10413
10414Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10415
10416 * Makefile.in (XTRAFLAGS): Don't define.
10417 (.c.o, dummy.o): Don't use XTRAFLAGS.
10418 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
10419
10420Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10421
10422 * vasprintf.c: New file.
10423 * Makefile.in, functions.def: Add it.
10424
10425Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
10426
10427 * cplus-dem.c (demangle_fund_type): Grok bool.
10428
10429Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
10430
10431 * config.table: Add go32
10432 * config/mh-go32: New template.
10433
10434Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
10435
10436 * config.table, config/mt-sunos4: config for when sun4 is cross target.
10437
10438Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10439
10440 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10441 Declare strlen to return int. Don't include stddef.h.
10442
10443Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
10444
10445 * getopt.c: Delete use of IN_GCC to control whether
10446 stddef.h or gstddef.h is included.
10447
10448Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
10449
10450 * cplus-dem.c (demangle_signature): Fix a bug in template function
10451 type numbering.
10452
10453Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
10454
10455 * cplus-dem.c (demangle_signature): Fix template function with arm
10456 style argument type number, Tn.
10457
10458Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
10459
10460 * cplus-dem.c (optable): Add new[] and delete[].
10461
10462Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10463
10464 * argv.c (buildargv): Don't produce empty argument just because
10465 there is trailing whitespace.
10466
10467Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10468
10469 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
10470 Handle 'p' same as 'P'.
10471 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
10472
10473Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10474
10475 * floatformat.c (get_field, put_field): Fix off by one error in
10476 little endian case.
10477
10478Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10479
10480 * floatformat.c (floatformat_from_double): Pass unsigned char *,
10481 not char *, to put_field.
10482
10483Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10484
10485 * memmove.c: Re-wrote; placed in public domain.
10486
10487Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10488
10489 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10490 __Q* as a constructor.
10491
10492Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
10493
10494 * ieee-float.c: Removed; no longer used.
10495 * Makefile.in: Changed accordingly.
10496
10497Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10498
10499 * floatformat.c (get_field): Removed unused local variable i.
10500 (put_field): Removed unused local variable i.
10501
10502Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10503
10504 * floatformat.c: New file, intended to replace ieee-float.c.
10505 * Makefile.in: Change accordingly.
10506
10507Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10508
10509 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
10510 (_getopt_initialize): New function, broken out of _getopt_internal.
10511 (_getopt_internal):
10512 If long_only and the ARGV-element has the form "-f", where f is
10513 a valid short option, don't consider it an abbreviated form of
10514 a long option that starts with f. Otherwise there would be no
10515 way to give the -f short option.
10516
10517Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10518
10519 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10520 Test just __STDC__, not emacs.
10521
10522Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10523
10524 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10525 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
10526
10527Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10528
10529 * getopt.c (_NO_PROTO): Define before config.h is included.
10530
10531Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10532
10533 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
10534 <config.h> only under these, else "config.h".
10535
10536Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10537
10538 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10539 <config.h> instead of "config.h".
10540
10541Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
10542
10543 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10544 whether to use prototypes or not.
10545 * strerror.c (const): Never undefine; let ansidecl.h handle it.
10546 * strsignal.c (const): Likewise.
10547
10548Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10549
10550 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10551 Merging common and initialized variables need not be supported by
10552 ANSI C compilers.
10553 (xatexit): Initialize _xexit_cleanup if not already set.
10554 * xexit.c: Comment fix.
10555
10556Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10557
10558 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10559 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10560 assuming that realloc works correctly.
10561
10562Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10563
10564 * concat.c, ieee-float.c: Replace inclusion of <string.h>
10565 with explicit function declarations, as recommended by Ian Taylor.
10566
10567Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10568
10569 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10570 (malloc, realloc): Declare.
10571
10572Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10573
10574 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10575 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10576 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10577 * xmalloc.c: Likewise.
10578 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
10579 macros, not <varargs.h> macros.
10580 * spaces.c (spaces): Make return type const. Don't crash if
10581 malloc returns NULL.
10582 * strerror.c (struct error_info): Make name and msg fields const.
10583 (error_names): Make const.
10584 (strerrno): Make const.
10585 (strtoerrno): Make argument const.
10586 * strsignal.c (struct signal_info): Make name and msg fields
10587 const.
10588 (signal_names, sys_siglist): Make const.
10589 (strsignal, strsigno): Make const.
10590 (strtosigno): Make argument const.
10591 * xatexit.c: Declare parameter types.
10592 * xmalloc.c (name): Make const.
10593 (xmalloc_set_program_name): Make argument const.
10594 * Makefile.in (INCDIR): Define.
10595 (.c.o): Use $(INCDIR).
10596 (dummy.o): Likewise.
10597 (argv.o, basename.o): New targets; depend on libiberty.h.
10598 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10599 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10600 (xmalloc.o): Likewise.
10601 (cplus-dem.o): New target; depend on demangle.h.
10602 (getopt.o, getopt1.o): New targets; depend on getopt.h.
10603 (ieee-float.o): New target; depend on ieee-float.h.
10604 (obstack.o): New target; depend on obstack.h.
10605
10606Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10607
10608 Handle obstack_chunk_alloc returning NULL. This allows
10609 obstacks to be used by libraries, without forcing them
10610 to call exit or longjmp.
10611 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10612 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10613 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10614
10615Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10616
10617 * concat.c, ieee-float.c: Include <string.h>.
10618
10619Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10620
10621 * xmalloc.c (xmalloc_set_program_name): New function.
10622 (xmalloc, xrealloc): Include the name in the error message, if set.
10623
10624 * Replace atexit.c with xatexit.c.
10625 * Makefile.in (CFILES), functions.def: Change references.
10626
10627Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10628
10629 * getruntime.c (get_run_time): Use getrusage or times if
10630 HAVE_GETRUSAGE or HAVE_TIMES are defined.
10631
10632Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10633
10634 * atexit.c: New file.
10635 * Makefile.in (CFILES), functions.def: Add it.
10636 * xexit.c: New file.
10637 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10638 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10639 Change request for 0 bytes into request for 1 byte.
10640
10641Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10642
10643 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10644 unsigned long, to avoid warnings.
10645
10646Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10647
10648 * dummy.c: Don't include time.h ever; always define clock_t as
10649 "unsigned long". Until gcc/fixincludes ensures that clock_t
10650 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
10651 exist, clock_t probably doesn't either.
10652
10653Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
10654
10655 * clock.c, getruntime.c: New files.
10656 * Makefile.in: Add to file lists.
10657 * functions.def (clock): Add to list.
10658 * dummy.c (time.h): Add if __STDC__.
10659 (clock_t): #define as "unsigned long" if not __STDC__.
10660
10661Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10662
10663 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
10664 Edler).
10665
10666Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10667
10668 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10669 linking.
10670
10671Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10672
10673 * cplus-dem.c (demangle_arm_pt): New function. Common code
10674 for ARM template demangling.
10675 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10676 * cplus-dem.c (demangle_prefix): Likewise.
10677
10678Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10679
10680 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10681
10682Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10683
10684 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10685 * strerror.c, strsignal.c: As a small space optimization, don't
10686 include messages when they aren't actually used.
10687
10688 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10689 * cplus-dem.c (demangle_prefix, demangle_function_name,
10690 cplus_demangle_opname): Fixes for systems where cplus_marker
10691 is something other than '$'.
10692
10693Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10694
10695 * waitpid.c: Simple-minded approcimation to waitpid
10696 using vanilla wait.
10697 * functions.def, Makefile.in: Update accordingly,
10698
10699Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10700
10701 * cplus-dem.c(demangle_template): fix bug template instantiation
10702 with value of user defined type.
10703
10704Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10705
10706 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10707 to support unified search of operator in class.
10708
10709Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10710
10711 gcc -Wall lint:
10712 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10713 "digit = *s" as condition in while loop.
10714
10715Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10716
10717 * Makefile.in: pass SHELL to recursive make
10718
10719Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10720
10721 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10722 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10723
10724Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10725
10726 * config.table: Make *-*-hiux* use mh-hpux.
10727
10728Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10729
10730 * config.table: Add * to end of all OS names.
10731
10732Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10733
10734 * Makefile.in (lneeded-list): ensure that object file names are
10735 not duplicated, as multiple instances of the same object file in
10736 a library causes problems on some machines
10737
10738Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10739
10740 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10741
10742Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10743
10744 * strncasecmp.c: new file, implements strncasecmp
10745 * strcasecmp.c: new file, implement strcasecmp
10746
10747 * Makefile.in (CFILES): list these two new source files
10748
10749 * functions.def: add strcasecmp and strncasecmp entries
10750
10751Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10752
10753 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10754 according to ANSI C.
10755
10756Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10757
10758 * cplus-dem.c: add support of ARM global constructor/destructor,
10759 and 'G' for passing record or union in parameter.
10760
10761Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10762
10763 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10764 should not be in functions.def.
10765
10766Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10767
10768 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10769 not be in functions.def.
10770
10771Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10772
10773 * cplus-dem.c: change globl constructor/destructor to proper name
10774
10775Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10776
10777 * cplus-dem.c: fix bug in constructor/destructor
10778
10779Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10780
10781 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10782
10783Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10784
10785 * cplus-dem.c: Fix demangle_template prototype
10786
10787Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10788
10789 * cplus-dem.c: fix template demangling
10790 * cplus-dem.c: fix const type demangling
10791 * cplus-dem.c: fix constructor/destructor, virtual table,
10792 qualifier, global constructor/destructor demangling
10793
10794Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10795
10796 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10797 keep gcc -Wall happy.
10798
10799Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10800
10801 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10802 patch.
10803
10804Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10805
10806 Patch from Paul Flinders:
10807 * cplus-dem.c (do_type): Deal with arrays.
10808
10809Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10810
10811 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10812 than 9 classes.
10813
10814Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10815
10816 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10817 not initialized" warnings under HP/UX
10818
10819Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10820
10821 * strerror.c: Move include of stdio.h after sys_errlist #define.
10822 Also remove NULL definition (stdio.h always defines NULL, so it
10823 never did anything but clutter up the code).
10824
10825Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10826
10827 * Makefile.in, functions.def: handle xmalloc.c
10828
10829 * xmalloc.c: provide xmalloc and xrealloc functions
10830
10831Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10832
10833 * cplus-dem.c: Fix a comment.
10834
10835Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10836
10837 * getopt1.c: Declare const the way getopt.c does.
10838
10839Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10840
10841 * obstack.c, alloca.c: Update from FSF.
10842 * getopt.c, getopt1.c: Update to current FSF version, which
10843 doesn't use alloca.
10844
10845Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10846
10847 * Makefile.in (demangle): Add the target with a message saying
10848 where demangle went.
10849
10850Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10851
10852 * Makefile.in: Remove obsolete `demangle' target.
10853
10854Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10855
10856 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10857 avoid infinite loop on vtbl symbols with disambiguating "junk"
10858 tacked on the end.
10859
10860Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10861
10862 * strsignal.c: work around some systems losing definitions of
10863 sys_siglist
10864
10865 * config/mh-lynxos: this system has a losing definition of
10866 sys_siglist
10867
10868 * config.table: use mh-lynxos for *-*-lynxos
10869
10870Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10871
10872 * config.table: Add support for HPPA BSD hosts.
10873
10874 * config/mh-hpbsd: New file.
10875
10876Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10877
10878 * Makefile.in (TAGS): make work when srcdir != objdir.
10879
10880Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10881
10882 * cplus-dem.c (main): Add long options, including --help and
10883 --version.
10884 (usage): New function from code in main.
10885
10886Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10887
10888 * config.table: New shell scipt, sourced by both ./configure,in
10889 and ../xiberty/configure.in, to avoid maintainance lossages.
10890 * configure.in and ../xiberty/configure.in: Use config.table.
10891
10892 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10893 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10894 * ../xiberty/configure.in: Update from ./configure.in.
10895
10896Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10897
10898 * Makefile.in: remove parentdir support
10899
10900Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10901
10902 * cplus-dem.c (xrealloc): Match definition with prototype.
10903
10904Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10905
10906 * cplus-dem.c (demangle_prefix): Demangle cfront
10907 local variables as an extension to ARM demangling.
10908
10909Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10910
10911 * ieee-float.c: Don't require pointers to double to be aligned.
10912
10913Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10914
10915 (merge changes from dlong@cse.ucsc.edu)
10916 * cplus-dem.c (consume_count): Simplify.
10917 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10918 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10919
10920 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10921 full prototypes.
10922 * cplus-dem.c (free): Add prototype.
10923 * cplus-dem.c (optable): Fully bracketize initializer.
10924
10925Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10926
10927 * cplus-dem.c: Whether initial underscores are stripped
10928 depends on the external variable prepends_underscore
10929 (which is generated by the binutils Makefile).
10930
10931Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10932
10933 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10934
10935Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10936
10937 * cplus-dem.c (consume_count): Return zero if arg does not
10938 start with digit, and don't consume any input.
10939
10940Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10941
10942 * Makefile.in (demangle): Use ${srcdir} not $^.
10943
10944 * strtod.c: New file, needed at least for BSD 4.3.
10945
10946Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10947
10948 * strsignal.c (sys_siglist): For ANSI compilations, type is
10949 "const char *const". Also remove conditionalization on __STDC__
10950 since const is defined away for non-ANSI.
10951
10952Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10953
10954 * configure.in: Recognize *-*-hpux.
10955 * config/mh-hpux: New file.
10956
10957Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10958
10959 * tmpnam.c: Added ANSI tmpnam() function.
10960 * functions.def, Makefile.in: Update accordingly.
10961
10962Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10963
10964 * cplus-dem.c (demangle_function_name): Get the demangling of
10965 stop__1A right.
10966
10967Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10968
10969 * cplus-dem.c: Declare strstr return type.
10970
10971Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10972
10973 * strsignal.c: Add some AIX signals.
10974
10975Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10976
10977 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10978
10979Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10980
10981 * Makefile.in: add installcheck & dvi targets
10982
10983Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10984
10985 * ieee-float.c: New file, moved from ../gdb (since it is
10986 needed by ../opcode/m68k-dis.c).
10987
10988Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10989
10990 * cplus-dem.c: Replace all references to cfront with ARM.
10991
10992Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10993
10994 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10995 to be more useful as a filter.
10996
10997Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10998
10999 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
11000 destination directory before running $(RANLIB), in case that
11001 program tries to create a file in the current directory as part of
11002 its work.
11003
11004Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
11005
11006 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
11007 because BSD 4.4 lacks one. Isn't this fun?
11008
11009Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
11010
11011 * cplus-dem.c (demangle_signature): Set func_done after
11012 demangling a template.
11013 * cplus-dem.c (demangle_template): Fix several small bugs
11014 in demangling GNU style templates.
11015 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
11016 style constructors.
11017 * cplus-dem.c (gnu_special): Fix for templates in GNU style
11018 static data members.
11019
11020Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
11021
11022 * cplus-dem.c (demangle_signature): Modify to include type
11023 modifiers like static and const in remembered types.
11024
11025Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
11026
11027 * cplus-dem.c (demangled_qualified): Add new parameter that tells
11028 whether to prepend or append the qualifiers.
11029 * cplus-dem.c (string_prepends): Used now, remove #if 0.
11030 * cplus-dem.c (demangle_signature): Call demangle_qualified
11031 with prepending.
11032 * cplus-dem.c (gnu_special): Recognize static data members that
11033 use qualified names.
11034 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
11035 temporary buffer and the prepend or append them to the result,
11036 as specified by the new "append" flag.
11037 * cplus-dem.c (do_type): Call demangled_qualified with
11038 appending.
11039
11040Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
11041
11042 * strsignal.c (signal_table): Now const.
11043 (init_signal_tables): Variable eip now points to const.
11044
11045 * strerror.c (error_table): Now const.
11046 (init_error_tables): Variable eip now points to const.
11047
11048Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
11049
11050 * memchr.c (memchr): New (ANSI standard) function.
11051 * Makefile.in, functions.def: Added memchr.
11052 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
11053
11054Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11055
11056 * getopt.c: remove use of USG around <alloca.h>, which never meant
11057 anything anyway
11058
11059 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
11060 of USG and USGr4
11061
11062Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
11063
11064 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
11065 it's now a type according to the ANSI X3J16 working paper; output
11066 "wchar_t" for it.
11067 (demangle_template): Accept `w' as an integral type.
11068 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
11069 counterparts malloc and realloc to `char *'.
11070 (main): Exit with a 0 status.
11071 * Makefile.in (demangle): Don't expect the user to define
11072 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
11073 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
11074
11075Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
11076
11077 * Makefile.in (AR_FLAGS): Avoid verbosity.
11078 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
11079 replace USGr4 with HAVE_SYSCONF.
11080 * config/mh-solaris: Remove; mh-sysv4 works now.
11081 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
11082 * configure.in: Simplify host matching table, remove separate
11083 solaris config file.
11084
11085Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
11086
11087 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
11088
11089Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
11090
11091 * cplus-dem.c (xmalloc, xrealloc): Add decls.
11092 (remember_type): Don't cast xmalloc.
11093 (string_need): Likewise; don't cast xrealloc either.
11094
11095Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
11096
11097 * Makefile.in, functions.defs, rename.c: added simple
11098 implementation of rename, since some binutils programs use it.
11099
11100Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
11101
11102 * strsignal.c: Add appropriate 'const' to sys_siglist
11103 extern declaration (if __STDC__). (Needed for Linux.)
11104 * strsignal.c (strsignal): Add cast to remove const-ness.
11105
11106Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
11107
11108 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
11109 before "'s, diagnosed by BSD 4.4 awk.
11110
11111Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
11112
11113 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
11114 and $(NEEDED_LIST), to give some hooks for xiberty.
11115
11116Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11117
11118 * configure.in: use cpu-vendor-triple instead of nested cases
11119
11120Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
11121
11122 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
11123 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
11124 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
11125 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
11126 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
11127 Convert from using GPL to LGPL.
11128
11129Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
11130
11131 * Makefile.in (errors): Leave dummy.o and dummy around so that
11132 we can see how the needed list was generated (it's sometimes wrong).
11133 (mostlyclean): Remove them.
11134
11135Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
11136
11137 * getcwd.c: supply a default if MAXPATHLEN is not defined.
11138
11139 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
11140
11141Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
11142
11143 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
11144 when cross-compiling.
11145
11146Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
11147
11148 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
11149 as a time optimization.
11150
11151 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
11152 be more expensive than simply demangling.
11153
11154 * cplus-dem.c (cplus_match): new function.
11155
11156Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
11157
11158 * cplus-dem.c: #include <stdio.h>, to define NULL.
11159 Define current_demangling_style.
11160
11161Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
11162
11163 * cplus-dem.c: New file, moved from ../gdb.
11164 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
11165 function, to avoid compiling in target-dependency for CPLUS_MARKER.
11166 * cplus-dem.c (cplus_demangle): Allow demangling style option
11167 to be passed as a parameter, but using the global variable
11168 current_demangling_style as a default.
11169 * Makefile.in: Update for cplus-dem.c
11170
11171Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
11172
11173 * obstack.c: Merge in comment changes from FSF version. Now
11174 matches the FSF version exactly.
11175
11176Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
11177
11178 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
11179 least on losing DECstations!); use if-then-else instead.
11180
11181Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
11182
11183 * Makefile.in: always create installation directories.
11184
11185Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
11186
11187 * Makefile.in: clean up definition of CFILES, more comments
11188
11189Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
11190
11191 * getopt.c (my_index): Make first arg const to match strchr,
11192 which it sometimes is remapped to.
11193
11194Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
11195
11196 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
11197 * obstack.c (_obstack_begin): Initialize use_extra_arg.
11198 * obstack.c (_obstack_begin_1): New, from FSF version.
11199
11200Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
11201
11202 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
11203 extra_arg.
11204 * obstack.c (_obstack_begin): Remove area_id and flags arguments
11205 (previously added for mmalloc support, interface has changed).
11206 Also convert flags usage to use use_extra_arg and maybe_empty_object.
11207
11208Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
11209
11210 * argv.c: Move expandargv inline and eliminate static variables.
11211 Rewrite to always allocate in powers of two. Fix to return an
11212 argv with a single null string arg if passed a null string.
11213
11214Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
11215
11216 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
11217 "(void)" casts from function calls where the return value is
11218 ignored, in accordance with GNU coding standards.
11219
11220Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
11221
11222 * bcopy.c, strerror.c, strsignal.c: Lint.
11223
11224Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11225
11226 * getopt.c: merge changes from make.
11227
11228Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
11229
11230 * alloca.c: Incorporate fixes from gdb/alloca.c.
11231 FIXME: Eventually move gdb's alloca configuration files here,
11232 and remove gdb/alloca.c and its Makefile.in support.
11233
11234Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
11235
11236 * dummy.c: Define NOTHING to /*nothing*/, change return type
11237 of main to int and return zero.
11238 * functions.def: Supply NOTHING as the fourth arg to macros
11239 that don't have an explicit arg, to satisfy picky preprocessors.
11240
11241Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
11242
11243 * Makefile.in: Clean up *clean rules, as per standards.texi.
11244
11245Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11246
11247 * getopt.c, getopt1.c: merged largely gratuitous, mostly
11248 whitespace diffs from other prep distributions.
11249
11250Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
11251
11252 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
11253 it is broken on ncr 3000's.
11254
11255Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
11256
11257 * sigsetmask.c: Rewrite. Old one was very confused about its
11258 arguments and result. New one can't do much, but at least knows
11259 what it can't do, and it's good enough for GDB's use.
11260
11261Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
11262
11263 * functions.def: Use proper prototype for strtoul.
11264
11265Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
11266
11267 * Makefile.in: Add random.c.
11268 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
11269 * configure.in: update solaris2 config.
11270
11271Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
11272
11273 * random.c: Add for random() and srandom().
11274 * functions.def: Add random
11275
11276Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
11277
11278 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
11279 using /usr/ucb/install.
11280
11281Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
11282
11283 * strerror.c: Kludge to guard against a conflict with
11284 possible declaration of sys_errlist in errno.h.
11285
11286Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
11287
11288 * configure.in, config/mh-solaris: add solaris2 config support.
11289
11290Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11291
11292 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
11293 is not defined (should be defined in signal.h, says Posix.).
11294
11295Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
11296
11297 * getopt.c: merged changes from make-3.62.11.
11298
11299Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
11300
11301 * getopt.c: merged changes from bison-1.18.
11302
11303Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
11304
11305 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
11306 since that introduces a circular dependency.
11307 ($(EXTRA_OFILES) are used to build config.h.)
11308
11309 * strtoul.c: Fixes to handle non-decimal bases better.
11310
11311Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
11312
11313 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
11314 * Makefile.dos: Finish MINUS_G eradication.
11315 * Makefile.in (CFILES): Add strsignal.c.
11316 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
11317 * Makefile.in (needed-list): Split creation of errors file to
11318 separate make target.
11319 * Makefile.in (config.h, needed2.awk, errors): New targets.
11320 * Makefile.in (clean): Split to multiple lines, add needed2.awk
11321 and config.h.
11322 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
11323 * functions.def (strerror): Remove from optional list.
11324 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
11325 * functions.def (strerror, psignal): DEFFUNC's
11326 * strerror.c: Rewrite from scratch to use sys_errlist only if
11327 available, add errno_max(), add strerrno(), add strtoerrno(),
11328 add test driver.
11329 * strsignal.c: New file, signal equivalent to strerror.c.
11330 Uses sys_siglist if available, defines signo_max(), strsignal(),
11331 strsigno(), strtosigno(), psignal(), and test driver.
11332
11333Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
11334
11335 * Makefile.in: do not print recursion line.
11336
11337 * Makefile.in: allow CFLAGS to be passed in from command line.
11338 Removed MINUS_G. Default CFLAGS to -g.
11339
11340Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
11341
11342 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
11343 so libg++ users don't have to be inconvenienced by a
11344 libc.a bug (libc.a needs copysign, but doesn't define it!).
11345 * configure.in: Use config/mh-aix.
11346 * strtoul.c: Handle '-' as required by ANSI.
11347 Clean up radix handling.
11348 * strstr.c: Fix buggy algorithm.
11349 * Makefile.in: Change so that ${EXTRA_OFILES} is
11350 appended to needed-list (which is used by libg++).
11351
11352Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
11353
11354 * configure.in: Recognize new ncr3000 config.
11355 * config/mh-ncr3000: New config file.
11356
11357Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
11358
11359 * argv.c, dummy.c: Lint.
11360
11361Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
11362
11363 * config/mh-sysv4: New config file.
11364 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
11365 host_os == sysv4.
11366 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
11367 pagesize.
11368
11369Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
11370
11371 * getopt.c: Lint.
11372
11373Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
11374
11375 * functions.def (alloca): Fix return type and args to avoid
11376 type clash with gcc's builtin alloca.
11377
11378Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
11379
11380 * configure.in, config/mh-irix4: irix4 support.
11381
11382 * Makefile.in, functions.def, alloca.c: added alloca.
11383
11384Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
11385
11386 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
11387
11388Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
11389
11390 * argv.c: Fix various external function definitions to be
11391 correct in an ANSI compilation environment.
11392
11393Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
11394
11395 * obstack.c: Changes to support calling mmalloc functions,
11396 which take an additional argument over malloc functions.
11397
11398Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
11399
11400 * added check target.
11401
11402Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
11403
11404 * argv.c: #include alloca-conf.h (needed by AIX).
11405
11406Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
11407
11408 * Makefile.in, configure.in: removed traces of namesubdir,
11409 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11410 copyrights to '92, changed some from Cygnus to FSF.
11411
11412Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
11413
11414 * argv.c: Check in Fred's version which fixes problems with
11415 alloca().
11416
11417Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
11418
11419 * makefile.dos: Remove NUL to keep patch from failing.
11420
11421Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
11422
11423 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
11424
11425Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
11426
11427 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
11428
11429Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
11430
11431 * argv.c: New file to build and destroy standard argument
11432 vectors from a command string.
11433
11434 * Makefile.in: Add argv.c and argv.o to appropriate macros.
11435
11436Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
11437
11438 * configure.in: Change svr4 references to sysv4.
11439
11440 * rindex.c: Declare return type of externally used function
11441 strrchr().
11442
11443Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
11444
11445 * Makefile.in: Remove "***" in normal output, since Make produces
11446 this on errors, and it's convenient to search for.
11447
11448Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
11449
11450 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
11451 New ANSI functions. The old non-ANSI functions (such as bcopy)
11452 should be avoided.
11453 * bcopy.c: Fix to correctly handle overlapping regions.
11454 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
11455 * functions.def: Add the new functions.
11456 * functions.def: Add 4th parameter to DEF macro,
11457 an ansidecl.h-style prototype.
11458 * dummy.c: Use expanded DEF macro to create a dummy function
11459 call, with correct parameter types. (This avoids some
11460 complaints from gcc about predefined builtins.)
11461
11462 Move the functionality of config/mh-default into Makefile.in.
11463 This avoid duplication, and simplifies things slightly.
11464 * Makefile.in: Tweak so we don't need config/mh-default.
11465 * README: Update.
11466 * configure.in: No longer need config/mh-default.
11467 * config/mh-default: Deleted.
11468 * config/mh-sysv: Remove lines copied from old mh-default.
11469
11470Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
11471
11472 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
11473 'mknod' device numbers.
11474
11475Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
11476
11477 * fdmatch.c, Makefile.in: Add new function that takes two
11478 open file descriptors and returns nonzero if they refer to
11479 the same file, zero otherwise. (used in gdb)
11480
11481Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11482 From DJ:
11483 * msdos.c: stub functions for dos.
11484 * makefile.dos, configdj.bat: new.
11485 * getopt.c: Don't include alloca-conf.h in a GO32 world.
11486
11487
11488Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11489
11490 * Makefile.in: infodir belongs in datadir.
11491
11492Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11493
11494 * Makefile.in: remove spaces following hyphens because bsd make
11495 can't cope. added standards.text support. install using
11496 INSTALL_DATA.
11497
11498 * configure.in: remove commontargets as it is no longer a
11499 recognized hook.
11500
11501Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11502
11503 * Makefile.in: idestdir and ddestdir go away. Added copyrights
11504 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11505 and mandir now keyed off datadir by default.
11506
11507Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
11508
11509 * Makefile.in: find-needed.awk does not fit in 14 chars.
11510
11511 * Makefile.in: Suppress error checking when compiling the test
11512 program, because Ultrix make/sh aborts there due to a bug.
11513
11514Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
11515
11516 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
11517 * README: Explained how the auto-configuration works,
11518 and how to add new files and/or configurations.
11519
11520Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
11521
11522 * strtoul.c: Avoid defining ULONG_MAX if already defined;
11523 cast a const char * to char * for pedants.
11524
11525 * getopt.c: Only define "const" after local include files get to,
11526 and only if they haven't defined it.
11527
11528Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
11529
11530 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
11531 emulate it with getwd() if available. This avoids callers having
11532 to find a MAXPATHLEN or PATH_MAX value from somewhere.
11533 * Makefile.in, functions.def: getwd->getcwd.
11534 * configure.in: Use generic case for every system.
11535 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
11536 * config/mh-sysv: Use default handling, just add -DUSG.
11537
11538Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
11539
11540 * Makefile.in, config/mh-default: Re-do make magic
11541 so that for the default ("automatic") mode we only
11542 compile the files we actually need. Do this using
11543 a recursive make: The top-level generates the list
11544 of needed files (loosely, the ones missing in libc),
11545 and then passes that list to the recursive make.
11546 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
11547
11548Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
11549
11550 RS/6000 host support (grumble).
11551
11552 * configure.in: Build alloca-conf.h file from alloca-norm.h
11553 (everything else) or alloca-botch.h (rs/6000).
11554 * Makefile.in: Include . on the include path.
11555 * getopt.c: Use alloca-conf.h.
11556 * alloca-norm.h: How to declare alloca on reasonable machines.
11557 * alloca-botch.h: How to declare alloca on braindead machines.
11558
11559Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
11560
11561 * concat.c : New file, like concat() in gdb but can take a
11562 variable number of arguments rather than fixed at 3 args. For
11563 now, client applications must supply an xmalloc(), which is a
11564 front end function to malloc() that deals with out-of-memory
11565 conditions.
11566
11567 * Makefile.in: Add concat.c and concat.o to appropriate macros.
11568
11569Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
11570
11571 * config/mh-svr4: Add sigsetmask to list of required functions.
11572
11573Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
11574
11575 * vsprintf.c: New file.
11576 * functions.def, Makefile.in: Add vsprintf.
11577
11578Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
11579
11580 * configure.in, config/mh-rs6000: Add rs/6000 host support.
11581 * Makefile.in: Compile with debug info.
11582
11583Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
11584
11585 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11586 config/mf-default: Added a default configuration mode,
11587 which includes into libiberty.a functions that are "missing" in libc.
11588 * strdup.c, vprintf.c, vfprintf.c: New files.
11589
11590Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
11591
11592 * config/hmake-svr4: New file.
11593
11594 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11595
11596 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11597 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11598 files containing either portable C versions or emulations using
11599 native library calls.
11600
11601 * strerror.c: Add copyright, internal documentation, etc.
11602
11603 * strtol.c: Replace hardwired hex constants with some more
11604 portable macros. Remove illegal (according to gcc) cast.
11605
11606 * strtoul.c: Replace hardwired hex constant with more portable
11607 macro.
11608
11609 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11610 can override them. Add new source and object file names to CFILES
11611 and OFILES respectively.
11612
11613 * configure.in: Add support for SVR4 makefile fragments.
11614
11615Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
11616
11617 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11618 over-ridden by config/hmake-*
11619 * configure.in: added m88kcvs to sysv list
11620
11621Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
11622
11623 * Makefile.in: Most hosts need strerror, but one or two don't,
11624 and they override these definitions in the host-dependent makefile
11625 fragment.
11626 * config/hmake-mach: The odd man out on strerror -- it's supplied.
11627 * strerror.c: New file.
11628
11629 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
11630 it and bfd uses it.
11631 * configure.in, Makefile.in, config/hmake-mach: Only configure
11632 strtol & strotoul in on Mach.
11633
11634Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
11635
11636 * obstack.c: Merge with latest FSF version.
11637
11638\f
11639Local Variables:
11640version-control: never
11641End: