]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Make ARMv8-M attribute cmse_nonsecure_call work in Ada
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
cdc34229
GA
12022-11-15 Nathan Sidwell <nathan@acm.org>
2
3 * cp-demangle.c (struct d_print_info): Rename is_lambda_arg to
4 lambda_tpl_parms. Augment semantics.
5 (d_make_comp): Add checks for new components.
6 (d_template_parm, d_template_head): New.
7 (d_lambda): Add templated lambda support.
8 (d_print_init): Adjust.
9 (d_print_lambda_parm_name): New.
10 (d_print_comp_inner): Support templated lambdas,
11 * testsuite/demangle-expected: Add testcases.
12
83d400bd
GA
132022-11-14 Martin Liska <mliska@suse.cz>
14
15 Revert:
16 2022-11-14 Martin Liska <mliska@suse.cz>
17
18 * doc/bsd.rst: New file.
19 * doc/conf.py: New file.
20 * doc/copyright.rst: New file.
21 * doc/extensions.rst: New file.
22 * doc/function-variable-and-macro-listing.rst: New file.
23 * doc/index.rst: New file.
24 * doc/indices-and-tables.rst: New file.
25 * doc/introduction.rst: New file.
26 * doc/lesser-general-public-license-2.1.rst: New file.
27 * doc/overview.rst: New file.
28 * doc/replacement-functions.rst: New file.
29 * doc/supplemental-functions.rst: New file.
30 * doc/using.rst: New file.
31
322022-11-14 Martin Liska <mliska@suse.cz>
33
34 Revert:
35 2022-11-14 Martin Liska <mliska@suse.cz>
36
37 * Makefile.in: Support Sphinx based documentation.
38
392022-11-14 Martin Liska <mliska@suse.cz>
40
41 Revert:
42 2022-11-14 Martin Liska <mliska@suse.cz>
43
44 * at-file.texi: Removed.
45 * copying-lib.texi: Removed.
46 * functions.texi: Removed.
47 * libiberty.texi: Removed.
48 * obstacks.texi: Removed.
49
502022-11-14 Martin Liska <mliska@suse.cz>
51
52 Revert:
53 2022-11-14 Martin Liska <mliska@suse.cz>
54
55 * Makefile.in: Support --with-sphinx-build.
56 * configure.ac: Likewise.
57 * configure: Regenerate.
58
592022-11-14 Martin Liska <mliska@suse.cz>
60
61 Revert:
62 2022-11-14 Martin Liska <mliska@suse.cz>
63
64 * doc/bsd.rst:
65 Add trailing newline.
66 * doc/copyright.rst:
67 Add trailing newline.
68 * doc/extensions.rst:
69 Add trailing newline.
70 * doc/function-variable-and-macro-listing.rst:
71 Add trailing newline.
72 * doc/index.rst:
73 Add trailing newline.
74 * doc/indices-and-tables.rst:
75 Add trailing newline.
76 * doc/introduction.rst:
77 Add trailing newline.
78 * doc/lesser-general-public-license-2.1.rst:
79 Add trailing newline.
80 * doc/overview.rst:
81 Add trailing newline.
82 * doc/replacement-functions.rst:
83 Add trailing newline.
84 * doc/supplemental-functions.rst:
85 Add trailing newline.
86 * doc/using.rst:
87 Add trailing newline.
88
892022-11-14 Martin Liska <mliska@suse.cz>
90
91 Revert:
92 2022-11-14 Martin Liska <mliska@suse.cz>
93
94 * doc/conf.py: Add newline at last line.
95
962022-11-14 Martin Liska <mliska@suse.cz>
97
98 Revert:
99 2022-11-14 Martin Liska <mliska@suse.cz>
100
101 PR other/107620
102 * configure: Regenerate.
103 * configure.ac: Always set sphinx-build.
104
eefbfbc7
GA
1052022-11-13 Martin Liska <mliska@suse.cz>
106
107 PR other/107620
108 * configure: Regenerate.
109 * configure.ac: Always set sphinx-build.
110
f225b813
GA
1112022-11-10 Martin Liska <mliska@suse.cz>
112
113 * doc/conf.py: Add newline at last line.
114
1cdfd0e5
GA
1152022-11-09 Martin Liska <mliska@suse.cz>
116
117 * doc/bsd.rst:
118 Add trailing newline.
119 * doc/copyright.rst:
120 Add trailing newline.
121 * doc/extensions.rst:
122 Add trailing newline.
123 * doc/function-variable-and-macro-listing.rst:
124 Add trailing newline.
125 * doc/index.rst:
126 Add trailing newline.
127 * doc/indices-and-tables.rst:
128 Add trailing newline.
129 * doc/introduction.rst:
130 Add trailing newline.
131 * doc/lesser-general-public-license-2.1.rst:
132 Add trailing newline.
133 * doc/overview.rst:
134 Add trailing newline.
135 * doc/replacement-functions.rst:
136 Add trailing newline.
137 * doc/supplemental-functions.rst:
138 Add trailing newline.
139 * doc/using.rst:
140 Add trailing newline.
141
1422022-11-09 Martin Liska <mliska@suse.cz>
143
144 * Makefile.in: Support --with-sphinx-build.
145 * configure.ac: Likewise.
146 * configure: Regenerate.
147
1482022-11-09 Martin Liska <mliska@suse.cz>
149
150 * at-file.texi: Removed.
151 * copying-lib.texi: Removed.
152 * functions.texi: Removed.
153 * libiberty.texi: Removed.
154 * obstacks.texi: Removed.
155
1562022-11-09 Martin Liska <mliska@suse.cz>
157
158 * Makefile.in: Support Sphinx based documentation.
159
1602022-11-09 Martin Liska <mliska@suse.cz>
161
162 * doc/bsd.rst: New file.
163 * doc/conf.py: New file.
164 * doc/copyright.rst: New file.
165 * doc/extensions.rst: New file.
166 * doc/function-variable-and-macro-listing.rst: New file.
167 * doc/index.rst: New file.
168 * doc/indices-and-tables.rst: New file.
169 * doc/introduction.rst: New file.
170 * doc/lesser-general-public-license-2.1.rst: New file.
171 * doc/overview.rst: New file.
172 * doc/replacement-functions.rst: New file.
173 * doc/supplemental-functions.rst: New file.
174 * doc/using.rst: New file.
175
21de009f
GA
1762022-10-18 Florian Weimer <fweimer@redhat.com>
177
178 * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
179 int return type and parameter list to the definition of main.
180 Include <stdlib.h> and <string.h> for prototypes.
181 (ac_cv_c_stack_direction): Add missing
182 int return type and parameter list to the definitions of
183 main, find_stack_direction. Include <stdlib.h> for exit
184 prototype.
185 * configure: Regenerate.
186
baeec7cc
GA
1872022-10-14 Jakub Jelinek <jakub@redhat.com>
188
189 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
190 * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
191 entry.
192 (cplus_demangle_type): Demangle DF16b.
193 * testsuite/demangle-expected (_Z3xxxDF16b): New test.
194
ab332cd7
GA
1952022-10-11 Nathan Sidwell <nathan@acm.org>
196
197 * cp-demangle.c (d_prefix): 'M' components are not
198 (re-)added to the substitution table.
199 * testsuite/demangle-expected: Add tests.
200
9ff6c33e
GA
2012022-10-07 Nathan Sidwell <nathan@acm.org>
202
203 * cp-demangle.c (d_print_comp_inner): Allow parameter packs
204 in a lambda signature.
205 * testsuite/demangle-expected: Add tests.
206
1f16a020
GA
2072022-09-27 Jakub Jelinek <jakub@redhat.com>
208
209 PR c++/106652
210 PR c++/85518
211 * cp-demangle.c (d_dump): Handle
212 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Don't handle
213 DEMANGLE_COMPONENT_FIXED_TYPE.
214 (d_make_extended_builtin_type): New function.
215 (cplus_demangle_builtin_types): Add _Float entry.
216 (cplus_demangle_type): For DF demangle it as _Float<N> or
217 _Float<N>x rather than fixed point which conflicts with it.
218 (d_count_templates_scopes): Handle
219 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Just break; for
220 DEMANGLE_COMPONENT_FIXED_TYPE.
221 (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
222 Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
223 (d_print_comp_inner): Likewise.
224 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
225 * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
226 with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb. Add
227 _Z3xxxDF32xDF64xDF128xCDF32xVb test.
228
279c6715
GA
2292022-09-22 Jonathan Wakely <jwakely@redhat.com>
230
231 * README: Replace gcc-bugs email address with Bugzilla URL.
232
5d4389dc
GA
2332022-08-25 Martin Liska <mliska@suse.cz>
234
235 * configure: Regenerate.
236
b563a8dd
GA
2372022-07-22 Martin Liska <mliska@suse.cz>
238
239 PR other/106370
240 * _doprnt.c: Remove continue as last stmt
241 in a loop.
242
e0e07bc7
GA
2432022-07-14 Martin Liska <mliska@suse.cz>
244
245 * functions.texi: Replace strtoul with strtoull.
246
8467574d
GA
2472022-07-04 Nick Clifton <nickc@redhat.com>
248
249 * rust-demangle.c (demangle_const): Add a missing goto pass_return
250 at the end of the function.
251
2522022-07-04 Nick Clifton <nickc@redhat.com>
253
254 * rust-demangle.c (demangle_path_maybe_open_generics): Add
255 recursion limit.
256
ed974488
GA
2572022-07-01 Nick Clifton <nickc@redhat.com>
258
259 PR demangler/105039
260 * rust-demangle.c (demangle_const): Add recursion limit.
261
b2b72757
GA
2622022-06-26 Simon Marchi <simon.marchi@efficios.com>
263
264 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
265 * configure: Re-generate.
266
168fc8bd
GA
2672022-05-23 Nathan Sidwell <nathan@acm.org>
268
269 * cp-demangle.c (d_make_comp): Adjust.
270 (d_name, d_prefix): Adjust subst handling. Add module handling.
271 (d_maybe_module_name): New.
272 (d_unqualified_name): Add incoming module parm. Handle it. Adjust all callers.
273 (d_special_name): Add 'GI' support.
274 (d_count_template_scopes): Adjust.
275 (d_print_comp_inner): Print module.
276 * testsuite/demangle-expected: New test cases
277
1cda629f
GA
2782022-05-18 Nathan Sidwell <nathan@acm.org>
279
280 * cp-demangle.c (d_name): Add SUBSTABLE parameter,
281 push substitution if requested. Adjust unscoped name handling.
282 (d_prefix): Reorder main loop. Adjust all calls.
283 (d_unqualified_name): Add SCOPE parameter, create qualified
284 name here. Adjust all calls.
285 (cplus_demangle_type): Do not handle 'S' here, leave all
286 to d_class_enum_type.
287 (d_class_enum_type): Add SUBSTABLE parameter.
288
3d9439b1
GA
2892022-05-17 Nathan Sidwell <nathan@acm.org>
290
291 * cp-demangle.c (d_make_comp): Adjust.
292 (d_unqualified_name): Add 'DC' support.
293 (d_count_template_scopes): Adjust.
294 (d_print_comp_inner): Add structured binding.
295 * testsuite/demangle-expected: Add testcases.
296
e8778989
GA
2972022-05-10 Martin Liska <mliska@suse.cz>
298
299 * regex.c: Restore comments.
300
3012022-05-10 Martin Liska <mliska@suse.cz>
302 Alan Modra <amodra@gmail.com>
303
304 * hashtab.c (htab_empty): Use void * type instead of void **.
305 (htab_expand): Likewise.
306
3072022-05-10 Martin Liska <mliska@suse.cz>
308
309 * random.c: Remove 'define PTR'.
310
3112022-05-10 Martin Liska <mliska@suse.cz>
312
313 * alloca.c (C_alloca): Use void * instead PTR.
314 * calloc.c (malloc): Likewise.
315 (bzero): Likewise.
316 (calloc): Likewise.
317 * hashtab.c (find_empty_slot_for_expand): Likewise.
318 (eq_pointer): Likewise.
319 (htab_create_alloc_ex): Likewise.
320 (htab_create_typed_alloc): Likewise.
321 (htab_set_functions_ex): Likewise.
322 (htab_delete): Likewise.
323 (htab_empty): Likewise.
324 (htab_expand): Likewise.
325 (htab_find_with_hash): Likewise.
326 (htab_find): Likewise.
327 (htab_find_slot_with_hash): Likewise.
328 (htab_find_slot): Likewise.
329 (htab_remove_elt): Likewise.
330 (htab_remove_elt_with_hash): Likewise.
331 (htab_clear_slot): Likewise.
332 (htab_traverse_noresize): Likewise.
333 (htab_traverse): Likewise.
334 (htab_hash_string): Likewise.
335 (iterative_hash): Likewise.
336 (hash_pointer): Likewise.
337 * memchr.c (memchr): Likewise.
338 * memcmp.c (memcmp): Likewise.
339 * memcpy.c (memcpy): Likewise.
340 * memmove.c (memmove): Likewise.
341 * mempcpy.c (memcpy): Likewise.
342 (mempcpy): Likewise.
343 * memset.c (memset): Likewise.
344 * objalloc.c (malloc): Likewise.
345 (free): Likewise.
346 (objalloc_create): Likewise.
347 (_objalloc_alloc): Likewise.
348 (objalloc_free_block): Likewise.
349 * random.c (PTR): Likewise.
350 (void): Likewise.
351 (initstate): Likewise.
352 (setstate): Likewise.
353 * regex.c: Likewise.
354 * spaces.c (malloc): Likewise.
355 (free): Likewise.
356 * stpcpy.c (memcpy): Likewise.
357 * strdup.c (malloc): Likewise.
358 (memcpy): Likewise.
359 * strerror.c (malloc): Likewise.
360 (memset): Likewise.
361 * strndup.c (malloc): Likewise.
362 (memcpy): Likewise.
363 * strsignal.c (malloc): Likewise.
364 (memset): Likewise.
365 * vasprintf.c (malloc): Likewise.
366 * vprintf-support.c: Likewise.
367 * xatexit.c (malloc): Likewise.
368 * xmalloc.c (xmalloc): Likewise.
369 (xcalloc): Likewise.
370 (xrealloc): Likewise.
371 * xmemdup.c (xmemdup): Likewise.
372
d7f00da1
GA
3732022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
374
375 * floatformat.c (floatformat_ieee_quad_big): Renamed from
376 floatformat_ia64_quad_big.
377 (floatformat_ieee_quad_little): Similarly.
378
2cfb33fc
GA
3792022-02-22 Jakub Jelinek <jakub@redhat.com>
380
381 PR lto/104617
382 * simple-object-elf.c (simple_object_elf_match): Fix up URL
383 in comment.
384 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
385 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
386 range (inclusive).
387
0bdb0498
GA
3882022-02-17 Mark Wielaard <mark@klomp.org>
389
390 * rust-demangle.c (rust_demangle_callback): Ignore everything
391 after '.' char in sym for v0. For legacy symbols search
392 backwards to find the last 'E' before any '.'.
393 * testsuite/rust-demangle-expected: Add new .suffix testcases.
394
1bb52662
GA
3952022-01-31 Nick Clifton <nickc@redhat.com>
396
397 PR demangler/98886
398 PR demangler/99935
399 * rust-demangle.c (struct rust_demangler): Add a recursion
400 counter.
401 (demangle_path): Increment/decrement the recursion counter upon
402 entry and exit. Fail if the counter exceeds a fixed limit.
403 (demangle_type): Likewise.
404 (rust_demangle_callback): Initialise the recursion counter,
405 disabling if requested by the option flags.
406
9248ee41
GA
4072022-01-15 Martin Sebor <msebor@redhat.com>
408
409 * regex.c: Suppress -Wuse-after-free.
410
84790a9d
GA
4112021-12-30 Lancelot SIX <lsix@lancelotsix.com>
412
413 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
414 names.
415 * testsuite/demangle-expected: Check demangling of clone symbols
416 with digits in name.
417
774269aa
GA
4182021-12-16 H.J. Lu <hjl.tools@gmail.com>
419
420 Revert:
421 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
422
423 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
424 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
425 (configure_deps): Depend on ../config/gcc-plugin.m4.
426 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
427 RANLIB_PLUGIN_OPTION.
428 * aclocal.m4: Regenerated.
429 * configure: Likewise.
430
8a89c39b
GA
4312021-12-15 H.J. Lu <hjl.tools@gmail.com>
432
433 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
434 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
435 (configure_deps): Depend on ../config/gcc-plugin.m4.
436 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
437 RANLIB_PLUGIN_OPTION.
438 * aclocal.m4: Regenerated.
439 * configure: Likewise.
440
87cd82c8
GA
4412021-11-29 Eric Gallager <egallager@gcc.gnu.org>
442
443 PR other/103021
444 * Makefile.in: Use ETAGS variable in TAGS target.
445 * configure: Regenerate.
446 * configure.ac: Allow ETAGS variable to be overridden.
447
4482021-11-29 Andrew Pinski <apinski@marvell.com>
449
450 * make-temp-file.c (try_dir): Check to see if the dir
451 is actually a directory.
452
c2bd5d8a
GA
4532021-10-22 Eric Gallager <egallager@gcc.gnu.org>
454
455 PR other/102663
456 * Makefile.in: Allow dvi-formatted documentation
457 to be installed.
458
f5b37435
GA
4592021-10-17 Luís Ferreira <contact@lsferreira.net>
460
461 PR d/102618
462 * d-demangle.c (dlang_parse_qualified): Handle anonymous
463 symbols correctly.
464 * testsuite/d-demangle-expected: New tests to cover anonymous
465 symbols.
466
5d5885c9
GA
4672021-10-14 Luís Ferreira <contact@lsferreira.net>
468
469 * testsuite/d-demangle-expected: Add test case for function literals.
470
4712021-10-14 Luís Ferreira <contact@lsferreira.net>
472
473 * testsuite/d-demangle-expected: Add test cases for simple special
474 mangles.
475
52055987
GA
4762021-10-12 Luís Ferreira <contact@lsferreira.net>
477
478 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
479 around lhs and rhs of assignments.
480
9d116bcc
GA
4812021-10-01 Luís Ferreira <contact@lsferreira.net>
482
483 * testsuite/d-demangle-expected: Add missing format for new test
484
391b23e0
GA
4852021-09-23 Luís Ferreira <contact@lsferreira.net>
486
487 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
488 * testsuite/d-demangle-expected: New test.
489
4902021-09-23 Luís Ferreira <contact@lsferreira.net>
491
492 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
493 string is less than length computed by dlang_number.
494
e11c6046
GA
4952021-09-01 Iain Sandoe <iain@sandoe.co.uk>
496
497 * configure: Regenerate.
498 * configure.ac: Do not search for sbrk on Darwin.
499 * xmalloc.c: Do not declare sbrk unless it has been found
500 by configure.
501
1e77fd4f
GA
5022021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
503
504 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
505 * testsuite/d-demangle-expected: Add tests.
506
5072021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
508
509 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
510 (dlang_parse_assocarray): Likewise.
511 (dlang_parse_structlit): Likewise.
512 (dlang_value): Likewise. Handle function literal symbols.
513 (dlang_template_args): Pass 'info' to dlang_value.
514 * testsuite/d-demangle-expected: Add new test.
515
5162021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
517
518 * d-demangle.c (dlang_attributes): Handle typeof(*null).
519 (dlang_type): Likewise. Demangle 'n' as typeof(null).
520 * testsuite/d-demangle-expected: Update tests.
521
38b19c5b
GA
5222021-08-23 Iain Sandoe <iain@sandoe.co.uk>
523
524 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
525 Cast the first argument to set_32 as needed.
526
6e529985
GA
5272021-08-18 Iain Sandoe <iain@sandoe.co.uk>
528
529 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
530 Arrange to swap the LTO index tables where needed.
531
25b6bfea
GA
5322021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
533
534 * make-temp-file.c (usrtmp): Remove.
535 (choose_tmpdir): Remove use of usrtmp.
536
c8abc205
GA
5372021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
538
539 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
540
5412021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
542 David Faust <david.faust@oracle.com>
543 Jose E. Marchesi <jose.marchesi@oracle.com>
544 Weimin Pan <weimin.pan@oracle.com>
545
546 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
547 sections.
548
28c62475
GA
5492021-06-05 John David Anglin <danglin@gcc.gnu.org>
550
551 PR target/100734
552 * configure.ac: Use libiberty snprintf and vsnprintf on
553 hppa*-*-hpux*.
554 * configure: Regenerate.
555
cfe82a0c
GA
5562021-05-06 Tom Tromey <tom@tromey.com>
557
558 * hashtab.c (htab_eq_string): New function.
559
99e8df7a
GA
5602021-05-04 Eric Botcazou <ebotcazou@adacore.com>
561
562 * configure.ac: Make test for variables more robust.
563 * configure: Regenerate.
564
e690396d
GA
5652021-05-03 H.J. Lu <hjl.tools@gmail.com>
566
567 PR bootstrap/99703
568 * configure: Regenerated.
569
c1ef0c92
GA
5702021-04-21 Andreas Schwab <schwab@linux-m68k.org>
571
572 PR demangler/100177
573 * rust-demangle.c (demangle_const_char): Properly print the
574 character value.
575
95d217ab
GA
5762021-03-31 Patrick Palka <ppalka@redhat.com>
577
578 PR c++/88115
579 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
580 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
581 (d_print_comp_inner): Likewise.
582 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
583 change.
584 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
585 * testsuite/demangle-expected: Adjust __alignof__ tests.
586
bc212776
GA
5872021-03-16 Nick Clifton <nickc@redhat.com>
588
589 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
590
b2a55caf
GA
5912021-02-20 Mike Frysinger <vapier@gentoo.org>
592
593 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
594 (configure_deps): Rename to ...
595 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
596 ($(srcdir)/configure): Replace $(configure_deps) with
597 $(srcdir)/aclocal.m4.
598 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
599 * acinclude.m4: New file.
600 * configure: Regenerate.
601
50352c6c
GA
6022021-02-19 Ayush Mittal <ayush.m@samsung.com>
603
604 * argv.c (expandargv): free allocated buffer if read fails.
605
f7884fb1
GA
6062021-02-01 Martin Sebor <msebor@redhat.com>
607
608 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
609 to avoid -Wstringop-truncation.
610
7e73f511
GA
6112021-01-04 Martin Liska <mliska@suse.cz>
612
613 * strverscmp.c: Convert to utf8 from iso8859.
614
077fefbf
GA
6152020-12-22 Jason Merrill <jason@redhat.com>
616
617 PR c++/67343
618 * cp-demangle.h (struct d_info): Add unresolved_name_state.
619 * cp-demangle.c (d_prefix): Add subst parm.
620 (d_nested_name): Pass it.
621 (d_unresolved_name): Split out from...
622 (d_expression_1): ...here.
623 (d_demangle_callback): Maybe retry with old sr mangling.
624 * testsuite/demangle-expected: Add test.
625
1a5e728a
GA
6262020-12-21 Jason Merrill <jason@redhat.com>
627
628 * cp-demangle.c (d_expression_1): Recognize qualified-id
629 on RHS of dt/pt.
630 * testsuite/demangle-expected: Add test.
631
6322020-12-21 Jason Merrill <jason@redhat.com>
633
634 * cp-demangle.c (d_unqualified_name): Clear is_expression.
635 * testsuite/demangle-expected: Add tests.
636
360258da
GA
6372020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
638
639 * configure: Regenerate.
640 * configure.ac: Avoid using sanitizer.
641
77f67db2
GA
6422020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
643
644 * rust-demangle.c (struct rust_demangler): Add
645 skipping_printing and bound_lifetime_depth fields.
646 (eat): Add (v0-only).
647 (parse_integer_62): Add (v0-only).
648 (parse_opt_integer_62): Add (v0-only).
649 (parse_disambiguator): Add (v0-only).
650 (struct rust_mangled_ident): Add punycode{,_len} fields.
651 (parse_ident): Support v0 identifiers.
652 (print_str): Respect skipping_printing.
653 (print_uint64): Add (v0-only).
654 (print_uint64_hex): Add (v0-only).
655 (print_ident): Respect skipping_printing,
656 Support v0 identifiers.
657 (print_lifetime_from_index): Add (v0-only).
658 (demangle_binder): Add (v0-only).
659 (demangle_path): Add (v0-only).
660 (demangle_generic_arg): Add (v0-only).
661 (demangle_type): Add (v0-only).
662 (demangle_path_maybe_open_generics): Add (v0-only).
663 (demangle_dyn_trait): Add (v0-only).
664 (demangle_const): Add (v0-only).
665 (demangle_const_uint): Add (v0-only).
666 (basic_type): Add (v0-only).
667 (rust_demangle_callback): Support v0 symbols.
668 * testsuite/rust-demangle-expected: Add v0 testcases.
669
6702020-11-13 Seija Kijin <doremylover456@gmail.com>
671
672 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
673
0f5f9ed5
GA
6742020-11-11 Patrick Palka <ppalka@redhat.com>
675
676 PR c++/88115
677 * cp-demangle.c (d_print_comp_inner)
678 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
679 "operator " prefix for __alignof__.
680 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
681 operand of __alignof__.
682 * testsuite/demangle-expected: Test demangling for __alignof__.
683
2bee28dd
GA
6842020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
685
686 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
687
8e97b905
GA
6882020-10-06 Martin Liska <mliska@suse.cz>
689
690 PR lto/97290
691 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
692 Use sh_link of a .symtab_shndx section.
693
a2b7397b
GA
6942020-09-24 Mark Wielaard <mark@klomp.org>
695
696 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
697 and DW_UT_END.
698
31a05046
GA
6992020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
700
701 * floatformat.c (floatformat_bfloat16_big): New.
702 (floatformat_bfloat16_little): New.
703
7042020-09-08 Alan Modra <amodra@gmail.com>
705
706 * d-demangle.c: Include limits.h.
707 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
708 (dlang_number): Simplify and correct overflow test. Only
709 write *ret on returning non-NULL. Make "ret" an unsigned long*.
710 Only succeed for result of [0,UINT_MAX].
711 (dlang_decode_backref): Simplify and correct overflow test.
712 Only write *ret on returning non-NULL. Only succeed for
713 result [1,MAX_LONG].
714 (dlang_backref): Remove now unnecessary range check.
715 (dlang_symbol_name_p): Likewise.
716 (string_need): Take a size_t n arg, and use size_t tem.
717 (string_append): Use size_t n.
718 (string_appendn, string_prependn): Take a size_t n arg.
719 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
720 (dlang_lname, dlang_parse_template): Take an unsigned long len
721 arg.
722 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
723 (dlang_parse_integer, dlang_parse_string),
724 (dlang_parse_arrayliteral, dlang_parse_assocarray),
725 (dlang_parse_structlit, dlang_parse_tuple),
726 (dlang_template_symbol_param, dlang_template_args): Use
727 unsigned long variables.
728 * testsuite/d-demangle-expected: Add new tests.
729
57ea0894
GA
7302020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
731
732 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
733 parameter storage classes.
734 (dlang_type): Remove identifier type.
735 * testsuite/d-demangle-expected: Update tests.
736
6a1ad710
GA
7372020-08-03 Richard Biener <rguenther@suse.de>
738
739 PR lto/96385
740 * simple-object-elf.c
741 (simple_object_elf_copy_lto_debug_sections): Localize global
742 UNDEFs and reuse the prevailing name.
743
d48cca8f
GA
7442020-07-30 H.J. Lu <hjl.tools@gmail.com>
745
746 PR bootstrap/96202
747 * configure: Regenerated.
748
8ca07a30
GA
7492020-07-14 Ian Lance Taylor <iant@golang.org>
750
751 PR demangler/96143
752 * cp-demangle.c (d_lambda): Don't add substitution candidate.
753 * testsuite/demangle-expected: Update a few existing test cases
754 accordingly, and add a new test case.
755
86536295
GA
7562020-07-10 Jason Merrill <jason@redhat.com>
757
758 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
759 (d_expression_1): Handle di and dX.
760 (is_designated_init, d_maybe_print_designated_init): New.
761 (d_print_comp_inner): Use d_maybe_print_designated_init.
762 * testsuite/demangle-expected: Add designator tests.
763
c9c05f73
GA
7642020-06-26 Nick Clifton <nickc@redhat.com>
765
766 * bsearch.c (bsearch): Remove use of register keyword.
767 * bsearch_r.c (bsearch_r): Likewise.
768
4543acc8
GA
7692020-06-23 Nick Alcock <nick.alcock@oracle.com>
770
771 * bsearch_r.c: New file.
772 * Makefile.in (CFILES): Add bsearch_r.c.
773 (REQUIRED_OFILES): Add bsearch_r.o.
774 * functions.texi: Regenerate.
775
885ef72f
GA
7762020-05-29 H.J. Lu <hjl.tools@gmail.com>
777
778 PR bootstrap/95413
779 * configure: Regenerated.
780
3a55774f
IB
7812020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
782
783 * d-demangle.c (dlang_attributes): Add @live attribute.
784 * testsuite/d-demangle-expected: Add new tests.
785
3f30a274
IB
7862020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
787 Iain Buclaw <ibuclaw@gdcproject.org>
788
789 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
790 (struct dlang_info): New struct
791 (dlang_decode_backref): New function.
792 (dlang_backref): New function.
793 (dlang_symbol_backref): New function.
794 (dlang_type_backref): New function.
795 (dlang_symbol_name_p): New function.
796 (dlang_function_type_noreturn): New function.
797 (dlang_function_type): Add 'info' parameter. Decode function type
798 with dlang_function_type_noreturn.
799 (dlang_function_args): Add 'info' parameter.
800 (dlang_type): Add 'info' parameter. Handle back referenced types.
801 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
802 referenced symbols. Split off decoding of plain identifiers to...
803 (dlang_lname): ...here.
804 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
805 function type and return with dlang_type.
806 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
807 'suffix_modifier' parameter. Decode function type with
808 dlang_function_type_noreturn.
809 (dlang_parse_tuple): Add 'info' parameter.
810 (dlang_template_symbol_param): New function.
811 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
812 with dlang_template_symbol_param. Handle back referenced values, and
813 externally mangled parameters.
814 (dlang_parse_template): Add 'info' parameter.
815 (dlang_demangle_init_info): New function.
816 (dlang_demangle): Initialize and pass 'info' parameter.
817 * testsuite/d-demangle-expected: Add new tests.
818
d17cdc17
L
8192020-05-12 H.J. Lu <hongjiu.lu@intel.com>
820
821 PR bootstrap/94998
822 * configure: Regenerated.
823
eedc73a2
L
8242020-04-28 H.J. Lu <hongjiu.lu@intel.com>
825
826 PR bootstrap/94739
827 * configure: Regenerated.
828
76458c91
JJ
8292020-04-27 Jakub Jelinek <jakub@redhat.com>
830
831 PR demangler/94797
832 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
833 * testsuite/demangle-expected: Add operator<=> test.
834
8fc8bf80
L
8352020-04-25 H.J. Lu <hongjiu.lu@intel.com>
836
837 PR bootstrap/94739
838 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
839 (configure_deps): Add $(srcdir)/../config/cet.m4 and
840 $(srcdir)/../config/enable.m4.
841 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
842 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
843 AC_SUBST(CET_HOST_FLAGS).
844 * configure: Regenerated.
845
c9f90a25
RB
8462020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
847
848 * simple-object.c (handle_lto_debug_sections): Name
849 ".GCC.command.line" among debug sections to be copied over
850 from lto objects.
851
3bb6abbf
NC
8522020-03-02 Nick Clifton <nickc@redhat.com>
853
854 * testsuite/demangle-expected: Update expected demangling of
855 enable_if pattern.
856
57735060
L
8572020-03-02 H.J. Lu <hongjiu.lu@intel.com>
858
859 PR lto/93966
860 * simple-object.c (handle_lto_debug_sections): Also copy
861 .note.gnu.property section.
862
02ce382c
SL
8632020-02-12 Sandra Loosemore <sandra@codesourcery.com>
864
865 PR libstdc++/79193
866 PR libstdc++/88999
867
868 * configure: Regenerated.
869
5f44a434
AB
8702020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
871
872 * hashtab.c (htab_remove_elt): Make a parameter const.
873 (htab_remove_elt_with_hash): Likewise.
874
18193e8f
AO
8752020-01-23 Alexandre Oliva <oliva@adacore.com>
876
877 * argv.c (writeargv): Output empty args as "".
878
8d9254fc
JJ
8792020-01-01 Jakub Jelinek <jakub@redhat.com>
880
881 Update copyright years.
882
1cd4fe3d
TR
8832019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
884
885 * make-relative-prefix.c (split_directories):
886 Return early on empty 'name'
887
513e0aa0
JL
8882019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
889
890 * cp-demangle.c (d_print_init): Remove const from 4th param.
891 (cplus_demangle_fill_name): Initialize d->d_counting.
892 (cplus_demangle_fill_extended_operator): Likewise.
893 (cplus_demangle_fill_ctor): Likewise.
894 (cplus_demangle_fill_dtor): Likewise.
895 (d_make_empty): Likewise.
896 (d_count_templates_scopes): Remobe const from 3rd param,
897 Return on dc->d_counting > 1,
898 Increment dc->d_counting.
899 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
900 (cplus_demangle_fill_builtin_type): Likewise.
901 (cplus_demangle_fill_operator): Likewise.
902
9032019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
32fc3719
EMB
904
905 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
906 (rust_demangle): Remove.
907 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
908 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
909 (parse_legacy_escape): Rename to decode_legacy_escape.
910 (rust_is_mangled): Remove.
911 (struct rust_demangler): Add.
912 (peek): Add.
913 (next): Add.
914 (struct rust_mangled_ident): Add.
915 (parse_ident): Add.
916 (rust_demangle_sym): Remove.
917 (print_str): Add.
918 (PRINT): Add.
919 (print_ident): Add.
920 (rust_demangle_callback): Add.
921 (struct str_buf): Add.
922 (str_buf_reserve): Add.
923 (str_buf_append): Add.
924 (str_buf_demangle_callback): Add.
925 (rust_demangle): Add.
926 * rust-demangle.h: Remove.
927
f73cb38f
MS
9282019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
929
930 * testsuite/demangle-expected: Fix test.
931
e0c866dd
KK
9322019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
933
934 * cp-demangle.c (d_expr_primary): Handle
935 nullptr demangling.
936 * testsuite/demangle-expected: Added test.
937
1c40e119
PP
9382019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
939
940 * cp-demangle.c (d_number): Avoid signed int overflow.
941
420fb10c
MS
9422019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
943
944 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
945 and `imaginary`, as opposed to after.
946 * testsuite/demangle-expected: Adjust test.
947
e1cb00db
EMB
9482019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
949
950 * rust-demangle.c (looks_like_rust): Remove.
951 (rust_is_mangled): Don't check escapes.
952 (is_prefixed_hash): Allow 0-9a-f permutations.
953 (rust_demangle_sym): Don't bail on unknown escapes.
954 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
955
42bf58bb
EMB
9562019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
957
958 * rust-demangle.c (unescape): Remove.
959 (parse_lower_hex_nibble): New function.
960 (parse_legacy_escape): New function.
961 (is_prefixed_hash): Use parse_lower_hex_nibble.
962 (looks_like_rust): Use parse_legacy_escape.
963 (rust_demangle_sym): Use parse_legacy_escape.
964 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
965
d23db385
ML
9662019-08-27 Martin Liska <mliska@suse.cz>
967
968 PR lto/91478
969 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
970 First find a WEAK HIDDEN symbol in symbol table that will be
971 preserved. Later, use the symbol name for all removed symbols.
972
8f88e7f6
ML
9732019-08-12 Martin Liska <mliska@suse.cz>
974
975 * Makefile.in: Add filedescriptor.c.
976 * filedescriptor.c: New file.
977 * lrealpath.c (is_valid_fd): Remove.
978
0fddb184
ML
9792019-08-08 Martin Liska <mliska@suse.cz>
980
981 PR bootstrap/91352
982 * lrealpath.c (is_valid_fd): New function.
983
70121844
ML
9842019-07-24 Martin Liska <mliska@suse.cz>
985
986 PR lto/91228
987 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
988 Find first '\0' starting from gnu_lto + 1.
989
b1bc0f50
RK
9902019-07-12 Ren Kimura <rkx1209dev@gmail.com>
991
992 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
993 This fixes a Bug 90924.
994
a861990d
ML
9952019-07-22 Martin Liska <mliska@suse.cz>
996
997 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
998 Do not search for gnu_lto_v1, but search for first '\0'.
999
979526c9
EMB
10002019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1001
1002 * cplus-dem.c: Include rust-demangle.h.
1003 * rust-demangle.c: Include rust-demangle.h.
1004 * rust-demangle.h: New file.
1005
2a1c064a
MF
10062019-05-31 Michael Forney <mforney@mforney.org>
1007
1008 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
1009 is non-zero.
1010
927e42fd
B
10112019-04-30 Ben L <bobsayshilol@live.co.uk>
1012
6c8dbbfe
B
1013 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1014 * testsuite/d-demangle-expected: Add testcase.
1015
f181b8e7
B
1016 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1017 * testsuite/d-demangle-expected: Add testcase.
1018
dba20a51
B
1019 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1020 * testsuite/d-demangle-expected: Add testcase.
1021
80b1ab15
B
1022 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1023 * testsuite/d-demangle-expected: Add testcase.
1024
81adfd10
B
1025 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1026 * testsuite/d-demangle-expected: Add testcase.
1027
80024f31
B
1028 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1029 * testsuite/demangle-expected: Add testcase.
1030
927e42fd
B
1031 * cp-demangle.c (d_encoding): Guard against NULL return values from
1032 d_right (dc).
1033 * testsuite/demangle-expected: Add testcase.
1034
956bea2c
B
10352019-04-29 Ben L <bobsayshilol@live.co.uk>
1036
1037 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
1038 char is valid.
1039 * testsuite/demangle-expected: Add testcase.
1040
6fe6bd7c
NC
10412019-04-10 Nick Clifton <nickc@redhat.com>
1042
1043 PR 89394
1044 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
1045 lengths.
1046 (d_count_templates_scopes): Replace num_templates and num_scopes
1047 parameters with a struct d_print_info pointer parameter. Adjust
1048 body of the function accordingly. Add recursion counter and check
1049 that the recursion limit is not reached.
1050 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
1051 Reset recursion counter afterwards, unless the recursion limit was
1052 reached.
1053
6d31ef2a
AM
10542019-04-07 Alan Modra <amodra@gmail.com>
1055
1056 * functions.texi: Regenerate.
1057
62de703f
JM
10582019-03-14 Jason Merrill <jason@redhat.com>
1059 Jakub Jelinek <jakub@redhat.com>
1060
1061 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
1062 than if *slot is HTAB_EMPTY_ENTRY.
1063
f9f75f8d
PW
10642019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1065
1066 * splay-tree.c (splay_tree_insert): Also release old KEY in case
1067 of insertion of a key equal to an already present key.
1068 (splay_tree_new_typed_alloc): Update comment.
1069
4293cd6e
NF
10702019-01-22 Nidal Faour <nidal.faour@wdc.com>
1071
1072 PR lto/88422
1073 * simple-object.c (O_BINARY): Define if not already defined.
1074 (simple_object_copy_lto_debug_sections): Create file in binary
1075 mode.
1076
2197ea17
TT
10772019-01-21 Tom Tromey <tom@tromey.com>
1078
1079 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1080
2d91f79d
TH
10812019-01-14 Tom Honermann <tom@honermann.net>
1082
1083 * cp-demangle.c (cplus_demangle_builtin_types)
1084 (cplus_demangle_type): Add name demangling for char8_t (Du).
1085 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
1086 new char8_t type.
1087
adcb167e
SL
10882019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1089
1090 PR other/16615
1091
1092 * cp-demangle.c: Mechanically replace "can not" with "cannot".
1093 * floatformat.c: Likewise.
1094 * strerror.c: Likewise.
1095
a5544970
JJ
10962019-01-01 Jakub Jelinek <jakub@redhat.com>
1097
1098 Update copyright years.
1099
6c8120c5
JM
11002018-12-22 Jason Merrill <jason@redhat.com>
1101
1102 Remove support for demangling GCC 2.x era mangling schemes.
1103 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1104 internal_cplus_demangle, and all subroutines.
1105 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1106 Lucid, ARM, HP, and EDG demangling styles.
1107 (cplus_demangle): Remove 'work' variable. Don't call
1108 internal_cplus_demangle.
1109
e96d1d8c
NC
11102018-12-07 Nick Clifton <nickc@redhat.com>
1111
1112 PR 87681
1113 PR 87675
1114 PR 87636
1115 PR 87350
1116 PR 87335
1117 * cp-demangle.h (struct d_info): Add recursion_level field.
1118 * cp-demangle.c (d_function_type): Add recursion counter.
1119 If the recursion limit is reached and the check is not disabled,
1120 then return with a failure result.
1121 (cplus_demangle_init_info): Initialise the recursion_level field.
1122 (d_demangle_callback): If the recursion limit is enabled, check
1123 for a mangled string that is so long that there is not enough
1124 stack space for the local arrays.
1125 * cplus-dem.c (struct work): Add recursion_level field.
1126 (squangle_mop_up): Set the numb and numk fields to zero.
1127 (work_stuff_copy_to_from): Handle the case where a btypevec or
1128 ktypevec field is NULL.
1129 (demangle_nested_args): Add recursion counter. If
1130 the recursion limit is not disabled and reached, return with a
1131 failure result.
1132
4be5c72c
JM
11332018-10-23 Jason Merrill <jason@redhat.com>
1134
1135 Implement P0732R2, class types in non-type template parameters.
1136 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1137 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1138 (d_special_name): Handle TA.
1139 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1140
22e05272
JM
11412018-10-31 Joseph Myers <joseph@codesourcery.com>
1142
1143 PR bootstrap/82856
1144 Merge from binutils-gdb:
1145 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1146
1147 * configure.ac: Remove AC_PREREQ.
1148 * configure: Re-generate.
1149 * config.in: Re-generate.
1150
df1346b4
NS
11512018-10-01 Nathan Sidwell <nathan@acm.org>
1152
1153 * configure.ac (checkfuncs): Add pipe2.
1154 * config.in, configure: Rebuilt.
1155 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1156 to parent with a pipe, when possible.
1157
832c74d9
NS
11582018-08-23 Nathan Sidwell <nathan@acm.org>
1159 Martin Liska <mliska@suse.cz>
1160
1161 PR driver/87056
1162 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1163 scopes to avoid potential clobber.
1164
5c12a855
NS
11652018-08-20 Nathan Sidwell <nathan@acm.org>
1166
1167 * pex-unix.c (pex_child_error): Delete.
1168 (pex_unix_exec_child): Commonize error paths to single message &
1169 exit.
1170
6ef4752b
TT
11712018-07-30 Tom Tromey <tom@tromey.com>
1172
1173 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1174
c00c9d03
ML
11752018-07-26 Martin Liska <mliska@suse.cz>
1176
92a285c1 1177 PR lto/86548
c00c9d03
ML
1178 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1179 (make_temp_file): Call make_temp_file_with_prefix with
92a285c1 1180 first argument set to NULL.
c00c9d03
ML
1181 (make_temp_file_with_prefix): Support also prefix.
1182
30ae6662
EZ
11832018-07-19 Eli Zaretskii <eliz@gnu.org>
1184
1185 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1186 to ENOSYS.
1187
7ce4ce10
JH
11882018-05-30 Jan Hubicka <hubicka@ucw.cz>
1189
7ce4ce10
JH
1190 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1191 (handle_lto_debug_sections_rename): New function.
1192 (handle_lto_debug_sections_norename): New function.
1193 (simple_object_copy_lto_debug_sections): Add rename parameter.
1194
b0c31bc6
BE
11952018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1196
1197 * splay-tree.c (splay_tree_compare_strings,
1198 splay_tree_delete_pointers): New utility functions.
1199
84ec5aea
ML
12002018-05-10 Martin Liska <mliska@suse.cz>
1201
1202 PR bootstrap/64914
1203 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1204
d6df811e
DG
12052018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1206
1207 * argv.c (expandargv): Fix memory leak for copied argv.
1208
6888a172
RO
12092018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1210
1211 PR lto/81968
1212 * simple-object.c (handle_lto_debug_sections): Keep .comment
1213 section.
1214
b2353e59
DM
12152018-03-02 David Malcolm <dmalcolm@redhat.com>
1216
1217 * cp-demangle.c: Update URL for g++ V3 ABI.
1218
c6bff8ad
EZ
12192018-01-20 Eli Zaretskii <eliz@gnu.org>
1220
1221 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1222 ulong_type to avoid warning about 32-bit shift.
1223
bf6f2cc7
RB
12242018-01-11 Richard Biener <rguenther@suse.de>
1225 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1226
1227 PR lto/81968
1228 * simple-object-common.h (struct simple_object_functions):
1229 Change copy_lto_debug_sections callback signature.
1230 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1231 SHF_INFO_LINK): Add defines.
1232 (simple_object_elf_copy_lto_debug_sections): Instead of
1233 leaving not to be copied sections empty unnamed SHT_NULL
1234 remove them from the target section headers and adjust section
1235 reference everywhere. Handle SHN_XINDEX in the symbol table
1236 processing properly.
1237 * simple-object.c (handle_lto_debug_sections): Change
1238 interface to return a modified string and handle renaming
1239 of relocation sections.
1240
3ec62f54
DG
12412018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1242
1243 * argv.c (expandargv): Correct check for dynamically
1244 allocated argv.
1245
85ec4feb
JJ
12462018-01-03 Jakub Jelinek <jakub@redhat.com>
1247
1248 Update copyright years.
1249
c1177db4
RB
12502017-01-02 Richard Biener <rguenther@suse.de>
1251
1252 PR lto/83452
1253 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1254 Do not use UNDEF locals for removed symbols but instead just
1255 define them in the first prevailing section and with no name.
1256 Use the same gnu_lto_v1 name for all removed globals we promote to
1257 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
1258 sh_info and sh_link in removed sections.
1259
bfe6f076
RB
12602017-10-30 Richard Biener <rguenther@suse.de>
1261
1262 PR lto/82757
1263 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1264 Strip two leading _s from the __gnu_lto_* symbols.
1265
160826fe
AM
12662017-10-24 Alan Modra <amodra@gmail.com>
1267
1268 PR lto/82687
1269 PR lto/82575
1270 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1271 Only make __gnu_lto symbols hidden.
1272
ebd208bf
AM
12732017-10-20 Alan Modra <amodra@gmail.com>
1274
1275 PR lto/82575
1276 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1277 Make discarded non-local symbols weak and hidden.
1278
f8049c44
JJ
12792017-10-18 Jakub Jelinek <jakub@redhat.com>
1280
1281 PR lto/82598
1282 * simple-object.c (handle_lto_debug_sections): Copy over also
1283 .note.GNU-stack section with unchanged name.
1284 * simple-object-elf.c (SHF_EXECINSTR): Define.
1285 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1286 on .note.GNU-stack section.
1287
68aac47f
NS
12882017-09-25 Nathan Sidwell <nathan@acm.org>
1289
1290 PR demangler/82195
1291 * cp-demangle.c (d_encoding): Strip return type when name is a
1292 LOCAL_NAME.
1293 (d_local_name): Strip return type of enclosing TYPED_NAME.
1294 * testsuite/demangle-expected: Add and adjust tests.
1295
7cd7dbda
NS
12962017-09-21 Nathan Sidwell <nathan@acm.org>
1297
1298 PR demangler/82195
1299 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1300 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1301 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1302 to strip modifiers that do not belong.
1303 (d_special_name, d_class_enum_type): Revert d_name call change.
1304 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1305 (d_local_name): Revert parsing of a function type.
1306 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1307 TEMPLATE.
1308 * testsuite/demangle-expected: Add & adjust tests
1309
fa0cdfb6
NS
13102017-09-15 Nathan Sidwell <nathan@acm.org>
1311
1312 PR demangler/82195
1313 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1314 (d_local_name): ... here. Parse trailing function args on nested
1315 local_name.
1316 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1317 * testsuite/demangle-expected: Add tests.
1318
dc4b8c68
RB
13192017-09-15 Richard Biener <rguenther@suse.de>
1320
1321 PR lto/81968
1322 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1323 Iterate marking dependent sections necessary.
1324
9d89efeb
NS
13252017-09-15 Nathan Sidwell <nathan@acm.org>
1326
1327 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1328 FNQUAL_COMPONENT_CASE.
1329 (d_encoding): Hold bare_function_type in local var.
1330 (d_local_name): Build name in both cases and build result once.
1331 Collapse switch-if to single conditional.
fa0cdfb6
NS
1332 (d_local_name):
1333
9d89efeb
NS
1334 * testsuite/demangle-expected: Realign blank lines with tests.
1335
ff971abe
JW
13362017-09-12 Jiong Wang <jiong.wang@arm.com>
1337
1338 * dwarfnames.c (DW_CFA_DUP): New define.
1339
39baa1d3
ML
13402017-09-01 Martin Liska <mliska@suse.cz>
1341
1342 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1343 Remove duplicite declaration.
1344
a621861e
RB
13452017-08-31 Richard Biener <rguenther@suse.de>
1346
1347 PR lto/81968
1348 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1349 Keep names of removed global symbols.
1350
62663034
TR
13512017-08-29 Tony Reix <tony.reix@atos.net>
1352
1353 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1354 Improve .go_export csect handling. Don't make assumptions
1355 on containing section or number of auxiliary entries.
1356
1963f60a
RB
13572017-08-28 Richard Biener <rguenther@suse.de>
1358
1359 PR lto/81968
1360 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1361 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1362 removed sections.
1363
d4c550fd
RB
13642017-08-22 Richard Biener <rguenther@suse.de>
1365
1366 PR lto/81925
1367 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1368 type of sh_addralign and sh_entsize and properly write
1369 sh_entsize as Elf_Addr.
1370 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1371
1ea85365
RB
13722017-08-21 Richard Biener <rguenther@suse.de>
1373
1374 * simple-object-common.h (struct simple_object_functions): Add
1375 copy_lto_debug_sections hook.
1376 * simple-object.c: Include fcntl.h.
1377 (handle_lto_debug_sections): New helper function.
1378 (simple_object_copy_lto_debug_sections): New function copying
1379 early LTO debug sections to regular debug sections in a new file.
1380 (simple_object_start_write): Handle NULL segment_name.
1381 * simple-object-coff.c (simple_object_coff_functions): Adjust
1382 for not implemented copy_lto_debug_sections hook.
1383 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1384 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1385 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1386 SHT_GROUP): Add various sectopn header types.
1387 (SHF_EXCLUDE): Add flag.
1388 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1389 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1390 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1391 (STV_DEFAULT): Add symbol visibility.
1392 (SHN_COMMON): Add special section index name.
1393 (struct simple_object_elf_write): New.
1394 (simple_object_elf_start_write): Adjust for new private data.
1395 (simple_object_elf_write_shdr): Pass in values for all fields
1396 we write.
1397 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1398 section headers if requested.
1399 (simple_object_elf_release_write): Release private data.
1400 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1401 as denoted by PFN and all their dependences, symbols and relocations
1402 to the empty destination file.
1403 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1404
ef29f5dd
JK
14052017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1406
1407 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1408
c1d24904
TR
14092017-06-07 Tony Reix <tony.reix@atos.net>
1410 Matthieu Sarter <matthieu.sarter.external@atos.net>
1411 David Edelsohn <dje.gcc@gmail.com>
1412
1413 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1414 Search symbol table for .go_export symbol and apply pfn if found.
1415
63d9caf9
DD
14162017-05-31 DJ Delorie <dj@redhat.com>
1417
1418 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1419 * configure: Likewise.
1420 * config.in: Add HACE_DECL_STRNLEN.
1421
dc64856f
IB
14222017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1423
1424 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1425 with `initializer for'.
1426 * testsuite/demangle-expected: Update tests.
1427
0e3712f6
IB
14282017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1429
1430 * d-demangle.c (dlang_call_convention_p): Move declaration
1431 before dlang_type.
1432 (dlang_type): Handle function types.
1433 * testsuite/d-demangle-expected: Add tests.
1434
1a122a71
IB
14352017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1436
1437 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1438 the demangled hexadecimal directly to string.
1439 * testsuite/d-demangle-expected: Add tests.
1440
1ab4db93
EZ
14412017-05-24 Eli Zaretskii <eliz@gnu.org>
1442
1443 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1444 that calls _cwait, so that this function works on MinGW.
1445
5398cab9
IB
14462017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1447
1448 * d-demangle.c (dlang_hexdigit): New function.
1449 (ascii2hex): Remove function.
1450 (dlang_parse_string): Update to call dlang_hexdigit.
1451 * testsuite/d-demangle-expected: Add tests.
1452
dbe65f77
IB
14532017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1454
1455 * d-demangle.c (strtol): Remove declaration.
1456 Updated all callers to use dlang_number.
1457 (dlang_number): New function.
1458 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1459 * testsuite/d-demangle-expected: Add tests.
1460
5a4dbf7d
IB
14612017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1462
1463 * d-demangle.c (dlang_parse_symbol): Remove function.
1464 (dlang_parse_qualified): New function.
1465 (dlang_parse_mangle): New function.
1466 (dlang_type): Update to call dlang_parse_qualified.
1467 (dlang_identifier): Update to call either dlang_parse_qualified or
1468 dlang_parse_mangle.
1469 (dlang_type_modifier_p): Remove function.
1470 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1471 (dlang_template_args): Update to call dlang_identifier.
1472 (dlang_demangle): Update to call dlang_parse_mangle.
1473 * testsuite/d-demangle-expected: Add tests.
1474
dd03444b
IB
14752017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1476
1477 * d-demangle.c (dlang_value): Add comment explaining why cases for
1478 digits are required.
1479 * testsuite/d-demangle-expected: Update integer value tests.
1480
98bb7ee2
IB
14812017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1482
1483 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1484 * testsuite/d-demangle-expected: Add tests.
1485
14862017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
c6f44bae
IB
1487
1488 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1489 (dlang_parse_template): Only advance if template symbol prefix is
1490 followed by a digit.
1491 * testsuite/d-demangle-expected: Add tests.
1492
ec89d258
IB
14932017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1494
1495 * d-demangle.c (dlang_attributes): Handle scope attributes.
1496 * testsuite/d-demangle-expected: Add tests.
1497
de3b531c
JW
14982017-04-27 Jonathan Wakely <jwakely@redhat.com>
1499
1500 PR demangler/80513
1501 * cp-demangle.c (d_number): Check for overflow.
1502 * cplus-dem.c (consume_count): Fix overflow check.
1503 (gnu_special): Check for underscore after thunk delta.
1504 * testsuite/demangle-expected: Add tests for overflows and invalid
1505 characters in thunks.
1506
6b086d35
MW
15072017-04-21 Mark Wielaard <mark@klomp.org>
1508
1509 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1510 (struct d_print_info): Add recursion field.
1511 (d_print_init): Initialize recursion.
1512 (d_print_comp): Check and update d_print_info recursion depth.
1513
13b6ef76
MW
15142017-04-21 Mark Wielaard <mark@klomp.org>
1515
1516 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1517 fails.
1518
1240212c
MW
15192017-04-21 Mark Wielaard <mark@klomp.org>
1520
1521 * cp-demangle.h (struct d_info): Remove did_subs field.
1522 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1523 (d_template_param): Don't update did_subs.
1524 (d_substitution): Likewise.
1525 (d_checkpoint): Don't assign did_subs.
1526 (d_backtrack): Likewise.
1527 (cplus_demangle_init_info): Don't initialize did_subs.
1528
7a312bbd
PA
15292017-03-27 Pedro Alves <palves@redhat.com>
1530
1531 * cp-demint.c (cplus_demangle_fill_component): Handle
1532 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1533
9905ca97
MW
15342017-03-12 Mark Wielaard <mark@klomp.org>
1535
1536 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1537 demangle_component d_printing.
1538 (cplus_demangle_fill_extended_operator): Likewise.
1539 (cplus_demangle_fill_ctor): Likewise.
1540 (cplus_demangle_fill_dtor): Likewise.
1541
a46586c3
MW
15422017-03-08 Mark Wielaard <mark@klomp.org>
1543
1544 PR demangler/70909
1545 PR demangler/67264
1546 * cp-demangle.c: Fix endless recursion. Pass
1547 struct demangle_component as non const.
1548 (d_make_empty): Initialize variable.
1549 (d_print_comp_inner): Limit recursion.
1550 (d_print_comp): Decrement variable.
1551 * cp-demint.c (cplus_demangle_fill_component): Initialize
1552 variable.
1553 (cplus_demangle_fill_builtin_type): Likewise.
1554 (cplus_demangle_fill_operator): Likewise.
1555 * testsuite/demangle-expected: Add tests.
1556
4bbc35f3
MT
15572017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1558
1559 PR PR c++/70182
1560 * cp-demangle.c (d_unqualified_name): Handle "on" for
1561 operator names.
1562 * testsuite/demangle-expected: Add tests.
1563
f6efea51
MT
15642017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1565
1566 PR c++/77489
1567 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1568 * testsuite/demangle-expected: Add tests for discriminator.
1569
2afd3180
JJ
15702017-01-04 Jakub Jelinek <jakub@redhat.com>
1571
1572 Update copyright years.
1573
8f56cb51
AM
15742017-01-04 Alan Modra <amodra@gmail.com>
1575
1576 * Makefile.in (configure_deps): Update.
1577 * configure: Regenerate.
1578
816f4314
JJ
15792016-12-13 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR c++/78761
1582 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1583 * testsuite/demangle-expected: Add test for decltype(auto).
1584
8e09a726
NS
15852016-12-12 Nathan Sidwell <nathan@acm.org>
1586
1587 PR c++/78252
1588 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1589 (d_print_init): Initialize it.
1590 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1591 is_lambda_arg for auto.
1592 <DEMANGLE_COMPONENT_REFERENCE,
1593 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1594 is_lambda_arg.
1595 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1596 printing.
1597 * testsuite/demangle-expected: Add lambda auto mangling cases.
1598
1d2ccddf 15992016-12-06 DJ Delorie <dj@redhat.com>
2207ff5d
DD
1600
1601 * argv.c (expandargv): Check for directories passed as @-files.
1602
e613205c
DM
16032016-11-30 David Malcolm <dmalcolm@redhat.com>
1604
1605 PR c/78498
1606 * strndup.c (strlen): Delete decl.
1607 (strnlen): Add decl.
1608 (strndup): Call strnlen rather than strlen.
1609 * xstrndup.c (xstrndup): Likewise.
1610
8684b292
NS
16112016-11-29 Nathan Sidwell <nathan@acm.org>
1612
1613 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1614
10d48c59
DT
16152016-11-03 David Tolnay <dtolnay@gmail.com>
1616 Mark Wielaard <mark@klomp.org>
1617
1618 * Makefile.in (CFILES): Add rust-demangle.c.
1619 (REQUIRED_OFILES): Add rust-demangle.o.
1620 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1621 (cplus_demangle): Handle RUST_DEMANGLING.
1622 (rust_demangle): New function.
1623 * rust-demangle.c: New file.
1624 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1625 (check-rust-demangle): New rule.
1626 * testsuite/rust-demangle-expected: New file.
1627
168126e5
MW
16282016-11-15 Mark Wielaard <mark@klomp.org>
1629
1630 * cp-demangle.c (d_expression_1): Make sure third expression
1631 exists for ?: and fold expressions.
1632 * testsuite/demangle-expected: Add examples of strings that could
1633 crash the demangler because of missing expression.
1634
0d0bfbf4
MW
16352016-11-14 Mark Wielaard <mark@klomp.org>
1636
1637 * cplus-dem.c (demangle_signature): After 'H', template function,
1638 no success and don't advance position if end of string reached.
1639 (demangle_template): After 'z', template name, return zero on
1640 premature end of string.
1641 (gnu_special): Guard strchr against searching for zero characters.
1642 (do_type): If member, only advance mangled string when 'F' found.
1643 * testsuite/demangle-expected: Add examples of strings that could
1644 crash the demangler by reading past end of input.
1645
3eb89071
MW
16462016-11-06 Mark Wielaard <mark@klomp.org>
1647
1648 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1649 * configure: Regenerated.
1650
51dc6603
JM
16512016-11-07 Jason Merrill <jason@redhat.com>
1652
1653 * cp-demangle.c (is_fnqual_component_type): New.
1654 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1655 (FNQUAL_COMPONENT_CASE): New.
1656 (d_make_comp, has_return_type, d_print_comp_inner)
1657 (d_print_function_type): Use it.
1658 (next_is_type_qual): New.
1659 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1660
c4ec8585
MW
16612016-11-02 Mark Wielaard <mjw@redhat.com>
1662
1663 * cplus-dem.c (demangle_signature): Move fall through comment.
1664 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1665 * hashtab.c (iterative_hash): Add fall through comments.
1666 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1667 (byte_re_match_2_internal): Add Fall through comment after jump_n.
1668 Change "Note fall through" to "Fall through".
1669 (common_op_match_null_string_p): Return false after set_number_at
1670 instead of fall through.
1671
31f7f784
JM
16722016-11-01 Jason Merrill <jason@redhat.com>
1673
1674 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1675
a3f3eec0
MW
16762016-10-31 Mark Wielaard <mjw@redhat.com>
1677
1678 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1679 XDELETEVEC demangled when unknown.
1680
471a0d47
AS
16812016-09-19 Andrew Stubbs <ams@codesourcery.com>
1682
1683 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1684 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1685
99e77371
MW
16862016-09-10 Mark Wielaard <mjw@redhat.com>
1687
1688 * cp-demangle.c (d_substitution): Change struct demangle_component
1689 variable name from c to dc.
1690
191816a3
MP
16912016-08-12 Marek Polacek <polacek@redhat.com>
1692
1693 PR c/7652
1694 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1695
1841e25c
MB
16962016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
1697
1698 PR c++/71696
1699 * cplus-dem.c: Prevent infinite recursion when there is a cycle
1700 in the referencing of remembered mangled types.
1701 (work_stuff): New stack to keep track of the remembered mangled
1702 types that are currently being processed.
1703 (push_processed_type): New method to push currently processed
1704 remembered type onto the stack.
1705 (pop_processed_type): New method to pop currently processed
1706 remembered type from the stack.
1707 (work_stuff_copy_to_from): Copy values of new variables.
1708 (delete_non_B_K_work_stuff): Free stack memory.
1709 (demangle_args): Push/Pop currently processed remembered type.
1710 (do_type): Do not demangle a cyclic reference and push/pop
1711 referenced remembered type.
1712
ac631cbe
AH
17132016-07-29 Aldy Hernandez <aldyh@redhat.com>
1714
1715 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1716 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1717
34bbc4c5
JM
17182016-07-15 Jason Merrill <jason@redhat.com>
1719
7864eaaf
JM
1720 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1721 (d_expression_1): Handle them.
1722 (d_maybe_print_fold_expression): New.
1723 (d_print_comp_inner): Use it.
1724 (d_index_template_argument): Handle negative index.
1725
34bbc4c5
JM
1726 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1727 (d_print_comp_inner): Handle them.
1728 (d_template_args_1): Split out from d_template_args.
1729 (d_args_length): New.
1730
1841e25c 17312016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
03ef0c6c
MB
1732
1733 PR c++/70926
1734 * cplus-dem.c: Handle large values and overflow when demangling
1735 length variables.
1736 (demangle_template_value_parm): Read only until end of mangled string.
1737 (do_hpacc_template_literal): Likewise.
1738 (do_type): Handle overflow when demangling array indices.
1739
3f393853
BM
17402016-06-12 Brooks Moses <bmoses@google.com>
1741
1742 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
1743 VLAs.
1744
051154a1
AM
17452016-05-31 Alan Modra <amodra@gmail.com>
1746
1747 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1748
e1fe3c69
JJ
17492016-05-19 Jakub Jelinek <jakub@redhat.com>
1750
1751 PR c++/70498
1752 * cp-demangle.c (d_expression_1): Formatting fix.
1753
9b27f113
AV
17542016-05-18 Artemiy Volkov <artemiyv@acm.org>
1755
1756 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
1757 constant.
1758 (demangle_template_value_parm): Handle tk_rvalue_reference
1759 type kind.
1760 (do_type): Support 'O' type id (rvalue references).
1761
1762 * testsuite/demangle-expected: Add tests.
1763
bfbc839a
MB
17642016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
1765
1766 PR c++/70498
1767 * cp-demangle.c: Parse numbers as integer instead of long to avoid
1768 overflow after sanity checks. Include <limits.h> if available.
1769 (INT_MAX): Define if necessary.
1770 (d_make_template_param): Takes integer argument instead of long.
1771 (d_make_function_param): Likewise.
1772 (d_append_num): Likewise.
1773 (d_identifier): Likewise.
1774 (d_number): Parse as and return integer.
1775 (d_compact_number): Handle overflow.
1776 (d_source_name): Change variable type to integer for parsed number.
1777 (d_java_resource): Likewise.
1778 (d_special_name): Likewise.
1779 (d_discriminator): Likewise.
1780 (d_unnamed_type): Likewise.
1781 * testsuite/demangle-expected: Add regression test cases.
1782
bc6d9014
OE
17832016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1784
1785 * configure: Remove SH5 support.
1786
59dad006
MB
17872016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
1788
bdf66f77
MB
1789 PR c++/69687
1790 * cplus-dem.c: Include <limits.h> if available.
1791 (INT_MAX): Define if necessary.
1792 (remember_type, remember_Ktype, register_Btype, string_need):
1793 Abort if we detect cases where we the size of the allocation would
1794 overflow.
1795
cb2763b5 1796 PR c++/70492
59dad006
MB
1797 * cplus-dem.c (gnu_special): Handle case where consume_count returns
1798 -1.
1799
916268f1 18002016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
a3fa7535 1801 Marcel Bohme <boehme.marcel@gmail.com>
916268f1 1802
c1c341ab
JL
1803 PR c++/67394
1804 PR c++/70481
916268f1
MM
1805 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
1806 btypevec/ktypevec.
1807 * testsuite/demangle-expected: Add coverage tests.
1808
13617162
IB
18092016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1810
1811 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
1812 function calling convention.
1813 (dlang_call_convention_p): Likewise.
1814 (dlang_type): Likewise.
1815 * testsuite/d-demangle-expected: Add coverage tests.
1816
acf1f7da
IB
18172016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1818
1819 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
1820 only if parameters were seen before the elipsis symbol.
1821 * testsuite/d-demangle-expected: Add coverage test for parameter-less
1822 variadic functions.
1823
0f4b8b31
IB
18242016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1825
1826 * d-demangle.c (dlang_type): Handle function types only in the context
1827 of seeing a pointer type symbol.
1828 * testsuite/d-demangle-expected: Update function pointer tests.
1829
66f49f07
MF
18302016-01-05 Mike Frysinger <vapier@gentoo.org>
1831
1832 * argv.c (dupargv): Change arg to char * const *. Update comment.
1833 (writeargv, countargv): Likewise.
1834 * functions.texi (dupargv, writeargv, countargv): Likewise.
1835
ae120683
MF
18362016-01-05 Mike Frysinger <vapier@gentoo.org>
1837
1838 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
1839
f3ce6437
PP
18402015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
1841
1842 * crc32.c: In the documentation, don't refer to GDB's
1843 now-nonexistent crc32 implementation. In the table-generation
1844 program embedded within the documentation, change the type of
1845 the induction variables i and j from int to unsigned int, to
1846 avoid undefined behavior.
1847
f8e66330
NC
18482015-12-21 Nick Clifton <nickc@redhat.com>
1849
1850 PR 66827
1851 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
1852 shifting.
1853
921da198
PA
18542015-11-27 Pedro Alves <palves@redhat.com>
1855
1856 PR other/61321
1857 PR other/61233
921da198
PA
1858 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
1859 DEMANGLE_COMPONENT_CONVERSION.
1860 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
1861 instead of DEMANGLE_COMPONENT_CAST.
1862 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
1863 component if handling a conversion.
1864 (d_count_templates_scopes, d_print_comp_inner): Handle
1865 DEMANGLE_COMPONENT_CONVERSION.
1866 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
1867 of DEMANGLE_COMPONENT_CAST.
1868 (d_print_cast): Rename as ...
1869 (d_print_conversion): ... this. Adjust comments.
1870 (d_print_cast): Rewrite - simply print the left subcomponent.
1871 * cp-demint.c (cplus_demangle_fill_component): Handle
1872 DEMANGLE_COMPONENT_CONVERSION.
1873
1874 * testsuite/demangle-expected: Add tests.
1875
633ce971
MS
18762015-11-12 Mike Stump <mikestump@comcast.net>
1877
1878 * Makefile.in (etags tags TAGS): Use && instead of ;.
1879
126e0b6b
AM
18802015-11-09 Alan Modra <amodra@gmail.com>
1881
1882 * configure.ac: Check size of size_t.
1883 * configure: Regenerate.
61c94e79 1884 * config.in: Regenerate.
126e0b6b 1885
a186d523
AM
18862015-11-09 Alan Modra <amodra@gmail.com>
1887
1888 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
1889 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
1890 after alloc failure check.
1891
f0e525fe
AM
18922015-11-09 Alan Modra <amodra@gmail.com>
1893
1894 PR gdb/17133
1895 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
1896 (obstack_exit_failure): Don't use exitfail.h.
1897 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
1898 Provide default. Don't include gettext.h.
1899 (_Noreturn): Define.
1900 * obstacks.texi: Adjust node references to external libc info files.
1901
c9f265c9
AM
19022015-11-09 Alan Modra <amodra@gmail.com>
1903
1904 PR gdb/17133
1905 * obstack.c: Import current gnulib file.
1906 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
1907
41fdbd54
JB
19082015-11-06 Joel Brobecker <brobecker@adacore.com>
1909
1910 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
1911 Android hosts.
1912 * configure: Regenerate.
1913
08585fba
JM
19142015-10-28 Jason Merrill <jason@redhat.com>
1915
1916 * Makefile.in (TAGS): Fix for separate build directory.
1917
efd40fc4
RM
19182015-10-18 Roland McGrath <roland@gnu.org>
1919 Iain Sandoe <iain@codesourcery.com>
1920
1921 PR other/63758
1922 * pex-unix.c: Obtain the environment interface from settings in
1923 environ.h rather than in-line code. Update copyright date.
1924 * setenv.c: Likewise.
1925 * xmalloc.c: Likewise.
1926
b8fd7909
JM
19272015-09-30 Jason Merrill <jason@redhat.com>
1928
1929 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
1930 (cplus_demangle_type): Let d_cv_qualifiers handle it.
1931 (d_dump, d_make_comp, has_return_type, d_encoding)
1932 (d_count_templates_scopes, d_print_comp_inner)
1933 (d_print_mod_list, d_print_mod, d_print_function_type)
1934 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
1935
68bac640
ILT
19362015-08-15 Ian Lance Taylor <iant@google.com>
1937
1938 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
1939 ABI tags.
1940
fd91ffb8
IB
19412015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
1942
1943 * d-demangle.c (dlang_parse_real): Remove call to strtod.
1944 (strtod): Remove declaration.
1945 * testsuite/d-demangle-expected: Update float and complex literal
1946 tests to check correct hexadecimal demangling.
1947
76d96a5a
MM
19482015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
1949
1950 * cp-demangle.c (d_dump): Fix syntax error.
1951 (d_identifier): Adjust type of len to match d_source_name.
1952 (d_expression_1): Fix out-of-bounds access. Check code variable for
1953 NULL before dereferencing it.
1954 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
1955 (d_print_comp_inner): Add NULL pointer check.
1956 * cp-demangle.h (d_peek_next_char): Define as inline function when
1957 CHECK_DEMANGLER is defined.
1958 (d_advance): Likewise.
1959 * testsuite/demangle-expected: Add new testcases.
1960
9b004cd3 19612015-07-09 Uros Bizjak <ubizjak@gmail.com>
62ee3145 1962
9b004cd3
UB
1963 * getruntime.c (RUSAGE_SELF): Define if not already defined.
1964 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
62ee3145 1965
603eaec4
JM
19662015-06-01 Jason Merrill <jason@redhat.com>
1967
1968 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
1969 extended qualifier.
1970
f50f17e6
YJ
19712015-05-22 Yunlian Jiang <yunlian@google.com>
1972
1973 * configure.ac: Add AC_GNU_SOURCE.
1974 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
1975 * configure, config.in: Rebuild.
1976 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
1977
7e865541
IB
19782015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1979
1980 * d-demangle.c (dlang_symbol_kinds): New enum.
1981 (dlang_parse_symbol): Update signature. Handle an ambiguity between
1982 pascal functions and template value arguments. Only check for a type
1983 if parsing a function, or at the top level. Return failure if the
1984 entire symbol was not successfully demangled.
1985 (dlang_identifier): Update signature. Handle an ambiguity between two
1986 adjacent digits in a mangled symbol string.
1987 (dlang_type): Update call to dlang_parse_symbol.
1988 (dlang_template_args): Likewise.
1989 (dlang_parse_template): Likewise.
1990 (dlang_demangle): Likewise.
1991 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
1992 examples to the unittests.
1993
ed4cdb85
IB
19942015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1995
1996 * d-demangle.c (dlang_template_args): Skip over specialized template
1997 parameters in mangled symbol.
1998 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
1999 template parameters.
2000
59251a73
IB
20012015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2002
2003 * d-demangle.c (dlang_type): Handle cent and ucent types.
2004 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
2005
7ce4461f
IB
20062015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2007
2008 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
2009 return parameters in the mangled string. Return NULL if have encountered
2010 an unknown attribute.
2011 (dlang_function_args): Handle return parameters in the mangled string.
2012 * testsuite/d-demangle-expected: Add coverage tests for functions with
2013 return parameters and return attributes.
2014
5cc158e9
IB
20152015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2016
2017 * d-demangle.c (dlang_identifier): Check encoded length of identifier
2018 to verify strncmp matches entire string.
2019 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
2020
fa66ced4
IB
20212015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2022
2023 * d-demangle.c (dlang_type_modifiers): New function.
2024 (dlang_type_modifier_p): New function.
2025 (dlang_call_convention_p): Ignore any kind of type modifier.
2026 (dlang_type): Handle and emit the type modifier after delegate types.
2027 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
2028 * testsuite/d-demangle-expected: Add coverage tests for all valid
2029 usages of function symbols with type modifiers.
2030
76b41cad
IB
20312015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2032
2033 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
2034 end of the symbol, but expected something to read.
2035 (dlang_attributes): Likewise.
2036 (dlang_function_type): Likewise.
2037 (dlang_type): Likewise.
2038 (dlang_identifier): Likewise.
2039 (dlang_value): Likewise.
2040
eb058b7d
IB
20412015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2042
2043 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
2044 non-printable characters as hex or escape sequences.
2045 * testsuite/d-demangle-expected: Add test for templates with tabs and
2046 newlines embedded into the signature.
2047
f5e7f590
JB
20482015-05-08 Joel Brobecker <brobecker@adacore.com>
2049
2050 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
2051 but not HAVE_SYS_TIME_H.
2052
ffa176b0
EZ
20532015-04-22 Eli Zaretskii <eliz@gnu.org>
2054
2055 * setenv.c <environ>: Declare only if not a macro.
2056
77019397
MO
20572015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
2058
2059 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2060
cacf1f59
JJ
20612015-04-10 Jakub Jelinek <jakub@redhat.com>
2062 Iain Sandoe <iain@codesourcery.com>
2063
2064 PR target/65351
2065 * configure: Regenerate.
2066
e8a4ed3b
JJ
20672015-04-07 Jakub Jelinek <jakub@redhat.com>
2068 Iain Sandoe <iain@codesourcery.com>
2069
2070 PR target/65351
2071 * configure: Regenerate.
2072
b411ed0c
EZ
20732015-01-19 Eli Zaretskii <eliz@gnu.org>
2074
2075 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2076 macros.
2077
e8850918
UB
20782014-12-24 Uros Bizjak <ubizjak@gmail.com>
2079 Ben Elliston <bje@au.ibm.com>
2080 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2081
2082 * xasprintf.c: New file.
2083 * Makefile.in (CFILES): Add xasprintf.c.
2084 (REQUIRED_OFILES): Add xasprintf.$(objext).
2085 (xasprintf.$(objext)): New target.
2086 * functions.texi: Regenerate.
2087
01ca36af 20882014-12-11 Uros Bizjak <ubizjak@gmail.com>
92a285c1
ML
2089 Ben Elliston <bje@au.ibm.com>
2090 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
01ca36af
UB
2091
2092 * xvasprintf.c: New file.
2093 * vprintf-support.h: Likewise.
2094 * vprintf-support.c: Likewise.
2095 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
2096 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
2097 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
2098 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
2099 * functions.texi: Regenerate.
2100 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
2101
7b5216dd
JDA
21022014-11-22 John David Anglin <danglin@gcc.gnu.org>
2103
2104 PR other/63694
2105 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2106 declarations.
2107 * configure: Regenerated.
2108
43cf21c6
KY
21092014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2110
2111 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2112 unsigned long.
2113
3d00119c
AB
21142014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
2115 Manuel López-Ibáñez <manu@gcc.gnu.org>
2116
2117 PR driver/36312
2118 * filename_cmp.c (canonical_filename_eq): New function to check if
2119 file names are the same.
2120 * functions.texi: Updated with documentation for new function.
2121
35485da9
DM
21222014-11-11 David Malcolm <dmalcolm@redhat.com>
2123
2124 * ChangeLog.jit: New.
2125
8c768629
RO
21262014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2127
2128 * sigsetmask.c (_POSIX_SOURCE): Remove.
2129
ea41822a
YG
21302014-10-28 Yury Gribov <y.gribov@samsung.com>
2131
2132 * strtoll.c: New file.
2133 * strtoull.c: New file.
2134 * configure.ac: Add long long checks. Add harness for strtoll and
2135 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
2136 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2137 * config.in: Regenerate.
2138 * configure: Regenerate.
2139 * functions.texi: Regenerate.
2140 * testsuite/Makefile.in (check-strtol): New rule.
2141 (test-strtol): Likewise.
2142 (mostlyclean): Clean up strtol test.
2143 * testsuite/test-strtol.c: New test.
2144
e39423c0
DM
21452014-10-15 David Malcolm <dmalcolm@redhat.com>
2146
2147 * choose-temp.c (choose_tmpdir): Remove now-redundant local
2148 copy of prototype.
2149 * functions.texi: Regenerate.
2150 * make-temp-file.c (choose_tmpdir): Convert return type from
2151 char * to const char * - given that this returns a pointer to
2152 a memoized allocation, the caller must not touch it.
2153
2a523cfe
JB
21542014-10-14 Joel Brobecker <brobecker@adacore.com>
2155
2156 * d-demangle.c: Replace strtold with strtod in global comment.
2157 (strtold): Remove declaration.
2158 (strtod): New declaration.
2159 (dlang_parse_real): Declare value as double instead of long
2160 double. Replace call to strtold by call to strtod.
2161 Update format in call to snprintf.
2162
00eaaa50
JM
21632014-09-26 Jason Merrill <jason@redhat.com>
2164
2165 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2166
29ce50b0
MO
21672014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
2168
2169 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2170 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2171 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2172 * pex-win32.c (pex_win32_open_write): Likewise.
2173 * pex-common.c (pex_run_in_environment): Likewise.
2174
43b1b9ed
IB
21752014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
2176
2177 * Makefile.in (CFILES): Add d-demangle.c.
2178 (REQUIRED_OFILES): Add d-demangle.o.
2179 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2180 (cplus_demangle): Likewise.
2181 * d-demangle.c: New file.
2182 * testsuite/Makefile.in (really-check): Add check-d-demangle.
2183 * testsuite/d-demangle-expected: New file.
2184
0f1fbc83
ILT
21852014-09-19 Ian Lance Taylor <iant@google.com>
2186
2187 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2188 handle objects with more than SHN_LORESERVE sections.
2189 (simple_object_elf_write_shdr): Add sh_link parameter.
2190 (simple_object_elf_write_to_file): Correctly handle objects with
2191 more than SHN_LORESERVE sections.
2192
606f9e78
AB
21932014-08-29 Andrew Burgess <aburgess@broadcom.com>
2194
2195 * cp-demangle.c (d_dump): Only access field from s_fixed part of
2196 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2197 (d_count_templates_scopes): Likewise.
2198
635f4800
GB
21992014-08-13 Gary Benson <gbenson@redhat.com>
2200
2201 * testsuite/demangler-fuzzer.c: New file.
2202 * testsuite/Makefile.in (fuzz-demangler): New rule.
2203 (demangler-fuzzer): Likewise.
2204 (mostlyclean): Clean up demangler fuzzer.
2205
ac8345a5
AB
22062014-06-11 Andrew Burgess <aburgess@broadcom.com>
2207
2208 * cplus-dem.c (do_type): Call string_delete even if the call to
2209 demangle_template fails.
2210
ad484eca
RD
22112014-06-01 Ray Donnelly <mingw.android@gmail.com>
2212
2213 * pex-win32.c (argv_to_cmdline): Don't quote
2214 args unnecessarily
2215
bc2eed9a
PA
22162014-05-28 Pedro Alves <palves@redhat.com>
2217
2218 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2219 and DEMANGLE_COMPONENT_NUMBER.
2220
6aa9ea7f
TS
22212014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2222
2223 * testsuite/demangle-expected: Fix last commit.
2224
70c8c2b9
AB
22252014-05-14 Andrew Burgess <aburgess@broadcom.com>
2226
2227 * cplus-dmem.c (internal_cplus_demangle): Free any resources
2228 allocated by possible previous call to gnu_special.
2229 (squangle_mop_up): Reset pointers to NULL after calling free.
2230 * testsuite/demangle-expected: New test case.
2231
861c3495
GB
22322014-05-08 Gary Benson <gbenson@redhat.com>
2233
2234 * cp-demangle.c (struct d_component_stack): New structure.
2235 (struct d_print_info): New field component_stack.
2236 (d_print_init): Initialize the above.
2237 (d_print_comp_inner): Renamed from d_print_comp.
2238 Do not restore template stack if it would cause a loop.
2239 (d_print_comp): New function.
2240 * testsuite/demangle-expected: New test cases.
2241
4f148bbc
JJ
22422014-04-17 Jakub Jelinek <jakub@redhat.com>
2243
2244 PR sanitizer/56781
2245 * maint-tool: Also emit rule for noasan/ subdirectory.
2246 * configure.ac (NOASANFLAG): Set and substitute.
2247 * Makefile.in: Regenerated.
2248 (NOASANFLAG): Set.
2249 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2250 subdir.
2251 (stamp-noasandir): New goal.
2252 * configure: Regenerated.
2253
25336bb6
RB
22542014-04-01 Richard Biener <rguenther@suse.de>
2255
2256 * simple-object.c (simple_object_internal_write): Handle
2257 EINTR and short writes.
2258
2486c24a
RB
22592014-03-28 Richard Biener <rguenther@suse.de>
2260
2261 * simple-object.c (simple_object_internal_read): Handle
2262 EINTR and short reads.
2263
52684bb3
UB
22642014-03-13 Uros Bizjak <ubizjak@gmail.com>
2265
2266 * regex.c (bzero) [!_LIBC]: Define without coma expression.
2267 (regerror): Cast the call to memcpy to (void) to avoid unused
2268 value warnings.
2269
e191f502
TS
22702014-01-28 Thomas Schwinge <thomas@codesourcery.com>
2271
2272 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2273 to help the compiler.
2274
d2d21de9
TT
22752014-01-21 Tom Tromey <tromey@redhat.com>
2276
2277 * _doprint.c (checkit): Use stdarg, not VA_* macros.
2278 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2279 * concat.c (concat_length, concat_copy, concat_copy2, concat)
2280 (reconcat): Use stdarg, not VA_* macros.
2281 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2282 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2283 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2284
0225cc0f
MF
22852014-01-06 Mike Frysinger <vapier@gentoo.org>
2286
2287 PR other/56780
2288 * configure.ac: Delete target_header_dir assignment.
2289 * configure: Regenerated.
2290
0a15a50e
GB
22912014-01-06 Gary Benson <gbenson@redhat.com>
2292
2293 * cp-demangle.c (struct d_print_info): New fields
2294 next_saved_scope, copy_templates, next_copy_template and
2295 num_copy_templates.
2296 (d_count_templates): New function.
2297 (d_print_init): New parameter "dc".
2298 Estimate numbers of templates and scopes required.
2299 (d_print_free): Removed function.
2300 (cplus_demangle_print_callback): Allocate stack for
2301 templates and scopes. Removed call to d_print_free.
2302 (d_copy_templates): Removed function.
2303 (d_save_scope): New function.
2304 (d_get_saved_scope): Likewise.
2305 (d_print_comp): Replace state saving/restoring code with
2306 calls to d_save_scope and d_get_saved_scope.
2307
1f26ac87
JM
23082013-12-23 Bill Maddox <maddox@google.com>
2309
2310 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2311 Handle unified ctor/dtor.
2312 (d_ctor_dtor_name): Handle unified ctor/dtor.
2313
85d09f61
CC
23142013-11-22 Cary Coutant <ccoutant@google.com>
2315
2316 PR other/59195
2317 * cp-demangle.c (struct d_info_checkpoint): New struct.
2318 (struct d_print_info): Add current_template field.
2319 (d_operator_name): Set flag when processing a conversion
2320 operator.
2321 (cplus_demangle_type): When processing <template-args> for
2322 a conversion operator, backtrack if necessary.
2323 (d_expression_1): Renamed from d_expression.
2324 (d_expression): New wrapper around d_expression_1.
2325 (d_checkpoint): New function.
2326 (d_backtrack): New function.
2327 (d_print_init): Initialize current_template.
2328 (d_print_comp): Set current_template.
2329 (d_print_cast): Put current_template in scope for
2330 printing conversion operator name.
2331 (cplus_demangle_init_info): Initialize is_expression and
2332 is_conversion.
2333 * cp-demangle.h (struct d_info): Add is_expression and
2334 is_conversion fields.
2335 * testsuite/demangle-expected: New test cases.
2336
66204992
AS
23372013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2338
2339 * configure: Regenerate.
2340
27297d2d
UB
23412013-11-12 Uros Bizjak <ubizjak@gmail.com>
2342
2343 * cp-demangle.c (d_copy_templates): Cast result of malloc
2344 to (struct d_print_template *).
2345 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2346
eda14d6a
MG
23472013-10-29 Marc Glisse <marc.glisse@inria.fr>
2348
2349 PR tree-optimization/58689
2350 * concat.c: Remove note about xmalloc.
2351
4962e513
GP
23522013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2353
2354 * testsuite/test-demangle.c: Include unistd.h.
27297d2d 2355
c24d86bc
GB
23562013-10-25 Gary Benson <gbenson@redhat.com>
2357
2358 * cp-demangle.c (struct d_saved_scope): New structure.
2359 (struct d_print_info): New fields saved_scopes and
2360 num_saved_scopes.
2361 (d_print_init): Initialize the above.
2362 (d_print_free): New function.
2363 (cplus_demangle_print_callback): Call the above.
2364 (d_copy_templates): New function.
2365 (d_print_comp): New variables saved_templates and
2366 need_template_restore.
27297d2d
UB
2367 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2368 Capture scope the first time the component is traversed, and use the
2369 captured scope for subsequent traversals.
c24d86bc
GB
2370 * testsuite/demangle-expected: Add regression test.
2371
89ac0797
GP
23722013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2373
2374 * testsuite/test-expandargv.c: Include unistd.h.
2375
459260ec
DM
23762013-10-15 David Malcolm <dmalcolm@redhat.com>
2377
2378 * configure.ac: If --enable-host-shared, use -fPIC.
2379 * configure: Regenerate.
2380
ea0882a0
PP
23812013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2382
2383 * cp-demangle.c (d_name): Demangle local-source-names.
2384 * testsuite/demangle-expected: New test.
2385
8b415b27
PC
23862013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2387
2388 PR bootstrap/58386
2389 Revert:
2390
2391 2013-09-10 Gary Benson <gbenson@redhat.com>
2392
2393 * cp-demangle.c: Include hashtab.h.
2394 (struct d_print_info): New field saved_scopes.
2395 (d_print_init): Initialize the above.
2396 (d_print_free): New function.
2397 (cplus_demangle_print_callback): Call the above.
2398 (struct d_saved_scope): New structure.
2399 (d_store_scope): New function.
2400 (d_free_scope) Likewise.
2401 (d_restore_scope) Likewise.
2402 (d_hash_saved_scope) Likewise.
2403 (d_equal_saved_scope) Likewise.
2404 (d_print_comp): New variable saved_scope.
2405 [DEMANGLE_COMPONENT_REFERENCE,
2406 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2407 time the component is traversed, and use the captured scope for
2408 subsequent traversals.
0e2cd22d 2409 * testsuite/demangle-expected: Add regression test.
8b415b27 2410
669ea36c
GB
24112013-09-10 Gary Benson <gbenson@redhat.com>
2412
2413 * cp-demangle.c: Include hashtab.h.
2414 (struct d_print_info): New field saved_scopes.
2415 (d_print_init): Initialize the above.
2416 (d_print_free): New function.
2417 (cplus_demangle_print_callback): Call the above.
2418 (struct d_saved_scope): New structure.
2419 (d_store_scope): New function.
2420 (d_free_scope) Likewise.
2421 (d_restore_scope) Likewise.
2422 (d_hash_saved_scope) Likewise.
2423 (d_equal_saved_scope) Likewise.
2424 (d_print_comp): New variable saved_scope.
2425 [DEMANGLE_COMPONENT_REFERENCE,
2426 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2427 time the component is traversed, and use the captured scope for
2428 subsequent traversals.
0e2cd22d 2429 * testsuite/demangle-expected: Add regression test.
669ea36c 2430
a98cbc36
AM
24312013-08-20 Alan Modra <amodra@gmail.com>
2432
2433 * floatformat.c (floatformat_ibm_long_double): Rename to..
2434 (floatformat_ibm_long_double_big): ..this.
2435 (floatformat_ibm_long_double_little): New.
2436
3830d98a
TG
24372013-07-09 Tristan Gingold <gingold@adacore.com>
2438
2439 * makefile.vms (OBJS): Add dwarfnames.obj
2440
8c9fddf4
MB
24412013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2442
2443 PR other/56780
969ac969 2444 * configure.ac: Move test for --enable-install-libiberty
8c9fddf4
MB
2445 outside of the 'with_target_subdir' test so that it actually gets
2446 run. Add output messages to show the test result.
969ac969
JJ
2447 * configure: Regenerate.
2448 * Makefile.in (install_to_libdir): Place the
8c9fddf4
MB
2449 installation of the libiberty library in the same guard as that
2450 used for the headers to prevent it being installed unless
2451 requested via --enable-install-libiberty.
2452
b768e8cf
DE
24532013-05-06 David Edelsohn <dje.gcc@gmail.com>
2454 Peter Bergner <bergner@vnet.ibm.com>
2455 Segher Boessenkool <segher@kernel.crashing.org>
2456 Jakub Jelinek <jakub@redhat.com>
2457
2458 * hashtab.c (hash_pointer): Remove conditional and avoid
2459 unexecuted shift equal to wordsize.
2460
ecdbd01a 24612013-04-22 Andi Kleen <ak@linux.intel.com>
86210f13
AK
2462
2463 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2464
9eb85f27
JM
24652013-04-03 Jason Merrill <jason@redhat.com>
2466
0861bec8
JM
2467 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2468 (d_pointer_to_member_type): Simplify.
2469
9eb85f27
JM
2470 Demangle C++11 ref-qualifier.
2471 * cp-demangle.c (d_ref_qualifier): New.
2472 (d_nested_name, d_function_type): Use it.
2473 (d_parmlist): Don't get confused by a ref-qualifier.
2474 (cplus_demangle_type): Reorder ref-qualifier.
2475 (d_pointer_to_member_type): Likewise.
2476 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2477 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2478 (d_make_comp, has_return_type, d_encoding): Likewise.
2479 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2480 (d_print_function_type, is_ctor_or_dtor): Likewise.
2481
071928d9
KT
24822013-03-27 Kai Tietz <ktietz@redhat.com>
2483
2484 * configure: Regenerated.
2485
34d3a672
TB
24862013-03-06 Tobias Burnus <burnus@net-b.de>
2487
2488 * libiberty.texi: Update comment, remove lowersections.
2489 * obstacks.texi: Regenerate.
2490
233fa360
JJ
24912013-03-05 Jakub Jelinek <jakub@redhat.com>
2492
2493 PR middle-end/56526
2494 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2495 wrapper_sect_offset to avoid a warning.
2496
40bf31ed
TB
24972013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2498
2499 * obstacks.texi (Obstacks): Trim @node to only contain the
2500 node name.
2501 * libiberty.texi (Obstacks): Lower section.
2502
622aac0b
JM
25032013-02-14 Jason Merrill <jason@redhat.com>
2504
2505 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2506 (d_print_comp): Likewise.
2507
4ab7747c
JJ
25082013-02-09 Jakub Jelinek <jakub@redhat.com>
2509
2510 PR other/56245
2511 * regex.c (PTR_INT_TYPE): Define.
2512 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2513
b1a2e8c6
KT
25142013-01-31 Kai Tietz <ktietz@redhat.com>
2515
4cfc6e54
KT
2516 PR other/54620
2517 * sha1.c (sha1_process_block): Handle case that size_t is
2518 a wider-integer-scalar as a 32-bit unsigned integer.
2519
b7138297 2520 PR other/53413
b1a2e8c6
KT
2521 * md5.c (md5_process_block): Handle case that size_t is
2522 a wider-integer-scalar a 32-bit unsigned integer.
2523
ad8c59a1
ILT
25242013-01-04 Ian Lance Taylor <iant@google.com>
2525
2526 PR other/54800
2527 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2528 bother to zero out a buffer we are about to set anyhow.
2529
a9b01f00
DE
25302013-01-01 David Edelsohn <dje.gcc@gmail.com>
2531
2532 * simple-object-xcoff.c: New file.
2533 * Makefile.in: Add it to build machinery.
2534 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2535 * simple-object.c (format_functions): Add
2536 simple_object_xcoff_functions.
2537
c61e8502
JM
25382012-11-10 Jason Merrill <jason@redhat.com>
2539
2540 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2541 (d_name): Not here.
2542
7dbb85a7
JM
25432012-11-09 Jason Merrill <jason@redhat.com>
2544
2545 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2546 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2547 (d_abi_tags): New.
2548 (d_name): Call it.
2549
7c424acd
JM
25502012-10-08 Jason Merrill <jason@redhat.com>
2551
2552 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2553 (d_make_comp, d_print_comp): Likewise.
2554
9a9baa52
ILT
25552012-09-18 Ian Lance Taylor <iant@google.com>
2556
2557 * strnlen.c: New file.
2558 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2559 present.
2560 * Makefile.in: Rebuild dependencies.
2561 (CFILES): Add strnlen.c.
2562 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2563 * configure, config.in, functions.texi: Rebuild.
2564
2565 * maint-tool: Accept .def files in the include directory.
2566
ed770de9
FW
25672012-09-18 Florian Weimer <fweimer@redhat.com>
2568
2569 PR other/54411
2570 * objalloc.c (_objalloc_alloc): Add overflow check covering
2571 alignment and CHUNK_HEADER_SIZE addition.
2572
fabfa16b
L
25732011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2574
2575 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2576 xmalloc return.
2577 (buildargv): Likewise. Also replace strdup with xstrdup.
2578 (expandargv): Don't check dupargv return.
2579
55529d36
L
25802011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2581
2582 PR binutils/14526
2583 * argv.c (buildargv): Replace alloca with xmalloc/free.
2584
c9ac76ae
AS
25852012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2586
2587 * floatformat.c (floatformat_to_double): Correctly handle numbers
2588 between 1 and 2. Simplify handling of denormal number.
2589 (main): Test with 1.1.
2590
d555a90e
MF
25912012-07-31 Mike Frysinger <vapier@gentoo.org>
2592
2593 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2594 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2595
9cd6dd82
KH
25962012-07-26 Kazu Hirata <kazu@codesourcery.com>
2597 Sandra Loosemore <sandra@codesourcery.com>
2598
2599 * pex-win32.c (pex_win32_exec_child): Only close original file
2600 descriptors if child is launched successfully.
2601
aefa74bd
JM
26022012-07-18 Jason Merrill <jason@redhat.com>
2603
2604 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2605 (op_is_new_cast): New.
2606 (d_expression, d_print_comp): Check it.
2607
69488641
DE
26082012-07-13 Doug Evans <dje@google.com>
2609
2610 * filename_cmp.c (filename_hash, filename_eq): New functions.
2611
8a8b3779
AS
26122012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2613
2614 * copying-lib.texi (Library Copying): Don't use @heading inside
2615 @enumerate.
2616
d931f693
TT
26172012-05-22 Tom Tromey <tromey@redhat.com>
2618
2619 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2620 * testsuite/demangle-expected: Add regression test.
2621 * cp-demangle.c (d_find_pack): Return NULL for
2622 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2623
11ec770e
TT
26242012-04-27 Tom Tromey <tromey@redhat.com>
2625
2626 * dwarfnames.c: New file.
2627 * Makefile.in (CFILES): Add dwarfnames.
2628 (REQUIRED_OFILES): Add dwarfnames.
2629 (./dwarfnames.$(objext)): New target.
2630
c1a96977
TG
26312012-04-04 Tristan Gingold <gingold@adacore.com>
2632
2633 * pex-unix.c (to_ptr32): Fix style.
2634
63e1e57a
TG
26352012-04-02 Tristan Gingold <gingold@adacore.com>
2636
2637 * stack-limit.c: Includes ansidecl.h.
2638 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2639
c19267cb
JM
26402012-03-20 Jason Merrill <jason@redhat.com>
2641
2642 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2643
c93ea196
JM
26442012-03-07 Jason Merrill <jason@redhat.com>
2645
2646 * cp-demangle.c (cplus_demangle_operators): Add li.
2647 (d_unqualified_name): Handle it specially.
2648
bfb676c1
JJ
26492012-01-26 Jakub Jelinek <jakub@redhat.com>
2650
2651 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2652 about using preprocessor directives inside of macro arguments.
2653
daecebc8
DR
26542012-01-22 Douglas B Rupp <rupp@gnat.com>
2655
2656 * configure: Regenerate.
2657
3abbe458
JM
26582012-01-10 Jason Merrill <jason@redhat.com>
2659
2660 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2661 Omit a trailing space in the operator name.
2662
49f2da1a
JM
26632012-01-06 Jason Merrill <jason@redhat.com>
2664
4b6aaa99
JM
2665 PR c++/6057
2666 PR c++/48051
2667 PR c++/50855
2668 PR c++/51322
2669 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2670 DEMANGLE_COMPONENT_INITIALIZER_LIST.
2671 (d_make_comp): Likewise. Allow null right arg for
2672 DEMANGLE_COMPONENT_TRINARY_ARG2.
2673 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2674 (d_template_args, d_template_arg): Handle 'J' for argument packs.
2675 (d_exprlist): Add terminator parm.
2676 (d_expression, d_print_comp): Handle initializer lists, nullary
2677 expressions, prefix/suffix operators, and new.
2678 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2679 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2680 * testsuite/demangle-expected: Add tests.
2681
49f2da1a
JM
2682 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2683 and vector are substitutable.
2684 (cplus_demangle_operators): Sort.
2685
925b0ed8
AK
26862012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2687
2688 * configure: Regenerate.
2689
341d3f6e
JJ
26902012-01-02 Jakub Jelinek <jakub@redhat.com>
2691
2692 * make-relative-prefix.c (make_relative_prefix_1): Avoid
2693 stack overflow if PATH contains just a single entry and
2694 HOST_EXECUTABLE_SUFFIX needs to be used.
2695
2696 PR driver/48306
2697 * make-relative-prefix.c: Include sys/stat.h.
2698 (make_relative_prefix_1): If access succeeds, check also stat
2699 if nstore is a regular file.
2700
4a5e00ca
AS
27012011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2702
2703 * configure: Regenerate.
2704
8c3db96e
TG
27052011-12-20 Tristan Gingold <gingold@adacore.com>
2706
2707 * aclocal.m4: Assume strncmp works in cross case.
2708 * configure: Regenerate
2709
095af58f
AS
27102011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2711
2712 * configure: Regenerate.
2713
0a35513e
AH
27142011-11-07 Richard Henderson <rth@redhat.com>
2715
2716 Merged from transactional-memory.
2717
2718 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2719 gnu_v3_object_ctor_group.
2720 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2721 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2722 and gnu_v3_object_dtor_group.
2723 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2724 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2725 (d_make_comp, d_print_comp): Likewise.
2726 (d_special_name): Generate them.
2727
b25dd954
JM
27282011-11-04 Jason Merrill <jason@redhat.com>
2729
2730 PR c++/48370
2731 * cp-demangle.c (d_special_name, d_print_comp): Handle a
2732 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2733
4092fb6e
DE
27342011-11-02 Doug Evans <dje@google.com>
2735
9f2f6d5e 2736 * Makefile.in (CFILES): Add timeval-utils.c.
4092fb6e
DE
2737 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2738 (INSTALLED_HEADERS): Add timeval-utils.h.
2739 (timeval-utils.$(objext)): Add rule.
2740
d6b0f0f1
ILT
27412011-10-28 Ian Lance Taylor <iant@google.com>
2742
2743 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2744
b20577ea
IS
27452011-10-26 Iain Sandoe <iains@gcc.gnu.org>
2746
2747 PR target/48108
2748 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
2749 GNU_WRAPPER_NAMES): New macros.
2750 (simple_object_mach_o_segment): Handle wrapper scheme.
2751 (simple_object_mach_o_write_section_header): Allow the segment name
2752 to be supplied.
2753 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
2754 that the top-level segment name in the load command is empty.
2755 (simple_object_mach_o_write_to_file): Determine the number of
2756 sections during segment output, use that in writing the header.
2757
d58818f7
ILT
27582011-10-10 Ian Lance Taylor <iant@google.com>
2759
2760 PR c++/48665
2761 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
2762 function type, change them to apply to the "this" parameter.
2763 * testsuite/demangle-expected: Add test case.
2764
be50fcea
DE
27652011-09-28 Doug Evans <dje@google.com>
2766
8c850a5a 2767 * timeval-utils.c: New file.
8c850a5a 2768
be50fcea
DE
2769 * argv.c (countargv): New function.
2770
2d2b02c4
CC
27712011-09-23 Cary Coutant <ccoutant@google.com>
2772
2773 PR 40831
2774 * cp-demangle.c (d_make_comp): Add new component type.
2775 (cplus_demangle_mangled_name): Check for clone suffixes.
2776 (d_parmlist): Don't error out if we see '.'.
2777 (d_clone_suffix): New function.
2778 (d_print_comp): Print info for clone suffixes.
2779 * testsuite/demangle-expected: Add new testcases.
2780
d303ec8e 27812011-09-23 Ian Lance Taylor <iant@google.com>
ae0d176c 2782 Pierre Vittet <piervit@pvittet.com>
d303ec8e
ILT
2783
2784 * md5.c (md5_process_bytes): Correct handling of unaligned
2785 buffer.
2786
e3aa9eba
RO
27872011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2788
2789 * aclocal.m4: Include ../config/picflag.m4.
2790 * configure.ac (GCC_PICFLAG): Call it.
2791 (enable_shared): Clear PICFLAG unless shared.
2792 * configure: Regenerate.
2793
c49b1a29
SE
27942011-08-12 Steve Ellcey <sje@cup.hp.com>
2795
2796 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2797
bd820218
UB
27982011-08-06 Uros Bizjak <ubizjak@gmail.com>
2799
2800 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2801
4bbff96e
JM
28022011-08-01 Jason Merrill <jason@redhat.com>
2803
2804 PR c++/49932
2805 * cp-demangle.c (d_prefix): Handle decltype.
2806 * testsuite/demangle-expected: Test it.
2807
52bed4d7
L
28082011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 * testsuite/demangle-expected: Remove an extra line.
2811
f2e6f32e
ILT
28122011-07-26 Ian Lance Taylor <iant@google.com>
2813
2814 * cp-demangle.c (d_print_init): Initialize pack_index field.
2815 (d_print_comp): Check for NULL template argument.
2816 * testsuite/demangle-expected: Add test case.
2817
a0a22423
GP
28182011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
2819
2820 PR target/49817
2821 * stack-limit.c: Include <stdint.h>.
2822
d423df48
JJ
28232011-07-22 Jakub Jelinek <jakub@redhat.com>
2824
2825 PR c++/49756
2826 * stack-limit.c: New file.
2827 * Makefile.in: Regenerate deps.
2828 (CFILES): Add stack-limit.c.
2829 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
2830 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
2831 (AC_CHECK_FUNCS): Likewise.
2832 * configure: Regenerated.
2833 * config.in: Regenerated.
2834
a517066d
JM
28352011-07-04 Jason Merrill <jason@redhat.com>
2836
2837 * cp-demangle.c (d_expression): Handle 'this'.
2838 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
2839
985b34c7
JB
28402011-07-01 Joel Brobecker <brobecker@adacore.com>
2841
2842 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
2843 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
2844
cb0ad104
JK
28452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 PR debug/49408
2848 * cp-demangle.c (d_print_comp): Suppress argument list for function
2849 references by the '&' unary operator. Keep also already processed
2850 variant without the argument list. Suppress argument list types for
2851 function call used in an expression.
2852 * testsuite/demangle-expected: Fix excessive argument list types in
2853 `test for typed function in decltype'. New testcase for no argument
2854 list types printed. 3 new testcases for function references by the
2855 '&' unary operator..
2856
dd70e080
JM
28572011-06-20 Jason Merrill <jason@redhat.com>
2858
2859 PR c++/37089
2860 * cp-demangle.c (d_print_comp): Handle reference smashing.
2861 * testsuite/demangle-expected: Test it.
2862
5fe8e1e9
JK
28632011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2864
2865 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
2866 Suppress d_print_mod for DMGL_RET_POSTFIX.
2867 * testsuite/demangle-expected: New testcases for --ret-postfix.
2868
f019462c
JK
28692011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
2872 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
2873 * testsuite/demangle-expected: New testcases for --ret-drop.
2874 * testsuite/test-demangle.c: Document --ret-drop in a comment.
2875 (main): New variable ret_drop, fill it, call cplus_demangle with it.
2876
743a99db
JK
28772011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2878
2879 * cp-demangle.c (struct d_print_info): Remove field options.
2880 (d_print_init): Remove parameter options.
2881 (cplus_demangle_print_callback): Update all the callers.
2882 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
2883 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
2884 Add parameter options, update all the callers.
2885
04695783
JM
28862011-04-20 Jim Meyering <meyering@redhat.com>
2887
2888 * cp-demint.c (cplus_demangle_v3_components): Remove useless
2889 if-before-free.
2890 * cplus-dem.c (squangle_mop_up): Likewise.
2891 (delete_non_B_K_work_stuff): Likewise.
2892 * pex-common.c (pex_free): Likewise.
2893 * pex-msdos.c (pex_msdos_cleanup): Likewise.
2894 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
2895 (win32_spawn): Likewise.
2896 * regex.c (FREE_VAR, weak_alias): Likewise.
2897 * spaces.c (spaces): Likewise.
2898
4b9726d4
JM
28992011-04-10 Jim Meyering <meyering@redhat.com>
2900
2901 Avoid memory overrun in a test leading to potential double-free.
2902 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
2903 i.e., do copy the trailing NUL byte.
2904
178aa0f6
TG
29052011-03-31 Tristan Gingold <gingold@adacore.com>
2906
2907 * makefile.vms (OBJS): Add filename_cmp.obj
2908
94369251
KT
29092011-02-28 Kai Tietz <kai.tietz@onevision.com>
2910
2911 * filename_cmp.c (filename_ncmp): New function.
2912 * functions.texi: Regenerated.
2913
996c0cb0
RW
29142011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2915
2916 * splay-tree.c: Escape wrapping newlines in texinfo markup
2917 with '@', to fix function declaration output rendering.
2918 * gather-docs: Relax and improve macro name matching to actually
2919 match all current names and to allow input line wrapping.
2920 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
2921 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
2922 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
2923 pexecute.txh, random.c, setenv.c, setproctitle.c,
2924 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
2925 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
2926 Wrap long texinfo input lines.
2927 * functions.texi: Regenerate.
2928
9e7955b2
MF
29292011-01-18 Mike Frysinger <vapier@gentoo.org>
2930
2931 * .gitignore: New file.
2932
23346f36
DE
29332010-12-08 Doug Evans <dje@google.com>
2934
2935 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
2936 all callers updated. Rewrite to be non-recursive.
2937
4c7d97e6
RO
29382010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2939
2940 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
2941
52ae149d
AG
29422010-11-20 Anthony Green <green@moxielogic.com>
2943
2944 * configure.ac: Turn PR_SET_NAME link test into a test for
2945 sys/prctl.h.
2946 * configure, config.in: Rebuilt.
2947 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
2948 (setproctitle) Test for PR_SET_NAME definition.
2949
455c8f48
RW
29502010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2951
2952 PR other/46202
2953 * Makefile.in (install-strip): New phony target.
2954 (install): Also mark as phony.
2955
d82f74d3
ILT
29562010-11-16 Ian Lance Taylor <iant@google.com>
2957
2958 * simple-object.c (simple_object_attributes_merge): Rename from
2959 simple_object_attributes_compare. Call merge field.
2960 * simple-object-common.h (struct simple_object_functions): Rename
2961 attributes_compare field to attribute_merge.
2962 * simple-object-elf.c (EM_SPARC): Define.
2963 (EM_SPARC32PLUS): Define.
2964 (simple_object_elf_attributes_merge): Renamed from
2965 simple_object_elf_attributes_compare. Permit EM_SPARC and
2966 EM_SPARC32PLUS objects to be merged.
2967 (simple_object_elf_functions): Update function name.
2968 * simple-object-coff.c (simple_object_coff_attributes_merge):
2969 Rename from simple_object_coff_attributes_compare.
2970 (simple_object_coff_functions): Update function name.
2971 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
2972 Renamed from simple_object_mach_o_attributes_compare.
2973 (simple_object_mach_o_functions): Update function name.
2974
431f321f
L
29752010-11-16 H.J. Lu <hongjiu.lu@intel.com>
2976
2977 PR other/42670
2978 PR binutils/11137
2979 * cp-demangle.c (d_make_demangle_mangled_name): New.
2980 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
2981
2982 * testsuite/demangle-expected: Updated.
2983
28d1e73f
KT
29842010-11-14 Kai Tietz <kai.tietz@onevision.com>
2985
2986 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
2987 offset.
2988
759fe240
ILT
29892010-11-12 Ian Lance Taylor <iant@google.com>
2990
2991 PR other/46332
2992 * cp-demangle.c (d_print_function_type): Don't print parentheses
2993 if there are no modifiers to print.
2994 * testsuite/demangle-expected: Tweak one test case, add another.
2995
3b63ca7e
RH
29962010-11-04 Richard Henderson <rth@redhat.com>
2997
2998 * configure.ac (AC_CHECK_HEADERS): Add process.h.
2999 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
3000 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
3001 * configure, config.in: Rebuild.
3002 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
3003 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
3004
1cfabf34
ILT
30052010-11-02 Ian Lance Taylor <iant@google.com>
3006 Dave Korn <dave.korn.cygwin@gmail.com>
3007 Iain Sandoe <iains@gcc.gnu.org>
3008
3009 * simple-object.c: New file.
3010 * simple-object-common.h: New file.
3011 * simple-object-elf.c: New file.
3012 * simple-object-mach-o.c: New file.
3013 * simple-object-coff.c: New file.
3014 * simple-object.txh: New file.
3015 * configure.ac: Add AC_TYPE_SSIZE_T.
3016 * Makefile.in: Rebuild dependencies.
3017 (CFILES): Add simple-object.c, simple-object-coff,
3018 simple-object-elf.c, and simple-object-mach-o.c.
3019 (REQUIRED_OFILES): Add corresponding object files.
3020 * configure: Rebuild.
3021 * config.in: Rebuild.
3022 * functions.texi: Rebuild.
3023
c3735614
ILT
30242010-10-29 Ian Lance Taylor <iant@google.com>
3025
3026 * setproctitle.c: Add space after function name in @deftypefn
3027 comment.
3028 * functions.texi: Rebuild.
3029
0e0f02ff
RW
30302010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3031
3032 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3033 * configure: Regenerate.
3034
ecdbd01a 30352010-10-07 Andi Kleen <ak@linux.intel.com>
4e00fad2
AK
3036
3037 * configure: Regenerate.
3038 * configure.ac: Turn PR_SET_NAME check into link check.
3039
ecdbd01a 30402010-10-06 Andi Kleen <ak@linux.intel.com>
6e9bd0f8
AK
3041
3042 * Makefile.in (CFILES): Add setproctitle.
3043 (CONFIGURED_OFILES): Add setproctitle.
3044 (setproctitle): Add rule.
3045 * config.in: Regenerate.
3046 * configure: Regenerate.
3047 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
3048 * setproctitle.c: Add file.
3049 * functions.texi: Regenerate.
3050
a69d9775
TG
30512010-09-22 Tristan Gingold <gingold@adacore.com>
3052
3053 * cplus-dem.c (ada_demangle): Add comments.
3054 Handle stream and controlled type operations.
3055 Decoding of some uppercase letters moved before separators.
3056 * testsuite/demangle-expected: Add tests.
3057
48255616
JL
30582010-09-10 James Lyon <jameslyon0@googlemail.com>
3059
3060 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
3061 * cp-demangle.c (d_find_pack): Add case for
3062 DEMANGLE_COMPONENT_LAMBDA.
3063 * testsuite/demangle-expected: Add regression test.
3064
16f60fcb
TG
30652010-09-08 Tristan Gingold <gingold@adacore.com>
3066
3067 PR 44001
3068 * maint-tool (missing): Fix pattern for object file.
3069 (deps): Use $(objext) for object extension.
3070 * Makefile.in (objext): New variable.
3071 Replace all occurences of .o with .$(objext)
3072 Regenerate with maint-deps
3073 * configure.ac (pexecute): Set to the basename.
3074 * configure: Regenerate.
3075
93f36faa
MR
30762010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
3077
3078 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
3079 corresponding stream has been opened.
3080 (pex_free): Close pipe file descriptors corresponding to child's
3081 stdout and stderr before waiting.
3082
ec760bea
NC
30832010-08-13 Nick Clifton <nickc@redhat.com>
3084
3085 * argv.c (expandargv): Limit the number of times that response
3086 files are opened in order to prevent infinite recursion.
3087
79cf7628
PO
30882010-07-21 Pascal Obry <obry@adacore.com>
3089
3090 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3091
d414dde9
KW
30922010-07-06 Ken Werner <ken.werner@de.ibm.com>
3093
3094 * floatformat.c (floatformat_ieee_half_big): New variable.
3095 (floatformat_ieee_half_little): Likewise.
3096
1e913734
GP
30972010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
3098
3099 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
3100 Update copyright years.
3101 Move to GFDL 1.3.
3102
9c4d7e52
JJ
31032010-06-10 Jakub Jelinek <jakub@redhat.com>
3104
3105 PR other/43838
3106 * cp-demangle.c (struct d_print_info): Add flush_count field.
3107 (d_print_init): Initialize it to 0.
3108 (d_print_flush): Increment it.
3109 (d_print_comp): If needed flush before appending ", ". Only
3110 decrement dpi->len if no flushes happened during the recursive
3111 call.
3112 * testsuite/demangle-expected: Add a test for this.
3113
a9429e29
LB
31142010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3115
3116 * splay-tree.c: Update copyright years.
3117 (splay_tree_new_typed_alloc): New.
3118 (splay_tree_new_with_allocator): Use it.
3119
3120 * hashtab.c: Update copyright years.
3121 (htab_create_typed_alloc): New.
3122 (htab_create_alloc): Use it.
3123
3124 * functions.texi: Regenerate.
3125
c3f247f4
RW
31262010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
3127 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3128
3129 PR bootstrap/42798
3130 * configure.ac: Check for declaration of 'basename(char *)'.
3131 * configure: Regenerate.
3132
31332010-05-26 Kai Tietz <kai.tietz@onevision.com>
a6766312
KT
3134
3135 * testsuite/demangle-expected: Add tests for __int128
3136 and unsigned __int128 types.
3137
14c2101d
JM
31382010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3139 Jason Merrill <jason@redhat.com>
3140
3141 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3142 (cplus_demangle_type): Handle nullptr.
3143 * testsuite/demangle-expected: Test it.
3144
3009276c
PA
31452010-04-23 Pedro Alves <pedro@codesourcery.com>
3146
3147 * lbasename.c (lbasename): Split into ...
3148 (unix_lbasename, dos_basename): ... these.
3149 (lbasename): ... and reimplement on top of them.
3150 * Makefile.in (lbasename.o): Add dependency on
3151 $(INCDIR)/filenames.h.
3152
0bb8c134
JJ
31532010-04-07 Jakub Jelinek <jakub@redhat.com>
3154
3155 * regex.c (byte_re_match_2_internal): Avoid set but not used
3156 warning.
3157
ce30e6fd
JM
31582010-03-22 Jason Merrill <jason@redhat.com>
3159
3160 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3161
ef74edbd
RW
31622010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3163
3164 * Makefile.in (all): Do not use exec.
3165
2480e18f
TT
31662010-02-04 Tom Tromey <tromey@redhat.com>
3167
3168 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3169
abfe01ce
JM
31702010-02-03 Jason Merrill <jason@redhat.com>
3171
f000c6a7
JM
3172 * cp-demangle.c (d_expression): Handle dependent operator name.
3173
abfe01ce
JM
3174 PR c++/12909
3175 * cp-demangle.c (d_number_component, d_vector_type): New.
3176 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3177
79b754d4
ILT
31782010-01-25 Ian Lance Taylor <iant@google.com>
3179
3180 * cp-demangle.c (cplus_demangle_type): Check for invalid type
3181 after "DF".
3182 * testsuite/demangle-expected: Add test.
3183
4d43dcde
JM
31842010-01-20 Jason Merrill <jason@redhat.com>
3185
3186 PR c++/42338
3187 * cp-demangle.c (d_print_comp): Fix array index printing.
3188
5b40c067
TG
31892010-01-11 Tristan Gingold <gingold@adacore.com>
3190
3191 * cplus-dem.c (ada_demangle): Remove prototype.
3192 (grow_vect): Removed.
3193 (ada_demangle): Rewritten.
3194 (cplus_demangle): Fix indentation.
3195 * testsuite/demangle-expected: Add tests for Ada.
3196
9b2adcdb
L
31972010-01-09 Ian Lance Taylor <iant@google.com>
3198
3199 PR other/42230
3200 * cp-demangle.c (d_demangle): Return dgs.alc on success.
3201
ed945ad9
NI
32022010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3203
3204 PR target/42316
3205 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3206 * configure: Regenerate.
3207
698861dc
DE
32082009-12-07 Doug Evans <dje@google.com>
3209
3210 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3211
59a8dc25
BE
32122009-11-26 Ben Elliston <bje@au.ibm.com>
3213
3214 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3215 * configure: Regenerate.
3216
1dd2c57b
BE
32172009-11-25 Ben Elliston <bje@au.ibm.com>
3218
3219 * functions.texi: Rebuild.
3220
f8766c93
MLI
32212009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3222 Ben Elliston <bje@au.ibm.com>
3223
3224 * README: Mention changes to Makefile.in and functions.texi.
3225 * gather-docs: Mention 'make stamp-functions' in the header.
3226
5120dc38
BE
32272009-11-23 Ben Elliston <bje@au.ibm.com>
3228 Ian Lance Taylor <iant@google.com>
3229
3230 * pex-unix.c (pex_child_error): Improve warning avoidance by
3231 checking the results of write(3) and exiting with -2 if any write
3232 returns a negative value.
3233
d90a2c59
SW
32342009-11-22 Steve Ward <planet36@gmail.com>
3235
3236 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3237
c22c44ba
BE
32382009-11-20 Ben Elliston <bje@au.ibm.com>
3239
3240 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3241 unused result warnings from write(3) calls. Undefine writeerr
3242 after all uses.
3243
70277b30
DG
32442009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3245 Daniel Jacobowitz <dan@codesourcery.com>
3246 Pedro Alves <pedro@codesourcery.com>
3247
70277b30
DG
3248 * argv.c (consume_whitespace): New function.
3249 (only_whitespace): New function.
3250 (buildargv): Always use ISSPACE by calling consume_whitespace.
3251 (expandargv): Skip empty files. Do not stop at the first empty
3252 argument (calling only_whitespace)..
3253 * testsuite/test-expandargv.c: (test_data): Test empty lines
3254 and empty arguments.
3255 (run_tests): Fix false positives due to shorter arguments.
3256
4578037e
MT
32572009-09-30 Martin Thuresson <martint@google.com>
3258
3259 * regex.c (byte_re_match_2_internal): Split declaration and
3260 assignment to avoid -Wc++-compat warning due to goto.
3261
d5f4eddd
JM
32622009-09-29 Jason Merrill <jason@redhat.com>
3263
3264 * Makefile.in: Enable demangle target.
3265 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3266 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3267 (d_parmlist): Factor out from d_bare_function_type.
3268 (d_compact_number): Factor out from d_template_param and d_expression.
3269 (d_append_num): Factor out from d_print_comp.
3270 (d_print_comp, d_print_mod_list): Handle lambdas.
3271 * testsuite/demangle-expected: Add lambda tests.
3272
31a9bec4 32732009-09-23 Matthew Gingell <gingell@adacore.com>
30b639a8
MG
3274
3275 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3276
bcf11ab4
OS
32772009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3278
3279 * choose-temp.c: Include unistd.h for mingw targets.
3280
50cb834f
RO
32812009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3282
3283 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3284
384ed84d
TG
32852009-09-15 Tristan Gingold <gingold@adacore.com>
3286
3287 * config.h-vms (intptr_t): Define to compile hashtab.c
3288
0e497905
OS
32892009-09-04 Ozkan Sezer <sezeroz@gmail.com>
3290
3291 PR target/39065
3292 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3293 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3294 * config.in: Regenerated.
3295 * configure: Regenerated.
3296
2e3dac6f
OS
32972009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3298
3299 PR target/39065
3300 * configure.ac: Also check for intptr_t.
3301 * config.h.in: Regenerated.
3302 * configure: Regenerated.
3303 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3304 instead of of long.
3305
f071aaca
TG
33062009-09-02 Tristan Gingold <gingold@adacore.com>
3307
3308 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3309 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3310 dependencies. Remove unused FORMAT variable.
3311 * configure.com: New file to create build.com DCL script for
3312 Itanium VMS or Alpha VMS.
3313
df58e648
RW
33142009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3315
3316 * configure.ac (AC_PREREQ): Bump to 2.64.
3317
2eba9355
L
33182009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3319
3320 PR ld/10536
3321 * Makefile.in (install-html-recursive): Removed.
3322
5213506e
RW
33232009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3324
3325 * config.in: Regenerate.
3326 * configure: Regenerate.
3327
6efbd53f
RW
33282009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3329
3330 * Makefile.in (AUTOCONF, configure_deps): New variables.
3331 ($(srcdir)/configure): New rule, active only in maintainer mode.
3332
2958f4a2
DR
33332009-07-29 Douglas B Rupp <rupp@gnat.com>
3334
3335 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3336
b303ef51
DR
33372009-07-27 Douglas B Rupp <rupp@gnat.com>
3338
3339 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3340 file instead).
3341 (to_ptr32): New function.
3342 (pex_unix_exec_child): Use it.
3343
330b922f
ILT
33442009-07-24 Ian Lance Taylor <iant@google.com>
3345
3346 PR bootstrap/40854
3347 * crc32.c (xcrc32): Rename from crc32.
3348
b524249c
ILT
33492009-07-24 Ian Lance Taylor <iant@google.com>
3350
3351 * crc32.c: New file.
3352 * Makefile.in: Rebuild dependencies.
3353 (CFILES): Add crc32.c.
3354 (REQUIRED_OFILES): Add ./crc32.o.
3355 * functions.texi: Rebuild.
3356
23b1a789
JK
33572009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3358
3359 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3360 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3361 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3362 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3363 (d_demangle_callback): The variable type is now declared as enum.
3364 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3365
a46f975b
JJ
33662009-06-21 Jakub Jelinek <jakub@redhat.com>
3367
3368 * hashtab.c (htab_traverse): Don't call htab_expand for
3369 nearly empty hashtabs with sizes 7, 13 or 31.
3370
ee07afa0
NC
33712009-06-16 Nick Clifton <nickc@redhat.com>
3372
3373 PR 10197
3374 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3375 conflicts with system function of the same name.
3376
ec5c6f4a
EZ
33772009-05-30 Eli Zaretskii <eliz@gnu.org>
3378
3379 * snprintf.c: Doc fix.
3380
3381 * vsnprintf.c: Doc fix.
3382
bb870b58
KT
33832009-05-29 Kai Tietz <kai.tietz@onevision.com>
3384
bd820218 3385 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
bb870b58 3386
4cfaf1ec
MM
33872009-05-29 Michael Matz <matz@suse.de>
3388
3389 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3390 out when forcing the minimum.
3391 (fibheap_delete_node): Assert that we managed to force the minimum.
3392
0d38b677
TG
33932009-05-25 Tristan Gingold <gingold@adacore.com>
3394
3395 * config.h-vms: Rewritten. Define configure macros.
3396 Use DEC-C builtin alloca.
3397
3398 * makefile.vms (OBJS): Update list.
3399 (OPT): New variable.
3400 (CFLAGS): Update compilation flags.
3401 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3402
7859dde7
ILT
34032009-05-19 Ian Lance Taylor <iant@google.com>
3404 Ben Elliston <bje@au.ibm.com>
3405
3406 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3407 (cplus_demangle_fill_dtor): Likewise.
3408
965cc3c3
JB
34092009-05-17 Julian Brown <julian@codesourcery.com>
3410
3411 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3412 standard handles (stdin, stdout, stderr) in parent.
3413
6874160d
JB
34142009-04-29 Julian Brown <julian@codesourcery.com>
3415
bd820218 3416 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
6874160d
JB
3417 (pex_win32_exec_child): Ensure each process has only one handle open
3418 on pipe endpoints. Close standard input after creating child for
3419 symmetry with standard output/standard error.
3420
ae2040df
EZ
34212009-04-25 Eli Zaretskii <eliz@gnu.org>
3422
3423 * Makefile.in (needed-list): Target removed (not used in GCC
3424 3.0 and later). All references deleted.
3425 (mostlyclean): Remove references to needed.awk and needed2.awk.
3426
01459fb5
EZ
34272009-04-14 Eli Zaretskii <eliz@gnu.org>
3428
3429 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3430 existing and required library functions to with_target_subdir
3431 section, so that the native build does detect them at configure
3432 time.
3433 * configure: Regenerated.
bd820218 3434
92c3e704
OS
34352009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3436
bd820218
UB
3437 PR target/39397
3438 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3439 not as long (members *children and (*wait))
3440 * pex-common.c (pex_run_in_environment): Likewise.
3441 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3442 returned pid value.
3443 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3444 * pex-msdos.c (pex_msdos_wait): Likewise.
92c3e704 3445
020e3d02
AP
34462009-04-07 Arnaud Patard <apatard@mandriva.com>
3447
969ac969
JJ
3448 * configure.ac: Fix Linux/MIPS matching rule.
3449 * configure: Regenerate.
020e3d02 3450
b524249c 34512009-03-27 Ian Lance Taylor <iant@google.com>
5fbd9447
ILT
3452
3453 * memmem.c: New file, from gnulib.
3454 * configure.ac: Add memmem to list of functions provided if they
3455 are not available on the host.
3456 * Makefile.in: Rebuild dependencies.
3457 (CFILES): Add memmem.c.
3458 (CONFIGURED_OFILES): Add memmem.o.
3459 * configure, config.in, functions.texi: Rebuild.
3460
6afcfe0a
JM
34612009-03-23 Jason Merrill <jason@redhat.com>
3462
3463 * cp-demangle.c (d_expression): Handle pack expansion.
3464 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3465 (d_print_subexpr): Don't wrap function parms in ().
3466 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3467 not finding a pack.
3468
448545cb
JM
34692009-03-17 Jason Merrill <jason@redhat.com>
3470
3471 * cp-demangle.c (d_make_function_param): new fn.
3472 (cplus_demangle_mangled_name): Work around abi v2 bug.
3473 (d_expr_primary): Likewise.
3474 (cplus_demangle_operators): Add alignof ops.
3475 (d_expression): Handle function parameters and conversions
3476 with other than 1 operand.
3477 (d_print_comp): Handle function parameters. Fix bug with
3478 function used in type of function.
79b754d4 3479 * testsuite/demangle-expected: Update tests.
448545cb 3480
8c9abf1f
MM
34812009-02-21 Mark Mitchell <mark@codesourcery.com>
3482
3483 * make-temp-file.c (<windows.h>): Include on Windows.
3484 (choose_tmpdir): On Windows, use GetTempPath.
3485
04f9f7b5
DK
34862009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3487
3488 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3489 as it no longer shares libiberty object files.
3490 * configure: Regenerated.
3491
30471e01
JM
34922009-01-07 Jason Merrill <jason@redhat.com>
3493
3494 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3495
381009fe
BE
34962009-01-06 Ben Elliston <bje@au.ibm.com>
3497
3498 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3499 character following a 'D' cannot be recognised.
3500
938e76ad
JM
35012008-12-18 Jason Merrill <jason@redhat.com>
3502
3503 PR c++/38561
3504 * cp-demangle.c (d_expression, d_print_comp): Revert
3505 cast changes.
3506
a77f94e2
JM
35072008-12-17 Jason Merrill <jason@redhat.com>
3508
3509 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3510 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3511 (d_print_comp): Avoid extra ", " with empty template argument packs.
3512 Remove handling for obsolete T() mangling.
3513
07523e7c
JM
35142008-12-10 Jason Merrill <jason@redhat.com>
3515
3516 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3517 (d_print_comp, d_dump): Likewise.
3518
b36c386c
DJ
35192008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3520
3521 * Makefile.in (CPPFLAGS): Define.
3522 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3523
269f1d98
PB
35242008-10-15 Paolo Bonzini <bonzini@gnu.org>
3525
61b74e12 3526 PR bootstrap/37137
269f1d98
PB
3527 * Makefile.in (LIBCFLAGS): Remove.
3528 (FLAGS_TO_PASS): Don't mention it.
3529 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3530
0c9e8424
DE
35312008-10-08 David Edelsohn <edelsohn@gnu.org>
3532
3533 * xstrdup.c: Include <sys/types.h> after "config.h"
bd820218 3534
d208e2d2
JK
35352008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3536
3537 * configure.ac: Call AC_SYS_LARGEFILE.
3538 * config.in: Regenerated.
3539 * configure: Likewise.
3540
38179091
JM
35412008-10-06 Jason Merrill <jason@redhat.com>
3542
3543 * cp-demangle.c (struct d_print_info): Add pack_index.
3544 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3545 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3546 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3547 (cplus_demangle_builtin_types): Add char16/32_t.
3548 (cplus_demangle_type): Recognize them.
3549 (d_template_args): Handle empty argument packs.
3550 (d_template_arg): Handle argument packs.
3551 (d_expression): Handle dependent name.
3552 (d_index_template_argument): New fn.
3553 (d_lookup_template_argument): New fn.
3554 (d_find_pack, d_pack_length): New fn.
3555 (d_print_subexpr): Split out...
3556 (d_print_comp): ...from here. Use d_*_template_argument.
3557 Handle empty arg lists. Support pack expansions.
3558 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3559
5a3d7e74
JM
35602008-09-09 Jason Merrill <jason@redhat.com>
3561
3562 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3563 (d_make_comp): Likewise.
3564 (cplus_demangle_type): Handle decltype and DFP types.
3565 (cplus_demangle_operators): Call operator takes 2 args.
3566 (cplus_demangle_builtin_types): Add DFP types.
3567 (d_exprlist): New fn.
3568 (d_expression): Handle parm placeholders, T() and calls.
3569 (d_print_comp): Handle decltype, T() and calls.
3570 * testsuite/demangle-expected: Test the above.
3571
98b45309
AL
35722008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3573
3574 * pex-win32.c (argv_to_argc): New function.
3575 (spawn_script): Duplicate argv before calling win32_spawn.
3576
60ecfb1b
JJ
35772008-07-31 Jakub Jelinek <jakub@redhat.com>
3578
3579 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3580
a23eb008
DV
35812008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3582
3583 * mkstemps.c (mkstemps): If open failed with errno other than
3584 EEXIST, return immediately.
3585 * make-temp-file.c: Include errno.h.
3586 (make_temp_file): If mkstemps failed, print an error message
3587 before aborting.
3588
f59a2f55
RW
35892008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3590
3591 * maint-tool (deps): Output config.h instead of stamp-h.
3592 * Makefile.in: Rebuild deps.
3593 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3594 Reverts 2007-07-11 change.
3595
6819ba36
EB
35962008-06-19 Eric Blake <ebb9@byu.net>
3597
3598 Adjust strsignal to POSIX 200x prototype.
3599 * strsignal.c (strsignal): Remove const.
3600
18c04407
RW
36012008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3602
3603 * configure: Regenerate.
3604
6ccde948
RW
36052008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3606
3607 * libiberty.texi: Expand TABs, drop indentation outside examples.
3608 * obstacks.texi: Likewise.
3609
951b54cc
AJ
36102008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3611
969ac969
JJ
3612 * configure.ac: use -fPIC on Linux/MIPS hosts.
3613 * configure: Regenerate.
951b54cc 3614
b6baa67d
KVH
36152008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3616
3617 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3618
deb984e6
PB
36192008-04-18 Paolo Bonzini <bonzini@gnu.org>
3620
3621 PR bootstrap/35457
3622 * aclocal.m4: Add override.m4.
3623 * configure: Regenerate.
3624
eeda7b98
ILT
36252008-03-31 Ian Lance Taylor <iant@google.com>
3626
3627 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3628 -fstrict-overflow optimizations.
3629
c91c9c2e
PB
36302008-03-27 Paolo Bonzini <bonzini@gnu.org>
3631
3632 * configure.ac (frags): Don't set, use frag instead.
3633 (PICFLAG): Set here and substitute.
3634 * Makefile.in (PICFLAG): Substitute from autoconf.
3635 * configure: Regenerate.
3636
598848e4
ILT
36372008-03-24 Ian Lance Taylor <iant@google.com>
3638
3639 * sha1.c: New file, from gnulib.
3640 * Makefile.in: Rebuild dependencies.
3641 (CFILES): Add sha1.c.
3642 (REQUIRED_OFILES): Add sha1.o.
3643
01b11940
DE
36442008-03-24 Doug Evans <dje@google.com>
3645
3646 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3647 return from strdup.
3648
5a9340fd
SP
36492008-03-12 Seongbae Park <seongbae.park@gmail.com>
3650
3651 * cplus-dem.c (malloc, realloc): Use void * instead of char *
3652 as return type.
3653
73b38fce
NC
36542008-03-11 Nick Clifton <nickc@redhat.com>
3655
3656 * md5.c (md5_process_bytes): Do not assume that memcpy will
3657 provide a return value.
3658
5ff3a208
BE
36592008-02-19 Ben Elliston <bje@au.ibm.com>
3660
3661 PR other/12618
3662 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3663
e5df4fb1
DD
36642008-01-26 David Daney <ddaney@avtrex.com>
3665
3666 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3667 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3668 DEMANGLE_COMPONENT_CHARACTER cases.
3669 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3670 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3671 (d_make_character): New function.
3672 (d_java_resource): Same.
3673 (d_special_name): Handle "Gr" case.
3674 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3675 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3676 DEMANGLE_COMPONENT_CHARACTER cases.
3677 * testsuite/demangle-expected: Add test for java resource name
3678 mangling.
3679
62b445b3
TJB
36802008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3681
3682 * cplus-dem.c (demangle_function_name): Changed to return value
3683 indicating if a name was correctly demangled.
3684 (iterate_demangle_function): Use demangle_function_name return
3685 value.
3686
daf6ff4c
MLI
36872008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3688
3689 PR other/33768
3690 * splay-tree.c (rotate_left): Fix minor typo in comment.
3691 (rotate_right): Likewise.
3692
983a6f8d
JM
36932007-11-12 Joseph Myers <joseph@codesourcery.com>
3694
3695 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3696 compiler warnings.
3697 (floatformat_ibm_long_double): Use
3698 floatformat_ibm_long_double_is_valid.
3699
da59326f
JM
37002007-11-07 Joseph Myers <joseph@codesourcery.com>
3701 Daniel Jacobowitz <dan@codesourcery.com>
3702
3703 * floatformat.c (mant_bits_set): New.
3704 (floatformat_to_double): Use it. Note no special handling of
3705 split formats.
3706 (floatformat_from_double): Note no special handing of split
3707 formats.
3708 (floatformat_ibm_long_double_is_valid,
3709 floatformat_ibm_long_double): New.
3710 (floatformat_ieee_single_big, floatformat_ieee_single_little,
3711 floatformat_ieee_double_big, floatformat_ieee_double_little,
3712 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3713 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3714 floatformat_m68881_ext, floatformat_i960_ext,
3715 floatformat_m88110_ext, floatformat_m88110_harris_ext,
3716 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3717 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3718 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3719 for addition of split_half field.
3720
48492bdf
TT
37212007-09-06 Tom Tromey <tromey@redhat.com>
3722
3723 * pexecute.txh (pex_free): Document process killing.
3724
1ab28be5 37252007-08-31 Douglas Gregor <doug.gregor@gmail.com>
6819ba36 3726
1ab28be5 3727 * cp-demangle.c (d_dump): Handle
6819ba36 3728 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1ab28be5
DG
3729 (d_make_comp): Ditto.
3730 (cplus_demangle_type): Ditto.
3731 (d_print_comp): Ditto.
3732 (d_print_mod): Ditto.
3733 (d_print_function_type): Ditto.
3734
1651030c
KT
37352007-08-24 Kai Tietz <kai.tietz@onevision.com>
3736
3737 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
3738 * pex-djgpp.c: Likewise.
3739 * pex-msdos.c: Likewise.
3740 * pex-unix.c: Likewise.
3741 * pex-win32.c: Likewise.
3742
9c79ad8b
MS
37432007-08-17 Michael Snyder <msnyder@access-company.com>
3744
3745 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3746
fd83e387
MS
37472007-08-03 Michael Snyder <msnyder@access-company.com>
3748
3749 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3750 leak.
3751
ac847e32
MS
37522007-07-31 Michael Snyder <msnyder@access-company.com>
3753
3754 * cp-demangle.c (d_print_comp): Guard against null.
3755
f4f29b59
BE
37562007-07-25 Ben Elliston <bje@au.ibm.com>
3757
3758 * Makefile.in (CFILES): Remove ternary.c.
3759 (REQUIRED_OFILES): Remove ./ternary.o.
3760 (INSTALLED_HEADERS): Remove ternary.h.
3761 (ternary.o): Remove.
3762 * ternary.c: Remove.
3763
f4e00f44
DD
37642007-07-23 DJ Delorie <dj@redhat.com>
3765
3766 * argv.c (writeargv): Fix typo in inline documentation.
3767 * functions.texi: Regenerate.
3768
6a9131e7
DD
37692007-07-17 DJ Delorie <dj@redhat.com>
3770
3771 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
3772 gettimeofday entry.
3773 * configure: Likewise.
3774
0f3d38b6
AO
37752007-07-11 Alexandre Oliva <aoliva@redhat.com>
3776
3777 * maint-tool (deps): Output stamp-h instead of config.h.
3778 * Makefile.in: Rebuild deps.
3779 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3780
38bb3485
SB
37812007-07-02 Simon Baldwin <simonb@google.com>
3782
3783 * argv.c (writeargv): Removed declaration of unused variable.
3784
aa2480c5
PB
37852007-06-14 Paolo Bonzini <bonzini@gnu.org>
3786
3787 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
3788 * configure: Regenerate.
3789
3bbd5a19
PB
37902007-06-14 Paolo Bonzini <bonzini@gnu.org>
3791
3792 * aclocal.m4: Include config/warnings.m4.
3793 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
3794 * configure: Regenerate.
3795
abea993f
GK
37962007-06-07 Geoffrey Keating <geoffk@apple.com>
3797
3798 * configure.ac: Non-default multilibs can be cross compilations.
3799 * configure: Regenerate
3800
2091ff66
NF
38012007-05-07 Nathan Froyd <froydnj@codesourcery.com>
3802
3803 * argv.c (writeargv): New function.
3804
a2aa65f0
GK
38052007-05-05 Geoffrey Keating <geoffk@apple.com>
3806
3807 * cp-demangle.c (d_name): Detect local-source-name.
3808 (d_prefix): Likewise.
3809 (d_unqualified_name): Implement local-source-name.
3810
186c60ab
JB
38112007-05-03 Joel Brobecker <brobecker@adacore.com>
3812
3813 * filename_cmp.c: Replace include of ctype.h by include of
3814 safe-ctype.h.
3815 (filename_cmp): Use TOLOWER instead of tolower for conversions
3816 that are locale-independent.
3817 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
3818
a3fa7535 38192007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
017133fd
TN
3820
3821 * argv.c: Use ANSI C declarations.
3822 * make-relative-prefix.c: Likewise.
3823
96a94ff4
JB
38242007-04-06 Joel Brobecker <brobecker@adacore.com>
3825
3826 * filename_cmp.c (filename_cmp): Improve documentation.
3827
320fc205
AS
38282007-04-02 Andreas Schwab <schwab@suse.de>
3829
3830 * filename_cmp.c: Include "config.h".
3831
cde515d9
JB
38322007-03-29 Joel Brobecker <brobecker@adacore.com>
3833
3834 * filename_cmp.c: New file.
3835 * Makefile.in (CFILES): Add filename_cmp.c.
3836 (REQUIRED_OFILES): Add filename_cmp.o
3837 (filename_cmp.o): New rule.
3838 * functions.texi: Regenerate.
3839
771904f1
GK
38402007-03-15 Geoffrey Keating <geoffk@apple.com>
3841
3842 * cp-demangle.c (d_encoding): Exit early on error.
3843 (d_pointer_to_member_type): Exit early if cplus_demangle_type
3844 returns NULL.
3845 (cplus_demangle_type): Likewise.
3846 * testsuite/demangle-expected: New testcase.
3847
267686a7
BM
38482007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3849
3850 * Makefile.in: Add install-pdf target as copied from
3851 automake v1.10 rules.
3852 * testsuite/Makefile.in: Add dummy install-pdf target.
3853
5f81370d 38542007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
6819ba36 3855 Eric Botcazou <ebotcazou@libertysurf.fr>
5f81370d
PB
3856
3857 PR other/16513
3858 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
3859 Install headers in multilib independent location.
3860
f86b57e4
DD
38612007-02-26 DJ Delorie <dj@redhat.com>
3862
3863 * configure.ac: add djgpp-specific results, so we don't have to
3864 link during a cross compilation.
3865 * configure: Regenerated.
6819ba36 3866
15b16eb5
RW
38672007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3868
3869 * hex.c: Fix typo.
3870 * choose-temp.c: Likewise.
3871 * functions.texi: Regenerate.
3872
7cf4c53d
VP
38732007-01-31 Vladimir Prus <vladimir@codesourcery.com>
3874
3875 * pex-common.h (struct pex_obj): New fields
6819ba36 3876 stderr_pipe and read_err.
7cf4c53d
VP
3877 * pex-common.c (pex_init_common): Initialize
3878 stderr_pipe.
3879 (pex_run_in_environment): Add error checking
3880 for PEX_STDERR_TO_PIPE. Create a pipe
3881 for stderr if necessary.
3882 (pex_read_err): New.
3883 (pex_free): Close read_err.
3884 * pexecute.txh: Document changes.
3885 * functions.texi: Regenerated.
3886
ae452ed1
BE
38872007-01-31 Ben Elliston <bje@au.ibm.com>
3888
3889 * strsignal.c (psignal): Change type of signo to int.
3890 * functions.texi: Regenerate.
3891
456cc5cf
SB
38922007-01-29 Simon Baldwin <simonb@google.com>
3893
3894 * cp-demangle.h (cplus_demangle_operators): External definition
3895 suppressed if not building for libstdc++.
3896 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
3897 to demangling, provides a malloc-less version of __cxa_demangle.
3898 (cplus_demangle_print_callback): Public callback version of
3899 cplus_demangle_print.
3900 (struct d_growable_string): New growable string structure.
3901 (d_growable_string_init): New function, provides support for
3902 growable strings separate from print info.
3903 (d_growable_string_resize): Likewise.
3904 (d_growable_string_append_buffer): Likewise.
3905 (d_growable_string_callback_adapter):): Likewise.
3906 (d_print_init): New print info initialization function.
3907 (d_print_error): Macro replace by inline function.
3908 (d_print_saw_error): Likewise.
3909 (d_append_char): Likewise.
3910 (d_append_buffer): Likewise.
3911 (d_append_string): New inline function, replaces the
3912 d_append_string_constant macro.
3913 (d_flush_buffer): New function, flushes buffer to callback.
3914 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
3915 for unsupported dynamic arrays replaced by alloca().
3916 (d_demangle): Return string length estimating removed.
3917 (d_dump): Moved error case handling from call site into function.
3918 (d_print_resize): Function removed.
3919 (d_print_append_char): Likewise.
3920 (d_print_append_buffer): Likewise.
3921 (d_print_error): Likewise.
3922 (d_print_comp): Added special case handling for Java arrays.
3923 (java_demangle_v3): Removed string post-processing for Java arrays,
3924 now replaced by special case handling in d_print_comp.
3925 (cplus_demangle_v3_callback): Augmented interface to demangling,
3926 provides a malloc-less version of cplus_demangle_v3.
3927 (java_demangle_v3_callback): Augmented interface to demangling,
3928 provides a malloc-less version of java_demangle_v3.
3929
7d37bf39
BE
39302007-01-12 Ben Elliston <bje@au.ibm.com>
3931
1a8e58a3
BE
3932 * pex-unix.c (writeerr): Cast write result to void.
3933
4d4f0164
BE
3934 * choose-temp.c (choose_temp_base): Check the result of the call
3935 to mktemp rather than testing the length of the modified string.
7d37bf39 3936
5165f125
GK
39372006-12-20 Geoffrey Keating <geoffk@apple.com>
3938
3939 * cp-demangle.h: Add comment explaining what to do to avoid
3940 overrunning string.
3941 (d_check_char): New.
3942 (d_next_char): Don't advance past trailing '\0'.
3943 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
3944 (d_nested_name): Likewise.
3945 (d_special_name): Likewise.
3946 (d_call_offset): Likewise.
3947 (d_function_type): Likewise.
3948 (d_array_type): Likewise.
3949 (d_pointer_to_member_type): Likewise.
3950 (d_template_param): Likewise.
3951 (d_template_args): Likewise.
3952 (d_template_arg): Likewise.
3953 (d_expr_primary): Likewise.
3954 (d_local_name): Likewise.
3955 (d_substitution): Likewise.
3956 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
3957 * testsuite/test-demangle.c: Include sys/mman.h.
3958 (MAP_ANONYMOUS): Define.
3959 (protect_end): New.
3960 (main): Use protect_end.
3961 * testsuite/demangle-expected: Add testcases for overrunning
3962 the end of the string.
3963
334737af 39642006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
6819ba36 3965 J"orn Rennecke <joern.rennecke@st.com>
334737af
AS
3966
3967 PR driver/29931
3968 * make-relative-prefix.c (make_relative_prefix_1): New function,
3969 broken out of make_relative_prefix. Make link resolution dependent
3970 on new parameter.
3971 (make_relative_prefix): Use make_relative_prefix_1.
3972 (make_relative_prefix_ignore_links): New function.
3973
e9903c67
VP
39742006-11-08 Vladimir Prus <vladimir@codesourcery.com>
3975
3976 * pex-win32.c (no_suffixes): Remove.
3977 (std_suffixes): Add "" as first element.
3978 (find_executable): Remove detection of already-present
3979 extension. Try all suffixes in std_suffixes.
6819ba36 3980
36b82060
JB
39812006-11-07 Julian Brown <julian@codesourcery.com>
3982
3983 * floatformat.c (get_field): Fix segfault with little-endian word
3984 order on 64-bit hosts.
3985 (put_field): Likewise.
3986 (min): Move definition.
3987
7445de0a
DS
39882006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
3989
3990 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
3991 (find_executable): Likewise.
3992 (win32_spawn): Cast alloca return to (char**).
3993 Replace malloc with XNEWVEC.
3994 bcopy.c (bcopy): Add explict casts in assignments.
3995
97977a91
BE
39962006-10-25 Ben Elliston <bje@au.ibm.com>
3997
3998 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
6819ba36 3999
b5422ad7
BM
40002006-10-10 Brooks Moses <bmoses@stanford.edu>
4001
4002 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
4003 * testsuite/Makefile.in: Added empty "pdf" target.
4004
53e3e587
ILT
40052006-09-22 Ian Lance Taylor <ian@airs.com>
4006
4007 PR other/29176
4008 * cp-demangle.c (d_substitution): Check for overflow when
4009 computing substitution index.
4010
70aec81b
CV
40112006-08-30 Corinna Vinschen <corinna@vinschen.de>
4012
4013 * configure.ac: Add case for Mingw as host.
4014 * configure: Regenerate.
4015
022d4166
ILT
40162006-08-27 Ian Lance Taylor <ian@airs.com>
4017
5317e1c7
ILT
4018 PR driver/27622
4019 * pex-common.h (struct pex_funcs): Add toclose parameter to
4020 exec_child field.
4021 * pex-common.c (pex_run_in_environment): Pass toclose to
4022 exec_child.
4023 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
4024 * pex-unix.c (pex_unix_exec_child): Likewise.
4025 * pex-msdos.c (pex_msdos_exec_child): Likewise.
4026 * pex-win32.c (pex_win32_exec_child): Likewise.
4027
022d4166
ILT
4028 PR other/28797
4029 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
4030 for a qualified member which is not a function.
4031 * testsuite/demangle-expected: Add test case.
4032
3050098b
JH
40332006-07-27 Jan Hubicka <jh@suse.cz>
4034
4035 PR rtl-optimization/28071
4036 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
4037 downsize the hashtable.
4038
706601d9
PG
40392006-07-04 Peter O'Gorman <peter@pogma.com>
4040
4041 * Makefile.in: chmod 644 before ranlib during install.
4042
239559e7
MS
40432006-06-02 Mark Shinwell <shinwell@codesourcery.com>
4044
4045 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4046 to environ.
4047
ea60341e
MS
40482006-06-01 Mark Shinwell <shinwell@codesourcery.com>
4049
4050 * pex-common.c: New function pex_run_in_environment.
4051 * pex-common.h: Add environment parameter to exec_child.
4052 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
4053 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
4054 (pex_djgpp_exec_child): Pass environment to child process.
4055 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
4056 (pex_unix_exec_child): Pass environment to child process.
4057 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
4058 New function env_compare for comparing VAR=VALUE pairs.
4059 (win32_spawn): Assemble environment block and pass to CreateProcess.
4060 (spawn_script): Pass environment through to win32_spawn.
4061 (pex_win32_exec_child): Pass environment through to spawn_script and
4062 win32_spawn.
4063 * functions.texi: Regenerate.
4064 * pexecute.txh: Document pex_run_in_environment.
4065
8967e029
MS
40662006-05-28 Mark Shinwell <shinwell@codesourcery.com>
4067
4068 * mkstemps.c: Open temporary files in binary mode.
4069
824bceb0
AB
40702006-05-12 Anton Blanchard <anton@samba.org>
4071
4072 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
4073 hold "int%u_t".
4074
9fff6432
JB
40752006-04-24 Julian Brown <julian@codesourcery.com>
4076
4077 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4078
8eff378c
JB
40792006-03-29 Jim Blandy <jimb@codesourcery.com>
4080
f33a23a0 4081 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
4082 (pex_init_common): Initialize obj->input_file.
4083 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
4084 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4085 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 4086 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
4087 * pex-unix.c (pex_unix_fdopenw): New function.
4088 (funcs): List it as our fdopenw function.
4089 * pex-win32.c (pex_win32_fdopenw): New function.
4090 (funcs): List it as our fdopenw function.
4091 * pex-djgpp.c (funcs): Leave fdopenw null.
4092 * pex-msdos (funcs): Same.
4093 * functions.texi: Regenerated.
8eff378c 4094
5ea49f9c
JB
40952006-04-10 Jim Blandy <jimb@codesourcery.com>
4096
4097 * pex-common.c (temp_file): New function, containing guts of
4098 pex-style temporary file name generation.
4099 (pex_run): Use it.
4100
cf61af07
CD
41012006-04-06 Carlos O'Donell <carlos@codesourcery.com>
4102
4103 * Makefile.in: Add install-html, install-html-am, and
6819ba36
EB
4104 install-html-recursive targets. Define mkdir_p and
4105 NORMAL_INSTALL.
cf61af07
CD
4106 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4107 * configure: Regenerate.
4108 * testsuite/Makefile.in: Add install-html and html targets.
4109
bd9e7c5c
MM
41102006-03-31 Mark Mitchell <mark@codesourcery.com>
4111
4112 * pex-win32.c (<errno.h>): Include.
4113 (fix_argv): Remove.
4114 (argv_to_cmdline): New function.
4115 (std_suffixes): New variable.
4116 (no_suffixes): Likewise.
4117 (find_executable): New function.
4118 (win32_spawn): Likewise.
4119 (spawn_script): Use win32_spawn instead of _spawnv[p].
4120 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4121 (pex_win32_wait): Likewise.
4122
58df1c41
JB
41232006-03-24 Jim Blandy <jimb@codesourcery.com>
4124
4125 * pex-common.c (pex_run): Simplify output name handling.
4126
7d898fa2
JB
41272006-03-12 Jim Blandy <jimb@red-bean.com>
4128
4129 * pex-common.h (struct pex_obj): Doc fixes.
4130
ddbbee51
JB
41312006-03-11 Jim Blandy <jimb@red-bean.com>
4132
4133 * functions.texi: Regenerate.
4134
f49712d8
BE
41352006-02-21 Ben Elliston <bje@au.ibm.com>
4136
4137 * pexecute.c (pwait): Syntax fix for previous change.
4138
8f629dc5
UP
41392006-02-17 Uttam Pawar <uttamp@us.ibm.com>
4140
4141 * pexecute.c (pwait): Free vector pointer.
4142 * partition.c (partition_print): Free class_elements pointer.
4143
12c61ac3
RS
41442006-02-11 Roger Sayle <roger@eyesopen.com>
4145 R. Scott Bailey <scott.bailey@eds.com>
4146 Bill Northcott <w.northcott@unsw.edu.au>
4147
4148 PR bootstrap/16787
4149 * floatformat.c: Include <float.h> where available.
4150 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4151
e8f9ec35
GDR
41522006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4153
4154 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
6819ba36 4155 supported.
e8f9ec35
GDR
4156 * configure: Regenerated.
4157
974c2c56
CD
41582006-01-20 Carlos O'Donell <carlos@codesourcery.com>
4159
4160 * testsuite/Makefile.in: Add test-expandargv test.
4161 * testsuite/test-expandargv.c: New test.
4162 * argv.c (expandargv): Check for errors with ferror,
4163 rather than just by looking at return value from fread.
4164
573b07c7
GDR
41652005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4166
4167 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4168 to convert from "from".
4169 (floatformat_to_double): Likewise.
4170 (floatformat_from_double): Use explicit cast to convert from "to".
4171
92aed1cb
TL
41722005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
4173
4174 PR java/9861
4175 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4176 and include return type when found.
4177 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4178 conditional logic to change printing order of return type.when
4179 the DMGL_RET_POSTFIX option is present.
4180 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4181 call.
4182 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4183 * testsuite/demangle-expected: Test cases to verify extended encoding.
4184 Updated comment to document --ret-postfix option.
6819ba36 4185
73a08f87
RG
41862005-11-06 Richard Guenther <rguenther@suse.de>
4187
4188 * splay-tree.c (rotate_left): New function.
4189 (rotate_right): Likewise.
4190 (splay_tree_splay_helper): Remove.
4191 (splay_tree_splay): Re-implement.
4192
0432a5de
MK
41932005-10-31 Mark Kettenis <kettenis@gnu.org>
4194
4195 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4196 New variables.
4197
cb120852
MM
41982005-10-07 Mark Mitchell <mark@codesourcery.com>
4199
4200 * at-file.texi: Fix typo.
4201
36dd6d31
MM
42022005-10-03 Mark Mitchell <mark@codesourcery.com>
4203
4204 * at-file.texi: New file.
4205
affbb54a
MM
42062005-09-27 Mark Mitchell <mark@codesourcery.com>
4207
4208 * argv.c (expandargv): Do not use xmalloc_failed.
4209
97393d0a
MM
42102005-09-26 Mark Mitchell <mark@codesourcery.com>
4211
4212 * argv.c (safe-ctype.h): Include it.
4213 (ISBLANK): Remove.
4214 (stdio.h): Include.
4215 (buildargv): Use ISSPACE instead of ISBLANK.
4216 (expandargv): New function.
240921b9 4217 * Makefile.in: Regenerated.
97393d0a 4218
0d676b85
CF
42192005-09-14 Christopher Faylor <cgf@timesys.com>
4220
4221 * pex-win32.c: Include "windows.h".
4222 (backslashify): New function.
4223 (fix_argv): Use backslashify to convert path to windows format.
4224 Allocate one more place in new argv for potential executable from '#!'
4225 parsing.
4226 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
4227 (openkey): Ditto.
4228 (mingw_rootify): Ditto.
4229 (msys_rootify): Ditto.
4230 (spawn_script): New function.
4231 (pex_win32_exec_child): Save translated argv in newargv. Pass to
4232 spawn_script if spawnv* fails.
4233 (main): New function. Conditional on MAIN. Useful for testing.
4234
e89b6c1c
MK
42352005-08-17 Mark Kettenis <kettenis@gnu.org>
4236
4237 * floatformat.c (floatformat_always_valid): Change type of last
4238 argument to `void *'.
4239 (floatformat_i387_ext_is_valid): Likewise.
4240 (floatformat_to_double): Change type of second argument to `const
4241 void *'.
4242 (floatformat_from_double): Change type of last argument to `void
4243 *'.
4244 (floatformat_is_valid): Change type of last argument to `const
4245 void *'.
4246 (ieee_test): Remove redundant casts.
4247
0cbe2a68
KC
42482005-08-17 Kelley Cook <kcook@gcc.gnu.org>
4249
4250 * strverscmp.c: Update FSF address.
4251 * testsuite/Makefile.in: Likewise.
4252 * testsuite/test-demangle.c: Likewise.
4253 * testsuite/test-pexecute.c: Likewise.
4254
ca1cc111
KG
42552005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4256
4257 * getopt.c: Include ansidecl.h before system headers.
4258
f4f94d6b
BE
42592005-07-22 Ben Elliston <bje@gnu.org>
4260
4261 * getopt.c: Include "ansidecl.h".
4262 (_getopt_initialize): Mark argc and argv parameters as unused.
4263
8cfb7ab7
BE
42642005-07-22 Ben Elliston <bje@gnu.org>
4265
4266 * regex.c (regcomp): Change type of `i' from unsigned to int.
4267
b4db223f
BE
42682005-07-22 Ben Elliston <bje@gnu.org>
4269
4270 Recover patch lost in the sourceware repository:
4271 2005-07-09 Ben Elliston <bje@au.ibm.com>
4272 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4273 * memmove.c: Likewise.
4274 * objalloc.c: Likewise.
4275
8b82b724
BE
42762005-07-22 Ben Elliston <bje@gnu.org>
4277
4278 * configure.ac: Check for a getopt(3) declaration.
4279 * configure, config.in: Regenerate.
4280
7c22afcb
BE
42812005-07-15 Ben Elliston <bje@au.ibm.com>
4282
4283 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4284
72f93778
BE
42852005-07-12 Ben Elliston <bje@au.ibm.com>
4286
4287 * floatformat.c (floatformat_to_double): Add a comment about a
4288 potential source of warnings when compiling this file.
4289
6c5844d2
BE
42902005-07-12 Ben Elliston <bje@au.ibm.com>
4291
4292 * pexecute.c (pexecute): Cast string litrals to char *.
4293 * regex.c (re_comp): Cast a call to gettext() to char *.
4294
769b009e
KC
42952005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4296
4297 * config.table: Delete file. Move former contents into ...
4298 * configure.ac: ... here and escape any brackets for m4.
4299 * Makefile.in (config.status): Remove dependency on config.table.
4300 * configure: Regenerate.
4301
f379ddd1
KC
43022005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4303
4304 * config.in: Regenerate for 6/20 change.
4305
6cbfa10e
SE
43062005-07-03 Steve Ellcey <sje@cup.hp.com>
4307
4308 PR other/13906
4309 * md5.c (md5_process_bytes): Check alignment.
4310
8c7262af
ILT
43112005-07-01 Ian Lance Taylor <ian@airs.com>
4312
4313 PR other/22268
4314 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4315 string while looking for the end of a literal value.
4316 * testsuite/demangle-expected: Add test case.
4317
a3648cfc
DB
43182005-06-30 Daniel Berlin <dberlin@dberlin.org>
4319
4320 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
6819ba36 4321 (DELETED_ENTRY): Ditto.
a3648cfc 4322
83fbfe42
GK
43232005-06-20 Geoffrey Keating <geoffk@apple.com>
4324
4325 * strverscmp.c: New.
4326 * Makefile.in (CFILES): Add strverscmp.c.
4327 (CONFIGURED_OFILES): Add strverscmp.o.
4328 (strverscmp.o): New rule.
4329 (stamp-functions): Add $(srcdir) to files in source directory.
4330 * configure.ac (funcs): Add strverscmp.
4331 (AC_CHECK_FUNCS): Add strverscmp.
4332 * configure: Regenerate.
4333 * functions.texi: Regenerate.
4334
ddcf783b
EZ
43352005-05-28 Eli Zaretskii <eliz@gnu.org>
4336
4337 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4338 * config.in, configure: Regenerate.
4339
15da2806
RH
43402005-05-25 Richard Henderson <rth@redhat.com>
4341
4342 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4343 (d_make_comp, d_print_comp): Likewise.
4344 (d_special_name): Generate one.
4345 * testsuite/demangle-expected: Add a hidden alias test.
4346
d7cf8390
GDR
43472005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4348
4349 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 4350 malloc(), realloc() and sbrk().
d7cf8390
GDR
4351 * config.in: Regenerate.
4352 * configure: Likewise.
4353
4354 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4355 instead of xmalloc.
4356 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4357 * concat.c (liiberty_concat_ptr): Surround definition with an
4358 extern "C" block, if __cplusplus.
4359 (concat): Use XNEWVEC instead of xmalloc.
4360 (reconcat): Likewise.
4361 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 4362 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
4363 (d_print_resize): Properly cast return value of realloc().
4364 (cplus_demangle_print): Same for malloc().
4365 (d_demangle): Likewise.
4366 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4367 "typename" to "type_name".
4368 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4369 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4370 (demangle_template_value_parm): Likewise.
4371 (demangle_template): Likewise.
4372 (recursively_demangle): Likewise.
4373 (do_hpacc_template_literal): Likewise.
4374 (do_arg): Likewise.
4375 (remember_type): Likewise.
4376 (remember_Ktype): Likewise.
4377 (register_Btype): Likewise.
4378 (string_need): Use XRESIZEVEC instead of xrealloc().
4379 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4380 (dyn_string_new): Use XNEW.
4381 (dyn_string_resize): Use XRESIZEVEC.
4382 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4383 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4384 Otherwise include <stdlib.h>.
4385 (exchange): Cast return value of malloc().
4386 * hashtab.c (htab_size): Define as both macro and non-inline
4387 function.
4388 (htab_elements): Likewise.
4389 * getpwd.c (getpwd): Use XNEWVEC.
4390 (htab_create_alloc_ex): Use C90 prototype-style.
4391 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 4392 malloc().
d7cf8390
GDR
4393 * make-relative-prefix.c (save_string): Likewise.
4394 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4395 the file.
4396 (choose_tmpdir): Use XNEWVEC.
4397 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4398 * pex-common.c (pex_init_common): Use XNEW.
4399 (pex_add_remove): Use XRESIZEVEC.
4400 (pex_run): Likewise.
4401 (pex_get_status_and_time): Likewise.
4402 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4403 * pex-msdos.c (pex_init): Use XNEW.
4404 (pex_msdos_exec_child): Likewise.
4405 (pex_msdos_exec_child): Use XRESIZEVEC.
4406 * pex-unix.c (pex_wait): Use XNEW.
4407 * pex-win32.c (fix_argv): Use XNEWVEC.
4408 * pexecute.c (pwait): Likewise.
4409 * setenv.c (setenv): Properly cast return value of malloc().
4410 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4411 "new" to "old_sig" and "new_sig".
4412 * sort.c (main): Use XNEWVEC.
4413 * spaces.c (spaces): Cast return value of malloc().
4414 * strndup.c (strndup): Likewise.
4415 * ternary.c (ternary_insert): Use XNEW.
4416 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4417 with an extern "C" block if __cplusplus.
4418 * xstrdup.c (xstrdup): Cast return value of memcpy().
4419 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4420 block if __cplusplus.
4421 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4422
99e4078f
AJ
44232005-05-16 Andreas Jaeger <aj@suse.de>
4424
4425 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4426 that it's only declared if needed.
4427
4428 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4429 defined.
4430
766643be
AJ
44312005-05-15 Andreas Jaeger <aj@suse.de>
4432
4433 * functions.texi: Regenerated.
4434
2b836651
EZ
44352005-05-15 Eli Zaretskii <eliz@gnu.org>
4436
4437 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4438 braces. Minor wording fixes. Use --- for em-dash. Use
4439 @enumerate in enumerated lists.
4440
d842a495
AJ
4441 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4442 braces.
4443
5db1c531
EZ
44442005-05-11 Eli Zaretskii <eliz@gnu.org>
4445
4446 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4447 sys/stat.h.
4448 (pex_init): Fix last argument to pex_init_common.
4449 (pex_djgpp_exec_child): Remove leading underscore from _open,
4450 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4451 which is undeclared, with `executable', which was unused. Remove
4452 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4453 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4454
bd7d50f8
PB
44552005-05-11 Paul Brook <paul@codesourcery.com>
4456
4457 * Makefile.in: Regenerate dependencies.
4458
ee58dffd
NC
44592005-05-10 Nick Clifton <nickc@redhat.com>
4460
4461 * Update the address and phone number of the FSF organization in
4462 the GPL notices in the following files:
4463 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4464 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4465 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4466 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4467 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4468 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4469 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4470 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4471 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4472 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4473 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4474 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4475 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4476
c1300f45
KC
44772005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4478
4479 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4480 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4481 * configure: Regenerate.
4482
fbc1bc09
KC
44832005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4484
4485 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4486 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4487 * aclocal.m4: Don't include accross.m4.
4488 * configure, config.in: Regenerate.
4489
32e82bd8
KG
44902005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4491
4492 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 4493
32e82bd8
KG
4494 * functions.texi: Regenerate.
4495
6feaa084
KG
44962005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4497
4498 * fopen_unlocked.c (unlock_stream): New.
4499 Consolidate unlocking code into a helper function.
4500
4501 * functions.texi: Regenerate.
4502
3c60ae5a
GDR
45032005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4504
4505 * asprintf.c: Include config.h.
4506 * basename.c: Likewise.
4507 * fdmatch.c: Likewise.
4508 * hex.c: Likewise.
4509 * lbasename.c: Likewise.
4510 * spaces.c: Likewise.
4511 * xatexit.c:Likewise.
2b836651 4512 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
4513 and vasprintf for real.
4514 * configure: Regenerate.
4515
0e0af50b
GDR
45162005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4517
2b836651 4518 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 4519 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 4520
4cf88ac3
GDR
45212005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4522
4523 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 4524 Replace not with negate.
4cf88ac3 4525
1ff7682c
GDR
45262005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4527
4528 * configure.ac: Check declarations for basename, ffs, asprintf,
4529 vasprintf.
4530 * configure: Regenerate.
4531 * config.in: Likewise.
4532
78a7dc90
KG
45332005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4534
4535 * Makefile.in (CFILES): Add fopen_unlocked.c.
4536 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4537 Regenerate dependencies.
4538
4539 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4540
4541 * fopen_unlocked.c: New file.
4542
4543 * functions.texi, configure, config.in: Regenerate.
4544
2f84c996
ILT
45452005-04-04 Ian Lance Taylor <ian@airs.com>
4546
4547 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4548 declaration before statement.
4549
f9a9ac80
KG
45502005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4551
29138797
KG
4552 * bcmp.c: Fix warnings and implement using memcmp.
4553 * bcopy.c: Fix warnings.
4554 * bzero.c: Fix warnings and implement using memset.
4555
f9a9ac80
KG
4556 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4557 -Wstrict-prototypes.
4558 * configure, config.in: Regenerate.
4559
4560 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4561 warnings and reconcile interfaces with relevant standards.
4562
23ea4f4a
ILT
45632005-04-02 Ian Lance Taylor <ian@airs.com>
4564
4565 * cp-demangle.c: Update copyright.
4566
1e3a2100
JM
45672005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4568
4569 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4570 * functions.texi: Regenerate.
4571
a584cf65
ILT
45722005-03-28 Ian Lance Taylor <ian@airs.com>
4573
4574 * pex-common.c: New file.
4575 * pex-one.c: New file.
4576 * pexecute.c: New file.
4577 * pex-common.h: Include <stdio.h>.
4578 (struct pex_obj): Define.
4579 (struct pex_funcs): Define.
4580 (pex_init_common): Declare.
4581 * pex-unix.c: Rewrite.
4582 * pex-win32.c: Rewrite.
4583 * pex-djgpp.c: Rewrite.
4584 * pex-msdos.c: Rewrite.
4585 * testsuite/text-pexecute.c: New file.
4586 * pexecute.txh: Rewrite.
4587 * configure.ac: Check for wait3 and wait4. Set CHECK to
4588 really-check rather than check-cplus-dem.
4589 * functions.texi: Rebuild.
4590 * Makefile.in: Rebuild dependencies.
4591 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4592 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4593 * testsuite/Makefile.in (really-check): New target.
4594 (check-pexecute, test-pexecute): New targets.
4595 * configure: Rebuild.
4596
93764b5b 45972005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 4598
93764b5b
MK
4599 * unlink-if-ordinary.c: Include <sys/types.h>.
4600
93079c81
GDR
46012005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4602
4603 Convert libiberty to use ISO C prototype style 7/n.
4604 * regex.c (PARAMS): Remove definition.
4605 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 4606 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 4607 print_fastmap, print_partial_compiled_pattern,
2b836651 4608 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
4609 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4610 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
4611 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4612 insert_space, wcs_compile_range, byte_compile_range,
4613 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4614 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
4615 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4616 byte_re_match_2_internal, group_match_null_string_p,
4617 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 4618 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
4619 regexec, regerror, regfree): Use ISO C prototype style.
4620 * partition.c: (elem_compare): Likewise.
4621 * cp-demangle.c (print_usage): Likewise.
4622
885f2199
GDR
46232005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4624
4625 Convert libiberty to use ISO C prototype style 5/n.
4626 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 4627 prototypes.
885f2199
GDR
4628 * putenv.c (putenv): Likewise.
4629 * physmem.c (physmem_available, physmem_total, main): Likewise.
4630 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4631 * pex-unix.c (pexecute, pwait): Likewise.
4632 * pex-msdos.c (pexecute, pwait): Likewise.
4633 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 4634 * partition.c (partition_new, partition_delete, partition_union)
885f2199 4635 (elem_compare, partition_print): Likewise.
2b836651
EZ
4636 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4637 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
4638 _obstack_memory_used, print_and_abort, obstack_next_free,
4639 obstack_object_size, obstack_base): Likewise. Remove codes
4640 predicated on !defined(__STDC__).
2b836651 4641 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
4642 objalloc_free_block): Use ISO C prototypes.
4643 * mkstemps.c (mkstemps): Likewise.
4644 * memset.c (memset): Likewise.
4645 * mempcpy.c (mempcpy): Likewise.
4646 * rename.c (rename): Likewise.
4647 * rindex.c (rindex): Likewise.
4648 * setenv.c (setenv, unsetenv): Likewise.
4649 * sigsetmask.c (sigsetmask): Likewise.
4650 * snprintf.c (snprintf): Likewise.
2b836651 4651 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 4652 * spaces.c (spaces): Likewise.
2b836651
EZ
4653 * splay-tree.c (splay_tree_delete_helper,
4654 splay_tree_splay_helper, splay_tree_splay,
885f2199 4655 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 4656 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 4657 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
4658 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4659 splay_tree_max, splay_tree_min, splay_tree_predecessor,
4660 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
4661 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4662 * stpcpy.c (stpcpy): Likewise.
4663 * stpncpy.c (stpncpy): Likewise.
4664 * strcasecmp.c (strcasecmp): Likewise.
4665 * strchr.c (strchr): Likewise.
4666 * strdup.c (strdup): Likewise.
4667
7a17ef5e
GDR
46682005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4669
4670 Convert libiberty to use ISO C prototype style 6/n.
2b836651 4671 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
4672 strtoerrno, main): Use ISO C prototype style.
4673 * strncasecmp.c (strncasecmp): Likewise.
4674 * strncmp.c (strncmp): Likewise.
4675 * strndup.c (strndup): Likewise.
4676 * strrchr.c (strrchr): Likewise.
2b836651 4677 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
4678 strsigno, strtosigno, psignal, main): Likewise.
4679 * strstr.c (strstr): Likewise.
4680 * strtod.c (strtod, atof): Likewise.
4681 * strtol.c (strtol): Likewise.
4682 * strtoul.c (strtoul): Likewise.
2b836651 4683 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
4684 ternary_recursivesearch): Likewise.
4685 * tmpnam.c (tmpnam): Likewise.
4686 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4687 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4688 * vfork.c (vfork): Likewise.
4689 * vfprintf.c (vfprintf): Likewise.
4690 * vprintf.c (vprintf): Likewise.
4691 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4692 * vsprintf.c (vsprintf): Likewise.
4693 * waitpid.c (waitpid): Likewise.
4694 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4695 * xexit.c (xexit): Likewise.
2b836651 4696 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
4697 xcalloc, xrealloc): Likewise.
4698 * xmemdup.c (xmemdup): Likewise.
4699 * xstrdup.c (xstrdup): Likewise.
4700 * xstrerror.c (xstrerror): Likewise.
4701 * xstrndup.c (xstrndup): Likewise.
4702
1134b11d
AJ
47032005-03-27 Andreas Jaeger <aj@suse.de>
4704
4705 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4706 flags.
4707 * configure: Regenerated.
4708
e78410c1
GDR
47092005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4710
4711 * getopt1.c (getopt_long_only): Fix thinko.
4712
6da879de
GDR
47132005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4714
4715 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
4716 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4717 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4718 htab_create_alloc, htab_set_functions_ex, htab_create,
4719 htab_try_create, htab_delete, htab_empty,
4720 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4721 htab_find, htab_find_slot_with_hash, htab_find_slot,
4722 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4723 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
4724 htab_hash_string, iterative_hash): Use ISO C prototype.
4725 * hex.c (hex_init): Likewise.
4726 * index.c (index): Likewise.
1134b11d 4727 * insque.c (insque, remque): Likewise.
6da879de
GDR
4728 * lbasename.c (lbasename): Likewise.
4729 * lrealpath.c (lrealpath): Likewise.
1134b11d 4730 * make-relative-prefix.c (save_string, split_directories,
6da879de 4731 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
4732 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4733 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
4734 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
4735 * memchr.c (memchr): Likewise.
4736 * memcpy.c (memcpy): Likewise.
4737 * memmove.c (memmove): Likewise.
4738 * gettimeofday.c (gettimeofday): Likewise.
4739 * getruntime.c (get_run_time): Likewise.
4740 * getpwd.c (getpwd, getpwd): Likewise.
4741 * getpagesize.c (getpagesize): Likewise.
4742 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 4743 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
4744 _getopt_internal, getopt, main): Likewise.
4745 * getcwd.c (getcwd): Likewise.
4746 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
4747 * floatformat.c (floatformat_always_valid,
4748 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
4749 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 4750 ieee_test, main): Likewise.
1134b11d
AJ
4751 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
4752 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
4753 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
4754 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
4755 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
4756 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
4757 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
4758 fibnode_insert_after, fibnode_remove): Likewise.
4759 * ffs.c (ffs): Likewise.
4760 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
4761 * dyn-string.c (dyn_string_init, dyn_string_new,
4762 dyn_string_delete, dyn_string_release, dyn_string_resize,
4763 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
4764 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
4765 dyn_string_insert_cstr, dyn_string_insert_char,
4766 dyn_string_append, dyn_string_append_cstr,
6da879de 4767 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 4768 Likewise.
6da879de 4769
500d7701
GDR
47702005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4771
4772 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
4773 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
4774 consume_count_with_underscores, code_for_qualifier,
4775 qualifier_string, demangle_qualifier, cplus_demangle_opname,
4776 cplus_mangle_opname, cplus_demangle_set_style,
4777 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 4778 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
4779 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
4780 delete_work_stuff, mop_up, demangle_signature,
4781 demangle_method_args, demangle_template_template_parm,
4782 demangle_expression, demangle_integral_value,
4783 demangle_real_value, demangle_template_value_parm,
4784 demangle_template, arm_pt, demangle_arm_hp_template,
4785 demangle_class_name, demangle_class, iterate_demangle_function,
4786 demangle_prefix, gnu_special, recursively_demangle, arm_special,
4787 demangle_qualified, get_count, do_type, demangle_fund_type,
4788 do_hpacc_template_const_value, do_hpacc_template_literal,
4789 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
4790 register_Btype, remember_Btype, forget_B_and_K_types,
4791 forget_types, demangle_args, demangle_nested_args,
4792 demangle_function_name, string_need, string_delete, string_init,
4793 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
4794 string_appendn, string_prepend, string_prepends, string_prependn,
4795 string_append_template_idx): Use ISO C prootype style.
4796 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 4797 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
4798 cplus_demangle_v3_components): Likewise.
4799
9486db4f
GDR
48002005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4801
4802 Convert libiberty to use ISO C prototype style 2/n.
4803 * cp-demangle.h: Remove uses of PARAMS.
4804 * cp-demangle.c: Likewise.
1134b11d
AJ
4805 (d_dump, cplus_demangle_fill_name,
4806 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
4807 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
4808 d_make_builtin_type, d_make_operator, d_make_extended_operator,
4809 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
4810 cplus_demangle_mangled_name, has_return_type,
4811 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
4812 d_prefix, d_unqualified_name, d_source_name, d_number,
4813 d_identifier, d_operator_name, d_special_name, d_call_offset,
4814 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
4815 d_function_type, d_bare_function_type, d_class_enum_type,
4816 d_array_type, d_pointer_to_member_type, d_template_param,
4817 d_template_args, d_template_arg, d_expression, d_expr_primary,
4818 d_local_name, d_discriminator, d_add_substitution,
4819 d_substitution, d_print_resize, d_print_append_char,
4820 d_print_append_buffer, d_print_error, cplus_demangle_print,
4821 d_print_comp, d_print_java_identifier, d_print_mod_list,
4822 d_print_mod, d_print_function_type, d_print_array_type,
4823 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
4824 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 4825 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 4826 print_usage, main):
9486db4f
GDR
4827
48282005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4829
4830 Convert libiberty to ISO C prototype style 1/n.
4831 * _doprnt.c: Remove conditional #include <varargs.h> on
4832 ANSI_PROTOTYPES as the latter is always assumed.
4833 (_doprnt, checkit, main): Use ISO C prototype.
4834 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
4835 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 4836 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
4837 * atexit.c (atexit): Likewise
4838 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 4839 (asprintf): Use ISO C prototype.
9486db4f
GDR
4840 * basename.c (basename): Likewise
4841 * bcmp.c (bcmp): Likewise.
4842 * bcopy.c (bcopy): Likewise.
4843 * bzero.c (bzero): Likewise.
4844 * bsearch.c (bsearch): Likewise. Improve const-correctness.
4845 * choose-temp.c (choose_temp_base): Likewise.
4846 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
4847 (calloc): Use ISO C prototype.
4848 * clock.c (clock): Likewise.
4849 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 4850 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
4851 concat_copy2, concat, reconcat, main): Use ISO C prototype.
4852 * copysign.c (copysign): Likewise.
4853
17998b22
KG
48542005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4855
4856 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
4857 (REQUIRED_OFILES): Add xstrndup.o.
4858 (CONFIGURED_OFILES): Add strndup.o.
4859 Regenerate dependencies.
4860
4861 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
4862
4863 * strndup.c, xstrndup.c: New.
4864
4865 * config.in, configure, functions.texi: Regenerate.
4866
bb99744f
KG
48672005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4868
4869 * xmemdup.c, xstrdup.c: Expose the tail call.
4870
17049f0b
MM
48712005-03-09 Mark Mitchell <mark@codesourcery.com>
4872
4873 * configure.ac (funcs): Add gettimeofday.
4874 * configure: Regenerated.
4875 * gettimeofday.c: New file.
4876 * Makefile.in (CFILES): Add gettimeofday.
4877 (CONFIGURED_OFILES): Add gettimeofday.o.
4878 (./gettimeofday.o): New rule.
4879
6af8bd50
ILT
48802005-03-09 Ian Lance Taylor <ian@airs.com>
4881
4882 * pex-os2.c: Remove.
4883 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
4884 * Makefile.in (CFILES): Remove pex-os2.c.
4885 (CONFIGURED_OFILES): Remove pex-os2.o.
4886 (pex-os2.o): Remove target.
4887 * configure: Rebuild.
4888
c80d391c
ILT
48892005-03-07 Ian Lance Taylor <ian@airs.com>
4890
4891 * mpw-config.in: Remove.
4892 * mpw-make.sed: Remove.
4893 * mpw.c: Remove.
4894 * Makefile.in (CFILES): Remove pex-mpw.c.
4895 (CONFIGURED_OFILES): Remove pex-mpw.o.
4896 (mpw.o, pex-mpw.o): Remove targets.
4897 * maint-tool (undoc): Remove reference to mpw.c.
4898
fe8ee922
DD
48992005-03-06 DJ Delorie <dj@redhat.com>
4900
4901 * configure.ac (target_header_dir): vfork is a stub under djgpp.
4902 * configure: Regenerated.
4903
c363985d
JB
49042005-03-01 Jan Beulich <jbeulich@novell.com>
4905
4906 * Makefile.in (CFILES): Add unlink-if-ordinary.c
4907 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
4908 Add dependencies and rule for unlink-if-ordinary.o.
4909 * unlink-if-ordinary.c: New.
4910
6a88516c
BE
49112005-03-01 Ben Elliston <bje@au.ibm.com>
4912
4913 * hashtab.c (htab_find_slot_with_hash): Make function
4914 documentation clearer.
4915
b8b3c655
JM
49162005-02-13 Jason Merrill <jason@redhat.com>
4917
4918 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
4919 arguments.
4920
e8805990
TS
49212005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
4922
4923 * hex.c (hex_value): Group 'unsigned int' together to get correct
4924 markup.
4925 * functions.texi: Regenerated.
1134b11d 4926
24f2cabb
L
49272004-12-27 H.J. Lu <hongjiu.lu@intel.com>
4928
4929 * Makefile.in: Undo to 2004-12-17.
4930 * aclocal.m4: Likewise.
4931 * config.table: Likewise.
4932 * configure.ac: Likewise.
4933 * maint-tool: Likewise.
4934 * configure: Likewise.
4935
3d815594
L
49362004-12-19 H.J. Lu <hongjiu.lu@intel.com>
4937
4938 PR bootstrap/19072
4939 * Makefile.in (enable_shared): New substitute.
4940 (LTTARGETLIB): New.
4941 (PREFIXTARGETLIB): New.
4942 (LTTESTLIB): New.
4943 (PREFIXTESTLIB): New.
4944 (CCLD): New.
4945 (LINK): New.
4946 ($(TARGETLIB)): Use $(LINK) to create libraries and create
4947 targets by hand.
4948 ($(TESTLIB)): Likewise.
4949 (mostlyclean): Don't remove .libs. Remove the libtool object
4950 directory.
4951
4952 * config.table (enable_shared): Removed.
4953
4954 * configure.ac (enable_static): Set to yes.
4955 (AC_PROG_LIBTOOL): Removed.
4956 (AM_DISABLE_SHARED): Uncommented.
4957 (AM_PROG_LIBTOOL): Likewise.
4958 (LIBOBJS): Add `./' to avoid VPATH.
4959 (LTLIBOBJS): Likewise.
4960 (enable_shared): Substitute.
4961 * configure: Regenerated.
4962
207db768
L
49632004-12-18 H.J. Lu <hongjiu.lu@intel.com>
4964
4965 * Makefile.in (top_builddir): Set to `.'.
4966 (OUTPUT_OPTION): Removed.
4967 (LIBTOOL): New.
4968 (LTLIBOBJS): New.
4969 (EXTRA_LTOFILES): New.
4970 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
4971 (all): Remove stamp-picdir.
4972 (LTCOMPILE): New.
4973 (.c.lo): New rule.
4974 (REQUIRED_LTOFILES): New.
4975 (CONFIGURED_LTOFILES): New.
4976 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
4977 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
4978 (stamp-picdir): Completely removed.
4979 (maint-missing): Pass $(REQUIRED_LTOFILES)
4980 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
4981 $(CONFIGURED_OFILES)
4982 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
4983 $(CONFIGURED_LTOFILES).
4984 (mostlyclean): Also remove *.lo .libs.
4985 Run "make maint-deps".
4986
4987 * aclocal.m4: Include ../libtool.m4.
4988
4989 * config.table: Don't check --enable-shared.
4990
4991 * configure.ac (AC_PROG_LIBTOOL): Add.
4992 (AC_PROG_CC_C_O): Removed.
4993 (OUTPUT_OPTION): Removed.
4994 (NO_MINUS_C_MINUS_O): Removed.
4995 (ltpexecute): New substitute.
4996 (LIBOBJS): Cleanup.
4997 * configure: Regenerated.
4998
4999 * maint-tool: Updated for .lo/libtool.
5000
d49d0907
BE
50012004-12-11 Ben Elliston <bje@au.ibm.com>
5002
5003 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
5004 * configure: Regenerate.
5005 * config.in: Likewise.
5006
b180d5fb
DD
50072004-12-07 DJ Delorie <dj@redhat.com>
5008
5009 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
5010 that recursion (and thus large stack space) is not needed.
5011
ecc30353
MK
50122004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
5013
5014 * pex-unix.c: Fix the spelling of longjmp.
5015
0b167d51
ILT
50162004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
5017
5018 PR other/18623
5019 * cp-demangle.c (d_call_offset): Remove useless local variables
5020 offset and virtual_offset.
5021 * cplus-dem.c (ada_demangle): Remove useless local variable
5022 at_start_name.
5023 (demangle_template): Remove useless local variable start.
5024
2d59754f
RS
50252004-11-19 Roger Sayle <roger@eyesopen.com>
5026
5027 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
5028 "ansidecl.h" to avoid redeclaration errors with native compilers.
5029 * regex.c: Protect config.h from multiple inclusion.
5030
ea27a394
MS
50312004-11-12 Mike Stump <mrs@apple.com>
5032
610784f0
MS
5033 * Makefile.in (libiberty.html): Fix html generation.
5034
626ff3de
AN
50352004-09-08 Adam Nemet <anemet@lnxw.com>
5036
5037 * vasprintf.c: Accept __va_copy in addition to va_copy.
5038
1134b11d 50392004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
5040
5041 * configure: Regenerate.
5042
1134b11d 50432004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
5044
5045 * configure.ac: Do not enable multilibs for build-side libiberty.
5046
1134b11d 50472004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
5048
5049 * lrealpath.c (lrealpath): Add _WIN32 support.
5050
0cf61401
ZW
50512004-06-28 Zack Weinberg <zack@codesourcery.com>
5052
5053 * cp-demangle.h: Declare cplus_demangle_operators,
5054 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
5055 cplus_demangle_type as static if IN_GLIBCPP_V3.
5056
00a5aa9c
ILT
50572004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
5058
5059 PR other/16240
5060 * cp-demangle.c (d_expr_primary): Check for a failure return from
5061 cplus_demangle_type.
5cd29062 5062 * testsuite/demangle-expected: Add test case.
00a5aa9c 5063
b47785f4
DS
50642004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
5065
5066 * pex-win32.c (fix_argv): Expand comment.
5067
54b2f310
DJ
50682004-05-25 Daniel Jacobowitz <drow@false.org>
5069
5070 * Makefile.in: Add .NOEXPORT.
5071
8fd58397
DR
50722004-04-29 Douglas B Rupp <rupp@gnat.com>
5073
5074 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5075 copyright.
5076
6489430a
MR
50772004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5078
5079 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5080 * configure: Regenerate.
5081
9bf3c9cc
RH
50822004-04-22 Richard Henderson <rth@redhat.com>
5083
5084 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
5085 (CHAR_BIT): Provide default.
5086 (struct prime_ent, prime_tab): New.
5087 (higher_prime_index): Rename from higher_prime_number, return index.
5088 (htab_mod_1): New.
5089 (htab_mod, htab_mod_m2): Use it.
5090 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
5091 (htab_expand): Likewise.
5092 * configure.ac: Check for stdint.h.
5093 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
5094 * config.in, configure: Rebuild.
5095
80790b05
ILT
50962004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
5097
5098 * strerror.c: Include config.h, and redefine sys_nerr and
5099 sys_errlist, before including ansidecl.h and libiberty.h.
5100
7f96816a
JL
51012004-04-13 Jeff Law <law@redhat.com>
5102
5103 * hashtab.c (htab_remove_elt_with_hash): New function.
5104 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5105
d9175b87
RH
51062004-03-31 Richard Henderson <rth@redhat.com>
5107
5108 * hashtab.c (htab_size): Move to top of file; mark inline.
5109 (htab_elements): Likewise.
5110 (htab_mod, htab_mod_m2): New.
5111 (htab_delete): Refactor htab->size and htab->entries.
5112 (htab_empty): Likewise.
5113 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5114 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5115 (htab_clear_slot): Use htab_size, htab_elements.
5116 (htab_traverse_noresize, htab_traverse): Likewise.
5117
e8190aa2
ILT
51182004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5119
fed8129b
ILT
5120 * pex-unix.c (pexecute): Use vfork instead of fork, with
5121 appropriate changes to make this safe.
5122 * pex-common.h (STDERR_FILE_NO): Define.
5123
e8190aa2
ILT
5124 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5125 an 80 column screen. Run maint-deps.
5126
a4f74b58
KC
51272004-03-09 Kelley Cook <kcook@gcc.gnu.org>
5128
5129 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
5130 * acconfig.h: Delete redundant file.
5131 * config.in: Regenerate.
5132 * configure: Regenerate.
5133
3beb1315
HPN
51342004-03-09 Hans-Peter Nilsson <hp@axis.com>
5135
5136 * configure: Regenerate for config/accross.m4 correction.
5137
688556b9
AJ
51382004-03-07 Andreas Jaeger <aj@suse.de>
5139
5140 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5141 prototypes.
5142 (main): Initialize style.
5143
80a19ac8
ILT
51442004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5145
31058ee3
ILT
5146 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5147 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5148 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5149 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5150 short types to D_PRINT_DEFAULT. Change other integer types to use
5151 new D_PRINT_* values where appropriate. Change float types to
5152 D_PRINT_FLOAT.
5153 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5154 values.
5155 * testsuite/demangle-expected: Adjust two test cases.
5156
5157 * cp-demangle.c (d_print_function_type): Print a space before the
5158 parenthesis around the function type in more cases.
5159 * testsuite/demangle-expected: Adjust one test case.
5160
93f20626
ILT
5161 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5162 parentheses around a cast.
5163 * testsuite/demangle-expected: Adjust two test cases to match new
5164 output.
5165
dbd6ec2b
ILT
5166 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5167
80a19ac8
ILT
5168 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5169 push more than one of the same CV-qualifier on the top of the
5170 stack.
5171 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5172 move the CV-qualifiers to apply to the element type instead.
5173 (d_print_array_type): When checking the modifiers, keep looking
5174 past ones which have been printed already.
5175 * testsuite/demangle-expected: Add three test cases.
5176
8ad1c80e
ILT
51772004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5178
e8ed4ac2
ILT
5179 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5180 empty string correctly.
5181
4a368ffd
ILT
5182 * cp-demangle.c (__cxa_demangle): It is not an error if status is
5183 not NULL. It is an error if the mangled name is the same as a
5184 built-in type name.
5185 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5186 than cplus_demangle_v3.
5187
8ad1c80e
ILT
5188 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5189 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5190
ef2a223f
MK
51912004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
5192
5193 * regex.c: Include <ansidecl.h>.
5194 (regcomp): Cast i to int.
5195 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5196
5254fd7b
ILT
51972004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5198
5199 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5200 * configure: Regenerate.
5201
398b3deb
DD
52022004-01-22 DJ Delorie <dj@redhat.com>
5203
5204 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
5205 with explicit build rules.
5206 (VPATH): Remove.
5207 (.c.o): Poison.
5208 * configure.ac (pexecute, LIBOBJS): Add ./ .
5209 * maint-tool: Build dependencies with explicit rules.
5210
4e394293
KH
52112004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5212
5213 * strdup.c (strdup): Constify the argument.
5214
0046e342
LR
52152004-01-14 Loren J. Rittle <ljrittle@acm.org>
5216
5217 * Makefile.in (distclean): Remove config.cache.
5218
d4f3ce5c
DJ
52192004-01-13 Daniel Jacobowitz <drow@mvista.com>
5220
5221 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5222 takes two parameters.
5223 * cp-demint.c (cplus_demangle_fill_component): Likewise.
5224
5e777af5
ILT
52252004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
5226
5227 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
5228 defined, rename some functions which are to become static via
5229 #define.
5230 (CP_STATIC_IF_GLIBCPP_V3): Define.
5231 (struct d_operator_info): Move definition to cp-demangle.h, and
5232 rename to demangle_operator_info. Change all uses.
5233 (enum d_builtin_type_print): Move definition to cp-demangle.h.
5234 (struct d_builtin_type_info): Move definition to cp-demangle.h,
5235 and rename to demangle_builtin_type_info. Change all uses.
5236 (enum d_comp_type): Move definition to include/demangle.h, and
5237 rename to demangle_component_type, and change all enums to start
5238 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
5239 (struct d_comp): Move definition to include/demangle.h, and rename
5240 to demangle_component. Change all uses.
5241 (struct d_info): Move definition to cp-demangle.h.
5242 (cplus_demangle_fill_name): New function.
5243 (cplus_demangle_fill_extended_operator): New function.
5244 (cplus_demangle_fill_ctor): New function.
5245 (cplus_demangle_fill_dtor): New function.
5246 (d_make_empty): Remove type parameter. Change all callers.
5247 (d_make_name): Use cplus_demangle_fill_name.
5248 (d_make_extended_operator): Use
5249 cplus_demangle_fill_extended_operator.
5250 (d_make_ctor): Use cplus_demangle_fill_ctor.
5251 (d_make_dtor): Use cplus_demangle_fill_dtor.
5252 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
5253 non-static by default. Change all callers.
5254 (cplus_demangle_operators): Rename from d_operators. Change all
5255 uses. Make non-static by default. Add sentinel at end of array.
5256 (d_operator_name): Adjust initialization of high for new sentinel
5257 in cplus_demangle_operators.
5258 (cplus_demangle_builtin_types): Rename from d_builtin_types.
5259 Change all uses. Make non-static by default. Change initializer
5260 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5261 (cplus_demangle_type): Rename from d_type. Make non-static by
5262 default. Change all callers.
5263 (cplus_demangle_init_info): Rename from d_init_info. Make
5264 non-static by default. Change all callers.
5265 * cp-demangle.h: New file.
5266 * cp-demint.c: New file.
5267 * Makefile.in: Rebuild dependencies.
5268 (CFILES): Add cp-demint.c.
5269 (REQUIRED_OFILES): Add cp-demint.o.
5270
c31d56ed
KC
52712004-01-09 Kelley Cook <kcook@gcc.gnu.org>
5272
5273 * configure.in: Rename file to ...
5274 * configure.ac: ... this.
5275 * Makefile.in: Update a comment for above change.
5276 * README: Likewise.
5277 * config.in: Regenerate.
5278
e4796f1c
ILT
52792004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
5280
5281 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5282 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5283 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5284 demangling template parameters.
5285 * testsuite/test-demangle.c (fail): New static function.
5286 (main): Support new options in input file: --no-params,
5287 --is-v3-ctor, and --is-v3-dtor.
5288 * testsuite/demangle-expected: Add --no-params to most tests, and
5289 add the correct result when parameters are not demangled. Add
5290 some simple tests for V3 constructor/destructor recognition.
5291
4d425229
KG
52922003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5293
5294 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5295
6b309c6e
DJ
52962003-12-22 Daniel Jacobowitz <drow@mvista.com>
5297
5298 PR debug/13272
5299 * Makefile.in (lbasename.o): Depend on filenames.h.
5300 * lbasename.c: Include "filenames.h" instead of defining
5301 its macros locally.
5302
2d6c4025
ILT
53032003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5304
5305 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5306 dynamic arrays.
5307 (struct d_operator_info): Add len field.
5308 (struct d_builtin_type_info): Add len and java_len fields.
5309 (struct d_standard_sub_info): Add simple_len, full_len, and
5310 set_last_name_len fields.
5311 (struct d_comp): Add len field to s_string.
5312 (struct d_info): Add send, did_subs, and expansion fields.
5313 (d_append_string_constant): Define.
5314 (d_append_string): Remove. Change all users to use
5315 d_append_string_constant or d_append_buffer instead.
5316 (d_make_sub): Add len parameter. Change all callers.
5317 (d_name): Increase expansion when substituting std::.
5318 (d_unqualified_name): Increase expansion for an operator.
5319 (d_number): Don't use multiplication for negative numbers.
5320 (d_identifier): Make sure there are enough characters in the
5321 string for the specified length. Adjust expansion for an
5322 anonymous namespace.
5323 (d_operators): Initialize len field.
5324 (d_special_name, d_ctor_dtor_name): Increase expansion.
5325 (d_builtin_types): Initialize len and java_len fields.
5326 (d_type): Increase expansion for a builtin type.
5327 (d_cv_qualifiers): Increase expansion for each qualifier.
5328 (d_bare_function_type): Decrease expansion when removing single
5329 void parameter.
5330 (d_template_param): Increment did_subs.
5331 (d_expression): Increase expansion for an operator.
5332 (d_expr_primary): Decrease expansion for a type we will print
5333 specially.
5334 (standard_subs): Initialize new fields.
5335 (d_substitution): Increment did_subs when doing a normal
5336 substitution. Increase expansion for a special substitution.
5337 (d_print): Add estimate parameter. Change all callers.
5338 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5339 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5340 (d_print_java_identifier): Rename from d_print_identifier. Handle
5341 only Java case. Change caller.
5342 (d_init_info): Change return type to void. Change all callers.
5343 Initialize send, did_subs, and expansion fields. Do not
5344 initialize comps and subs fields.
5345 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5346 arrays on stack. Make an estimate of the length of the demangled
5347 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5348 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5349 subs arrays on stack.
5350
2307e075
ILT
53512003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5352
5353 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5354 after the identifier.
5355 * testsuite/demangle-expected: Add test case.
5356
a91d1af0
ILT
53572003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5358
5359 Fix for PR c++/13447:
5360 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5361 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5362 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5363 D_COMP_QUAL_NAME.
5364 (is_ctor_or_dtor): Likewise.
5365 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5366 D_COMP_QUAL_NAME.
5367 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5368 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5369 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5370 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5371 * testsuite/demangle-expected: Add two test cases.
5372
5373 * cp-demangle.c (d_print_function_type): Clear the global modifier
5374 list when printing the modifiers, not just when printing the
5375 function parameters.
5376 * testsuite/demangle-expected: Add two test cases.
5377
8d686df2
ILT
53782003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5379
cbc278f4
ILT
5380 * cp-demangle.c (d_print_function_type): Print the function
5381 parameters with no modifiers.
5382 * testsuite/demangle-expected: Add test case.
5383
8d686df2
ILT
5384 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5385 expect that we've read the entire string.
5386 (is_ctor_or_dtor): Don't expect that we've read the entire
5387 string--reverse patch of 2003-11-29.
5388
adf269c7
BK
53892003-12-15 Brendan Kehoe <brendan@zen.org>
5390
969ac969 5391 * Makefile.in (floatformat.o): Add dependency on
adf269c7
BK
5392 config.h to accompany change of 2003-12-03.
5393
374caa50
ILT
53942003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5395
5396 Fix handling of constructor/destructor of standard substitution:
5397 * cp-demangle.c (struct d_standard_sub_info): Define.
5398 (d_substitution): Add prefix argument. Change all callers.
5399 Rework handling of standard substitutions to print full name when
5400 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5401 * testsuite/demangle-expected: Add test case.
5402
5403 Fix handling of negative literal constants:
5404 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5405 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5406 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5407 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5408 * testsuite/demangle-expected: Add test case.
5409
a51753e4
ILT
54102003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5411
5412 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5413 (d_last_char): Define new macro.
5414 (d_make_name): Reject an empty name.
5415 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5416 (d_substitution, d_print_identifier): Likewise.
5417 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5418 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5419 (d_print_mod) Use new d_last_char macro.
5420 (d_print_cast): Use new d_last_char macro.
5421 (is_ctor_or_dtor): Don't leak memory.
5422
5423 Fix handling of member function modifiers:
5424 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5425 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5426 (d_dump): Dump new d_comp_type values.
5427 (d_make_comp): Accept new d_comp_type values.
5428 (has_return_type): Only accept _THIS variants of qualifiers.
5429 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5430 qualifiers.
5431 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5432 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5433 qualifiers and printing them at the end, add _THIS qualifiers to
5434 the modifier list.
5435 (d_print_comp) [D_COMP_*_THIS]: New cases.
5436 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5437 qualifiers.
5438 (d_print_mod_list): Add suffix parameter. Change all callers.
5439 Keep walking the list even if the current modifier has been
5440 printed.
5441 (d_print_mod): Handle new _THIS qualifiers.
5442 (d_print_function_type): Handle new _THIS qualifiers when deciding
5443 whether to print a parenthesis. Put a space before the
5444 parenthesis in some cases. Call d_print_mod_list again at the
5445 end, passing suffix as 1.
5446 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5447 * testsuite/demangle-expected: Add test case.
5448
5449 Fix for PR gcc/13304:
5450 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5451 before the '<' is itself a '<', insert a space.
5452 (d_print_cast): Likewise.
5453 * testsuite/demangle-expected: Add test case.
5454
5455 Fix for PR gcc/13244:
5456 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5457 which uses the '>' operator in an extra layer of parens.
5458 * testsuite/demangle-expected: Add test case.
5459
bee6ab3e
ILT
54602003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5461
5462 * floatformat.c: Include "config.h" and <string.h> if available.
5463 (INFINITY, NAN): Define if not defined by <math.h>.
5464 (floatformat_to_double): Handle NaN, infinity, and denormalized
5465 numbers.
5466 (floatformat_from_double): Likewise.
5467 (ieee_test): In debugging code, use little endian rather than big
5468 endian. Correct tests to handle NaN and to check correct sign of
5469 zero. Omit m68k extended test.
5470 (main): Add more debugging cases.
5471
f26deb3d
ILT
54722003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5473
5474 * cp-demangle.c (d_demangle): Only return success if we consumed
5475 the entire demangled string.
5476 (is_ctor_or_dtor): Likewise.
5477
5478 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5479 to restore expected result of EDG test case to original expected
5480 result.
5481
81dc098b
ILT
54822003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5483
5484 * cp-demangle.c (struct d_print_mod): Add templates field.
5485 (d_make_builtin_type): Check for NULL type.
5486 (d_make_extended_operator): Check for NULL name.
5487 (d_make_ctor, d_make_dtor): Likewise.
5488 (d_mangled_name): Add top_level parameter. Change all callers.
5489 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5490 CV-qualifiers.
5491 (d_type): Check some return values we rely on.
5492 (d_bare_function_type, d_array_type): Likewise.
5493 (d_pointer_to_member_type, d_template_args): Likewise.
5494 (d_add_substitution): Fail if argument is NULL.
5495 (d_print_resize): Check whether buf is NULL.
5496 (d_print_comp): Save current templates list with each modifier.
5497 Don't pass the modifier list down when printing a template.
5498 (d_print_cast): Don't pass the modifier list down when printing a
5499 template.
5500 (d_print_mod_list): Temporarily set templates list while printing
5501 a modifier.
5502 (d_print_mod): Check that buf is not NULL before using it.
5503 (d_print_function_type): Print parens if there is no modifier.
5504 (d_init_info): Permit as many substitutions as there are
5505 characters in the mangled name.
5506 * testsuite/demangle-expected: Add two new test cases.
5507
eb459c81
ILT
55082003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5509
5510 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5511 d_demangle.
5512
ad07f5e5
ILT
55132003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5514
5515 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5516 callers.
5517 (print_usage): Display new -p option.
5518 (long_options): Add --no-params.
5519 (main): Accept and handle -p.
5520
0ba5c8a2
ILT
55212003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5522
5523 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5524 whether we have a template.
5525 * testsuite/demangle-expected: Add four new tests.
5526
bd6946d1
ILT
55272003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5528
9cca376f
ILT
5529 * testsuite/demangle-expected: Minor changes to match output of
5530 new demangler: adjust whitespace in four tests, and change order
5531 of qualifiers in one test.
5532
bd6946d1
ILT
5533 * cp-demangle.c: Complete rewrite.
5534
6df5a5c7
MM
55352003-11-19 Mark Mitchell <mark@codesourcery.com>
5536
5537 * cp-demangle.c (demangle_type): Correct thinko in substitution
5538 processing.
5539
a9b571f2
ILT
55402003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5541
820555e6
ILT
5542 * cp-demangle.c (demangle_operator_name): Remove space before
5543 "sizeof".
5544 (demangle_type_ptr): Put qualifiers in the right place. Handle
5545 qualifiers in pointer to member specially.
5546 (demangle_type): Handle qualifiers for pointer or reference
5547 specially. Handle function type.
5548 (demangle_local_name): Save and restore caret around demangling of
5549 initial encoding.
5550
c4328d32
ILT
5551 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5552 cplus_demangle.
5553
a9b571f2
ILT
5554 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5555
ad37274a
AJ
55562003-10-31 Andreas Jaeger <aj@suse.de>
5557
5558 * floatformat.c (floatformat_always_valid): Add unused attribute.
5559
27eb8ab1
JZ
55602003-10-30 Josef Zlomek <zlomekj@suse.cz>
5561
5562 Jan Hubicka <jh@suse.cz>
5563 * vasprintf.c (int_vasprintf): Pass va_list by value.
5564 Use va_copy for copying va_list.
5565 (vasprintf): Pass va_list by value.
5566
e0432c1c
JZ
55672003-10-30 Josef Zlomek <zlomekj@suse.cz>
5568
5569 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5570 instead of increasing n_elements when inserting to deleted slot.
5571
08c5b96d
B
55722003-10-20 J. Brobecker <brobecker@gnat.com>
5573
5574 * cplus-dem.c (demangle_template): Register a new Btype only
5575 when needed.
5576 * testsuite/demangle-expected: Add a new test.
5577
968e3f93
L
55782003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5579
5580 * testsuite/demangle-expected: Update the expected output of
5581 _GLOBAL__I__Z2fnv.
5582
bca48dc6
DJ
55832003-10-02 Daniel Jacobowitz <drow@mvista.com>
5584
5585 * strerror.c: Revert last change. Declare static sys_nerr
5586 and sys_errlist using different names.
5587
b9e8f4b3
DJ
55882003-10-01 Daniel Jacobowitz <drow@mvista.com>
5589
5590 * strerror.c: Don't provide or reference sys_errlist if
5591 strerror is available.
5592
c0590bfd
L
55932003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5594
5595 * configure.in: Check if $MAKEINFO is missing.
5596 * configure: Regenerated.
5597
b033df90
DJ
55982003-09-24 Daniel Jacobowitz <drow@mvista.com>
5599
5600 * configure.in: Use AC_PROG_CPP_WERROR.
5601 * configure: Regenerated.
5602
83c07342
AC
56032003-09-22 Andrew Cagney <cagney@redhat.com>
5604
5605 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5606 (floatformat_always_valid): New function.
5607 (floatformat_i387_ext): Initialize new "is_valid" field to
5608 "floatformat_i387_ext_is_valid".
5609 (floatformat_ieee_single_little): Initialize "is_valid" field to
5610 floatformat_always_valid.
5611 (floatformat_ieee_double_big): Ditto.
5612 (floatformat_ieee_double_little): Ditto.
5613 (floatformat_ieee_double_little): Ditto.
5614 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5615 (floatformat_i960_ext): Ditto.
5616 (floatformat_m88110_ext): Ditto.
5617 (floatformat_m88110_harris_ext): Ditto.
5618 (floatformat_arm_ext_big): Ditto.
5619 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5620 (floatformat_ia64_spill_big): Ditto.
5621 (floatformat_ia64_spill_little): Ditto.
5622 (floatformat_ia64_quad_big): Ditto.
5623 (floatformat_ia64_quad_little): Ditto.
5624 (floatformat_ia64_quad_little): Ditto.
5625 (floatformat_is_valid): Call "is_valid".
5626
c9fbef12
AC
56272003-09-15 Andrew Cagney <cagney@redhat.com>
5628
5629 * floatformat.c (get_field): Make "data" constant.
5630 (floatformat_is_valid, floatformat_to_double): Make "from"
5631 constant, fix casts.
5632 (floatformat_from_double): Make "from" constant.
5633
9c8860c3
DJ
56342003-09-15 Daniel Jacobowitz <drow@mvista.com>
5635
5636 * floatformat.c (floatformat_is_valid): New function.
5637 (get_field, put_field): Correct comments.
5638
13f7d3a1
JZ
56392003-09-06 Josef Zlomek <zlomekj@suse.cz>
5640
5641 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5642 FIBHEAPKEY_T.
5643
03eec143 56442003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
5645
5646 PR bootstrap/12100
5647 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5648 * configure: Rebuilt.
5649
238235ef
DJ
56502003-08-27 Daniel Jacobowitz <drow@mvista.com>
5651
5652 * aclocal.m4: Include acx.m4 and no-executables.m4.
5653 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5654 (LIB_AC_PROG_CC): Remove.
5655 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
5656 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5657 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
5658 performing link tests.
5659 * configure: Regenerated.
5660
2b81b2c9
NN
56612003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5662
0cf61401 5663 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 5664
7b96f3e4
DS
56652003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
5666
5667 * pex-win32.c (pexecute): Mark parameters this_pname and
5668 temp_base as unused. Remove unused variables retries,
5669 sleep_interval. Initialize org_stdin, org_stdout.
5670 (pwait): Mark parameter flags as unused.
5671
56722003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
5673
5674 * pex-win32.c (fix_argv): Ensure that the executable pathname
5675 uses Win32 backslashes.
5676 (pexecute): Cast away constness when assigning *errmsg_arg.
5677
6f8507b1
L
56782003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5679
5680 * testsuite/demangle-expected: Add more GNU V3 testcases.
5681
21299dbd
ZW
56822003-06-22 Zack Weinberg <zack@codesourcery.com>
5683
5684 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5685 not HC_ASCII and HC_EBCDIC.
5686 Add documentation in form expected by gather-docs.
5687 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5688 * Makefile.in, functions.texi: Regenerate.
5689
7468e0b5
ZW
56902003-06-21 Zack Weinberg <zack@codesourcery.com>
5691
5692 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
5693 for charset determination.
5694
cf8e4b78
DH
56952003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
5696
5697 * configure.in: Add check for malloc.h needed by
5698 m68k for function free().
5699 * configure: Regenerated.
5700 * config.in: Add HAVE_MALLOC_H.
5701 * hashtab.c: include malloc.h were available for
5702 free().
5703
aa9dc53d 57042003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 5705
aa9dc53d
ACY
5706 PR bootstrap/10974
5707 * physmem.c: Update comment.
5708 * configure.in: Modify test for _system_configuration for older
5709 AIX systems.
5710
5711 * config.in, configure: Regenerated.
7468e0b5 5712
8191fe81
JDA
57132003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5714
5715 PR other/10810
5716 * test-demangle.c (getline): Fix fence-post error.
5717
8d398258
NC
57182003-06-03 Nick Clifton <nickc@redhat.com>
5719
5720 * asprintf.c: Change comment to note that -1 is returned upon
5721 error.
5722 * vasprintf.c: Likewise.
5723 (vasprintf): Return -1 upon error.
5724 * functions.texi: Document changes to asprintf and vasprintf.
5725
29ad6d3f
KC
57262003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5727
5728 * config.table: Accept i[345867]86 variant.
5729
49a19cfd
JB
57302003-05-15 Jim Blandy <jimb@redhat.com>
5731
5732 * hex.c (_hex_value): Make this unsigned.
5733 (hex_value): Update documentation for new return type. hex_value
5734 now expands to an unsigned int expression, to avoid unexpected
5735 sign extension when we store it in a bfd_vma, which is larger than
5736 int on some platforms.
5737 * functions.texi: Regenerated.
5738
d5d4eae2
JZ
57392003-05-07 Josef Zlomek <zlomekj@suse.cz>
5740
5741 * splay-tree.c (splay_tree_predecessor): Fix comment.
5742 (splay_tree_successor): Fix comment.
5743
5cc5a0d0
JM
57442003-05-07 Jason Merrill <jason@redhat.com>
5745
9d70d418 5746 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
5747 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5748 * aclocal.m4: Include accross.m4.
5749 * configure, config.in: Regenerate.
5750
05c30f22
KG
57512003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5752
5753 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
5754 * configure: Regenerate.
5755
41fe9404
CW
57562003-05-03 Carlo Wood <carlo@alinoe.com>
5757
5758 * cp-demangle.c: Fix typo in "char_traints" string-literal.
5759
52dd3224
KG
57602003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5761
5762 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
5763 (main): Test that we don't write too much data.
5764
bd3fbc6b
KG
57652003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5766
5767 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
5768 vsnprintf.
5769 * snprintf.c, vsnprintf.c: New files.
5770 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
5771 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
5772 Regenerate dependencies.
5773
5774 * functions.texi, configure, config.in: Regenerated.
5775
029bcc09
KG
57762003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5777
5778 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
5779 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
5780 and stpncpy.
5781 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
5782 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
5783 Regenerate dependencies.
5784
5785 * functions.texi, configure, config.in: Regenerated.
5786
c9ac9147
KG
57872003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5788
5789 * argv.c: Fix comments.
5790 * calloc.c: Don't unnecessarily include "libiberty.h".
5791 (bzero): Add prototype.
5792 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5793 * getcwd.c (getcwd): Use standard definition to avoid conflicts
5794 with system headers.
5795 * hashtab.c (htab_traverse): Delete unused variables.
5796 * rename.c: Include "ansidecl.h".
5797 (rename): Use standard definition to avoid conflicts with system
5798 headers.
5799 * strsignal.c: Rely on ANSI_PROTOTYPES.
5800 * strstr.c: Check GNUC >= 2, not GNUC == 2.
5801 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5802 * vprintf.c: Include "ansidecl.h" earlier, rely on
5803 ANSI_PROTOTYPES.
5804 * vsprintf.c: Include "ansidecl.h" earlier, rely on
5805 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 5806
c9ac9147
KG
5807 * Makefile.in: Regenerate dependencies.
5808
98475c57
DD
58092003-04-15 DJ Delorie <dj@redhat.com>
5810
5811 * maint-tool (deps): Scan for headers in $srcdir also.
5812
55adc7bd
KG
58132003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5814
5815 PR target/10338
5816 PR bootstrap/10198
5817 PR bootstrap/10140
5818 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
5819 __mempcpy.
5820 * regex.c (regerror): Likewise.
5821
0ae0f1b0
RS
58222003-04-14 Roger Sayle <roger@eyesopen.com>
5823
5824 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
5825 * memchr.c: Likewise.
5826 * strcasecmp.c: Likewise.
5827 * strncasecmp.c: Likewise.
5828 * strncmp.c: Likewise.
5829 * xatexit.c: Likewise.
5830 * xmalloc.c: Likewise.
5831
5832 * copysign.c: Use traditional function declaration instead of DEFUN.
5833 * sigsetmask.c: Likewise.
5834
5835 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
5836 * memset.c: Likewise.
5837
5838 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
5839 * memmove.c: Likewise.
5840
88702c45
RS
58412003-04-14 Roger Sayle <roger@eyesopen.com>
5842
5843 * strdup.c (strdup): Tweak implementation to use memcpy.
5844
39e8d049
KG
58452003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5846
5847 * configure.in (HAVE_UINTPTR_T): Always define.
5848 * configure: Regenerated.
5849
9f2e0608
AO
58502003-03-23 Alexandre Oliva <aoliva@redhat.com>
5851
5852 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
5853 instead of $$CC alone.
5854 (install_to_tooldir): Use it.
5855
dbccdc42
JH
58562003-17-03 Jan Hubicka <jh@suse.cz>
5857
5858 * hashtab.c (htab_traverse_noresize): Break out from ...
5859 * hashtab.c (htab_traverse): ... here.
5860
0a8e3de3
JH
58612003-12-03 Jan Hubicka <jh@suse.cz>
5862
cd22e4af
JH
5863 * hashtab.c (htab_expand): Fix warning.
5864
0a8e3de3
JH
5865 * hashtab.c (htab_expand): Compute the size of hashtable based
5866 on the number of elements actually used.
5867 (htab_traverse): Call htab_expand when table is too empty.
5868
8fe85775
CW
58692003-03-11 Carlo Wood <carlo@gnu.org>
5870
5871 * cplus-dem.c (demangle_integral_value): Correction to reflect
5872 patch of 2002-01-10 in order to also make negative multi-digits
5873 without leading underscore work.
5874
3bf27822
MM
58752003-03-03 Mark Mitchell <mark@codesourcery.com>
5876
5877 * cplus-dem.c: Add license exception to copyright notice.
5878
434fa0b8
KG
58792003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5880
5881 * physmem.c: Formatting changes from upstream.
5882
ed935c35
DS
58832003-02-24 Danny Smith <dannysmith@users.source.forge.net>
5884
5885 * physmem.c (physmem_total): Add _WIN32 support.
5886 (physmem_available): Likewise.
5887
7f9fc006
RO
58882003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5889
5890 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
5891 GSI_PHYSMEM.
5892 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
5893
d47f75c4
KG
58942003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5895
5896 * configure.in: Check for sys/systemcfg.h and
5897 _system_configuration.
5898 * physmem.c: Add support for AIX. Tweek formatting as per
5899 upstream coreutils beta.
5900
170230b7
KG
59012003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5902 Richard Earnshaw <rearnsha@arm.com>
5903 Geoffrey Keating <geoffk@apple.com>
7468e0b5 5904
170230b7
KG
5905 * configure.in: Check for sys/sysctl.h and sysctl.
5906 * physmem.c: Add support for *bsd and darwin.
5907 * Makefile.in: Generate depedency for physmem.o.
5908
4a06f7f2
RO
59092003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5910
5911 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
5912 Tru64 UNIX.
5913 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
5914 Tru64 UNIX.
5915
5916 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
5917 machine/hal_sysinfo.h, sys/table.h.
5918 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
5919 * configure, config.in: Regenerate.
5920
64c7e556
KG
59212003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5922
5923 * configure.in: Check for sys/sysmp.h and sysmp.
5924 * physmem.c: Pull upstream copy, add support for irix6.
5925
5926 * config.in, configure: Regenerated.
5927
e9019af6
KG
59282003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5929
5930 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
5931 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
5932 pstat_getdynamic.
7468e0b5 5933
a354191e
KG
59342003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5935
5936 * Makefile.in (CFILES): Add physmem.c.
5937 (REQUIRED_OFILES): Add physmem.o.
5938 * configure.in: Check for sys/pstat.h.
5939 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
5940 * physmem.c: New file, copied from textutils.
5941
5942 * config.in, configure: Regenerated.
5943
4876b2b4
DJ
59442003-02-20 Daniel Jacobowitz <drow@mvista.com>
5945
5946 * Makefile.in (CFILES): Add lrealpath.c.
5947 (REQUIRED_OFILES): Add lrealpath.o.
5948 (lrealpath.o): Add rule.
5949 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
5950 * configure.in: Add realpath and canonicalize_file_name to
5951 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
5952 for canonicalize_file_name.
5953 * lrealpath.c: New file.
5954 * make-relative-prefix.c: Update documentation.
5955 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
5956 * config.in: Regenerated.
5957 * configure: Regenerated.
5958 * functions.texi: Regenerated.
5959
e182f0a3 59602003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
5961
5962 * cplus_dem.c: Fix typo: intializes -> initializes.
5963
3343fdd2
AO
59642003-02-20 Alexandre Oliva <aoliva@redhat.com>
5965
5966 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5967 config.status.
5968 * configure: Rebuilt.
5969
902cf50c
DJ
59702003-02-13 Daniel Jacobowitz <drow@mvista.com>
5971
5972 Fix PR c++/7612.
5973 * cplus-dem.c (demangle_signature): Call string_delete.
5974 Remove extra string_init.
5975 (demangle_arm_hp_template): Call string_delete instead of
5976 string_clear. Add missing string_delete call.
5977 (demangle_qualified): Add missing string_delete call.
5978 (do_type): Remove unused variable btype. Add missing string_delete
5979 call. Call string_delete instead of string_clear.
5980 (demangle_fund_type): Move variable btype inside of the switch
5981 statement. Add missing string_delete call.
5982 (do_arg): Call string_delete instead of string_clear. Remove extra
5983 string_init.
5984 (demangle_nested_args): Free work->previous_argument.
5985
7ac27e08
KG
59862003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5987
5988 * acconfig.h: New file. Add uintptr_t.
5989 * config.in: Regenerated.
5990
b3a8389d
JM
59912003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5992
5993 * libiberty.texi: Update to GFDL 1.2.
5994
d8c22ce7
CC
59952003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5996
5997 * Makefile.in (libiberty_topdir): New subst.
5998 (mkinstalldirs): Redefine in terms of the above.
5999 * configure.in: AC_SUBST it.
6000 * configure: Regenerate.
6001
4ce1921a
CC
60022003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6003
6004 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
6005 (info-subdir, install-info-subdir, clean-info-subdir)
6006 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
6007 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
6008 Pass $(FLAGS_TO_PASS).
6009
93239fdb
AO
60102003-01-27 Alexandre Oliva <aoliva@redhat.com>
6011
6012 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
6013 /`$$CC -print-multi-os-directory`.
6014
74828682
DJ
60152003-01-26 Daniel Jacobowitz <drow@mvista.com>
6016
6017 * hashtab.c (htab_create_alloc_ex): New function.
6018 (hatab_set_functions_ex): New function.
6019 (htab_delete, htab_expand): Support alternate allocation functions.
6020
ece0e59f
CF
60212003-01-24 Christopher Faylor <cgf@redhat.com>
6022
6023 * configure.in: Remove special pex-cygwin consideration.
6024 * configure: Regenerate.
6025 * pex-cygwin.c: Remove.
6026 * Makefile.in: Remove pex-cygwin.[co] lines.
6027
55d0e5e0
ZW
60282003-01-24 Zack Weinberg <zack@codesourcery.com>
6029
6030 * Makefile.in (CFILES): Add pex-*.c.
6031 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
6032 (CONFIGURED_OFILES): Add pex-*.o.
6033 (TEXIFILES): Add pexecute.txh.
6034 (pexecute.o): Delete rule.
6035 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
6036 pex-unix.o, pex-win32.o): New rules.
6037 * configure.in: Change AC_INIT argument to xmalloc.c.
6038 Compute appropriate pexecute implementation and substitute it
6039 as @pexecute@.
6040
6041 * pexecute.c: Split up into...
6042 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
6043 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
6044 new files.
6045
6046 * functions.texi: Regenerate.
6047 * configure: Regenerate.
6048
120cdf68
JZ
60492003-01-20 Josef Zlomek <zlomekj@suse.cz>
6050
6051 * hashtab.c (htab_expand): Fix allocation of new entries.
6052
90e5b39f
CC
60532003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6054
6055 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6056
d7082cd7
CC
6057 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6058 mkinstalldirs command.
6059
eaed9290
DS
60602002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
6061
6062 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
6063 Define for hosts with HOST_EXECUTABLE_SUFFIX.
6064
ef4e4181
NC
60652002-11-24 Nick Clifton <nickc@redhat.com>
6066
6067 * make-relative-prefix.c (make_relative_prefix): Ensure return
6068 string is empty before using strcat to construct it.
6069
42766f8d
DJ
60702002-11-22 Daniel Jacobowitz <drow@mvista.com>
6071
6072 * Makefile.in: Add make-relative-prefix.c.
6073 * make-relative-prefix.c: New file.
6074 * functions.texi: Rebuilt.
6075
783080ab
JJ
60762002-11-16 Jakub Jelinek <jakub@redhat.com>
6077
6078 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
6079 used with arguments in traditional C' warnings.
6080
7da64d7a
JJ
60812002-10-16 Jakub Jelinek <jakub@redhat.com>
6082
6083 * config.table: Use mh-s390pic for s390x too.
6084
de78f58b
AJ
60852002-10-06 Andreas Jaeger <aj@suse.de>
6086
969ac969 6087 * cplus-dem.c (ada_demangle): Get rid of unneeded
de78f58b
AJ
6088 variable and of strict-aliasing warning.
6089 (grow_vect): Use char as first parameter.
6090
6c5d742e
KG
60912002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6092
6093 * Makefile.in (all): Fix multilib parallel build.
6094
f08b7eee
JDA
60952002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
6096
6097 * cp-demangle.c (demangling_new): Cast 0 to enum.
6098 (demangle_char): Cast return of strdup to char *.
6099 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
6100 (is_gnu_v3_mangled_dtor): Likewise.
6101 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
6102 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
6103 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6104 * md5.c (md5_process_bytes): Cast results back to const void *.
6105 (md5_process_block): Add cast to const md5_uint32 *.
6106 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6107 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6108 unsigned short.
6109 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6110 to void *.
6111 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6112
8d87f295
NC
61132002-09-19 Nick Clifton <nickc@redhat.com>
6114
6115 * README: Update email addresses for bugs and patches.
6116
6eedb9ca
MS
61172002-09-10 Mike Stump <mrs@apple.com>
6118
6119 * splay-tree.c (splay_tree_successor): Fix comments.
6120
3fd9d606
ZW
61212002-09-11 Zack Weinberg <zack@codesourcery.com>
6122
b2196e8f 6123 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
6124 * testsuite/Makefile.in: Adjust for test-demangle.
6125 * testsuite/regress-demangle: Deleted.
6126 * testsuite/test-demangle.c: New file.
6127 * testsuite/demangle-expected: Change \$ to $ throughout, now that
6128 this file is not being read by a shell script.
6129
70c4e67a
RS
61302002-09-05 Roger Sayle <roger@eyesopen.com>
6131
6132 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6133
65b91091
DD
61342002-08-07 DJ Delorie <dj@redhat.com>
6135
6136 * regex.c (re_error_msgid): Just use a simple array of strings.
6137 (re_compile_pattern): Compensate.
6138 (re_comp): Likewise.
6139 (re_comp): Likewise.
6140 (regerror): Likewise.
6141
437974a9
NB
61422002-07-29 Neil Booth <neil@daikokuya.co.uk>
6143
6144 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 6145
28a34ec1
JM
61462002-07-10 Jason Merrill <jason@redhat.com>
6147
6148 * cp-demangle.c (demangle_identifier): Support extended Unicode
6149 characters.
6150
84326592
KG
61512002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6152
6153 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 6154 !defined IN_GLIBCPP_V3.
84326592 6155
5d69ba1f
MM
61562002-07-01 Mark Mitchell <mark@codesourcery.com>
6157
6158 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6159 Set it for the "st" operator.
6160 (demangle_expression): Handle expressions with types as arguments.
6161
7fda878c
DR
61622002-06-30 Douglas Rupp <rupp@gnat.com>
6163
6164 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6165 * Makefile.in (OUTPUT_OPTION): Use.
6166
112bae77
PB
61672002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6168
6169 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6170 (install_to_tooldir): Likewise.
6171
53309d5c
DR
61722002-06-17 Douglas Rupp <rupp@gnat.com>
6173
6174 * lbasename.c: Add 2002 to copyright.
6175 (IS_DIR_SEPARATOR): Remove VMS junk.
6176
045b3a49
GK
61772002-06-05 Geoffrey Keating <geoffk@redhat.com>
6178
6179 * hashtab.c (htab_create): New stub function for backward
6180 compatibility.
6181 (htab_try_create): Likewise.
6182
e2500fed
GK
61832002-06-03 Geoffrey Keating <geoffk@redhat.com>
6184
6185 * hashtab.c (htab_create): Delete.
6186 (htab_try_create): Delete.
6187 (htab_create_alloc): New.
6188 (htab_delete): Support user-specified memory allocation.
6189 (htab_expand): Likewise.
6190
9f3dbd92
RL
61912002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6192
6193 * configure.in: Fix typo in the code checking for sys_errlist.
6194 * configure: Regenerated.
6195
e4723404
AS
61962002-05-13 Andreas Schwab <schwab@suse.de>
6197
6198 * config.table: Use mh-x86pic also for x86-64.
6199
6706f116
AO
62002002-05-08 Alexandre Oliva <aoliva@redhat.com>
6201
6202 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6203 script entry, and set LD to it when configuring multilibs.
6204 * configure: Rebuilt.
6205
deae2ed9
MM
62062002-05-07 Mark Mitchell <mark@codesourcery.com>
6207
6208 * configure.in (AC_TYPE_PID_T): Use it.
6209 * configure: Regenerated.
6210 * getruntime.c: Include <sys/types.h>.
6211 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
6212
4fc4e478
RH
62132002-04-09 Richard Henderson <rth@redhat.com>
6214
6215 * hashtab.c (higher_prime_number): Use 7 as minimum.
6216 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6217 (htab_find_slot_with_hash): Likewise.
6218
bd7e6f2d
PE
62192002-04-01 Phil Edwards <pme@gcc.gnu.org>
6220
6221 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
6222 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
6223 not compile if IN_GLIBCPP_V3 defined.
6224 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
6225
a8f55e51
BM
62262002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6227
de78f58b 6228 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
6229 if it is NULL.
6230
96adcacb
DD
62312002-03-27 DJ Delorie <dj@redhat.com>
6232
6233 * hex.c: Add documentation.
6234 (_hex_value): Provide non-ASCII empty table.
6235 (hex_init): Initialize the non-ASCII table.
6236 * functions.texi: Regenerate.
6237
2b613c6a
MM
62382002-03-27 Mark Mitchell <mark@codesourcery.com>
6239
6240 * dyn-string.c: Add libgcc exception to copyright notice.
6241
cd862df8
L
62422002-03-26 H.J. Lu (hjl@gnu.org)
6243
6244 * config.table: Support --with-build-subdir.
6245 * configure.in: Likewise.
6246 * configure: Rebuild.
6247
ed300793
SG
62482002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6249
6250 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6251 seen.
6252
b3dd43df
MM
62532002-03-12 Mark Mitchell <mark@codesourcery.com>
6254
6255 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6256 notice.
6257
50c74579
DR
62582002-03-11 Douglas B Rupp <rupp@gnat.com>
6259
6260 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6261
957978a4
JB
62622002-03-06 Jim Blandy <jimb@redhat.com>
6263
6264 * splay-tree.c (splay_tree_xmalloc_allocate,
6265 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6266 prototyped definitions. Mark `data' arguments as unused.
6267
ccc49bed
AC
62682002-03-06 Andrew Cagney <ac131313@redhat.com>
6269
6270 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6271
48d7db63
PE
62722002-03-04 Phil Edwards <pme@gcc.gnu.org>
6273
6274 * configure.in: Add --enable-install-libiberty option.
6275 * Makefile.in (INSTALLED_HEADERS): New variable.
6276 (install_to_libdir): Possibly also copy headers.
6277 * configure: Regenerated.
6278
af18e951
NB
62792002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6280
6281 * xmalloc.c (xmalloc_fail): Clarify error message further.
6282
d8d7c3c3
NB
62832002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6284
6285 * xmalloc.c (xmalloc_fail): Clarify error message.
6286
00c2f96f
JB
62872002-02-22 Jim Blandy <jimb@redhat.com>
6288
6289 * splay-tree.c (splay_tree_xmalloc_allocate,
6290 splay_tree_xmalloc_deallocate): New functions.
6291 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6292 above functions and a dummy data pointer.
6293 (splay_tree_new_with_allocator): New function.
6294 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6295 splay_tree_remove): Use the splay tree's allocation and
6296 deallocation functions.
6297
b1c1a22f
SS
62982002-02-19 Scott Snyder <snyder@fnal.gov>
6299
6300 * testsuite/demangle-expected: Add test case for infinite loop in
6301 demangler.
6302 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6303 if do_type() doesn't make any progress --- prevents an infinite
6304 loop.
6305
336669e7
CW
63062002-02-18 Carlo Wood <carlo@gnu.org>
6307
6308 PR c++/5390
6309 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6310 numbers that do not start with an underscore; This is needed
6311 for integer template parameters. This doesn't break anything
6312 because multi-digit numbers are never followed by a digit.
6313 * testsuite/demangle-expected: Corrected all mangled test
6314 cases with multi-digit template parameters: g++ 2.95.x does
6315 not generate underscores around these parameters.
6316
c13db5d1
JM
63172002-02-05 Jason Merrill <jason@redhat.com>
6318
6319 * cplus-dem.c (flags): Add DMGL_VERBOSE
6320 (cplus_demangle_v3_p): Remove.
6321 (demangle_it): Add DMGL_TYPES to passed flags.
6322 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6323 (cplus_demangle_v3_type): Remove.
6324 (cplus_demangle_v3): Add options parm.
6325
d74697b8
L
63262002-02-02 H.J. Lu (hjl@gnu.org)
6327
6328 * cp-demangle.c (cp_demangle_type): Do not protect with
6329 IN_LIBGCC2.
6330 (cplus_demangle_v3_all): New.
6331 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6332 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6333
6334 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6335 Initialized to cplus_demangle_v3.
6336 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6337 of cplus_demangle_v3.
6338 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6339 command line symbol.
6340
6341 * testsuite/regress-demangle: Pass the mangled name at the
6342 command line.
6343
3a441e38
L
63442002-02-01 H.J. Lu <hjl@gnu.org>
6345
6346 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6347 DMGL_GNU_V3.
6348
6d747e63
PE
63492002-01-31 Phil Edwards <pme@gcc.gnu.org>
6350
6351 * cp-demangle.c: Revert yesterday's change.
6352
46af757b
AM
63532002-01-31 Adam Megacz <adam@xwt.org>
6354
969ac969 6355 * configure.in: Treat mingw the same as cywin
46af757b
AM
6356 wrt HAVE_SYS_ERRLIST.
6357
46ab74b1
PE
63582002-01-30 Phil Edwards <pme@gcc.gnu.org>
6359
6360 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6361 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6362 cp_demangle_type.
6363 * testsuite/demangle-expected: New gnu-v3 test.
6364
e64d0626
MV
63652002-01-22 Momchil Velikov <velco@fadata.bg>
6366
6367 * configure.in (variable detection): Use arrays of unspecified
6368 size instead of plain integers.
6369
9ce3f7e5
DD
63702002-01-18 DJ Delorie <dj@redhat.com>
6371
6372 * Makefile.in (TESTLIB): New. This library is for future
6373 testsuites.
6374 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6375 break down by letter.
6376 (REQUIRED_OFILES): List long-to-compile files first.
6377 (maint-deps): New, target for updating dependencies.
6378 (dependencies): Update.
6379 * maint-tool: Add dependency-generating option.
6380 * configure.in: Check for _doprnt even if we're not providing it.
6381 * configure: Regenerate.
6382
6383 * _doprnt.c: Modifications to allow compiling on any platform.
6384 * copysign.c: Likewise.
6385 * putenv.c: Likewise.
6386 * setenv.c: Likewise.
6387 * vsprintf.c: Likewise.
6388
0e83ceb1
DR
63892002-01-15 Douglas B Rupp <rupp@gnat.com>
6390
6391 * mkstemps.c (mkstemps): On VMS, open temp file with option
6392 that causes it to be deleted when closed.
6393
adddf5bf
KG
63942002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6395
5e65297b
KG
6396 * cp-demangle.c (long_options): Const-ify.
6397 * cplus-dem.c (long_options): Likewise.
6398
adddf5bf
KG
6399 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6400 strstr instead.
6401
a4219437
IR
64022001-12-31 Ira Ruben <ira@apple.com>
6403
6404 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6405 * configure: Regenerated.
af328d8d
DR
6406
64072001-12-24 Douglas B. Rupp <rupp@gnat.com>
6408
6409 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6410 * configure: Regenerated.
a4219437 6411
63de15a4
CR
64122001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6413
6414 PR other/2719
6415 * cplus-dem.c (consume_count): Treat negative count as an error.
6416 * testsuite/demangle-expected: Added testcase.
6417
ee262b6f
DR
6418Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6419
6420 * configure.in: Hardcode that vfork works on VMS host.
6421 * configure: Regenerated.
6422
d06ba3c7
RH
64232001-12-06 Richard Henderson <rth@redhat.com>
6424
6425 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6426 (cplus_demangle): Support no_demangling.
6427
e490616e
ZW
64282001-11-27 Zack Weinberg <zack@codesourcery.com>
6429
6430 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6431 in libiberty context. Fix typo in leading comment.
6432 * configure.in: Fix various AC_DEFINEs so autoheader works.
6433 If any of vprintf, vsprintf, vfprintf is missing from libc,
6434 then AC_REPLACE_FUNCS(_doprnt).
6435
97e620cf 64362001-11-26 DJ Delorie <dj@redhat.com>
e490616e 6437 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
6438
6439 * Makefile.in (stamp-h): Depend on Makefile for proper
6440 serialization.
6441 (*-subdir): Depend on config.h for proper serialization.
6442
c3bb7df0
DD
64432001-11-26 DJ Delorie <dj@redhat.com>
6444
6445 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6446 * configure: Regenerate.
6447 * config.h: Add HAVE_ALLOCA_H.
6448
23850d35
KG
64492001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6450
2c47b56b
KG
6451 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6452 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6453 is available.
23850d35 6454
7ddfb651
JL
6455Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6456
d3982b71
JL
6457 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6458 * configure.in (HAVE_UINTPTR_T): Test for system defining
6459 uintptr_t and define HAVE_UINTPTR_T appropriately.
6460 * regex.c (uintptr_t): Do not provide a definition if the
6461 system provided one.
6462
7ddfb651
JL
6463 * regex.c (PREFIX): Provide an alternate definition for
6464 non-ANSI/ISO compilers.
6465 (ARG_PREFIX): Likewise.
6466
2e683037
JM
64672001-11-12 Jim Meyering <meyering@lucent.com>
6468
6469 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6470 this code would end up calling gettext even in packages built
6471 with --disable-nls.
6472 * getopt.c (_): Likewise.
6473 * regex.c (_): Likewise.
6474
f749bd83
AM
64752001-11-03 Alan Modra <amodra@bigpond.net.au>
6476
6477 * configure.in: Cope with missing makeinfo.
55a10d7c 6478 * configure: Regenerate.
f749bd83 6479
26ad2982
KG
64802001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6481
e5969ba6
KG
6482 * hex.c (hex_init): Provide empty stub.
6483
26ad2982
KG
6484 * hex.c (hex_init): Delete.
6485 (_hex_value): Const-ify and initialize at compile-time.
6486
afb649d5
L
64872001-10-19 H.J. Lu <hjl@gnu.org>
6488
6489 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6490 necessary.
6491
5bed56d9
DD
64922001-10-17 DJ Delorie <dj@redhat.com>
6493
6494 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6495 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 6496 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
6497 Improve manual formatting.
6498 * functions.texi: Regenerate.
6499
aac04c15
DD
65002001-10-15 DJ Delorie <dj@redhat.com>
6501
6502 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6503 (maint-undoc): New.
6504 maint-tool: Add "undoc" tool.
6505 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6506 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6507 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6508 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6509 documentation.
6510 * fnmatch.txh: New.
6511 * functions.texi: Regenerate.
fae8182a 6512
0e4e9e8f
JM
65132001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6514
6515 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6516 * strtod.c: Use "ISO C" instead of "ANSI C".
6517 * functions.texi: Regenerate.
6518
7f8fa05d
JM
65192001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6520
6521 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6522 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6523 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6524 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6525 spelling. Give names to function arguments in documentation. Use
6526 (void) prototypes in documentation.
6527 * functions.texi: Regenerate.
6528
0be6abca
KG
65292001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6530
6531 * argv.c (buildargv, tests, main): Const-ify.
6532 * cp-demangle.c (operator_code): Likewise.
6533 * cplus-dem.c (optable, libiberty_demanglers,
6534 cplus_demangle_set_style, cplus_demangle_name_to_style,
6535 print_demangler_list): Likewise.
6536 * hashtab.c (higher_prime_number): Likewise.
6537 * strcasecmp.c (charmap): Likewise.
6538 * strerror.c (error_info, strerror, main): Likewise.
6539 * strncasecmp.c (charmap): Likewise.
6540 * strsignal.c (signal_info): Likewise.
6541
0e30ffc5
DD
65422001-09-29 DJ Delorie <dj@redhat.com>
6543
6544 * configure: Regenerate.
6545
576fb787
KG
65462001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6547
6548 * concat.c: Include stdlib.h.
6549
e922f978
EZ
65502001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6551
6552 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6553 @dircategory and @direntry directives. Add @finalout.
6554 (many nodes): Lose the next,prev,up pointers on the @nide line.
6555 (Using, Supplemental Functions, Replacement Functions): Fix
6556 markup.
6557 (Functions): Move around, to allow makeinfo to build the manual
6558 without next,prev,up pointers in thye node lines.
6559 (Licenses): Fix typos.
6560
6561 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6562 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6563 * functions.texi: Regenerate.
6564
6565 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6566 line.
6567
ae9092da
DD
65682001-09-27 DJ Delorie <dj@redhat.com>
6569
6570 * configure.in: Don't use in-tree texinfo, because libiberty must
6571 be built before it. Check for makeinfo version 4 or higher.
6572 * functions.texi: Regenerate.
fae8182a 6573
aaa5f039
DD
65742001-09-20 DJ Delorie <dj@redhat.com>
6575 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 6576
aaa5f039
DD
6577 * configure.in (MAKEINFO, PERL): Detect these.
6578 (--enable-maintainer-mode): Add.
6579 * configure: Regenerate.
6580 * Makefile.in (MAKEINFO, PERL): Define.
6581 (libiberty.info, libiberty.dvi, libiberty.html): New.
6582 (CFILES): Add bsearch.c.
6583 (CONFIGURED_OFILES): New, list of objects configure might add.
6584 (maint-missing, maint-buildall): New, for maintainers only.
6585 (clean, mostlyclean): Add info/dvi/html files.
6586 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6587 * gather-docs: New, for maintainers.
6588 * maint-tool: New, for maintainers.
6589 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6590 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6591 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6592 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6593 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6594 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6595 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6596 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6597 documentation.
fae8182a 6598
c1766881
KG
65992001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6600
6601 * concat.c (reconcat): Fix for traditional C.
6602
ad43d46f
KG
66032001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6604
6605 * concat.c (reconcat): New function.
6606
c1d49704
KG
66072001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6608
c793eea7
KG
6609 * concat.c (vconcat_length, vconcat_copy, concat_length,
6610 concat_copy, concat_copy2): New functions.
6611 (concat): Use vconcat_length/vconcat_copy.
6612
c1d49704
KG
6613 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6614 Define.
6615
7a98d9b2
KG
66162001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6617
6618 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6619 VA_FIXEDARG & VA_CLOSE.
fae8182a 6620
7a98d9b2
KG
6621 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6622 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6623 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6624
e2dff3f2
KG
66252001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6626
6627 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6628
d0708dc1
UD
66292001-08-23 Ulrich Drepper <drepper@redhat.com>
6630
6631 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6632
66332001-08-23 Ulrich Drepper <drepper@redhat.com>
6634
6635 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6636 instead of mbrtowc.
6637 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6638 wcslen, and __wcscoll instead of wcscoll.
6639
ffb9435b
MK
66402001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6641
de78f58b
AJ
6642 * fibheap.c (fibheap_init, fibnode_init): Remove.
6643 (fibheap_new, fibnode_new): Use xcalloc to allocate and
6644 initialize memory.
6645 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 6646
f379eac3
RH
66472001-08-21 Richard Henderson <rth@redhat.com>
6648
6649 * Makefile.in (fibheap.o): Depend on config.h.
6650 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
6651 functions for inlining.
6652
b1c45ae4
CF
6653Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
6654
6655 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6656 hosting on cygwin.
6657 * configure: Regenerate.
6658
0310e5ac
AC
66592001-08-20 Andrew Cagney <ac131313@redhat.com>
6660
6661 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6662 HARRIS_FLOAT_FORMAT.
6663 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6664 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6665 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6666 (floatformat_m88110_harris_ext): New float formats.
6667
8c23e0a4
DB
66682001-08-20 Daniel Berlin <dan@cgsoftware.com>
6669
6670 * fibheap.c: New file. Fibonacci heap.
6671
6672 * Makefile.in (CFILES): Add fibheap.c.
6673 (REQUIRED_OFILES): Add fibheap.o.
6674 (fibheap.o): Add dependencies for fibheap.o.
6675
91625004
CF
66762001-08-17 Christopher Faylor <cgf@cygnus.com>
6677
6678 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6679 * configure: Regenerate.
6680
9e0ba685
RH
66812001-08-16 Richard Henderson <rth@redhat.com>
6682
6683 * hashtab.c (htab_hash_string): New.
6684
d80dedbe
AC
66852001-08-13 Andrew Cagney <ac131313@redhat.com>
6686
6687 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6688 name.
6689
ccea0d85
IH
66902001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
6691
6692 * regex.c (wcs_regex_compile): Use appropriate string
6693 to compare with collating element.
6694 Fix the padding for the alignment.
6695
b0e9bc8c 66962001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
6697
6698 * lbasename.c (lbasename): Change function definition to return a
6699 const char pointer.
6700
056400f1
JM
67012001-08-07 Jason Merrill <jason_merrill@redhat.com>
6702
6703 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6704 for".
6705
4e627c41
RH
67062001-08-03 Richard Henderson <rth@redhat.com>
6707
6708 * Makefile.in (concat.o): Depend on config.h.
6709
b6a2f884
AJ
67102001-07-30 Andreas Jaeger <aj@suse.de>
6711
6712 * concat.c: Include "config.h".
6713
c4b9cfe0
AJ
67142001-07-30 Andreas Jaeger <aj@suse.de>
6715
6716 * regex.c: Declare wcs functions only if compiling with
6717 MBS_SUPPORT.
6718 Don't use #elif for traditional C.
6719
67202001-07-23 Ulrich Drepper <drepper@redhat.com>
6721
6722 * regex.c: Revamp memory allocation for WCHAR functions to
6723 not use too much stack.
6724
67252001-07-30 Andreas Jaeger <aj@suse.de>
6726
6727 * regex.c: Declare wcs functions only if compiling with
6728 MBS_SUPPORT.
6729 Don't use #elif for traditional C.
6730
2cf50fd3
DJ
67312001-07-25 Daniel Jacobowitz <drow@mvista.com>
6732
6733 * Makefile.in (regex.o): Add dependency on config.h.
6734
27ffc806
DD
67352001-07-18 Andreas Schwab <schwab@suse.de>
6736
6737 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6738 underscore character.
6739
67402001-07-18 Ulrich Drepper <drepper@redhat.com>
6741
6742 * regex.c: Limit string length printed in debug messages to 100
6743 chars.
6744
67452001-07-18 Andreas Jaeger <aj@suse.de>
6746
6747 * regex.c: Place under LGPL version 2.1.
6748
dd771632
JJ
67492001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6750
6751 * Makefile.in: Add support for regex code.
6752 * regex.c: New file.
6753
29650b2b
MK
67542001-07-05 Mark Klein <mklein@dis.com>
6755
6756 * Makefile.in: Add ffs.c dependency.
6757 * configure.in: Add ffs.c.
6758 * ffs.c: New file.
6759
c8b28221
RH
67602001-06-18 Richard Henderson <rth@redhat.com>
6761
6762 * concat.c: Include <sys/types.h>.
6763
473c2d0b
LR
67642001-06-11 Loren J. Rittle <ljrittle@acm.org>
6765
a4c03da2 6766 bootstrap/3106
473c2d0b
LR
6767 * strerror.c (sys_nerr): Hide the OS header version.
6768 * strsignal.c (sys_nsig): Likewise.
6769
0bdcca68
RH
67702001-06-10 Richard Henderson <rth@redhat.com>
6771
6772 * concat.c: Include string.h. Fix int vs size_t usage.
6773 Simplify the iteration loops. Use memcpy.
6774
6de133d3
MK
67752001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6776
6777 * partition.c: Fix misspelling of `implementation'.
6778
8a153288
TS
67792001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6780
6781 * md5.c (md5_init_ctx): Declare constants as unsigned.
6782 (md5_process_block): Likewise.
6783
641b2721
ZW
67842001-05-07 Zack Weinberg <zackw@stanford.edu>
6785
6786 * cp-demangle.c (demangle_v3_with_details,
6787 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
6788 function definition.
6789 * ternary.c: Use K+R style function definitions. Use PTR, not
6790 void *. Make arguments constant where possible.
6791
5cdba4ff
MM
67922001-05-07 Mark Mitchell <mark@codesourcery.com>
6793
6794 * splay-tree.h (splay_tree_max): New function.
6795 (splay_tree_min): Likewise.
6796
9dab060e
DB
67972001-04-15 Daniel Berlin <dan@cgsoftware.com>
6798
6799 * ternary.c: New file - Ternary search tree implementation.
6800
6801 * Makefile.in: Add ternary.o, and ternary.c dependencies.
6802
d02af173
ZW
68032001-04-03 Zack Weinberg <zackw@stanford.edu>
6804
6805 * make-temp-file.c (try): Inline.
6806
94b68558
RH
68072001-02-28 Richard Henderson <rth@redhat.com>
6808
6809 * Makefile.in (make-temp-file.o): Depend on config.h.
6810
27f66c0b
KG
68112001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6812
6813 * memchr.c (memchr): Adjust condition to avoid infinite loop.
6814
f1a0345c
JJ
68152001-03-23 Jakub Jelinek <jakub@redhat.com>
6816
6817 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
6818 `_' not followed by a digit is invalid.
6819
a519fba6
JB
68202001-03-22 Jim Blandy <jimb@redhat.com>
6821
6822 * cp-demangle.c (string_list_delete): Use dyn_string_delete
6823 instead of free, to free the contents as well as the string
6824 structure.
6825
49ee944b
ZW
68262001-03-21 Zack Weinberg <zackw@stanford.edu>
6827
6828 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
6829 Don't default P_tmpdir to anything. Try /var/tmp before
6830 /usr/tmp.
6831
33437dc7
ZW
68322001-03-20 Zack Weinberg <zackw@stanford.edu>
6833
6834 * choose-temp.c: Split off make_temp_file, and the code
6835 duplicated between it and choose_temp_base, into...
6836 * make-temp-file.c: ... here; new file.
6837
6838 * Makefile.in (CFILES): Add make-temp-file.c.
6839 (REQUIRED_OFILES): Add make-temp-file.o.
6840
7dce2eff
JB
68412001-03-20 Jim Blandy <jimb@redhat.com>
6842
6843 * cp-demangle.c (struct demangling_def): New fields:
6844 is_constructor and is_destructor.
6845 (demangling_new): Initialize them.
6846 (demangle_ctor_dtor_name): Set them, if we detect a constructor
6847 or destructor.
6848 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
6849 is_gnu_v3_mangled_dtor): New functions.
6850
e03a61f1
JM
68512001-03-20 Jason Merrill <jason@redhat.com>
6852
6853 * cplus-dem.c (main): Skip initial $.
6854
8860ddab
MM
68552001-03-15 Michael Meissner <meissner@redhat.com>
6856
6857 * hashtab.c (higher_prime_number): Silence warning that 4294967291
6858 might be a signed integer under pre-ISO C systems.
6859
2b757d51
NB
68602001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6861 John David Anglin <dave@hiauly1.hia.nrc.ca>
6862
969ac969
JJ
6863 * lbasename.c: New file.
6864 * Makefile.in: Update for lbasename.
2b757d51 6865
1f50aafb
ZW
68662001-03-06 Zack Weinberg <zackw@stanford.edu>
6867
6868 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
6869 * configure.in: Replace all alloca logic with a simple use of
6870 the above new macro.
6871 * config.table: Kill *-*-beos* entry.
6872 * config/mh-beos: Delete.
6873 * configure, config.in: Regenerate.
6874
6875 * Makefile.in (ALLOCA, HFILES): Kill.
6876 (REQUIRED_OFILES): Add alloca.o.
6877 (alloca.o): Depend on libiberty.h.
6878 (argv.o): Don't depend on alloca-conf.h.
6879 * alloca-conf.h: Delete.
6880 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
6881 blocks. Provide the C alloca unconditionally. Use PTR where
6882 appropriate. Make i00afunc static.
6883 * argv.c: Don't include alloca-conf.h.
6884
d9fd5aae
JDA
68852001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6886
6887 * cplus-dem.c (main): Cast enum style to int.
6888
4031ed65
LR
68892001-02-16 Loren J. Rittle <ljrittle@acm.org>
6890
6891 * cplus-dem.c (main): Initialize style.
6892
2ca46e8a
PE
68932001-02-02 Phil Edwards <pme@sources.redhat.com>
6894
6895 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
6896
3b60dd8e
BM
68972001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
6898
6899 Add support for Java demangling under the v3 ABI:
6900 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
6901 (struct demangling_def): Add `style' field.
6902 (demangling_new): New parameter `style'. Set it in demangling_t.
6903 (demangle_prefix): Use NAMESPACE_SEPARATOR.
6904 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
6905 (cp_demangle): New parameter `style'. Pass it to demangling_new().
6906 (main): Call cp_demangle with extra parameter.
6907 (java_demangle_v3): New function.
6908 (java_builtin_type_names): New. Table of primitive type names used
6909 for Java demangling.
6910 (demangle_builtin_type): Look up in java_builtin_type_names if doing
6911 Java output.
1f50aafb 6912 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
6913 demangling.
6914 (long_options): Remove obsolete `java' option.
6915 (main): Remove explicit handling of `java' option. Instead, pass style
6916 parameter in cplus_demangle flags as gdb does.
6917 * testsuite/demangle.expected: Add some Java test cases.
6918
584932e9
DD
69192000-12-29 DJ Delorie <dj@redhat.com>
6920
6921 * fnmatch.c: Make the note about the origins of this file more
6922 accurate, at least until we can sync with glibc.
6923 * getopt.c: Ditto.
6924 * getopt1.c: Ditto.
6925 * md5.c: Ditto.
6926 * obstack.c: Ditto.
6927
dac45916
MS
69282000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6929
6930 * bsearch.c: New file.
6931 * configure.in (funcs): Add bsearch.
6932 (AC_CHECK_FUNCS): Likewise.
6933 * configure, config.in: Regenerate.
6934
a8e4a997
MS
69352000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6936
6937 * safe-ctype.c: #include "ansidecl.h".
6938 * strtod.c: Likewise.
6939
75444da7
MS
69402000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6941
6942 * strtoul.c: Include safe-ctype.h, not ctype.h.
6943
f6bbde28
ZW
69442000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
6945
6946 * safe-ctype.c: New file.
6947 * Makefile.in (CFILES): Add safe-ctype.c.
6948 (REQUIRED_OFILES): Add safe-ctype.o.
6949
6950 * argv.c: Define ISBLANK and use it, not isspace.
6951 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
6952 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
6953 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
6954 before calling TOLOWER(c)/TOUPPER(c).
6955
6c1ce62b 69562000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
6957
6958 * Makefile.in (distclean): When cleaning, remove testsuite.
6959
b5d1497d
JM
69602000-12-05 Jason Merrill <jason@redhat.com>
6961
6962 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
6963 name before allocating the dyn_string.
6964
c6e13630
JM
69652000-12-04 Jason Merrill <jason@redhat.com>
6966
6967 * cp-demangle.c: s/new_abi/v3/.
6968 * cplus-dem.c: Likewise.
6969 (current_demangling_style): Now auto_demangling.
6970 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 6971 (main): Use standard symbol chars for auto_demangling.
c6e13630 6972
a4c9b97e
MM
69732000-11-26 Mark Mitchell <mark@codesourcery.com>
6974
6975 * hashtab.c (higher_prime_number): Use a table, rather than a
6976 seive, to find the next prime.
6977
3b3bd9a7
L
69782000-11-22 H.J. Lu <hjl@gnu.org>
6979
6980 * cplus-dem.c (main): Handle gnat_demangling.
6981
d1209685
ZW
69822000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
6983
6984 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
6985 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
6986 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
6987 argument form of AC_DEFINE in dummy definitions block. Use
6988 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
6989 in dummy block. Preload cache variables instead of bypassing
6990 tests, where possible.
6991 * acconfig.h: Removed.
6992
6993 * xmalloc.c (xmalloc_failed): New function, does error
6994 reporting on failed allocation.
6995 (xmalloc, xcalloc, xrealloc): Use it.
6996
cf183ac2
HPN
69972000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
6998
6999 * cplus-dem.c (cplus_demangle): Fix formatting.
7000 (grow_vect): Ditto.
7001 (ada_demangle): Ditto.
7002 (internal_cplus_demangle): Ditto.
7003 (mop_up): Ditto.
7004
70052000-11-21 H.J. Lu <hjl@gnu.org>
7006
7007 * cplus-dem.c (main): Handle java_demangling.
7008
8bcc782c
KG
70092000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7010
7011 * cplus-dem.c (grow_vect): Prototype.
7012 (ada_demangle): Cast the arg of ctype macros to unsigned char.
7013
29120f44
HPN
70142000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7015
7016 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7017 parameter `option'.
7018
0437a5a8
KB
70192000-11-15 Kenneth Block <kenneth.block@compaq.com>
7020
9e038f71 7021 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
7022 be used in GCC.
7023
eab0c1ab 70242000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 7025
29120f44 7026 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
7027 list.
7028
d50d20ec
HPN
70292000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
7030
7031 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
7032 xcalloc depending on htab->return_allocation_failure. Return zero
7033 if calloc fails.
d50d20ec
HPN
7034 (htab_create): Update comment to cover memory allocation.
7035 (htab_try_create): New.
7036 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 7037 Update comment to cover this.
d50d20ec 7038
35e9340f
HPN
70392000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
7040
7041 * hashtab.c: Change void * to PTR where necessary.
7042 (htab_create, htab_expand): Correct formatting of comment before
7043 function.
7044
ea343d1a 70452000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
7046
7047 * cp-demangle.c (string_list_def): Add caret_position and comments.
7048 (result_caret_pos): New macro.
7049 (result_append_string): Rename to...
7050 (result_add_string): ... this, and insert at caret position.
d1209685 7051 Rename throughout.
0870bfd6
AS
7052 (result_append): Rename to...
7053 (result_add): ... this, and insert at caret position. Rename
d1209685 7054 throughout.
0870bfd6
AS
7055 (result_append_char): Rename to...
7056 (result_add_char): ... this, and insert at caret position. Rename
d1209685 7057 throughout.
0870bfd6
AS
7058 (result_append_space): Remove.
7059 (string_list_new): Initialize caret position.
7060 (result_add_separated_char): Use caret position.
7061 (result_get_caret): New funtion.
7062 (result_set_caret): Likewise.
7063 (result_shift_caret): Likewise.
7064 (result_previous_char_is_space): Likewise.
7065 (substitution_start): Use caret position.
7066 (substitution_add): Likewise.
7067 (demangling_new): Initialize caret position.
7068 (demangle_encoding): Use caret position.
d1209685 7069 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
7070 (demangle_type_ptr): Use switch statement. Handle pointers to
7071 arrays. Don't use result_append_space. Use caret position.
7072 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
7073 call to demangle_array_type.
7074 (demangle_array_type): Add parameter to handle pointers to arrays.
7075
f15b9af9
MM
70762000-10-01 Mark Mitchell <mark@codesourcery.com>
7077
7078 * splay-tree.c (splay_tree_insert): Fix formatting.
7079
8f17b5c5
MM
70802000-09-16 Mark Mitchell <mark@codesourcery.com>
7081
7082 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7083
4eaa189a
MS
70842000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7085
7086 * splay-tree.c: #include <stdio.h>.
7087
29791078
HPN
70882000-09-14 Hans-Peter Nilsson <hp@axis.com>
7089
7090 * testsuite/demangle-expected: Add two tests for anonymous
7091 namespaces.
7092 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
7093
2c9f4db7
MM
70942000-09-10 Mark Mitchell <mark@codesourcery.com>
7095
7096 * splay-tree.c (splay_tree_predecessor): New function.
7097 (splay_tree_successor): Likewise.
7098
bb22da4b
HPN
70992000-09-10 Hans-Peter Nilsson <hp@axis.com>
7100
7101 * testsuite/demangle-expected: Add four tests for type_info
7102 mangling.
bb22da4b
HPN
7103 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7104 for a non-template non-qualified type_info function or node.
7105
759e8187
AS
71062000-09-08 Alex Samuel <samuel@codesourcery.com>
7107
7108 * cp-demangle.c: Fix copyright banner.
7109
2ecd81ef
MS
71102000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7111
7112 * md5.c: #include "ansidecl.h".
7113
d93998ec
AS
71142000-09-06 Alex Samuel <samuel@codesourcery.com>
7115
7116 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7117 (demangle_type): Handle substitution candidates correctly in the
7118 face of special substitutions.
7119
1056d228
AS
71202000-09-05 Alex Samuel <samuel@codesourcery.com>
7121
7122 * cp-demangle.c (demangle_encoding): Rename variable.
7123 (demangle_name): Rename parameter. Handle return type
7124 suppression.
7125 (demangle_nested_name): Rename parameter.
7126 (demangle_prefix): Likewise. Change return type suppression.
7127 (demangle_unqualified_name): Add parameter. Flag constructors and
7128 conversion operators.
7129 (demangle_special_name): Fix comment.
7130 (demangle_type): Rename variable.
7131 (demangle_bare_function_type): Check for missing return type and
d1209685 7132 parameter.
1056d228
AS
7133 (demangle_class_enum_type): Rename parameter.
7134 (demangle_discriminator): Fix misspelling in comment.
7135
2f31ed7e
DD
71362000-08-31 DJ Delorie <dj@redhat.com>
7137
7138 * configure.in (Cygwin): special case cygwin only when we're
7139 building cygwin, not when we're hosting cygwin.
7140
02bcb9c6
AS
71412000-09-04 Alex Samuel <samuel@codesourcery.com>
7142
7143 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
7144 <expression>.
7145
aee749cf
AS
71462000-09-04 Alex Samuel <samuel@codesourcery.com>
7147
7148 * cp-demangle.c (demangle_type_ptr): Increment position past
7149 pointer and reference characters.
7150
92a16bbe
AS
71512000-09-04 Alex Samuel <samuel@codesourcery.com>
7152
7153 * cp-demangle.c (demangle_nv_offset): New function.
7154 (demangle_v_offset): Likewise.
7155 (demangle_call_offset): Likewise.
7156 (demangle_special_name): Update thunk demangling to comply with
7157 ABI changes.
d1209685 7158
31e0ab1f
AS
71592000-09-03 Alex Samuel <samuel@codesourcery.com>
7160
7161 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7162 (substitution_def): Remove template_parm_number.
7163 (NOT_TEMPLATE_PARM): Remove.
7164 (result_insert_string): New macro.
7165 (result_insert): Likewise.
7166 (result_insert_char): Likewise.
7167 (substitution_add): Remove last parameter. Don't store template
d1209685 7168 parm number.
31e0ab1f
AS
7169 (BFT_NO_RETURN_TYPE): Define as NULL.
7170 (demangle_encoding): Adjust call to demangle_bare_function_type.
7171 (demangle_name): Adjust substitution. Adjust call to
d1209685 7172 substitution_add.
31e0ab1f
AS
7173 (demangle_prefix): Adjust call to substitution_add.
7174 (demangle_identifier): Handle anonymous namespaces.
7175 (demangle_operator_name): Change demangling of vendor-extended
7176 operator to match ABI changes.
7177 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 7178 substitutions here.
31e0ab1f
AS
7179 (demangle_type): Adjust calls to demangle_template_param,
7180 substitution_add, and demangle_type_ptr. Fix substitution of
7181 templated types.
7182 (demangle_function_type): Change parameter to a pointer.
7183 (demangle_bare_function_type): Likewise. Adjust insertion point.
7184 (demangle_template_param): Remove last parameter.
7185 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 7186 demangle_template_param.
31e0ab1f
AS
7187 (is_mangled_char): Accept `$' and `.'.
7188 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7189 * dyn-string.c (dyn_string_insert_char): New function.
7190
ccbc3eb7
HPN
71912000-08-31 Hans-Peter Nilsson <hp@axis.com>
7192
7193 * testsuite/demangle-expected: Add nine tests for
7194 underscore-after-number followed by five tests for name-signature
7195 delimiter.
7196
53dce582
RH
71972000-08-28 Richard Henderson <rth@cygnus.com>
7198
7199 * Makefile.in (md5.o): Depend on config.h.
7200
881c6935
JM
72012000-08-28 Jason Merrill <jason@redhat.com>
7202
7203 * Makefile.in (REQUIRED_OFILES): Add md5.o.
7204 (CFILES): Add md5.c.
7205 * md5.c: New file.
7206
a440fd19
AS
72072000-08-27 Alex Samuel <samuel@codesourcery.com>
7208
7209 * cp-demangle.c (demangle_name): Initialize template_p in local
7210 name case. Don't re-add substitutions as candidates.
7211 (demangle_nested_name): Use <unqualified-name>.
7212 (demangle_prefix): Likewise. Don't add template names as
7213 substitution candidates twice, or re-add a substitution or the
7214 last prefix component.
7215 (demangle_local_name): Adjust output format.
7216
d01ce591
AS
72172000-08-25 Alex Samuel <samuel@codesourcery.com>
7218
7219 * cp-demangle.c (result_add_separated_char): Change parameter to
7220 int.
7221 (substitution_add): Don't check for duplicates. Check if
7222 previously allocated size is zero.
7223 (demangle_name): Remove duplicate check for std substitution.
7224 Clear template flag appropriately.
7225 (demangle_prefix): Remove argument to demangle_substitution.
7226 Don't check that template flag is already set.
7227 (demangle_operator_name): Add pt operator.
7228 (demangle_type): Don't treat r as built-in type. Remove argument
7229 to demangle_substitution. Fix substitution candidate mechanics.
7230 Handle <template-template-parm>s. Improve comments.
d1209685 7231 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
7232 (demangle_substitution): Remove parameter.
7233 (print_usage): Remove extra fprintf option.
7234
2f59c8eb
GM
72352000-08-24 Greg McGary <greg@mcgary.org>
7236
969ac969 7237 * random.c (end_ptr): Revert previous change.
2f59c8eb 7238
2f26c11d
GM
72392000-08-24 Greg McGary <greg@mcgary.org>
7240
969ac969 7241 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2f26c11d 7242 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
969ac969 7243 * random.c (end_ptr): Likewise.
2f26c11d 7244
e282c9c9
AS
72452000-08-23 Alex Samuel <samuel@codesourcery.com>
7246
7247 * cp-demangle.c (result_close_template_list): Remove function.
7248 (result_add_separated_char): New function.
7249 (result_open_template_list): New macro.
7250 (result_close_template_list): Likewise.
7251 (demangle_prefix): Don't set template_p if the
7252 prefix ends with a ctor name.
7253 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7254 (demangle_type): Check for template args after substitution.
7255 (demangle_template_args): Use result_open_template_list.
d1209685 7256
c9b6494a
ZW
72572000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7258
7259 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7260
d1209685 72612000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
7262
7263 * config/mh-openedition.h: Added -DLE370 definition.
7264
0aab2795
ME
72652000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7266
7267 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7268 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7269 Cast program to 'char *' in errmsg_arg assignment.
7270 (PWAIT_ERROR): Define.
7271 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
7272 to DJGPP's WIF* macros.
7273
c2f275e4
RB
72742000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7275 Jeff Law <law@cygnus.com>
7276
73aa9564
RB
7277 * getcwd.c: Include string.h, stdlib.h for prototypes
7278
c2f275e4 7279 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
7280 * rename.c: Include config.h, unistd.h
7281 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 7282
ccbc3eb7
HPN
72832000-07-24 Hans-Peter Nilsson <hp@axis.com>
7284
7285 * cplus-dem.c (work_stuff_copy_to_from): New.
7286 (delete_non_B_K_work_stuff): New.
7287 (delete_work_stuff): New.
7288 (mop_up): Break out work_stuff partly destruction to
7289 delete_non_B_K_work_stuff.
7290 (iterate_demangle_function): New.
7291 (demangle_prefix): Call iterate_demangle_function instead of
7292 demangle_function_name. Leave handling of name-signature
7293 __-delimiters to iterate_demangle_function.
7294 (demangle_integral_value): Strip an optional
7295 following underscore cautiously. Handle negative numbers.
7296
3388651c
DB
72972000-07-24 Daniel Berlin <dberlin@redhat.com>
7298
d1209685 7299 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
7300 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7301
0fac482e
AS
73022000-07-21 Alex Samuel <samuel@codesourcery.com>
7303
7304 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7305 allocating ctor mangling.
7306 (demangle_array_type): Handle empty and non-constant array length.
7307
8502a100 73082000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
7309 Jeff Law <law@cygnus.com>
7310
c6451ce1
MS
7311 * configure.in (AC_CHECK_HEADERS): Add time.h.
7312 (AC_HEADER_TIME): Add check.
7313 * configure, config.in: Regenerate.
7314 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7315
cd447360
MS
7316 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7317 * configure, config.in: Regenerate.
7318 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7319 * strtol.c, strtoul.c: #include "config.h". Portably #include
7320 <limits.h> and/or <sys/param.h>.
7321 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 7322
3b58c099
MS
7323 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7324 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7325 * configure, config.in: Regenerate.
7326 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7327
8502a100
MS
7328 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7329
da0c7743
MS
73302000-07-21 Mike Stump <mrs@wrs.com>
7331
7332 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 7333 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 7334
838f8562
KG
73352000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7336
7337 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7338
7339 * setenv.c (setenv): Initialize variable `ep'.
7340
7341 * sigsetmask.c (abort): Prototype.
7342
7343 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7344 __STDC__ for stdarg.h include.
7345 (int_vasprintf): Prototype.
7346 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7347 definition. Cast `global_total_width' in comparison.
7348 (main): Prototype. Return a value.
7349
7350 * vfork.c (fork): Prototype.
7351
7352 * xexit.c: Include config.h.
7353
e9958132
JM
73542000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7355
7356 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7357 and print it with %u.
7358
39a6492f
HPN
73592000-07-17 Hans-Peter Nilsson <hp@axis.com>
7360
7361 * testsuite/regress-demangle (failed test): Show result and
7362 expected output.
7363
6d0be369
AH
73642000-07-07 Andrew Haley <aph@cygnus.com>
7365
7366 * cplus-dem.c (main): fflush() after emitting last char before
7367 waiting for input.
7368
bece74bd
AS
73692000-06-28 Alex Samuel <samuel@codesourcery.com>
7370
7371 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7372 (demangle_name): Handle <substitution> followed by
7373 <unqualified-template-name>.
7374 (demangle_type): Follow special substitutions with
7375 <class-enum-type>
7376 (demangle_subtitution): Set template_p for special substitutions.
7377 (main): Fix typos.
d1209685 7378
229b8ec7
AS
73792000-06-27 Alex Samuel <samuel@codesourcery.com>
7380
7381 * cp-demangle.c (demangle_special_name): Swap base and derived
7382 class when demangling construction vtables.
7383
051664b0
AS
73842000-06-21 Alex Samuel <samuel@codesourcery.com>
7385
7386 * cp-demangle.c: Don't include ctype.h.
7387 (IS_DIGIT): New macro.
7388 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7389 instead of isdigit and isalpanum.
7390 (demangling_def): Make name and next const pointers.
7391 (STATUS_ALLOCATION_FAILED): New status code.
7392 (dyn_string_append_space): Handle failure in
7393 dyn_string_append_char.
7394 (int_to_dyn_string): Likewise. Change return value to status_t.
7395 (string_list_new): Handle failure of dyn_string_init.
7396 (result_close_template_list): Change return type to status_t.
7397 Handle failure in dyn_string_append.
7398 (result_push): Change return value to status_t. Handle failure in
7399 string_list_new. Handle failure of result_push throughout.
7400 (substitution_add): Change return value to status_t. Handle
7401 dyn_string failures. Handle failure of substitution_add
7402 throughout.
7403 (template_arg_list_new): Return NULL on allocation failure.
7404 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7405 Handle error result throughout.
7406 (result_append): Likewise.
7407 (result_append_char): Likewise.
7408 (result_append_space): Likewise.
7409 (demangling_new): Make argument a const pointer. Handle
7410 allocation failures.
7411 (demangle_template_args): Handle failure in template_arg_list_new
7412 and result_close_template_list.
7413 (demangle_discriminator): Return if int_to_dyn_string fails.
7414 (cp_demangle): Likewise.
7415 (cp_demangle_type): New function.
7416 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7417 memory allocation failure.
7418 (main): Likewise.
7419 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7420 IN_LIBGCC2.
7421 (dyn_string_init): Change return value to int. Handle
7422 RETURN_ON_ALLOCATION_FAILURE case.
7423 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7424 (dyn_string_release): Delete the dyn_string.
7425 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7426 (dyn_string_copy): Change return type to int.
7427 (dyn_string_copy_cstr): Likewise.
7428 (dyn_string_prepend): Likewise.
7429 (dyn_string_prepend_cstr): Likewise.
7430 (dyn_string_insert): Likewise.
7431 (dyn_string_insert_cstr): Likewise.
7432 (dyn_string_append): Likewise.
7433 (dyn_string_append_cstr): Likewise.
7434 (dyn_string_append_char): Likewise.
7435 (dyn_string_substring): Likewise.
d1209685 7436
fe06b696
ZW
74372000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7438
7439 * cp-demangle.c (demangle_operator_name): Add spaces before
7440 names beginning with a letter: delete, delete[], new, new[],
7441 sizeof.
7442 (demangle_special_name): Handle TF <type> and TJ <type>.
7443
6223e158
PDM
7444Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7445
7446 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7447
48f3e29b
PDM
7448Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7449
7450 * cp-demangle.c (stdio.h): File included unconditionaly.
7451 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7452 * dyn-string.c (stdio.h): File included.
7453 * partition.c (partition_print): No `&' needed to take the address of
7454 a function.
7455
69197e7e
KG
74562000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7457
7458 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 7459
69197e7e
KG
7460 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7461
7462 * cp-demangle.c (demangle_char): Change parameter from char to int.
7463 (demangle_expression, demangle_expr_primary): Remove extra
7464 semi-colon in prototype.
7465
7466 * dyn-string.c (dyn_string_append_char): Change parameter from
7467 char to int.
7468
7469 * memcmp.c (memcmp): Constify.
7470
7471 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7472 __extension__.
7473
7474 * partition.c (elem_compare): Prototype. Don't cast away
7475 const-ness.
7476
7477 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 7478
7eb23b1f
KG
74792000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7480
7481 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7482
7483 * cp-demangle.c: Include demangle.h.
7484 (template_arg_list_new): DeANSIfy.
7485 (cp_demangle): Make static and add prototype.
7486 (operator_code, operators): Constify.
7487 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7488
3faa108c
AS
74892000-06-05 Alex Samuel <samuel@codesourcery.com>
7490
7491 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7492 unsigned char.
7493 (demangle_unqualified_name): Likewise.
7494 (demangle_number_literally): Likewise.
7495 (demangle_type): Likewise.
7496 (demangle_substitution): Likewise.
7497 (is_mangled_char): Likewise, for isalnum.
7498
69afa80d
AS
74992000-06-04 Alex Samuel <samuel@codesourcery.com>
7500
7501 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7502 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7503 (cp-demangle.o): New dependency.
7504 (dyn-string.o): Likewise.
7505
7506 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7507
7508 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7509 demangler.
7510 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7511 demangling mode.
7512 (gnu_new_abi_symbol_characters): New function.
7513 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7514 file.
7515 * cp-demangle.c: New file.
d1209685 7516
0b72c3df
AC
7517Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7518
7519 * floatformat.c: Add name to each floatformat field.
7520
270cea06
JL
7521Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7522
7523 * Makefile.in (objalloc.o): Depend on config.h
7524
d11ec6f0
ZW
75252000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7526
7527 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7528 if HAVE_STRING_H.
7529 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7530 * objalloc.c: Include config.h. Include stdlib.h and don't
7531 declare malloc or free if HAVE_STDLIB_H.
7532 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7533 else declare malloc without prototype. Include string.h if
7534 HAVE_STRING_H, else declare memset without prototype. Don't
7535 include stddef.h.
7536
f8e2da56
MS
75372000-05-23 Mike Stump <mrs@wrs.com>
7538
7539 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 7540 -j3.
f8e2da56 7541
650f3068
DA
75422000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7543
7544 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7545
1d2da2e1
HB
75462000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7547
d1209685 7548 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
7549 probably zero, also eliminate a warning on alpha.
7550
47668d0a
DE
75512000-05-15 David Edelsohn <edelsohn@gnu.org>
7552
c7a79a32 7553 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
7554 on $(enable_shared).
7555
36348eab
JJ
75562000-05-10 Jakub Jelinek <jakub@redhat.com>
7557
7558 * config.table: Use mh-sparcpic for sparc*-*-*.
7559
209bbe34
NC
75602000-05-08 Nick Clifton <nickc@cygnus.com>
7561
7562 * Makefile.in (CFILES): Add strncmp.c.
7563 (NEEDED): Add strncmp.
7564
a85a47fb
KG
75652000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7566
7567 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7568 Cast the arguments to `islower' to `unsigned char'.
7569 (print_demangler_list): Prototype.
7570
4aef973c
PDM
7571Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7572
7573 * sort.c (UCHAR_MAX): Provide fallback definition.
7574
3b94497c
AO
75752000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7576
7577 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7578 SUBDIRS.
7579
24eaa47a
KB
75802000-04-28 Kenneth Block <block@zk3.dec.com>
7581 Jason Merrill <jason@casey.cygnus.com>
7582
d1209685
ZW
7583 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7584 (cplus_demangle_set_style): New function for setting style.
7585 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 7586
a9266bfa
KG
75872000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7588
7589 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7590
7591 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7592 (libiberty_AC_FUNC_STRNCMP): Invoke.
7593
7594 * strncmp.c: New file.
7595
8e02c4d0
JH
7596Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7597
7598 * hashtab.c (htab_expand): Add prototype.
7599 (find_empty_slot_for_expand): Likewise.
7600
4feeaae3
KG
76012000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7602
7603 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7604 match prototype.
7605 (htab_expand): Cast the return value of xcalloc.
7606
18a94a2f
MM
76072000-04-24 Mark Mitchell <mark@codesourcery.com>
7608
7609 * hashtab.c (hash_pointer): New function.
7610 (eq_pointer): Likewise.
7611 (htab_hash_pointer): New variable.
7612 (htab_eq_pointer): Likewise.
7613
eeb0656f
MM
76142000-04-23 Mark Mitchell <mark@codesourcery.com>
7615
b51024fc
MM
7616 * sort.c (sort_pointers): Fix endianness bugs.
7617
eeb0656f
MM
7618 * sort.c: New file.
7619 * Makefile.in (CFILES): Add sort.c
7620 (REQUIRED_OFILES): Add sort.o.
7621 (sort.o): New target.
7622
7277f72d
MS
76232000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7624
7625 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7626 4.3BSD systems.
7627
e38992e8
RK
7628Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7629
7630 * hashtab.c: Various minor cleanups.
7631 (htab_find_slot_with_hash): INSERT is now enum insert_option.
7632 (htab_find_slot): Likewise.
7633
498e1ab1
DP
76342000-04-16 Dave Pitts <dpitts@cozx.com>
7635
7636 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 7637
dc17cc7b
RH
76382000-04-05 Richard Henderson <rth@cygnus.com>
7639
7640 * splay-tree.c (splay_tree_remove): New.
7641
b13eb66b
MM
76422000-03-30 Mark Mitchell <mark@codesourcery.com>
7643
7644 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7645 codes.
7646 (htab_find_with_hash): Likewise.
7647 (htab_find_slot_with_hash): Likewise.
d1209685 7648
0194e877
ZW
76492000-03-29 Zack Weinberg <zack@wolery.cumb.org>
7650
7651 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7652 unless it will be used. Rearrange loop for better
7653 optimization.
7654 (higher_prime_number): Add static prototype.
7655
abc61fd4
JL
7656Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7657
7658 * Makefile.in (partition.o): Depend on config.h
7659
8c5d513f
BS
76602000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
7661
7662 * hashtab.c (find_empty_slot_for_expand): New function.
7663 (htab_expand): Use it instead of htab_find_slot.
7664 (htab_find_with_hash): Renamed from htab_find; now accepts extra
7665 argument HASH.
7666 (htab_find_slot_with_hash): Likewise for htab_find_slot.
7667 (htab_find): New wrapper function.
7668 (htab_find_slot): Likewise.
7669 (htab_traverse): Pass slot, not entry, to called function.
7670
d9d4fb43
AS
76712000-03-09 Alex Samuel <samuel@codesourcery.com>
7672
7673 * Makefile.in (CFILES): Add partition.c.
7674 (REQUIRED_OFILES): Add partition.o.
7675 (partition.o): New rule.
7676 * partition.c: New file.
d1209685 7677
5dc9cffd
ZW
76782000-03-09 Zack Weinberg <zack@wolery.cumb.org>
7679
7680 * hashtab.c (htab_create): Set del_f.
7681 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7682 Use it.
7683
5194cf08
ZW
76842000-03-08 Zack Weinberg <zack@wolery.cumb.org>
7685
7686 * hashtab.c: Remove debugging variables (all_searches,
7687 all_collisions, all_expansions). Delete
7688 all_hash_table_collisions.
7689 (create_hash_table, delete_hash_table, empty_hash_table,
7690 find_hash_table_entry, remove_element_from_hash_table_entry,
7691 clear_hash_table_slot, traverse_hash_table, hash_table_size,
7692 hash_table_elements_number, hash_table_collisions): Rename to:
7693 htab_create, htab_delete, htab_empty, htab_find_slot,
7694 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7695 htab_elements, htab_collisions.
7696 (htab_find): New function, handles common case where you don't
7697 plan to add or delete an entry.
7698 (htab_expand): Don't create a whole new table, just a new
7699 entry vector.
7700 (htab_find_slot): Simplify logic.
7701
5ad5a984
ILT
77021999-08-03 Ian Lance Taylor <ian@zembu.com>
7703
7704 * floatformat.c: Add casts to avoid signed/unsigned warnings.
7705 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7706
7707 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7708 $(TARGETLIB)n so it works on MSDOS.
7709 (install_to_tooldir): Likewise.
7710
77111999-07-21 Ian Lance Taylor <ian@zembu.com>
7712
7713 From Mark Elbrecht:
7714 * makefile.dos: Remove; obsolete.
7715 * configure.bat: Remove; obsolete.
7716
77171999-07-11 Ian Lance Taylor <ian@zembu.com>
7718
7719 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7720 warning.
7721
aeecce42
MK
77222000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7723
7724 * pexecute.c: Conditionally include string.h.
5194cf08 7725 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 7726
1eaf7d9c
KG
77272000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7728
7729 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7730 we're using gcc.
7731
7732 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7733
0fadedb2
GK
77341999-12-27 Geoff Keating <geoffk@cygnus.com>
7735
7736 * vasprintf.c (int_vasprintf): Don't re-read the format character
7737 as this mishandles strings like '%%s'.
7738
08230f26
MM
77391999-12-05 Mark Mitchell <mark@codesourcery.com>
7740
7741 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
7742 rather than struct splay_tree_node.
7743 (splay_tree_insert): Use struct splay_tree_s rather than struct
7744 splay_tree.
7745
6de9b8ff
PDM
7746Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7747
7748 * hashtab.c (sys/types.h): File included.
7749
f3636679
JM
77501999-11-22 Jason Merrill <jason@casey.cygnus.com>
7751
7752 * strtoul.c, strtol.c, random.c: Remove advertising clause from
7753 BSD license, pursuant with
7754
7755 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
7756
36dd3a44
JL
7757Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
7758
7759 * hashtab.c: Include stdio.h.
7760
6e300472
JL
7761Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
7762
7763 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
7764
df548dfc
PDM
7765Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
7766
7767 * xstrdup (sys/types.h): Include this file.
7768
2c375143
NS
77691999-10-28 Nathan Sidwell <nathan@acm.org>
7770
7771 * Makefile.in (SUBDIRS): New macro.
7772 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
7773 avoid multiple subdirectory cleaning.
7774 (*-subdir): Use SUBDIRS.
7775
a82cecda
JK
77761999-10-25 Jim Kingdon <http://developer.redhat.com/>
7777
7778 * cplus-dem.c: Move declarations of standard_symbol_characters and
7779 hp_symbol_characters inside #ifdef MAIN to avoid compiler
7780 warnings.
7781
ed38f5d5
ZW
77821999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
7783
7784 * hashtab.c (find_hash_table_entry): When returning a
7785 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
7786 (clear_hash_table_slot): New function which deletes an entry
7787 by its position in the table, not its value.
7788 (traverse_hash_table): New function which calls a hook
7789 function for every live entry in the table.
7790
b60fe4a7
MM
77911999-10-19 Mark Mitchell <mark@codesourcery.com>
7792
7793 * cplus-dem.c (INTBUF_SIZE): New macro.
7794 (string_append_template_idx): New function.
7795 (demangle_expression): Likewise.
7796 (demangle_integral_value): Use it.
7797 (demangle_real_value): New function, split out from ...
7798 (demangle_template_value_parm): ... here. Use
7799 string_append_template_idx. Use demangle_real_value.
7800 (demangle_template): Use string_append_template_idx.
7801 (demangle_qualified): Use consume_count_with_underscores.
7802 (get_count): Tweak formatting.
7803 (do_type): Use string_append_template_idx.
5194cf08 7804
3da5522a
KG
78051999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7806
7807 * calloc.c: Add a public domain notice.
7808
d7d36ea8
PDM
7809Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
7810
7811 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
7812
a2f945c6
VM
7813Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
7814
7815 * Makefile.in (CFILES): Add hashtab.c
7816 (REQUIRED_OFILES): Add hashtab.o
7817 (hashtab.o): Add dependencies.
7818 * hashtab.c: New file
7819
7f22ec2e
MK
7820Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
7821
7822 * basename.c (DIR_SEPARATOR): New macro.
7823 (DIR_SEPARATOR_2): Likewise.
7824 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
7825 (IS_DIR_SEPARATOR): Likewise.
7826 (main): Handle MSDOS style pathname.
7827
7c56a6ce
MM
78281999-10-11 Mark Mitchell <mark@codesourcery.com>
7829
7830 * cplus-dem.c (do_type): Handle pointer to member types whose
7831 enclosing classes have namespace scope.
7832
cd32188b
ME
7833Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
7834
7835 * config.table: Provide a backup shell for executing move-if-change.
7836
fc232f7a
MM
78371999-10-02 Mark Mitchell <mark@codesourcery.com>
7838
7839 * xmalloc.c (xmalloc): Fix spelling error.
7840 (xcalloc, xrealloc): Likewise.
7841
2a138827
KG
78421999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7843
7844 * cplus-dem.c (fancy_abort, demangle_integral_value,
7845 demangle_arm_hp_template, recursively_demangle,
7846 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
7847 (program_name, program_version, fatal): Constify a char*.
7848 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
7849 (main): Call return, not exit.
7850
5a657fc3
KG
78511999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7852
7853 * choose-temp.c: Remove obsolete comment about gcc.
7854 (make_temp_file): Constify a char*.
7855
33c5ddcd
KG
7856Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7857
7858 * xmemdup.c: Include sys/types.h.
7859
b10647f1
JG
78601999-09-07 Jeff Garzik <jgarzik@pobox.com>
7861
7862 * xmemdup.c: New xmemdup function.
7863 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
7864
3dd6c3af
LV
7865Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
7866
5194cf08 7867 * config.table: Add openedition target.
3dd6c3af
LV
7868 * config/mh-openedition: New file.
7869
19e28e2a
ME
7870Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
7871
7872 * pexecute.c (pexecute): Fill in temp_base when needed.
7873
4dfeccf9
RH
78741999-08-31 Richard Henderson <rth@cygnus.com>
7875
7876 * getpwd.c: Check HAVE_GETCWD before defining it away.
7877
4ac3cb83
KG
78781999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7879
7880 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
7881 (REQUIRED_OFILES): Add getpwd.o.
7882 (getpwd.o): Add target.
7883
7884 * configure.in (AC_PREREQ): Bump to 2.13.
7885 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
7886
7887 * getpwd.c: New file, moved here from gcc.
7888
e797ff70
KG
78891999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7890
7891 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
7892 comparing against a signed quantity.
7893 (arm_special): Likewise.
7894 (demangle_fund_type): Likewise.
7895 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 7896 ATTRIBUTE_UNUSED.
e797ff70
KG
7897 (main): Constify variable `valid_symbols'.
7898
55247fce
PDM
7899Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
7900
7901 * strtoul.c (strtoul): Add parentheses around && within ||.
7902
76632dd0
DJ
7903Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
7904
7905 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
7906 libdir, libsubdir and tooldir.
7907
d080bbfa
MM
79081999-08-01 Mark Mitchell <mark@codesourcery.com>
7909
7910 * splay-tree.c (splay_tree_insert): Return the new node.
7911
a81c752a
RH
79121999-07-14 Richard Henderson <rth@cygnus.com>
7913
5194cf08 7914 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
7915 prototyping directly.
7916 * choose-temp.c: Conditionally include string.h.
7917
8f1824d9
JM
79181999-07-12 Jason Merrill <jason@yorick.cygnus.com>
7919
7920 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
7921
652374d3
ILT
79221999-07-11 Ian Lance Taylor <ian@zembu.com>
7923
7924 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7925 warning.
7926
a4494286
JM
79271999-07-07 Jason Merrill <jason@yorick.cygnus.com>
7928
7929 * Makefile.in (needed-list): Only include stuff we actually need
7930 for libstdc++.
7931
90e72e20
AS
79321999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7933
7934 * configure.in (checkfuncs): Add gettimeofday.
7935 * config.in, configure: Regenerated.
7936
b569200e
MK
7937Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
7938
7939 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
7940 the test fails.
7941 * configure: Regenerate.
7942
73919448
MS
79431999-06-10 Mike Stump <mrs@wrs.com>
7944
7945 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
7946 parallel builds.
7947
fee9125c
KG
79481999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7949
7950 * putenv.c: Include ansidecl.h to define `const'.
7951 * setenv.c: Likewise.
7952
71cce721
MN
7953Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
7954
a7c9637f
JL
7955 * Makefile.in (CFILES): Add putenv.c and setenv.c.
7956 * configure.in (funcs): Add putenv and setenv.
7957 (AC_CHECK_FUNCS): Check for putenv and setenv.
7958 * configure: Rebuilt.
7959 * putenv.c setenv.c: New files.
7960
71cce721
MN
7961 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
7962 bytes of space using malloc.
7963
53504016
SG
7964Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
7965
7966 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
7967 the *mangled pointer beyond the end of the string. Clean up code to
7968 match prevailing coding style.
7969
34842539
MH
79701999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7971
7972 * tmpnam.c (L_tmpnam): Fix typo.
7973
3a08531d
ME
7974Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
7975
7976 * cplus-dem.c (standard_symbol_characters): Renamed from
7977 standard_symbol_alphabet. No longer modify TABLE.
7978 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
7979 modify TABLE.
7980 (main): Corresponding changes. Use strchr to determine if a
7981 character is valid.
7982
8db9d08b
JB
79831999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
7984
7985 * cplus-dem.c (main): Use table lookup to distinguish identifier
7986 characters from non-identifier characters.
7987 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
7988
6a071f4a
FF
7989Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
7990
7991 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
7992 * getruntime.c: Only attempt to include sys/resource.h and
7993 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
7994 are defined.
7995
7dd88617
DT
7996Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
7997
7998 * configure.in (alloca detection): Handle alloca directly for interix.
7999 * configure: Rebuilt.
8000
7a1528bc
MK
8001Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
8002
8003 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
8004
76409268
JB
80051999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
8006
8007 Fix from Dale Hawkins:
5194cf08 8008 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
8009 reallocated properly if we use it again.
8010
8011 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
8012 stricter about syntax. Always null-terminate string.
8013
acbbd80a
MK
8014Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
8015
8016 * configure.in (checkfuncs): Check for sbrk.
8017 * config.in: Rebuilt.
8018 * configure: Likewise.
8019 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
8020
92523551
JB
80211999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
8022
8023 Fix from Marcus Daniels:
8024 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
8025 identifier looking for another underscore.
8026
36eb4217
MK
8027Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
8028
8029 * pexecute.c: Change all references to __UWIN__ to _UWIN.
8030 * xmalloc.c: Likewise.
8031 (xcalloc): UWIN has sbrk.
8032 (xrealloc): Fix guard macro.
8033
2c45d1a0
RH
80341999-04-11 Richard Henderson <rth@cygnus.com>
8035
8036 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
8037 or <alloca.h>.
8038 * clock.c (GNU_HZ): New definition.
8039 (clock): Use it.
8040 * getruntime.c: Likewise.
8041
8042 * config.table: Use mh-beos.
8043 * config/mh-beos: New file.
8044
391cdef0
MM
80451999-04-11 Mark Mitchell <mark@codesourcery.com>
8046
8047 * cplus-dem.c (demangle_template_value_parm): Handle
8048 pointers-to-members.
8049 (do_type): Handle template parameters as qualifiers.
8050
9d229989
JB
80511999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
8052
8053 * cplus-dem.c: Attempt to handle overflows in counts with some
8054 semblance of grace.
8055 (consume_count): Detect overflows. Return -1 to indicate errors,
8056 instead of zero.
8057 (demangle_template_value_parm, demangle_template): Handle change
8058 to consume_count's return convention.
8059
7c72138a
TT
80601999-04-05 Tom Tromey <tromey@cygnus.com>
8061
8062 * testsuite/regress-demangle: New file.
8063 * testsuite/demangle-expected: New file.
8064
8065 * Makefile.in (all, check, installcheck, info, install-info,
8066 clean-info, dvi, install, etags, tags, mostlyclean, clean,
8067 distclean, maintainer-clean, realclean): Depend on corresponding
8068 `-subdir' target.
8069 (all-subdir check-subdir installcheck-subdir info-subdir
8070 install-info-subdir clean-info-subdir dvi-subdir
8071 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
8072 distclean-subdir maintainer-clean-subdir): New target.
8073 * testsuite/Makefile.in: New file.
8074 * configure: Rebuilt.
8075 * configure.in: Create testsuite/Makefile.
8076
ae7f7270
MM
80771999-04-02 Mark Mitchell <mark@codesourcery.com>
8078
8079 * splay-tree.h (splay_tree_compare_pointers): Define.
8080
30f72379
MM
80811999-03-30 Mark Mitchell <mark@codesourcery.com>
8082
8083 * splay-tree.c (splay_tree_compare_ints): Define.
8084
4cc48683
TT
80851999-03-30 Tom Tromey <tromey@cygnus.com>
8086
8087 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
8088 don't advance input pointer.
8089 (demangle_class_name): If consume_count didn't find a count, do
8090 nothing. Don't bother with `strlen' sanity check; consume_count
8091 does it for us.
8092
3510075c
JL
80931999-03-16 Stan Shebs <shebs@andros.cygnus.com>
8094
8095 From Art Haas <ahaas@neosoft.com>:
8096 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
8097 when doing arm or hp style.
8098 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 8099
89f602a7
MK
8100Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
8101
8102 * pexecute.c (__CYGWIN32__): Rename to
8103 (__CYGWIN__): this.
8104 * xmalloc.c: Likewise.
8105
8106 Changes to support i386-pc-uwin.
8107 * configure.in (*-*-uwin*): Workaround for vfork bug.
8108 * configure: Regenerate.
8109 * pexecute.c (pexecute): Be like standard Unix.
8110 (pwait): Likewise.
8111 * xmalloc.c (first_break): Define.
8112 (xmalloc_set_program_name): Use.
8113 (xmalloc): Use.
8114
9346c824
FS
8115Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8116
8117 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8118
3510075c
JL
8119Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8120
8121 * config.table: Check cygwin*, not cygwin32*.
8122
8ec65f13
DB
8123Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8124
8125 * Makefile.in: Change mkstemp -> mkstemps.
8126
687361c8
ME
8127Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
8128
8129 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8130 * configure.in (funcs): Check for and conditionally add mkstemps to
8131 the list of functions libiberty will provide.
8132 * configure: Rebuilt.
5194cf08 8133
b207e09c
MK
8134Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8135
5194cf08 8136 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
8137 platforms that don't have HZ.
8138 * getruntime.c (HZ): Likewise.
8139
16b4c15e
RH
8140Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8141
8142 * Makefile.in (xstrdup.o): Depend on config.h.
8143
38beb75c
UD
8144Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
8145
8146 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8147 freeing it.
8148
7e4311a3
KG
8149Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8150
8151 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8152
3510075c
JL
8153Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8154
8155 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8156 splay-tree.o.
8157
81581999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8159
8160 * configure.in: Require autoconf 2.12.1 or higher.
8161
fb9939b8
MM
81621998-12-30 Michael Meissner <meissner@cygnus.com>
8163
8164 * random.c (NULL): Don't redefine NULL if it is already defined.
8165
087aa398
KG
8166Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8167
8168 * argv.c (buildargv): Cast the result of alloca in assignment.
8169
8170 * choose-temp.c: Include stdlib.h.
38beb75c 8171
087aa398 8172 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
8173 (snarf_numeric_literal): Constify first parameter.
8174 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8175 int, not a char.
087aa398
KG
8176 (demangle_qualifier): Likewise.
8177 (demangle_signature): Cast the argument of a ctype function to
8178 unsigned char.
8179 (arm_pt): Add parens around assignment used as truth value.
8180 (demangle_arm_hp_template): Constify variable `args'.
8181 (do_hpacc_template_const_value): Cast the argument of a ctype
8182 function to unsigned char.
8183 (do_hpacc_template_literal): Remove unused variable `i'.
8184 (snarf_numeric_literal): Constify parameter `args'.
8185 Cast the argument of a ctype function to unsigned char.
8186
8187 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 8188 avoid ambiguous `else'.
38beb75c 8189
087aa398 8190 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
8191 `cstart' and `cend' to unsigned char. Cast the argument of macro
8192 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
8193
8194 * objalloc.c (free): Add prototype.
8195
21f2174d
HPN
8196Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
8197
8198 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8199
3510075c
JL
8200Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8201
8202 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 8203 doesn't exist.
3510075c 8204 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 8205
e8fc8222
AM
8206Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8207
8208 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8209 bumping the pointer we read from. Also prepend these codes,
8210 as we do in other places.
8211
3510075c
JL
82121998-12-18 Nick Clifton <nickc@cygnus.com>
8213
8214 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8215 'const char *' in order to match its usage when calling siblings.
8216 (snarf_numeric_literal): Make first arg 'const char **' in order
8217 to match usage.
11a0bb74 8218
f4f30aa1
JL
8219Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8220
11a0bb74
KG
8221 * choose-temp.c: Don't check IN_GCC anymore.
8222
8223 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8224 * memchr.c (memchr): Likewise.
8225 * memcpy.c (memcpy): Likewise.
8226 * memmove.c (memmove): Likewise.
38beb75c 8227
11a0bb74
KG
8228 * mkstemp.c: Don't check IN_GCC anymore.
8229 * pexecute.c: Likewise.
8230 * splay-tree.c: Likewise.
38beb75c 8231
11a0bb74
KG
8232 * strchr.c (strchr): Use `const', not `CONST'.
8233 * strrchr.c (strrchr): Likewise.
8234 * strtol.c (strtol): Likewise.
8235 * strtoul.c (strtoul): Likewise.
8236
70d5ccef
DT
8237Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
8238 Elena Zannoni <ezannoni@cygnus.com>
8239 Stan Shebs <shebs@cygnus.com>
8240 Edith Epstein <eepstein@cygnus.com>
8241 Andres MacLeod <amacleod@cygnus.com>
8242 Satish Pai <pai@apollo.hp.com>
8243
8244 * HP aCC demangling support.
8245 * cplus-dem.c
8246 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
8247 demangling correctly when -edg specified; set the demangling style
8248 when user specifies 'edg'. Set strip_underscore to
8249 prepends_underscore, if not HPUXHPPA. Set
8250 current_demangling_style to hp_demangling if HPUXHPPA. Set
8251 current demangling style correctly if the switch is hp. Read
8252 label correctly also in the HP style case.
70d5ccef 8253 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 8254 function.
70d5ccef 8255 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 8256 style for this case is the same as ARM.
70d5ccef
DT
8257 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8258 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
8259 demangle_arm_pt.); check and set value of temp_start field in
8260 multiple places. Also, when ceching for end of template args,
8261 check to see if at end of static member of template class.
70d5ccef 8262 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 8263 include template args in string defining class.
70d5ccef
DT
8264 (demangle_class_name): use demangel_arm_hp_template.
8265 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
8266 HP_DEMANGLING and currently point at an 'X' in the mangled name.
8267 Handle EDG_DEMANGLING style. Handle constructor and destructor
8268 ops for HP style.
70d5ccef 8269 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
8270 styles. global destructor and constructor for HP style are same
8271 as for ARM style. Same for local variables.
70d5ccef
DT
8272 (demangle_qualified): handle EDG_DEMANGLING style.
8273 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
8274 cases '1' - '9' : initialize the temp_start field to -1 and handle
8275 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
8276 and AUTO_DEMANGLING styles. If expecting a function and managed
8277 to demangle the funct args, then handle the LUCID_DEMANGLING,
8278 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
8279 class name after "Lnnn_ in HP style case. HP style too needs to
8280 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 8281 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 8282 value param for HP/aCC.
70d5ccef 8283 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 8284 literal parameter for HP aCC.
70d5ccef
DT
8285 (recursively_demangle): new function
8286 (snarf_numeric_literal): new function.
8287 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 8288 to message.
70d5ccef 8289
8d525fa8
CF
8290Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8291
8292 * pexecute.c: Remove obsolete ifdefed cygwin code.
8293
9b1a92d8
KG
8294Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8295
8296 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8297 * cplus-dem.c: Likewise. Conform to libiberty.h.
8298 * pexecute.c: Likewise.
8299 * splay-tree.c: Likewise.
8300
c85c3232
MS
83011998-11-25 Mike Stump <mrs@wrs.com>
8302
8303 * Makefile.in (splay-tree.o): Add config.h dependency.
8304
35a6cd99
KG
8305Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8306
8307 * configure.in: Use AC_PREREQ(2.12.1).
8308
6e6e34b7
BK
83091998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8310
5194cf08 8311 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 8312
59b67c11
JL
8313Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8314
8315 * mpw.c (mpw_access): Add missing parens.
8316
a6458d1d
KG
8317Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8318
8319 * configure.in: Call AC_HEADER_SYS_WAIT.
8320
8321 * pexecute.c: Include sys/wait.h when !IN_GCC.
8322
3510075c
JL
8323Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8324
8325 * pexecute.c: revert back to checking old Cygwin
8326 preprocessor symbol until some time has passed.
8327
8328Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8329
8330 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8331 since it will now support similar constructs.
8332
a9acf741
KG
8333Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8334
8335 * configure.in: Check for calloc.
8336
8337 * calloc.c: New file.
8338
8339 * xmalloc.c (xcalloc): New function.
8340
a49fb37a
AM
8341Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8342
8343 *cplus-dem.c (demangle_prefix): Use the last "__"
8344 in the mangled name when looking for the signature. This allows
8345 template names to begin with "__".
8346
0e714131
MM
83471998-11-08 Mark Mitchell <mark@markmitchell.com>
8348
ec2288ff
MM
8349 * cplus-dem.c (type_kind_t): Add tk_reference.
8350 (demangle_template_value_parm): Handle it.
8351 (do_type): Use it for references, instead of tk_pointer.
8352
0e714131
MM
8353 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8354 not internal_cplus_demangle.
8355
2931b6d4
KG
8356Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8357
8358 * choose-temp.c: Don't include gansidecl.h.
8359 * mkstemp.c: Likewise.
8360 * pexecute.c: Likewise.
8361
dd8f3ed5
GN
8362Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8363
5194cf08
ZW
8364 * configure.in: detect cygwin* instead of cygwin32*
8365 * configure: regenerate
dd8f3ed5 8366
c5f7c445
KG
8367Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8368
8369 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
8370 whether to include config.h. Possibly include unistd.h in the
8371 !IN_GCC case. Define VFORK_STRING as a printable function call
8372 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8373 defined, include vfork.h. If VMS is defined, define vfork()
8374 appropriately. Remove vfork check on USG, we're using autoconf.
8375 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8376 locally what string to use.
c5f7c445 8377
ad3ef78e
MM
83781998-10-26 Mark Mitchell <mark@markmitchell.com>
8379
8380 * splay-tree.c: Tweak include directives to make sure declarations of
8381 xmalloc and free are available.
8382
224301c1
MM
83831998-10-25 Mark Mitchell <mark@markmitchell.com>
8384
8385 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8386 anonymous namespaces.
38beb75c 8387
d9db46fd
MM
83881998-10-23 Mark Mitchell <mark@markmitchell.com>
8389
8390 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8391 with type_quals.
8392 (TYPE_UNQUALIFIED): New macro.
8393 (TYPE_QUAL_CONST): Likewise.
8394 (TYPE_QUAL_VOLATILE): Likewise.
8395 (TYPE_QUAL_RESTRICT): Likewise.
8396 (code_for_qualifier): New function.
8397 (qualifier_string): Likewise.
8398 (demangle_qualifier): Likewise.
8399 (internal_cplus_demangle): Use them.
8400 (demangle_signature): Likewise.
8401 (demangle_template_value_parm): Likewise.
8402 (do_type): Likewise.
8403 (demangle_fund_type)): Likewise.
224301c1 8404
b056ad1c
KG
8405Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8406
8407 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8408 to match prototype.
8409
ed87f9c8
MM
84101998-10-21 Mark Mitchell <mark@markmitchell.com>
8411
8412 * splay-tree.c: New file.
8413 * Makefile.in (CFILES): Add it.
8414 (REQUIRED_OFILES): Likewise.
8415 (splay-tree.o): Add dependencies.
8416
e0c13971
AS
8417Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8418
8419 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8420 range of 'K' index.
8421
91e0f659
KG
8422Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8423
8424 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8425
8426 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8427 `unsigned char'.
8428 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8429 comparing against one.
8430 (cplus_mangle_opname): Likewise.
8431 (demangle_integral_value): Cast argument of ctype macro to
8432 `unsigned char'.
8433 (demangle_template_value_parm): Likewise.
8434 (demangle_template): Initialize variable `bindex'. Cast the
8435 result of `strlen' to (int) when comparing against one. Remove
8436 unused variable `start_of_value_parm'.
8437 (demangle_class_name): Cast the result of `strlen' to (int) when
8438 comparing against one.
8439 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8440 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8441 when comparing against one.
8442 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8443 (get_count): Likewise.
8444 (do_type): Likewise. Cast the result of `strlen' to (int) when
8445 comparing against one.
8446 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8447 (demangle_function_name): Cast the result of `strlen' to (int)
8448 when comparing against one.
8449
8450 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8451 comparing against one.
8452
73aeb2ff
JL
8453Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8454
5194cf08
ZW
8455 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8456 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8457 * config.in, configure: Rebuilt.
ae76f1be 8458
73aeb2ff
JL
8459 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8460 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8461 * config.in, configure: Rebuilt.
8462
dd8f3ed5
GN
8463Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8464
5194cf08 8465 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 8466
f77d8413
MT
8467Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8468
8469 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8470
ca6b370d
JL
8471Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8472
8473 * Merge egcs & devo libiberty.
8474
719bb4e3 84751998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
ab4856b1
ML
8476
8477 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8478
96e88994
KG
8479Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8480
8481 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
c4b9cfe0
AJ
8482 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8483 IN_GCC.
96e88994
KG
8484
8485 * vasprintf.c: Include stdarg.h/varargs.h first.
8486
8487 * vprintf.c: Likewise.
8488
3f3726a3
JL
8489Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8490
8491 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8492 is the canonical copy. Define ISSPACE if !IN_GCC.
7520c31b 8493 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
f45da49c 8494 * getopt1.c, obstack.c: Similarly.
16ba4214 8495 * Makefile.in: Build mkstemp.o
3f3726a3 8496
ca6b370d
JL
8497Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8498
8499 * configure.in: Include asprintf in list of functions known not
8500 to be in newlib.
8501 * configure: Rebuild.
8502
28235a5c
MK
8503Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8504
8505 * cplus-dem.c (work_stuff): Add dllimported.
8506 (demangled_prefix): Mark symbols imported from PE DLL.
8507 (internal_cplus_demangled): Handle.
8508
5210f3d0
JM
85091998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8510
8511 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8512 stay failed.
8513
a7825625
KG
8514Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8515
8516 * cplus-dem.c: Include config.h if it exists. Also, only
8517 prototype malloc/realloc if we can't get stdlib.h.
8518
ca6b370d
JL
8519Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8520
8521 * configure.in: Switch back to checking --with-target-subdir when
8522 deciding whether to check for newlib, undoing part of July 15
8523 change.
8524 * configure: Rebuild.
8525
8526Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8527
8528 * cplus-dem.c (type_kind_t): New type.
8529 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8530 on this paramter, rather than demangling the type again.
8531 (demangle_integral_value): Pass tk_integral.
8532 (demangle_template_: Pass the value returned from do_type.
8533 (do_type): Return a type_kind_t. Pass tk_integral to
8534 demangle_template_value_parm for array bounds.
8535 (demangle_fund_type): Likewise.
8536
8537 Also incorporate from GCC version:
8538
8539 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8540
8541 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8542
8543Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8544
8545 * cplus-dem.c (demangle_nested_args): Make function definition
8546 static to match the prototype.
8547
4d17a06f
MM
8548Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8549
8550 * cplus-dem.c (type_kind_t): New type.
8551 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8552 on this paramter, rather than demangling the type again.
8553 (demangle_integral_value): Pass tk_integral.
8554 (demangle_template_: Pass the value returned from do_type.
8555 (do_type): Return a type_kind_t. Pass tk_integral to
8556 demangle_template_value_parm for array bounds.
8557 (demangle_fund_type): Likewise.
8558
8559 Also incorporate from GCC version:
8560
8561 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8562
8563 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8564
ca6b370d
JL
8565Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8566
8567 * Makefile.in (ALLOCA): New variable.
8568 ($(TARGETLIB)): Add $(ALLOCA) to library.
8569 (needed-list): Add $(ALLOCA).
8570 ($(ALLOCA)): Depend upon stamp-picdir.
8571
d94f5c58
KG
8572Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8573
8574 * cplus-dem.c (demangle_nested_args): Make function definition
8575 static to match the prototype.
8576
ca6b370d
JL
8577Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8578
8579 * configure.in: Check --with-cross-host rather than
8580 --with-target-subdir when deciding whether build uses a cross
8581 compiler, and when deciding where to install the library.
8582 * configure: Rebuild.
8583
8584Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8585
8586 * cplus-dem.c (demangle_nested_args): Return a value.
9923cc56 8587
ca6b370d
JL
8588Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8589
8590 * cplus-dem.c (string): Move definition before work_stuff.
8a2a7ea2
MM
8591 (work_stuff): Add volatile_type, forgetting_types,
8592 previous_argument, and nrepeats fields.
8593 (SCOPE_STRING): New macro.
8594 (demangle_template): Add `remember' parameter. Add comment.
8595 Register the `B' code type here, if remembering. Tidy. Fix crash
8596 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8597 (demangle_nested_args): New function.
8598 (internal_cplus_demangle): Handle volatile-qualified member
38beb75c 8599 functions.
8a2a7ea2
MM
8600 (mop_up): Delete the previous_argument string if present.
8601 (demangle_signature): Tidy. Handle volatile-qualified member
8602 functions. Handle back-references using the `B' code. Use extra
8603 parameter to demangle_template and SCOPE_STRING where appropriate.
8604 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
38beb75c 8605 code.
8a2a7ea2
MM
8606 (demangle_class): Use SCOPE_STRING.
8607 (gnu_special): Pass additional argument to demangle_template.
8608 Use SCOPE_STRING.
8609 (demangle_qualified): Save qualified types for later
8610 back-references. Handle constructors and destructors for template
8611 types correctly.
8612 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8613 demangle_template. Use demangled_nested_args. Don't remember
8614 qualified types here; that's now done in demangle_qualified.
8615 Similarly for templates.
8616 (do_arg): Improve commment. Handle 'n' repeat code.
8617 (remember_type): Check forgetting_types.
8618 (demangle_args): Deal with 'n' repeat codes. Tidy.
38beb75c 8619
ca6b370d
JL
8620Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8621
8622 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8623 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8624
8625Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8626
8627 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8628 From Chris Faylor <cgf@cygnus.com>.
8629
8630Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8631
8632 * obstack.c: Update to latest FSF version.
8633
8634Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
8635
8636 * Makefile.in: Add a dependency on stamp-picdir for the
8637 objects, so that we can do a parallel build.
9923cc56 8638
6391b50a
MK
8639Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8640
8641 * configure.in (checkfuncs): Add missing "'".
8642
ca6b370d 8643Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
10c62dce 8644
ca6b370d
JL
8645 * obstack.c (_obstack_memory_used): Elide this function if we're
8646 on a system with GNU libc.
10c62dce 8647
ca6b370d 8648Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
75f6bf44 8649
ca6b370d 8650 * Makefile.in (distclean): Remove config.log.
75f6bf44 8651
ca6b370d 8652Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7b195f77 8653
ca6b370d
JL
8654 * Makefile.in (distclean): Don't remove alloca-conf.h.
8655
8656Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8657
8658 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7b195f77 8659
1cc75298
MM
86601998-05-21 Mark Mitchell <mmitchell@usa.net>
8661
8662 * cplus-dem.c (do_type): Handle volatile qualification.
38beb75c 8663
39d65850
MH
86641998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
8665
8666 * configure.in: Check for unistd.h as well.
8667 * configure: Rebuild.
8668 * config.in: Rebuild.
8669 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8670 is defined in unistd.h. Reformat conditional block for easier reading.
8671
8672 * config.table (shared): Default to no if ${enable_shared}
8673 is unset or empty; this logic is used by the toplevel
8674 configure scripts, too.
8675
c2953795
JL
8676Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
8677
8678 * config.table: Add line to set enable_shared in the Makefile
8679 as needed.
8680
d6f4ec51
KG
8681Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8682
3affd5f0
JL
8683 * cplus-dem.c (squangle_mop_up): Change return type to void.
8684 (internal_cplus_demangle): Remove unused parameter `options'.
8685 All callers changed.
8686 (cplus_demangle_opname): Remove function wide variable `int i' and
8687 replace with `size_t i' at each location where it is used.
8688 (cplus_mangle_opname): change type of `i' from int to size_t.
8689
8690Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
8691
8692 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
8693 than sparc or sun.
8694 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8695
8696Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
8697
8698 * configure.in: Set libiberty_topdir correctly when srcdir is
8699 "." and with_target_subdir is not set.
8700 * configure: Rebuild.
8701
8702Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8703
8704 * configure.in: Add *-*-mingw32* case.
8705 * configure: Rebuild.
8706
8707Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
8708
8709 * config.table: Never use a PIC file for *-*-cygwin32*.
8710
8711 * Makefile.in (config.status): Depend upon config.table.
8712
8713 * configure.in: On a cygwin32 host, always compile random, and
8714 don't test for sys_siglist, strsignal, or psignal.
8715 * configure: Rebuild.
8716
8717 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8718 * getcwd.c: Likewise.
8719 * getpagesize.c: Likewise.
8720 * getruntime.c: Likewise.
8721
8722Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
8723
8724 Use autoconf tests rather than the old dummy.c test:
8725 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8726 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
8727 most functions. Add special cases to handle newlib and VxWorks.
8728 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
8729 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
8730 CONFIG_FILES is set; set ac_file before calling it.
8731 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8732 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8733 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8734 (i[3456]-*-mingw32*): Remove.
8735 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
8736 (LIBOBJS): New variable.
8737 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
8738 (all): Depend upon needed-list. Don't check RULE1.
8739 (@target_makefile_frag@): Remove.
8740 (COMPILE.c): Include @DEFS@.
8741 (HFILES): Add alloca-conf.h.
8742 (REQUIRED_OFILES): Remove basename.o.
8743 ($(TARGETLIB)): New target.
8744 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
8745 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
8746 (needed-list, config.h): Rewrite.
8747 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
8748 (.always.): Remove.
8749 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
8750 (stamp-h): New target.
8751 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
8752 (basename.o): Don't depend upon config.h.
8753 (getruntime.o): Depend upon config.h.
8754 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
8755 NEED_on_exit.
8756 * basename.c: Don't include config.h. Don't check NEED_basename.
8757 * clock.c: Include config.h.
8758 * getcwd.c: Likewise.
8759 * getpagesize.c: Likewise.
8760 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
8761 HAVE_TIMES.
8762 * strerror.c: Change uses of NEED_sys_errlist to
8763 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
8764 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
8765 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
8766 HAVE_PSIGNAL.
8767 * acconfig.h: New file.
8768 * dummy.c: Remove.
8769 * functions.def: Remove.
8770 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
8771 * config/mh-windows (HDEFINES): Remove.
8772 * config/mh-cygwin32: Remove.
8773 * config/mh-go32: Remove.
8774 * config/mh-irix4: Remove.
8775 * config/mh-riscix: Remove.
8776 * config/mh-sysv4: Remove.
8777 * config/mt-mingw32: Remove.
8778 * config/mt-vxworks5: Remove.
8779 * config.in: New file, generated using autoheader.
8780 * configure: Rebuild.
8781
8782Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
8783
8784 * configure.in: Rewrite to use autoconf.
8785 * configure: Generate using autoconf.
8786 * config/mh-a68bsd: Remove.
8787 * config/mh-apollo68: Remove.
8788 * config/mh-hpbsd: Remove.
8789 * config/mh-ncr3000: Remove.
8790 * config/mh-sysv: Remove.
8791 * config/mh-aix (RANLIB, INSTALL): Don't define.
8792 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
8793 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
8794 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
8795 * config.table: Change config_shell to CONFIG_SHELL, and use
8796 libiberty_topdir to find move-if-change.
c4b9cfe0 8797 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
3affd5f0
JL
8798 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
8799 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
8800 * Makefile.in (srcdir): Set to @srcdir@.
8801 (VPATH): Likewise.
8802 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
8803 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
8804 (CC, CFLAGS, RANLIB)): Likewise.
8805 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
8806 (target_makefile_frag, host_makefile_frag): Add substitutions.
8807 (INSTALL_DEST): Set to @INSTALL_DEST@.
8808 (Makefile): Depend upon config.status. Don't depend upon
8809 $(host_makefile_frag) or $(target_makefile_frag).
8810 (config.status): New target.
8811
8812Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
8813
8814 * config/mt-sunos4: Remove. Should be handled by --with-headers
8815 and --with-libraries options at top level.
8816 * config.table: Never use mt-sunos4.
8817
8818 * alloca-conf.h: New file, combining alloca-norm.h and
8819 alloca-botch.h.
8820 * alloca-norm.h: Remove.
8821 * alloca-botch.h: Remove.
8822 * configure.in: Set shell variables files and links to empty.
8823 * config.table: Don't set shell variable files.
8824 * configure.bat: Don't create alloca-conf.h.
8825 * makefile.vms: Likewise.
8826 * mpw-config.in: Likewise.
8827 * vmsbuild.com: Likewise.
8828
8829Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
8830
8831 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
8832 target depending upon config.h.
8833 (alloca.o): Add target depending upon config.h
8834 (basename.o, choose-temp.o, fnmatch.o): Likewise.
8835 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
8836 (strsignal.o, xstrerror.o): Likewise.
d6f4ec51 8837
63586755
PS
8838Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8839
8840 * cplus-dem.c (cplus_demangle_opname): Initialize work.
8841
07623417
AM
8842Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8843
8844 * cplus-dem.c (demangle_qualified): Replace missing else.
8845
7bf40741
AS
8846Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8847
8848 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
8849 length in the name of a virtual table.
8850
5e5199e8
AM
8851Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8852
8853 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
8854 (cplus_demangle_opname): Call mop_up_squangle.
38beb75c 8855 (cplus_demangle): Initialize squangle info, then call
5e5199e8 8856 internal_cplus_demangle. (Most code moved there as well)
38beb75c 8857 (internal_cplus_demangle): New function, performs most of what use
5e5199e8
AM
8858 to be done in cplus_demangle, but is only called with this file.
8859 (squangle_mop_up): New function to clean up B and K code data.
8860 (mop_up): set pointers to NULL after freeing.
38beb75c 8861 (demangle_signature, demangle_template, demangle_class): Add
5e5199e8
AM
8862 switch elements to handle K and B codes.
8863 (demangle_prefix, gnu_special, demangle_qualified): Add
8864 code to handle K and B codes.
8865 (do_type, demangle_fund_type): Handle B and K codes.
8866 (remember_Ktype): New function to store K info.
8867 (register_Btype, remember_Btype): New functions for B codes.
8868 (forget_B_and_K_types): New function to destroy B and K info.
8869
3affd5f0 8870Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9ee02b5c 8871
3affd5f0 8872 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
f9c85454 8873
0a9e7530
MH
8874Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
8875
8876 * config.table: Make locating frag files failsafe even for the
8877 special case if configuring and building in srcdir.
8878
b9fb3c42
ILT
8879Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
8880
8881 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
8882
3affd5f0
JL
8883Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
8884
8885 * choose-temp.c: Sync with copy in gcc.
8886
b134508b
ILT
8887Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
8888
8889 * getopt.c: Update to latest FSF version.
8890 * getopt1.c: Likewise.
8891
5890bc92
JL
8892Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
8893
8894 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
8895 strings that are not actually lengths.
8896
f5c3ae66
MH
8897Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
8898
8899 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
8900 (.c.o): Check value of enable_shared, not PICFLAG.
8901 (stamp-picdir): Dito.
8902
3affd5f0
JL
8903Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
8904
5194cf08
ZW
8905 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
8906 since it gets built automatically
3affd5f0 8907
c00f2b9d
MS
8908Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
8909
8910 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
8911 the currently shipping OS.
8912
76a8b46e
JL
8913Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
8914
8915 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
8916 Add fnmatch.o and objalloc.o; remove vasprintf.o.
8917 [config.h]: Define NEED_strsignal.
8918
8919Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
8920
8921 * functions.def: Correct argument types for strerror and
8922 strsignal. Reported by Alex Gutman <agutman@emc.com>.
8923
5890bc92
JL
8924Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
8925
8926 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
8927 values.
8928
3affd5f0 8929Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
1ce26fc4 8930 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
77aff459 8931
1ce26fc4
JL
8932 Add mingw32 support.
8933 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
8934 (pwait): New function for mingw32.
77aff459 8935
1ce26fc4
JL
8936 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
8937 * config/mt-mingw32: New file.
8938 * xmalloc.c (first_break): Not used for mingw32.
8939 (xmalloc_set_program_name): Don't use sbrk on mingw32.
8940 (xmalloc): Likewise.
8941 (xrealloc): Likewise.
77aff459 8942
1ce26fc4 8943Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
84f79fea
JL
8944
8945 * choose-temp.c: Sync with gcc version.
8946
1ce26fc4
JL
8947Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
8948
8949 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
8950 to all filenames in libdir and tooldir.
8951 (distclean): Do MULTICLEAN before deleting Makefile.
8952 (stamp-needed, stamp-config): Add MULTISRCTOP to
8953 pathname for move-if-change.
8954
e7757d69
JL
8955Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
8956
8957 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
8958
8b715b2a
JL
8959Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
8960
8961 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
5890bc92 8962 was already defined previously.
8b715b2a
JL
8963
8964Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
8965
8966 * Makefile.in (INSTALL): Use ../install-sh, not install.
8967
0c23b0b2
JG
8968Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
8969
8970 * Makefile.in (CFILES): Add pexecute.c.
8971
a6e74b83
ILT
8972Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
8973
8974 * asprintf.c: Consistently use either stdarg or varargs.
8975
19ddc834
JM
8976Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
8977
8978 * cplus-dem.c (demangle_signature): Don't look for return types on
8979 constructors. Handle member template constructors.
8980
8981Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
8982
8983 * README: Fix configuration instructions.
8984
8985Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
8986
8987 * pexecute.c: Update to current version from /gd/gnu/lib:
8988
8989 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
8990
5194cf08 8991 * pexecute.c: Use spawn if __CYGWIN32__.
19ddc834
JM
8992
8993 1997-08-08 Paul Eggert <eggert@twinsun.com>
8994
5194cf08 8995 * pexecute.c: Include "config.h" first, as per autoconf manual.
19ddc834
JM
8996
8997 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
8998
5194cf08
ZW
8999 * pexecute.c (fix_argv): New function.
9000 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9001 Add underscore to cwait function call.
19ddc834 9002
a3a5b5b7
MM
9003Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
9004
5194cf08
ZW
9005 * cplus-dem.c (demangle_template): Add new parameter. Handle new
9006 template-function mangling.
9007 (consume_count_with_underscores): New function.
9008 (demangle_signature): Handle new name-mangling scheme.
a3a5b5b7 9009
19ddc834
JM
9010Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
9011
9012 * asprintf.c: stdarg.h when ALMOST_STDC
9013 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
c4b9cfe0 9014 strncasecmp.o.
19ddc834
JM
9015
9016Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
9017
9018 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
9019
9020 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
9021
9022 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
9023
9024Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
9025
9026 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
9027
19ddc834
JM
9028Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
9029
9030 * asprintf.c (asprintf): New file.
9031 * Makefile.in (CFILES): Add asprintf.c
9032 * functions.def: Ditto.
9033
19ddc834
JM
9034Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
9035
9036 * argv.c (dupargv): New function, duplicate an argument vector.
9037
6599da04
JM
9038Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
9039
9040 * config/mh-cygwin32: also build random.o
9041
9042Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
9043
9044 * cplus-dem.c: Add 'extern' to prepends_underscore.
9045
3510075c
JL
9046Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
9047
9048 * cplus-dem.c: Various changes to produce Java output when passed
9049 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
9050 (main): Support --java and -j flags to set DMGL_JAVA.
9051
6599da04
JM
9052Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
9053
9054 * config/mh-go32 (CC, AR, RANLIB): Don't define.
9055
9056Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
9057
9058 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
9059 (pexecute.o): New target.
9060
9061 * Makefile.in (stamp-needed): New target, replacing needed-list.
9062 (needed-list): Just depend upon stamp-needed.
9063 (stamp-config): New target, replacing config.h.
9064 (config.h): Just depend upon stamp-config.
9065 (mostlyclean): Remove stamp-*.
9066
9067Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
9068
9069 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
9070 INSTALL_DATA for multilibbed installs
9071
9072Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
9073
9074 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
9075
9076 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
9077
9078 * choose-temp.c (try): Insist that temp dir be searchable.
9079
9080 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
9081
9082 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
9083 for current directory.
9084
9085 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
9086
9087 * pexecute.c: Remove special cases for cygwin32.
9088 (pwait): Remove local definition of `pid'.
9089
9090 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
9091
9092 * pexecute.c (vfork): Supply new definition for VMS.
9093 (pwait): Use waitpid instead of wait for VMS.
9094
9095Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9096
9097 * cplus-dem.c (do_type): Handle `J'.
9098 (demangle_fund_type): Print "complex" for it.
9099
9100Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
9101
9102 * configure.in: Don't turn on multilib here.
9103
9104Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9105
38beb75c 9106 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
6599da04
JM
9107 elided; needed by gdb and not present in libc.
9108
9109Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9110
9111 * Makefile.in (clean): Remove tmpmulti.out.
9112
9113Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9114
38beb75c 9115 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
6599da04
JM
9116 Add new floatformat, mainly for ARM doubles.
9117
9118Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
9119
9120 * config.table: Use ${config_shell} with ${moveifchange}. From
9121 Thomas Graichen <graichen@rzpd.de>.
9122
9123Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
9124
9125 * configure.in: Enable multilibing by default.
9126 Update multilib template to read config-ml.in.
9127
9128Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9129
9130 * makefile.vms: Add objalloc.
9131
9132Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
9133
9134 * cplus-dem.c (demangle_it): Add prototype declaration.
9135 (usage, fatal): Likewise.
9136
9137 * xexit.c (_xexit_cleanup): Add prototype.
9138
9139 * strerror.c (init_error_tables): Declare.
9140
9141Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
9142
9143 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9144 * strsignal.c: Only define strsignal if NEED_strsignal.
9145 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9146 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
9147 to xneeded-list.
9148 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9149 (EXTRA_OFILES): Define to vasprintf.o.
9150 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9151 (EXTRA_OFILES): Add vasprintf.o.
9152 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9153 (vxneeded-list): Add vasprintf.o.
9154
9155Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9156
9157 * objalloc.c: Include <stdio.h>.
9158
9159Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
9160
9161 * objalloc.c: New file.
9162 * Makefile.in (CFILES): Add objalloc.c
9163 (REQUIRED_OFILES): Add objalloc.o.
9164 (objalloc.o): New target.
9165
9166Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9167
9168 * obstack.c: Update to current FSF version.
9169
9170Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9171
38beb75c 9172 * cplus-dem.c: Add prototypes for all static functions.
6599da04
JM
9173 (mystrstr): Make static. Make arguments and result const.
9174 (cplus_match): Remove; not used.
9175
9176Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9177
9178 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9179 __t* symbols.
9180
9181Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
9182
9183 * spaces.c: Declare malloc and free properly.
9184 * strsignal.c (init_signal_tables): Add prototype.
9185 * xatexit.c (_xexit_cleanup): Add parameter declarations.
9186
9187Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9188
9189 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9190 also required because of xmalloc.o.
9191
9192Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
9193
9194 * strsignal.c: Unconditionally redefine sys_siglist around the
9195 inclusion of the system header files.
9196
9197Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
9198
9199 * makefile.vms: Remove 8 bit characters. Update to latest
9200 gcc release.
9201
9202Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
9203
9204 * strsignal.c: Use NEED_sys_siglist instead of
9205 LOSING_SYS_SIGLIST.
9206 * config.table: Don't use mh-lynxos.
9207 * config/mh-lynxos: Remove.
9208
9209Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
9210
9211 * cplus-dem.c: Fix indenting; make identical to the copy
9212 in GCC.
9213 (do_type, case 'M'): Check for a template as well as a class.
9214
9215Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
9216
9217 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9218 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9219 libiberty is incorrect, as well.
9220
9221Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9222
9223 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9224 alloca takes a size_t argument, not just unsigned.
9225
9226Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9227
9228 * cplus-dem.c: Note that this file also lives in GCC.
9229
9230Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9231
9232 * alloca.c: Remove include of libiberty.h for hpux.
9233 * argv.c: Replace defs from libiberty.h.
9234 * spaces.c: Put back externs from removed from libiberty.h.
9235 * vasprintf.c: Remove include of libiberty.h for hpux.
9236
9237Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9238
9239 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9240
9241Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9242
38beb75c
UD
9243 * cplus-dem.c: Revert last two commits due to conflicts with
9244 hpux system headers.
6599da04
JM
9245
9246Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9247
9248 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
38beb75c 9249 Revert last commit due to conflicts with hpux system headers.
6599da04
JM
9250
9251Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9252
9253 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9254 libiberty.h when compiled with a standard compiler.
9255
9256Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9257
38beb75c 9258 * alloca.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9259 Don't redefine NULL.
9260 * argv.c: Move prototypes to libiberty.h.
38beb75c 9261 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9262 Don't redefine NULL.
9263 Use casts to eliminate compiler warnings.
38beb75c 9264 * spaces.c: Remove prototypes for malloc and free which are
6599da04
JM
9265 already in libibrty.h.
9266 * strcasecmp.c: Use casts to eliminate compiler warnings.
38beb75c 9267 * vasprintf.c: Include libiberty.h for definition of malloc.
6599da04
JM
9268 Don't redefine NULL.
9269 * vprintf.c: Include stdarg.h if __STDC__.
9270
9271Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9272
9273 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9274
9275Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
9276
9277 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9278 upward components correctly.
9279
9280Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
9281
9282 * config.table, config/mh-windows: Add support for building under
9283 MSVC (the Microsoft build environment).
9284
9285Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9286
9287 * fnmatch.c: Undef const if not __STDC__.
9288
9289Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
9290
9291 * fnmatch.c: New file.
9292 * Makefile.in (CFILES): Add fnmatch.c.
9293 (REQUIRED_OFILES): Add fnmatch.o.
9294 (fnmatch.o): New target.
9295
9296Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9297
9298 * cplus-dem.c (demangle_template): Fix handling of address args.
9299 (gnu_special): Handle type_info stuff.
9300
9301Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9302
9303 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9304 (mpwify_filename): Handle "::/" case.
9305
9306Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9307
9308 * config/mh-cygwin32: new file (need -DNEED_basename and
9309 -DNEED_sys_siglist for native NT rebuilding)
9310 * config.table (*-*-cygwin32): new entry
9311 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9312
9313Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9314
9315 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9316
9317Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9318
9319 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9320 messed with arguments that included a '/', add escape chars
9321 to double quotes, remove const decl from arg that Mac
9322 compilers don't seem to like.
9323
9324Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9325
9326 * pexecute.c: Update test for win32 (&& ! cygwin32).
9327 * choose-temp.c: fix WIN32 preprocessor defines
9328
9329Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9330
9331 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9332 to editing of default makefile rule.
9333
9334Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9335
9336 * alloca-norm.h: Include <malloc.h> if _WIN32.
9337 * argv.c: Include non-prototyped decls for malloc and string
9338 functions if ! _WIN32 or if __GNUC__.
9339
9340Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9341
9342 * config.h-vms: New file.
9343 * makefile.vms: Use it.
9344
9345Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9346
9347 * getopt.c (_getopt_internal): If argc is 0, just return (before
9348 we reference *argv and segfault).
9349
9350Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9351
9352 * Makefile.in (distclean): Add multilib.out.
9353
9354Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9355
9356 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9357 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9358
9359Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9360
9361 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9362
9363 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9364
9365 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9366
9367 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9368 (do_ofiles): Allow nonexistent source file in pass 3.
9369 (chk_deffunc): New routine.
9370
9371Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9372
9373 * pexecute.c (PEXECUTE_VERBOSE): Define.
9374 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9375
9376Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9377
9378 * Makefile.in (docdir): Removed.
9379
9380Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9381
9382 * Makefile.in (oldincludedir): Removed.
9383
9384Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9385
5194cf08 9386 * Makefile.in (datadir): Set to $(prefix)/share.
6599da04
JM
9387
9388Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9389
9390 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9391 checking for errors from do_type.
9392
9393Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9394
9395 * makefile.vms: New file.
9396 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9397 than declaring malloc, realloc, and sbrk.
9398
9399Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9400
9401 * pexecute.c: New file.
9402
9403Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9404
9405 * xmalloc.c: Declare sbrk.
9406
9407Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9408
9409 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9410 declaration.
9411
9412Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9413
9414 * xstrerror.c: Include <stdio.h>.
9415
9416Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9417
9418 * Makefile.in (CFILES): Add atexit.c.
9419
9420Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9421
9422 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9423
9424Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9425
9426 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9427 #include <stdio.h>
9428 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9429
9430Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9431
5194cf08 9432 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6599da04
JM
9433 Reverts Feb 8, 1995 change.
9434
9435Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9436
9437 * choose-temp.c: New file.
9438 * Makefile.in (CFILES): Add choose-temp.c.
9439 (REQUIRED_OFILES): Add choose-temp.o.
9440
9441Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9442
9443 * floatformat.c (floatformat_to_double): Don't bias exponent when
9444 handling zero's, denorms or NaNs.
9445
9446Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9447
9448 * floatformat.c (floatformat_to_double): Fix bugs with handling
9449 numbers with fractions < 32 bits.
9450
9451Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9452
9453 * config.table: Permit --enable-shared to specify a list of
9454 directories.
9455
9456Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9457
9458 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9459 arguments.
9460
9461Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9462
9463 * configure.in: If srcdir is `.' and with_target_subdir is not
9464 `.', then set MULTISRCTOP before calling config-ml.in.
9465
9466Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9467
9468 * mpw.c (mpw_open): Add debugging output option.
9469
9470Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9471
9472 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9473
9474Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9475
9476 * mpw.c (mpwify_filename): Change 6 to 5 in
9477 strncmp (unixname, "/tmp/", 5).
38beb75c 9478
6599da04
JM
9479Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9480
9481 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9482 handle 0 as a pointer value parameter.
9483
9484Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9485
9486 * Makefile.in (all): Depend upon required-list.
9487 (required-list): New target.
9488 (clean): Remove required-list.
9489
9490Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9491
9492 * win32.c: Deleted.
9493 * config.table (i386-*-win32): Deleted.
9494 * config/mh-i386win32: Deleted.
9495
9496Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9497
9498 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9499 const char *.
9500 (cplus_mangle_opname): Change return type and opname parameter to
9501 const char *. Don't cast return value.
9502
9503Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9504
9505 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9506 definition.
9507
9508Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9509
9510 * obstack.c: Update copyright to 1996.
9511 (_obstack_memory_used): Define new function. Called via
9512 obstack_memory_used macro.
9513
9514Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9515
9516 * xstrdup.c: New file.
9517 * Makefile.in (CFILES): Add xstrdup.c.
9518 (REQUIRED_OFILES): Add xstrdup.o.
9519 (xstrdup.o): New target.
9520
9521Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9522
9523 * atexit.c: New stub to provide atexit on systems that have
9524 on_exit, like SunOS 4.1.x systems.
9525 * functions.def (on_exit, atexit): Ditto.
9526
9527Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9528
9529 * mpw.c (mpw_abort): Remove decl.
9530 (mpw_access): Move debugging printf.
9531
9532Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9533
9534 * config.table: Consistently use ${host} rather than ${xhost} or
9535 ${target}.
9536 * configure.in: Don't bother to set ${xhost} before calling
9537 config.table.
9538
9539Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9540
9541 * Makefile.in (.c.o): Use test instead of the left bracket, to
9542 avoid problems with some versions of make.
9543
9544Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9545
9546 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9547
9548Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9549
9550 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9551 which was set to just alloca.o, which is now automatically marked
9552 as needed by the autoconfiguration process.
9553
9554Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9555
9556 * config.table: Check ${with_cross_host} rather than comparing
9557 ${host} and ${target}.
9558
9559Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9560
9561 * configure.in: If with_target_subdir is empty, set xhost to
9562 ${host} rather than ${target} before calling config.table.
9563
9564Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9565
9566 * Makefile.in (MULTITOP): Deleted.
9567 (MULTISRCTOP, MULTIBUILDTOP): New.
9568 (FLAGS_TO_PASS): Delete INCDIR.
9569 (INCDIR): Add $(MULTISRCTOP).
9570 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9571 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9572 instead of cfg-ml-pos.in.
9573 (cross-compile check): Change to test for with_target_subdir.
9574 (EXTRA_LINKS): Delete.
9575
9576Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9577
9578 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9579 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9580 functions that are supplied by Metrowerks libraries.
9581 (fstat): Clean up descriptor->pointer conversion code.
9582 (InstallConsole, etc): Empty definitions, for when linking
9583 with SIOUX.
9584
9585Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9586
9587 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9588 (.c.o): Stylistic change.
9589
9590Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9591
9592 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9593 phdm@info.ucl.ac.be (Philippe De Muyter).
9594
9595Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9596
9597 * configure.in: Correct sed call.
9598
9599Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9600
9601 * configure.in: Clean up / simplify for native.
9602
9603 * configure.in: Merge in stuff from ../xiberty/configure.in.
9604 * Makefile.in (CC): Add definition (so it can be overrridden
9605 by ../configure).
9606
9607Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9608
9609 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9610 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9611 (link): Remove useless definition with error return.
9612 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9613 Use UnsignedWide type for microsecond counts.
9614
9615Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9616
9617 * memcmp.c (memcmp): Argument types are const void *, not void
9618 *const.
9619
9620 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9621 sys/types.h.
9622 * strcasecmp.c (strcasecmp): Ditto.
9623
9624Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9625
9626 * Makefile.in (BISON): Remove macro.
9627
9628Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
9629
9630 * Makefile.in (HFILES): Add default empty definition.
9631 * mpw-config.in (config.h): Only update if changed.
9632 * mpw-make.in: Remove.
9633 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9634 * mpw.c: Remove semi-clone of strerror code.
9635 (sys_nerr, sys_errlist): Define here.
9636 (Microseconds): Only define as A-line trap if m68k Mac.
9637
9638Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9639
9640 * Makefile.in (maintainer-clean): New synonym for distclean.
9641
9642Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
9643
9644 * config.table: For host, generalize rs6000-ibm-aix*
9645 to *-ibm-aix* so we also include powerpc.
9646
9647Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9648
9649 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
9650
9651 * xstrerror.c: New file.
9652 * Makefile.in, vmsbuild.com: Compile it.
9653
9654Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9655
9656 * config.table (i386-*-win32): New.
9657
9658Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
9659
9660 * Makefile.in (MULTITOP): New variable.
9661 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9662 (all): Add multilib support.
9663 (install_to_tooldir, *clean): Likewise.
9664
9665Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9666
9667 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9668
9669Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
9670
9671 * vmsbuild.com: create "new-lib.olb", build libiberty under that
9672 name, and then make it become "liberty.olb" when done, so that an
9673 incomplete build attempt never leaves behind something which looks
9674 like a complete library.
9675
9676Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
9677
9678 * config/mh-i386pe: New file for PE hosts.
9679 * config.table: Understand PE hosts.
9680
9681Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9682
9683 * cplus-dem.c: Update from gcc.
9684
9685 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
5194cf08 9686 <stddef.h>.
6599da04
JM
9687 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9688
9689Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9690
9691 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9692 * mpw.c: Only test DebugPI once whenever printing debug info.
9693 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9694 also fix to not write on input filename buffer.
9695 (mpw_access): Use stat() instead of open(), works for directories
9696 as well as files.
9697
9698Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9699
9700 * Makefile.in: Massage broken shells that require 'else true'.
9701
9702Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
9703
9704 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9705 Declare __builtin_alloca in the sparc case, as argv.c did.
9706 * argv.c: Replace inline version of alloca-norm.h at start of file with
9707 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
9708 because alloca-norm.h needs to declare alloca as "PTR".
9709
9710Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9711
9712 * win32.c: New file.
9713
9714Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9715
9716 * dummy.c: #include "alloca-conf.h".
9717
9718Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9719
9720 * Makefile.in (mostlyclean): Remove stamp-picdir.
9721 (clean): Don't.
9722
9723Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9724
9725 * config.table (frags): Use toplevel pic frags.
9726
9727 * Makefile.in (PICFLAG): New macro.
9728 (all): Depend on stamp-picdir.
9729 (needed-list): Ditto.
9730 (.c.o): Also build pic object.
9731 (stamp-picdir): New rule.
9732 (mostlyclean): Remove pic.
9733 (clean): Remove stamp-picdir.
9734
9735Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9736
9737 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9738
9739Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
9740
9741 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
9742 to libio-style copyright.
9743 * getpagesize.c: Remove FSF copyright.
9744
9745Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9746
9747 Added improved VMS support from Pat Rankin:
9748
9749 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
9750
9751 * vmsbuild.com: new file.
9752
9753 * getpagesize.c (getpagesize): implement for VMS;
9754 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
9755 support for EVMSERR.
9756
9757Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9758
9759 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
9760
9761 * floatformat.c (floatformat_arm_ext): Define.
9762
9763Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
9764
9765 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
9766 strerror.c, strsignal.c: Remove FSF copyright.
9767 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
9768
9769Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
9770
9771 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
9772 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
9773 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
9774 * strchr.c, strrchr.c: Add cast to suppress const warning.
9775
9776Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9777
9778 * cplus-dem.c: Use const instead of CONST. Don't include
5194cf08 9779 ansidecl.h directly.
6599da04
JM
9780
9781Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9782
9783 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
5194cf08 9784 xrealloc.
6599da04 9785 (-DMAIN): Don't rely on an externally-defined version number;
5194cf08
ZW
9786 instead, require the version number to be defined as a
9787 preprocessor macro. Handle the RS/6000 leading dot. Define
9788 xmalloc, xrealloc and fatal. Don't strip a leading underscore
9789 if we couldn't demangle the word.
6599da04
JM
9790
9791Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
9792
9793 (Old mpw.c change descriptions retained for informational value.)
9794 * mpw.c (warning_threshold): Default to .4 sec.
9795 (overflow_count, current_progress): New globals.
9796 (warn_if_spin_delay): Include current progress type,
9797 such as program name, in message.
9798 (mpw_start_progress): Set current_progress variable from arg.
9799 (mpw_end_progress): Report spin delays by power-of-two-size
9800 buckets instead of constant-size buckets.
9801
9802 * mpw.c: Clean up formatting, types, returns, etc.
9803 (ENOSYS): Define.
9804 (mpw_fread, mpw_fwrite): Define.
9805 (sleep): Define correctly.
9806
9807 * mpw.c: New code to implement cursor spinning support.
9808 (umask): New function.
9809 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
9810
9811 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
9812 basenames for MPW and MPW/Unix filenames.
9813 (mpw_special_init): New function, calls Macsbug if desired.
9814
9815 * mpw.c: Add GPL notice.
9816 (mpwify_filename): Add more transformations.
9817 (mpw_fopen): Call mpwify_filename on file names.
9818 (rename): Remove.
9819 (chdir, getcwd): Add simple definitions.
9820
9821 * mpw.c: Random cleanups, remove unused code bits.
9822 Added copy of strerror.c for gcc's use.
9823 (stat, fstat, _stat): New versions based on Guido van Rossum code.
9824
9825 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
9826
9827 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
9828 (fork, vfork, etc): Print error messages if called.
9829 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
9830 rename, chown): Define.
9831
9832 * mpw-config.in: New file, MPW version of configure.in.
9833 * mpw-make.in: New file, MPW version of Makefile.in.
9834 * mpw.c: New file, MPW compatibility routines.
9835
9836Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
9837
9838 * basename.c: Include config.h before checking for NEED_basename.
9839
9840Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9841
9842 * functions.def: Add DEFFUNC for basename.
9843
9844 * basename.c: Only define basename if NEED_basename.
9845
9846Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9847
9848 * config.table: Fix --enable-shared logic for native builds.
9849
9850Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9851
9852 * cplus-dem.c (demangle_template): Demangle bool literals properly.
9853
9854Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
9855
9856 * strtol.c strtoul.c: Replace these with less buggy versions from
9857 NetBSD. (strtoul in particular couldn't handle base 16.)
9858
9859Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
9860
9861 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
9862
9863 * clock.c: If NO_SYS_PARAM_H is defined, don't include
9864 <sys/param.h>.
9865 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
9866
9867Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
9868
9869 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
9870 a number; ANSI appears to permit any expression, including a
9871 function call.
9872
9873 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
9874 xiberty.
9875 * config/mt-vxworks5: New file.
9876
9877Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
9878
9879 * basename.c (basename): Change argument to be const.
9880
9881Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9882
9883 * Makefile.in (lneeded-list): Don't worry about xmalloc.
9884
9885Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
9886
9887 * Makefile.in (distclean): Delete xhost-mkfrag.
9888
9889Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9890
9891 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9892
9893Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
9894
9895 * hex.c: New file.
9896 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
9897 (hex.o): Add dependencies.
9898
9899 * cplus-dem.c (demangle_prefix): For GNU style constructor and
9900 destructor names, try demangling the remainder of the string.
9901
9902Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
9903
9904 * vasprintf.c (int_vasprintf): New static function.
9905 (vasprintf): Use int_vasprintf. Removes assumption that va_list
9906 is assignment compatible.
9907
9908Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9909
9910 * Makefile.in (LIBCFLAGS): New variable.
9911 (FLAGS_TO_PASS): Pass it.
9912 (.c.o): Use it.
9913
9914Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
9915
9916 * getopt.c, getopt1.c: Do compile these functions under Linux,
9917 since many native versions are based on glibc but are buggy.
9918
9919Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
9920
9921 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
9922 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
9923
9924Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9925
9926 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
9927 * functions.def: Remove vasprintf.
9928
9929Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9930
9931 * xmalloc.c (first_break): New static variable.
9932 (xmalloc_set_program_name): Record sbrk (0) in first_break.
9933 (xmalloc): If memory allocation fails, try to report how much
9934 memory was allocated by the program up to this point.
9935 (xrealloc): Likewise.
9936
9937Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
9938
9939 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
9940 when linking dummy.
9941 * config.table: Add host RISCiX Makefile frag.
9942 * config/mh-riscix: New file.
9943
9944Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9945
9946 * Makefile.in (FLAGS_TO_PASS): Define.
9947 ($(RULE1)): Use $(FLAGS_TO_PASS).
9948
9949Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9950
9951 * vasprintf.c: Include <string.h>.
9952 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
9953 * xatexit.c: Declare malloc.
9954
9955Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
9956
9957 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
9958 one below).
9959
9960Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
9961
9962 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5194cf08 9963 the type index is greater than 9.
6599da04
JM
9964
9965Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
9966
9967 * cplus-dem.c (demangle_qualified): accept optional '_' between
9968 qualified name. This is baecause the template name may end with
9969 numeric and can mixed up with the length of next qualified name.
9970
9971Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
9972
9973 * config/mt-sunos4: Use our standard location for cross-includes
9974 and cross-libs when the target is also a "host" environment (ie no
9975 newlib; includes and such don't belong to us). This is specific
9976 to the Cygnus Support environment.
9977
38beb75c 9978Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6599da04 9979
38beb75c 9980 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
6599da04
JM
9981 xxx<ch=81>.
9982
9983Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
9984
9985 * cplus-dem.c (main): flush stdout to make pipe work.
9986
9987Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
9988
9989 * config.table (*-*-cxux7*): Recognize.
9990 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
9991 Harris-specific float format.
9992 * config/mh-cxux7: New file.
9993
9994Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9995
9996 * cplus-dem.c (demangle_template): Make sure that the result of
9997 consume_count doesn't index beyond the end of the string.
9998
9999Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10000
10001 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
10002 earlier. Improve test for new vtable mangling. Change output back
10003 to `virtual table'.
10004
10005Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10006
10007 * obstack.c: Always compile this code, even if using the GNU
10008 library. Avoids problems with relatively recent binary
10009 incompatibility.
10010
10011Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10012
10013 * cplus-dem.c: Include libiberty.h.
10014 (xmalloc, xrealloc, free): Don't declare.
10015 (strstr): Don't declare parameters.
10016 (xmalloc, xrealloc): Don't define.
10017 (long_options): Add no-strip-underscores.
10018 (main): Call xmalloc_set_program_name. Pass n in short options to
10019 getopt_long. Handle option 'n' to not strip underscores.
10020 (usage): Mention -n and --no-strip-underscores.
10021
10022Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
10023
10024 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5194cf08 10025 space.
6599da04
JM
10026 (gnu_special): Demangle template and qualified names in a vtable name.
10027
10028Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10029
10030 From gas-2.3 and binutils-2.4 net releases:
10031
10032 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
10033
10034 * makefile.dos: [new] Makefile for dos/go32
10035 * configure.bat: update for latest files
10036 * msdos.c: remove some functions now in libc.a
10037
10038Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
10039
10040 * cplus-dem.c (gnu_special): Recognize thunks, as well as
10041 the new naming style for vtables (when -fvtable-thunks).
10042
10043Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10044
10045 * Makefile.in (XTRAFLAGS): Don't define.
10046 (.c.o, dummy.o): Don't use XTRAFLAGS.
10047 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
10048
10049Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10050
10051 * vasprintf.c: New file.
10052 * Makefile.in, functions.def: Add it.
10053
10054Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
10055
10056 * cplus-dem.c (demangle_fund_type): Grok bool.
10057
10058Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
10059
38beb75c 10060 * config.table: Add go32
6599da04
JM
10061 * config/mh-go32: New template.
10062
10063Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
10064
10065 * config.table, config/mt-sunos4: config for when sun4 is cross target.
10066
10067Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10068
5194cf08
ZW
10069 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10070 Declare strlen to return int. Don't include stddef.h.
6599da04
JM
10071
10072Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
10073
5194cf08
ZW
10074 * getopt.c: Delete use of IN_GCC to control whether
10075 stddef.h or gstddef.h is included.
6599da04
JM
10076
10077Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
10078
10079 * cplus-dem.c (demangle_signature): Fix a bug in template function
10080 type numbering.
10081
10082Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
10083
10084 * cplus-dem.c (demangle_signature): Fix template function with arm
10085 style argument type number, Tn.
10086
10087Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
10088
10089 * cplus-dem.c (optable): Add new[] and delete[].
10090
10091Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10092
10093 * argv.c (buildargv): Don't produce empty argument just because
10094 there is trailing whitespace.
10095
10096Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10097
10098 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
10099 Handle 'p' same as 'P'.
10100 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
10101
10102Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10103
10104 * floatformat.c (get_field, put_field): Fix off by one error in
10105 little endian case.
10106
10107Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10108
10109 * floatformat.c (floatformat_from_double): Pass unsigned char *,
10110 not char *, to put_field.
10111
10112Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10113
10114 * memmove.c: Re-wrote; placed in public domain.
10115
10116Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10117
10118 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10119 __Q* as a constructor.
10120
10121Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
10122
10123 * ieee-float.c: Removed; no longer used.
10124 * Makefile.in: Changed accordingly.
10125
10126Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10127
10128 * floatformat.c (get_field): Removed unused local variable i.
10129 (put_field): Removed unused local variable i.
10130
10131Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10132
10133 * floatformat.c: New file, intended to replace ieee-float.c.
10134 * Makefile.in: Change accordingly.
10135
10136Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10137
10138 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
38beb75c
UD
10139 (_getopt_initialize): New function, broken out of _getopt_internal.
10140 (_getopt_internal):
6599da04
JM
10141 If long_only and the ARGV-element has the form "-f", where f is
10142 a valid short option, don't consider it an abbreviated form of
10143 a long option that starts with f. Otherwise there would be no
10144 way to give the -f short option.
10145
10146Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10147
5194cf08
ZW
10148 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10149 Test just __STDC__, not emacs.
6599da04
JM
10150
10151Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10152
5194cf08
ZW
10153 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10154 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
6599da04
JM
10155
10156Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10157
5194cf08 10158 * getopt.c (_NO_PROTO): Define before config.h is included.
6599da04
JM
10159
10160Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10161
5194cf08 10162 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
6599da04
JM
10163 <config.h> only under these, else "config.h".
10164
10165Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10166
5194cf08
ZW
10167 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10168 <config.h> instead of "config.h".
6599da04
JM
10169
10170Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
10171
10172 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10173 whether to use prototypes or not.
10174 * strerror.c (const): Never undefine; let ansidecl.h handle it.
10175 * strsignal.c (const): Likewise.
10176
10177Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10178
10179 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10180 Merging common and initialized variables need not be supported by
10181 ANSI C compilers.
10182 (xatexit): Initialize _xexit_cleanup if not already set.
10183 * xexit.c: Comment fix.
10184
10185Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10186
10187 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10188 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10189 assuming that realloc works correctly.
10190
10191Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10192
10193 * concat.c, ieee-float.c: Replace inclusion of <string.h>
10194 with explicit function declarations, as recommended by Ian Taylor.
10195
10196Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10197
10198 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10199 (malloc, realloc): Declare.
10200
10201Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10202
10203 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10204 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10205 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10206 * xmalloc.c: Likewise.
10207 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
10208 macros, not <varargs.h> macros.
10209 * spaces.c (spaces): Make return type const. Don't crash if
10210 malloc returns NULL.
10211 * strerror.c (struct error_info): Make name and msg fields const.
10212 (error_names): Make const.
10213 (strerrno): Make const.
10214 (strtoerrno): Make argument const.
10215 * strsignal.c (struct signal_info): Make name and msg fields
10216 const.
10217 (signal_names, sys_siglist): Make const.
10218 (strsignal, strsigno): Make const.
10219 (strtosigno): Make argument const.
10220 * xatexit.c: Declare parameter types.
10221 * xmalloc.c (name): Make const.
10222 (xmalloc_set_program_name): Make argument const.
10223 * Makefile.in (INCDIR): Define.
10224 (.c.o): Use $(INCDIR).
10225 (dummy.o): Likewise.
10226 (argv.o, basename.o): New targets; depend on libiberty.h.
10227 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10228 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10229 (xmalloc.o): Likewise.
10230 (cplus-dem.o): New target; depend on demangle.h.
10231 (getopt.o, getopt1.o): New targets; depend on getopt.h.
10232 (ieee-float.o): New target; depend on ieee-float.h.
10233 (obstack.o): New target; depend on obstack.h.
10234
10235Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10236
10237 Handle obstack_chunk_alloc returning NULL. This allows
10238 obstacks to be used by libraries, without forcing them
10239 to call exit or longjmp.
10240 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10241 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10242 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10243
10244Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10245
10246 * concat.c, ieee-float.c: Include <string.h>.
10247
10248Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10249
10250 * xmalloc.c (xmalloc_set_program_name): New function.
10251 (xmalloc, xrealloc): Include the name in the error message, if set.
10252
10253 * Replace atexit.c with xatexit.c.
10254 * Makefile.in (CFILES), functions.def: Change references.
10255
10256Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10257
10258 * getruntime.c (get_run_time): Use getrusage or times if
10259 HAVE_GETRUSAGE or HAVE_TIMES are defined.
10260
10261Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10262
10263 * atexit.c: New file.
10264 * Makefile.in (CFILES), functions.def: Add it.
10265 * xexit.c: New file.
10266 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10267 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10268 Change request for 0 bytes into request for 1 byte.
10269
10270Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10271
10272 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10273 unsigned long, to avoid warnings.
10274
10275Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10276
10277 * dummy.c: Don't include time.h ever; always define clock_t as
10278 "unsigned long". Until gcc/fixincludes ensures that clock_t
10279 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
10280 exist, clock_t probably doesn't either.
10281
10282Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
10283
10284 * clock.c, getruntime.c: New files.
10285 * Makefile.in: Add to file lists.
10286 * functions.def (clock): Add to list.
10287 * dummy.c (time.h): Add if __STDC__.
10288 (clock_t): #define as "unsigned long" if not __STDC__.
10289
10290Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10291
10292 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
10293 Edler).
10294
10295Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10296
10297 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10298 linking.
10299
10300Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10301
10302 * cplus-dem.c (demangle_arm_pt): New function. Common code
10303 for ARM template demangling.
10304 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10305 * cplus-dem.c (demangle_prefix): Likewise.
10306
10307Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10308
10309 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10310
10311Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10312
10313 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10314 * strerror.c, strsignal.c: As a small space optimization, don't
10315 include messages when they aren't actually used.
10316
10317 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10318 * cplus-dem.c (demangle_prefix, demangle_function_name,
10319 cplus_demangle_opname): Fixes for systems where cplus_marker
10320 is something other than '$'.
10321
10322Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10323
10324 * waitpid.c: Simple-minded approcimation to waitpid
10325 using vanilla wait.
10326 * functions.def, Makefile.in: Update accordingly,
10327
10328Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10329
10330 * cplus-dem.c(demangle_template): fix bug template instantiation
10331 with value of user defined type.
10332
10333Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10334
10335 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10336 to support unified search of operator in class.
10337
10338Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10339
10340 gcc -Wall lint:
10341 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10342 "digit = *s" as condition in while loop.
10343
10344Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10345
10346 * Makefile.in: pass SHELL to recursive make
10347
10348Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10349
10350 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10351 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10352
10353Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10354
10355 * config.table: Make *-*-hiux* use mh-hpux.
10356
10357Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10358
10359 * config.table: Add * to end of all OS names.
10360
10361Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10362
10363 * Makefile.in (lneeded-list): ensure that object file names are
10364 not duplicated, as multiple instances of the same object file in
10365 a library causes problems on some machines
10366
10367Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10368
10369 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10370
10371Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10372
10373 * strncasecmp.c: new file, implements strncasecmp
10374 * strcasecmp.c: new file, implement strcasecmp
10375
10376 * Makefile.in (CFILES): list these two new source files
10377
10378 * functions.def: add strcasecmp and strncasecmp entries
10379
10380Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10381
10382 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10383 according to ANSI C.
10384
10385Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10386
10387 * cplus-dem.c: add support of ARM global constructor/destructor,
10388 and 'G' for passing record or union in parameter.
10389
10390Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10391
10392 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10393 should not be in functions.def.
10394
10395Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10396
10397 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10398 not be in functions.def.
10399
10400Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10401
10402 * cplus-dem.c: change globl constructor/destructor to proper name
10403
10404Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10405
10406 * cplus-dem.c: fix bug in constructor/destructor
10407
10408Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10409
10410 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10411
10412Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10413
10414 * cplus-dem.c: Fix demangle_template prototype
10415
10416Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10417
10418 * cplus-dem.c: fix template demangling
10419 * cplus-dem.c: fix const type demangling
10420 * cplus-dem.c: fix constructor/destructor, virtual table,
10421 qualifier, global constructor/destructor demangling
10422
10423Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10424
10425 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10426 keep gcc -Wall happy.
10427
10428Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10429
10430 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10431 patch.
10432
10433Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10434
10435 Patch from Paul Flinders:
10436 * cplus-dem.c (do_type): Deal with arrays.
10437
10438Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10439
10440 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10441 than 9 classes.
10442
10443Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10444
10445 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10446 not initialized" warnings under HP/UX
10447
10448Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10449
10450 * strerror.c: Move include of stdio.h after sys_errlist #define.
10451 Also remove NULL definition (stdio.h always defines NULL, so it
10452 never did anything but clutter up the code).
10453
10454Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10455
10456 * Makefile.in, functions.def: handle xmalloc.c
10457
10458 * xmalloc.c: provide xmalloc and xrealloc functions
10459
10460Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10461
10462 * cplus-dem.c: Fix a comment.
10463
10464Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10465
10466 * getopt1.c: Declare const the way getopt.c does.
10467
10468Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10469
10470 * obstack.c, alloca.c: Update from FSF.
10471 * getopt.c, getopt1.c: Update to current FSF version, which
38beb75c 10472 doesn't use alloca.
6599da04
JM
10473
10474Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10475
10476 * Makefile.in (demangle): Add the target with a message saying
10477 where demangle went.
10478
10479Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10480
10481 * Makefile.in: Remove obsolete `demangle' target.
10482
10483Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10484
10485 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10486 avoid infinite loop on vtbl symbols with disambiguating "junk"
10487 tacked on the end.
10488
10489Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10490
10491 * strsignal.c: work around some systems losing definitions of
10492 sys_siglist
10493
10494 * config/mh-lynxos: this system has a losing definition of
10495 sys_siglist
10496
10497 * config.table: use mh-lynxos for *-*-lynxos
10498
10499Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10500
10501 * config.table: Add support for HPPA BSD hosts.
10502
10503 * config/mh-hpbsd: New file.
10504
10505Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10506
10507 * Makefile.in (TAGS): make work when srcdir != objdir.
10508
10509Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10510
10511 * cplus-dem.c (main): Add long options, including --help and
10512 --version.
10513 (usage): New function from code in main.
10514
10515Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10516
10517 * config.table: New shell scipt, sourced by both ./configure,in
10518 and ../xiberty/configure.in, to avoid maintainance lossages.
10519 * configure.in and ../xiberty/configure.in: Use config.table.
10520
10521 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10522 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10523 * ../xiberty/configure.in: Update from ./configure.in.
10524
10525Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10526
10527 * Makefile.in: remove parentdir support
10528
10529Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10530
10531 * cplus-dem.c (xrealloc): Match definition with prototype.
10532
10533Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10534
10535 * cplus-dem.c (demangle_prefix): Demangle cfront
10536 local variables as an extension to ARM demangling.
10537
10538Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10539
10540 * ieee-float.c: Don't require pointers to double to be aligned.
10541
10542Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10543
5194cf08 10544 (merge changes from dlong@cse.ucsc.edu)
6599da04
JM
10545 * cplus-dem.c (consume_count): Simplify.
10546 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10547 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10548
10549 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10550 full prototypes.
10551 * cplus-dem.c (free): Add prototype.
10552 * cplus-dem.c (optable): Fully bracketize initializer.
10553
10554Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10555
10556 * cplus-dem.c: Whether initial underscores are stripped
10557 depends on the external variable prepends_underscore
10558 (which is generated by the binutils Makefile).
10559
10560Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10561
10562 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10563
10564Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10565
10566 * cplus-dem.c (consume_count): Return zero if arg does not
10567 start with digit, and don't consume any input.
10568
10569Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10570
10571 * Makefile.in (demangle): Use ${srcdir} not $^.
10572
10573 * strtod.c: New file, needed at least for BSD 4.3.
10574
10575Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10576
10577 * strsignal.c (sys_siglist): For ANSI compilations, type is
10578 "const char *const". Also remove conditionalization on __STDC__
10579 since const is defined away for non-ANSI.
10580
10581Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10582
10583 * configure.in: Recognize *-*-hpux.
10584 * config/mh-hpux: New file.
10585
10586Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10587
10588 * tmpnam.c: Added ANSI tmpnam() function.
10589 * functions.def, Makefile.in: Update accordingly.
10590
10591Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10592
10593 * cplus-dem.c (demangle_function_name): Get the demangling of
10594 stop__1A right.
10595
10596Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10597
10598 * cplus-dem.c: Declare strstr return type.
10599
10600Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10601
10602 * strsignal.c: Add some AIX signals.
10603
10604Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10605
10606 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10607
10608Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10609
10610 * Makefile.in: add installcheck & dvi targets
10611
10612Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10613
10614 * ieee-float.c: New file, moved from ../gdb (since it is
10615 needed by ../opcode/m68k-dis.c).
10616
10617Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10618
10619 * cplus-dem.c: Replace all references to cfront with ARM.
10620
10621Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10622
10623 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10624 to be more useful as a filter.
10625
10626Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10627
10628 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10629 destination directory before running $(RANLIB), in case that
10630 program tries to create a file in the current directory as part of
10631 its work.
10632
10633Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
10634
10635 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
10636 because BSD 4.4 lacks one. Isn't this fun?
10637
10638Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
10639
10640 * cplus-dem.c (demangle_signature): Set func_done after
10641 demangling a template.
10642 * cplus-dem.c (demangle_template): Fix several small bugs
10643 in demangling GNU style templates.
10644 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
10645 style constructors.
10646 * cplus-dem.c (gnu_special): Fix for templates in GNU style
10647 static data members.
10648
10649Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
10650
10651 * cplus-dem.c (demangle_signature): Modify to include type
10652 modifiers like static and const in remembered types.
10653
10654Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
10655
10656 * cplus-dem.c (demangled_qualified): Add new parameter that tells
10657 whether to prepend or append the qualifiers.
10658 * cplus-dem.c (string_prepends): Used now, remove #if 0.
10659 * cplus-dem.c (demangle_signature): Call demangle_qualified
10660 with prepending.
29120f44 10661 * cplus-dem.c (gnu_special): Recognize static data members that
6599da04
JM
10662 use qualified names.
10663 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
10664 temporary buffer and the prepend or append them to the result,
10665 as specified by the new "append" flag.
10666 * cplus-dem.c (do_type): Call demangled_qualified with
10667 appending.
10668
10669Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
10670
10671 * strsignal.c (signal_table): Now const.
10672 (init_signal_tables): Variable eip now points to const.
10673
10674 * strerror.c (error_table): Now const.
10675 (init_error_tables): Variable eip now points to const.
10676
10677Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
10678
10679 * memchr.c (memchr): New (ANSI standard) function.
10680 * Makefile.in, functions.def: Added memchr.
10681 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10682
10683Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10684
10685 * getopt.c: remove use of USG around <alloca.h>, which never meant
10686 anything anyway
10687
10688 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10689 of USG and USGr4
10690
10691Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
10692
10693 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10694 it's now a type according to the ANSI X3J16 working paper; output
10695 "wchar_t" for it.
10696 (demangle_template): Accept `w' as an integral type.
10697 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
10698 counterparts malloc and realloc to `char *'.
10699 (main): Exit with a 0 status.
10700 * Makefile.in (demangle): Don't expect the user to define
10701 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
10702 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
10703
10704Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
10705
10706 * Makefile.in (AR_FLAGS): Avoid verbosity.
10707 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
10708 replace USGr4 with HAVE_SYSCONF.
10709 * config/mh-solaris: Remove; mh-sysv4 works now.
10710 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
10711 * configure.in: Simplify host matching table, remove separate
10712 solaris config file.
10713
10714Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10715
10716 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10717
10718Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
10719
10720 * cplus-dem.c (xmalloc, xrealloc): Add decls.
10721 (remember_type): Don't cast xmalloc.
10722 (string_need): Likewise; don't cast xrealloc either.
10723
10724Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
10725
10726 * Makefile.in, functions.defs, rename.c: added simple
10727 implementation of rename, since some binutils programs use it.
10728
10729Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
10730
10731 * strsignal.c: Add appropriate 'const' to sys_siglist
10732 extern declaration (if __STDC__). (Needed for Linux.)
10733 * strsignal.c (strsignal): Add cast to remove const-ness.
10734
10735Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
10736
10737 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
10738 before "'s, diagnosed by BSD 4.4 awk.
10739
10740Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
10741
10742 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
10743 and $(NEEDED_LIST), to give some hooks for xiberty.
10744
10745Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10746
10747 * configure.in: use cpu-vendor-triple instead of nested cases
10748
10749Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10750
10751 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
10752 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
10753 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
10754 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
10755 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
10756 Convert from using GPL to LGPL.
10757
10758Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
10759
10760 * Makefile.in (errors): Leave dummy.o and dummy around so that
10761 we can see how the needed list was generated (it's sometimes wrong).
10762 (mostlyclean): Remove them.
10763
10764Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
10765
10766 * getcwd.c: supply a default if MAXPATHLEN is not defined.
10767
10768 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
10769
10770Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
10771
10772 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
10773 when cross-compiling.
10774
10775Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
10776
10777 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
10778 as a time optimization.
10779
10780 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
10781 be more expensive than simply demangling.
10782
10783 * cplus-dem.c (cplus_match): new function.
10784
10785Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
10786
10787 * cplus-dem.c: #include <stdio.h>, to define NULL.
10788 Define current_demangling_style.
10789
10790Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
10791
10792 * cplus-dem.c: New file, moved from ../gdb.
10793 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
10794 function, to avoid compiling in target-dependency for CPLUS_MARKER.
10795 * cplus-dem.c (cplus_demangle): Allow demangling style option
10796 to be passed as a parameter, but using the global variable
10797 current_demangling_style as a default.
10798 * Makefile.in: Update for cplus-dem.c
10799
10800Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
10801
10802 * obstack.c: Merge in comment changes from FSF version. Now
10803 matches the FSF version exactly.
10804
10805Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
10806
10807 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
10808 least on losing DECstations!); use if-then-else instead.
10809
10810Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
10811
10812 * Makefile.in: always create installation directories.
10813
10814Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10815
f33a23a0 10816 * Makefile.in: clean up definition of CFILES, more comments
6599da04
JM
10817
10818Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
10819
10820 * getopt.c (my_index): Make first arg const to match strchr,
10821 which it sometimes is remapped to.
10822
10823Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
10824
10825 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
10826 * obstack.c (_obstack_begin): Initialize use_extra_arg.
10827 * obstack.c (_obstack_begin_1): New, from FSF version.
10828
10829Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
10830
10831 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
10832 extra_arg.
10833 * obstack.c (_obstack_begin): Remove area_id and flags arguments
10834 (previously added for mmalloc support, interface has changed).
10835 Also convert flags usage to use use_extra_arg and maybe_empty_object.
10836
10837Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
10838
10839 * argv.c: Move expandargv inline and eliminate static variables.
10840 Rewrite to always allocate in powers of two. Fix to return an
10841 argv with a single null string arg if passed a null string.
10842
10843Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
10844
10845 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
10846 "(void)" casts from function calls where the return value is
10847 ignored, in accordance with GNU coding standards.
10848
10849Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
10850
10851 * bcopy.c, strerror.c, strsignal.c: Lint.
10852
10853Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10854
10855 * getopt.c: merge changes from make.
10856
10857Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
10858
10859 * alloca.c: Incorporate fixes from gdb/alloca.c.
10860 FIXME: Eventually move gdb's alloca configuration files here,
10861 and remove gdb/alloca.c and its Makefile.in support.
10862
10863Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
10864
10865 * dummy.c: Define NOTHING to /*nothing*/, change return type
10866 of main to int and return zero.
10867 * functions.def: Supply NOTHING as the fourth arg to macros
10868 that don't have an explicit arg, to satisfy picky preprocessors.
10869
10870Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
10871
10872 * Makefile.in: Clean up *clean rules, as per standards.texi.
10873
10874Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10875
10876 * getopt.c, getopt1.c: merged largely gratuitous, mostly
10877 whitespace diffs from other prep distributions.
10878
10879Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
10880
10881 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
10882 it is broken on ncr 3000's.
10883
10884Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
10885
10886 * sigsetmask.c: Rewrite. Old one was very confused about its
10887 arguments and result. New one can't do much, but at least knows
10888 what it can't do, and it's good enough for GDB's use.
10889
10890Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
10891
10892 * functions.def: Use proper prototype for strtoul.
10893
10894Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
10895
10896 * Makefile.in: Add random.c.
10897 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
10898 * configure.in: update solaris2 config.
10899
10900Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
10901
10902 * random.c: Add for random() and srandom().
10903 * functions.def: Add random
10904
10905Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
10906
10907 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
10908 using /usr/ucb/install.
10909
10910Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
10911
10912 * strerror.c: Kludge to guard against a conflict with
10913 possible declaration of sys_errlist in errno.h.
10914
10915Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
10916
10917 * configure.in, config/mh-solaris: add solaris2 config support.
10918
10919Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
10920
10921 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
10922 is not defined (should be defined in signal.h, says Posix.).
10923
10924Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
10925
10926 * getopt.c: merged changes from make-3.62.11.
10927
10928Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
10929
10930 * getopt.c: merged changes from bison-1.18.
10931
10932Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
10933
10934 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
10935 since that introduces a circular dependency.
10936 ($(EXTRA_OFILES) are used to build config.h.)
10937
10938 * strtoul.c: Fixes to handle non-decimal bases better.
10939
10940Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
10941
10942 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
10943 * Makefile.dos: Finish MINUS_G eradication.
10944 * Makefile.in (CFILES): Add strsignal.c.
10945 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
10946 * Makefile.in (needed-list): Split creation of errors file to
10947 separate make target.
10948 * Makefile.in (config.h, needed2.awk, errors): New targets.
10949 * Makefile.in (clean): Split to multiple lines, add needed2.awk
10950 and config.h.
10951 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
10952 * functions.def (strerror): Remove from optional list.
10953 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
10954 * functions.def (strerror, psignal): DEFFUNC's
10955 * strerror.c: Rewrite from scratch to use sys_errlist only if
10956 available, add errno_max(), add strerrno(), add strtoerrno(),
10957 add test driver.
10958 * strsignal.c: New file, signal equivalent to strerror.c.
10959 Uses sys_siglist if available, defines signo_max(), strsignal(),
10960 strsigno(), strtosigno(), psignal(), and test driver.
10961
10962Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
10963
10964 * Makefile.in: do not print recursion line.
10965
10966 * Makefile.in: allow CFLAGS to be passed in from command line.
10967 Removed MINUS_G. Default CFLAGS to -g.
10968
10969Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
10970
10971 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
10972 so libg++ users don't have to be inconvenienced by a
10973 libc.a bug (libc.a needs copysign, but doesn't define it!).
10974 * configure.in: Use config/mh-aix.
10975 * strtoul.c: Handle '-' as required by ANSI.
10976 Clean up radix handling.
10977 * strstr.c: Fix buggy algorithm.
10978 * Makefile.in: Change so that ${EXTRA_OFILES} is
10979 appended to needed-list (which is used by libg++).
10980
10981Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
10982
10983 * configure.in: Recognize new ncr3000 config.
10984 * config/mh-ncr3000: New config file.
10985
10986Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
10987
10988 * argv.c, dummy.c: Lint.
10989
10990Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
10991
10992 * config/mh-sysv4: New config file.
10993 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
10994 host_os == sysv4.
10995 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
10996 pagesize.
10997
10998Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
10999
11000 * getopt.c: Lint.
11001
11002Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
11003
11004 * functions.def (alloca): Fix return type and args to avoid
11005 type clash with gcc's builtin alloca.
11006
11007Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
11008
11009 * configure.in, config/mh-irix4: irix4 support.
11010
11011 * Makefile.in, functions.def, alloca.c: added alloca.
11012
11013Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
11014
11015 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
11016
11017Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
11018
11019 * argv.c: Fix various external function definitions to be
11020 correct in an ANSI compilation environment.
11021
11022Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
11023
11024 * obstack.c: Changes to support calling mmalloc functions,
11025 which take an additional argument over malloc functions.
11026
11027Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
11028
11029 * added check target.
11030
11031Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
11032
11033 * argv.c: #include alloca-conf.h (needed by AIX).
11034
11035Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
11036
11037 * Makefile.in, configure.in: removed traces of namesubdir,
11038 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11039 copyrights to '92, changed some from Cygnus to FSF.
11040
11041Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
11042
11043 * argv.c: Check in Fred's version which fixes problems with
11044 alloca().
11045
11046Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
11047
11048 * makefile.dos: Remove NUL to keep patch from failing.
11049
11050Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
11051
11052 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
11053
11054Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
11055
c4b9cfe0 11056 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
6599da04
JM
11057
11058Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
11059
11060 * argv.c: New file to build and destroy standard argument
11061 vectors from a command string.
11062
11063 * Makefile.in: Add argv.c and argv.o to appropriate macros.
11064
11065Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
11066
11067 * configure.in: Change svr4 references to sysv4.
11068
11069 * rindex.c: Declare return type of externally used function
11070 strrchr().
11071
11072Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
11073
11074 * Makefile.in: Remove "***" in normal output, since Make produces
11075 this on errors, and it's convenient to search for.
11076
11077Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
11078
11079 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
11080 New ANSI functions. The old non-ANSI functions (such as bcopy)
11081 should be avoided.
11082 * bcopy.c: Fix to correctly handle overlapping regions.
11083 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
11084 * functions.def: Add the new functions.
11085 * functions.def: Add 4th parameter to DEF macro,
11086 an ansidecl.h-style prototype.
11087 * dummy.c: Use expanded DEF macro to create a dummy function
11088 call, with correct parameter types. (This avoids some
11089 complaints from gcc about predefined builtins.)
11090
11091 Move the functionality of config/mh-default into Makefile.in.
11092 This avoid duplication, and simplifies things slightly.
11093 * Makefile.in: Tweak so we don't need config/mh-default.
11094 * README: Update.
11095 * configure.in: No longer need config/mh-default.
11096 * config/mh-default: Deleted.
11097 * config/mh-sysv: Remove lines copied from old mh-default.
11098
11099Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
11100
11101 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
11102 'mknod' device numbers.
11103
11104Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
11105
11106 * fdmatch.c, Makefile.in: Add new function that takes two
11107 open file descriptors and returns nonzero if they refer to
11108 the same file, zero otherwise. (used in gdb)
11109
11110Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11111 From DJ:
11112 * msdos.c: stub functions for dos.
11113 * makefile.dos, configdj.bat: new.
11114 * getopt.c: Don't include alloca-conf.h in a GO32 world.
38beb75c 11115
6599da04
JM
11116
11117Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11118
11119 * Makefile.in: infodir belongs in datadir.
11120
11121Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11122
11123 * Makefile.in: remove spaces following hyphens because bsd make
11124 can't cope. added standards.text support. install using
11125 INSTALL_DATA.
11126
11127 * configure.in: remove commontargets as it is no longer a
11128 recognized hook.
11129
11130Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11131
11132 * Makefile.in: idestdir and ddestdir go away. Added copyrights
11133 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11134 and mandir now keyed off datadir by default.
11135
11136Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
11137
11138 * Makefile.in: find-needed.awk does not fit in 14 chars.
11139
11140 * Makefile.in: Suppress error checking when compiling the test
11141 program, because Ultrix make/sh aborts there due to a bug.
11142
11143Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
11144
11145 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
11146 * README: Explained how the auto-configuration works,
11147 and how to add new files and/or configurations.
11148
11149Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
11150
11151 * strtoul.c: Avoid defining ULONG_MAX if already defined;
11152 cast a const char * to char * for pedants.
11153
11154 * getopt.c: Only define "const" after local include files get to,
11155 and only if they haven't defined it.
11156
11157Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
11158
11159 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
11160 emulate it with getwd() if available. This avoids callers having
11161 to find a MAXPATHLEN or PATH_MAX value from somewhere.
11162 * Makefile.in, functions.def: getwd->getcwd.
11163 * configure.in: Use generic case for every system.
11164 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
11165 * config/mh-sysv: Use default handling, just add -DUSG.
11166
11167Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
11168
11169 * Makefile.in, config/mh-default: Re-do make magic
11170 so that for the default ("automatic") mode we only
11171 compile the files we actually need. Do this using
11172 a recursive make: The top-level generates the list
11173 of needed files (loosely, the ones missing in libc),
11174 and then passes that list to the recursive make.
11175 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
11176
11177Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
11178
11179 RS/6000 host support (grumble).
11180
11181 * configure.in: Build alloca-conf.h file from alloca-norm.h
11182 (everything else) or alloca-botch.h (rs/6000).
11183 * Makefile.in: Include . on the include path.
11184 * getopt.c: Use alloca-conf.h.
11185 * alloca-norm.h: How to declare alloca on reasonable machines.
11186 * alloca-botch.h: How to declare alloca on braindead machines.
11187
11188Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
11189
11190 * concat.c : New file, like concat() in gdb but can take a
11191 variable number of arguments rather than fixed at 3 args. For
11192 now, client applications must supply an xmalloc(), which is a
11193 front end function to malloc() that deals with out-of-memory
11194 conditions.
11195
11196 * Makefile.in: Add concat.c and concat.o to appropriate macros.
11197
11198Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
11199
11200 * config/mh-svr4: Add sigsetmask to list of required functions.
11201
11202Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
11203
11204 * vsprintf.c: New file.
11205 * functions.def, Makefile.in: Add vsprintf.
11206
11207Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
11208
11209 * configure.in, config/mh-rs6000: Add rs/6000 host support.
11210 * Makefile.in: Compile with debug info.
11211
11212Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
11213
11214 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11215 config/mf-default: Added a default configuration mode,
11216 which includes into libiberty.a functions that are "missing" in libc.
11217 * strdup.c, vprintf.c, vfprintf.c: New files.
11218
11219Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
11220
11221 * config/hmake-svr4: New file.
11222
11223 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11224
11225 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11226 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11227 files containing either portable C versions or emulations using
11228 native library calls.
11229
11230 * strerror.c: Add copyright, internal documentation, etc.
11231
11232 * strtol.c: Replace hardwired hex constants with some more
11233 portable macros. Remove illegal (according to gcc) cast.
11234
11235 * strtoul.c: Replace hardwired hex constant with more portable
11236 macro.
11237
11238 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11239 can override them. Add new source and object file names to CFILES
11240 and OFILES respectively.
11241
11242 * configure.in: Add support for SVR4 makefile fragments.
11243
11244Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
11245
11246 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11247 over-ridden by config/hmake-*
11248 * configure.in: added m88kcvs to sysv list
11249
11250Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
11251
11252 * Makefile.in: Most hosts need strerror, but one or two don't,
11253 and they override these definitions in the host-dependent makefile
11254 fragment.
11255 * config/hmake-mach: The odd man out on strerror -- it's supplied.
11256 * strerror.c: New file.
11257
11258 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
11259 it and bfd uses it.
11260 * configure.in, Makefile.in, config/hmake-mach: Only configure
11261 strtol & strotoul in on Mach.
11262
11263Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
11264
11265 * obstack.c: Merge with latest FSF version.
11266
11267\f
11268Local Variables:
11269version-control: never
11270End: