]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
c++: Fix a typo in function name
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
eefbfbc7
GA
12022-11-13 Martin Liska <mliska@suse.cz>
2
3 PR other/107620
4 * configure: Regenerate.
5 * configure.ac: Always set sphinx-build.
6
f225b813
GA
72022-11-10 Martin Liska <mliska@suse.cz>
8
9 * doc/conf.py: Add newline at last line.
10
1cdfd0e5
GA
112022-11-09 Martin Liska <mliska@suse.cz>
12
13 * doc/bsd.rst:
14 Add trailing newline.
15 * doc/copyright.rst:
16 Add trailing newline.
17 * doc/extensions.rst:
18 Add trailing newline.
19 * doc/function-variable-and-macro-listing.rst:
20 Add trailing newline.
21 * doc/index.rst:
22 Add trailing newline.
23 * doc/indices-and-tables.rst:
24 Add trailing newline.
25 * doc/introduction.rst:
26 Add trailing newline.
27 * doc/lesser-general-public-license-2.1.rst:
28 Add trailing newline.
29 * doc/overview.rst:
30 Add trailing newline.
31 * doc/replacement-functions.rst:
32 Add trailing newline.
33 * doc/supplemental-functions.rst:
34 Add trailing newline.
35 * doc/using.rst:
36 Add trailing newline.
37
382022-11-09 Martin Liska <mliska@suse.cz>
39
40 * Makefile.in: Support --with-sphinx-build.
41 * configure.ac: Likewise.
42 * configure: Regenerate.
43
442022-11-09 Martin Liska <mliska@suse.cz>
45
46 * at-file.texi: Removed.
47 * copying-lib.texi: Removed.
48 * functions.texi: Removed.
49 * libiberty.texi: Removed.
50 * obstacks.texi: Removed.
51
522022-11-09 Martin Liska <mliska@suse.cz>
53
54 * Makefile.in: Support Sphinx based documentation.
55
562022-11-09 Martin Liska <mliska@suse.cz>
57
58 * doc/bsd.rst: New file.
59 * doc/conf.py: New file.
60 * doc/copyright.rst: New file.
61 * doc/extensions.rst: New file.
62 * doc/function-variable-and-macro-listing.rst: New file.
63 * doc/index.rst: New file.
64 * doc/indices-and-tables.rst: New file.
65 * doc/introduction.rst: New file.
66 * doc/lesser-general-public-license-2.1.rst: New file.
67 * doc/overview.rst: New file.
68 * doc/replacement-functions.rst: New file.
69 * doc/supplemental-functions.rst: New file.
70 * doc/using.rst: New file.
71
21de009f
GA
722022-10-18 Florian Weimer <fweimer@redhat.com>
73
74 * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
75 int return type and parameter list to the definition of main.
76 Include <stdlib.h> and <string.h> for prototypes.
77 (ac_cv_c_stack_direction): Add missing
78 int return type and parameter list to the definitions of
79 main, find_stack_direction. Include <stdlib.h> for exit
80 prototype.
81 * configure: Regenerate.
82
baeec7cc
GA
832022-10-14 Jakub Jelinek <jakub@redhat.com>
84
85 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
86 * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
87 entry.
88 (cplus_demangle_type): Demangle DF16b.
89 * testsuite/demangle-expected (_Z3xxxDF16b): New test.
90
ab332cd7
GA
912022-10-11 Nathan Sidwell <nathan@acm.org>
92
93 * cp-demangle.c (d_prefix): 'M' components are not
94 (re-)added to the substitution table.
95 * testsuite/demangle-expected: Add tests.
96
9ff6c33e
GA
972022-10-07 Nathan Sidwell <nathan@acm.org>
98
99 * cp-demangle.c (d_print_comp_inner): Allow parameter packs
100 in a lambda signature.
101 * testsuite/demangle-expected: Add tests.
102
1f16a020
GA
1032022-09-27 Jakub Jelinek <jakub@redhat.com>
104
105 PR c++/106652
106 PR c++/85518
107 * cp-demangle.c (d_dump): Handle
108 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Don't handle
109 DEMANGLE_COMPONENT_FIXED_TYPE.
110 (d_make_extended_builtin_type): New function.
111 (cplus_demangle_builtin_types): Add _Float entry.
112 (cplus_demangle_type): For DF demangle it as _Float<N> or
113 _Float<N>x rather than fixed point which conflicts with it.
114 (d_count_templates_scopes): Handle
115 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Just break; for
116 DEMANGLE_COMPONENT_FIXED_TYPE.
117 (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
118 Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
119 (d_print_comp_inner): Likewise.
120 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
121 * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
122 with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb. Add
123 _Z3xxxDF32xDF64xDF128xCDF32xVb test.
124
279c6715
GA
1252022-09-22 Jonathan Wakely <jwakely@redhat.com>
126
127 * README: Replace gcc-bugs email address with Bugzilla URL.
128
5d4389dc
GA
1292022-08-25 Martin Liska <mliska@suse.cz>
130
131 * configure: Regenerate.
132
b563a8dd
GA
1332022-07-22 Martin Liska <mliska@suse.cz>
134
135 PR other/106370
136 * _doprnt.c: Remove continue as last stmt
137 in a loop.
138
e0e07bc7
GA
1392022-07-14 Martin Liska <mliska@suse.cz>
140
141 * functions.texi: Replace strtoul with strtoull.
142
8467574d
GA
1432022-07-04 Nick Clifton <nickc@redhat.com>
144
145 * rust-demangle.c (demangle_const): Add a missing goto pass_return
146 at the end of the function.
147
1482022-07-04 Nick Clifton <nickc@redhat.com>
149
150 * rust-demangle.c (demangle_path_maybe_open_generics): Add
151 recursion limit.
152
ed974488
GA
1532022-07-01 Nick Clifton <nickc@redhat.com>
154
155 PR demangler/105039
156 * rust-demangle.c (demangle_const): Add recursion limit.
157
b2b72757
GA
1582022-06-26 Simon Marchi <simon.marchi@efficios.com>
159
160 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
161 * configure: Re-generate.
162
168fc8bd
GA
1632022-05-23 Nathan Sidwell <nathan@acm.org>
164
165 * cp-demangle.c (d_make_comp): Adjust.
166 (d_name, d_prefix): Adjust subst handling. Add module handling.
167 (d_maybe_module_name): New.
168 (d_unqualified_name): Add incoming module parm. Handle it. Adjust all callers.
169 (d_special_name): Add 'GI' support.
170 (d_count_template_scopes): Adjust.
171 (d_print_comp_inner): Print module.
172 * testsuite/demangle-expected: New test cases
173
1cda629f
GA
1742022-05-18 Nathan Sidwell <nathan@acm.org>
175
176 * cp-demangle.c (d_name): Add SUBSTABLE parameter,
177 push substitution if requested. Adjust unscoped name handling.
178 (d_prefix): Reorder main loop. Adjust all calls.
179 (d_unqualified_name): Add SCOPE parameter, create qualified
180 name here. Adjust all calls.
181 (cplus_demangle_type): Do not handle 'S' here, leave all
182 to d_class_enum_type.
183 (d_class_enum_type): Add SUBSTABLE parameter.
184
3d9439b1
GA
1852022-05-17 Nathan Sidwell <nathan@acm.org>
186
187 * cp-demangle.c (d_make_comp): Adjust.
188 (d_unqualified_name): Add 'DC' support.
189 (d_count_template_scopes): Adjust.
190 (d_print_comp_inner): Add structured binding.
191 * testsuite/demangle-expected: Add testcases.
192
e8778989
GA
1932022-05-10 Martin Liska <mliska@suse.cz>
194
195 * regex.c: Restore comments.
196
1972022-05-10 Martin Liska <mliska@suse.cz>
198 Alan Modra <amodra@gmail.com>
199
200 * hashtab.c (htab_empty): Use void * type instead of void **.
201 (htab_expand): Likewise.
202
2032022-05-10 Martin Liska <mliska@suse.cz>
204
205 * random.c: Remove 'define PTR'.
206
2072022-05-10 Martin Liska <mliska@suse.cz>
208
209 * alloca.c (C_alloca): Use void * instead PTR.
210 * calloc.c (malloc): Likewise.
211 (bzero): Likewise.
212 (calloc): Likewise.
213 * hashtab.c (find_empty_slot_for_expand): Likewise.
214 (eq_pointer): Likewise.
215 (htab_create_alloc_ex): Likewise.
216 (htab_create_typed_alloc): Likewise.
217 (htab_set_functions_ex): Likewise.
218 (htab_delete): Likewise.
219 (htab_empty): Likewise.
220 (htab_expand): Likewise.
221 (htab_find_with_hash): Likewise.
222 (htab_find): Likewise.
223 (htab_find_slot_with_hash): Likewise.
224 (htab_find_slot): Likewise.
225 (htab_remove_elt): Likewise.
226 (htab_remove_elt_with_hash): Likewise.
227 (htab_clear_slot): Likewise.
228 (htab_traverse_noresize): Likewise.
229 (htab_traverse): Likewise.
230 (htab_hash_string): Likewise.
231 (iterative_hash): Likewise.
232 (hash_pointer): Likewise.
233 * memchr.c (memchr): Likewise.
234 * memcmp.c (memcmp): Likewise.
235 * memcpy.c (memcpy): Likewise.
236 * memmove.c (memmove): Likewise.
237 * mempcpy.c (memcpy): Likewise.
238 (mempcpy): Likewise.
239 * memset.c (memset): Likewise.
240 * objalloc.c (malloc): Likewise.
241 (free): Likewise.
242 (objalloc_create): Likewise.
243 (_objalloc_alloc): Likewise.
244 (objalloc_free_block): Likewise.
245 * random.c (PTR): Likewise.
246 (void): Likewise.
247 (initstate): Likewise.
248 (setstate): Likewise.
249 * regex.c: Likewise.
250 * spaces.c (malloc): Likewise.
251 (free): Likewise.
252 * stpcpy.c (memcpy): Likewise.
253 * strdup.c (malloc): Likewise.
254 (memcpy): Likewise.
255 * strerror.c (malloc): Likewise.
256 (memset): Likewise.
257 * strndup.c (malloc): Likewise.
258 (memcpy): Likewise.
259 * strsignal.c (malloc): Likewise.
260 (memset): Likewise.
261 * vasprintf.c (malloc): Likewise.
262 * vprintf-support.c: Likewise.
263 * xatexit.c (malloc): Likewise.
264 * xmalloc.c (xmalloc): Likewise.
265 (xcalloc): Likewise.
266 (xrealloc): Likewise.
267 * xmemdup.c (xmemdup): Likewise.
268
d7f00da1
GA
2692022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
270
271 * floatformat.c (floatformat_ieee_quad_big): Renamed from
272 floatformat_ia64_quad_big.
273 (floatformat_ieee_quad_little): Similarly.
274
2cfb33fc
GA
2752022-02-22 Jakub Jelinek <jakub@redhat.com>
276
277 PR lto/104617
278 * simple-object-elf.c (simple_object_elf_match): Fix up URL
279 in comment.
280 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
281 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
282 range (inclusive).
283
0bdb0498
GA
2842022-02-17 Mark Wielaard <mark@klomp.org>
285
286 * rust-demangle.c (rust_demangle_callback): Ignore everything
287 after '.' char in sym for v0. For legacy symbols search
288 backwards to find the last 'E' before any '.'.
289 * testsuite/rust-demangle-expected: Add new .suffix testcases.
290
1bb52662
GA
2912022-01-31 Nick Clifton <nickc@redhat.com>
292
293 PR demangler/98886
294 PR demangler/99935
295 * rust-demangle.c (struct rust_demangler): Add a recursion
296 counter.
297 (demangle_path): Increment/decrement the recursion counter upon
298 entry and exit. Fail if the counter exceeds a fixed limit.
299 (demangle_type): Likewise.
300 (rust_demangle_callback): Initialise the recursion counter,
301 disabling if requested by the option flags.
302
9248ee41
GA
3032022-01-15 Martin Sebor <msebor@redhat.com>
304
305 * regex.c: Suppress -Wuse-after-free.
306
84790a9d
GA
3072021-12-30 Lancelot SIX <lsix@lancelotsix.com>
308
309 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
310 names.
311 * testsuite/demangle-expected: Check demangling of clone symbols
312 with digits in name.
313
774269aa
GA
3142021-12-16 H.J. Lu <hjl.tools@gmail.com>
315
316 Revert:
317 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
318
319 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
320 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
321 (configure_deps): Depend on ../config/gcc-plugin.m4.
322 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
323 RANLIB_PLUGIN_OPTION.
324 * aclocal.m4: Regenerated.
325 * configure: Likewise.
326
8a89c39b
GA
3272021-12-15 H.J. Lu <hjl.tools@gmail.com>
328
329 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
330 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
331 (configure_deps): Depend on ../config/gcc-plugin.m4.
332 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
333 RANLIB_PLUGIN_OPTION.
334 * aclocal.m4: Regenerated.
335 * configure: Likewise.
336
87cd82c8
GA
3372021-11-29 Eric Gallager <egallager@gcc.gnu.org>
338
339 PR other/103021
340 * Makefile.in: Use ETAGS variable in TAGS target.
341 * configure: Regenerate.
342 * configure.ac: Allow ETAGS variable to be overridden.
343
3442021-11-29 Andrew Pinski <apinski@marvell.com>
345
346 * make-temp-file.c (try_dir): Check to see if the dir
347 is actually a directory.
348
c2bd5d8a
GA
3492021-10-22 Eric Gallager <egallager@gcc.gnu.org>
350
351 PR other/102663
352 * Makefile.in: Allow dvi-formatted documentation
353 to be installed.
354
f5b37435
GA
3552021-10-17 Luís Ferreira <contact@lsferreira.net>
356
357 PR d/102618
358 * d-demangle.c (dlang_parse_qualified): Handle anonymous
359 symbols correctly.
360 * testsuite/d-demangle-expected: New tests to cover anonymous
361 symbols.
362
5d5885c9
GA
3632021-10-14 Luís Ferreira <contact@lsferreira.net>
364
365 * testsuite/d-demangle-expected: Add test case for function literals.
366
3672021-10-14 Luís Ferreira <contact@lsferreira.net>
368
369 * testsuite/d-demangle-expected: Add test cases for simple special
370 mangles.
371
52055987
GA
3722021-10-12 Luís Ferreira <contact@lsferreira.net>
373
374 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
375 around lhs and rhs of assignments.
376
9d116bcc
GA
3772021-10-01 Luís Ferreira <contact@lsferreira.net>
378
379 * testsuite/d-demangle-expected: Add missing format for new test
380
391b23e0
GA
3812021-09-23 Luís Ferreira <contact@lsferreira.net>
382
383 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
384 * testsuite/d-demangle-expected: New test.
385
3862021-09-23 Luís Ferreira <contact@lsferreira.net>
387
388 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
389 string is less than length computed by dlang_number.
390
e11c6046
GA
3912021-09-01 Iain Sandoe <iain@sandoe.co.uk>
392
393 * configure: Regenerate.
394 * configure.ac: Do not search for sbrk on Darwin.
395 * xmalloc.c: Do not declare sbrk unless it has been found
396 by configure.
397
1e77fd4f
GA
3982021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
399
400 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
401 * testsuite/d-demangle-expected: Add tests.
402
4032021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
404
405 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
406 (dlang_parse_assocarray): Likewise.
407 (dlang_parse_structlit): Likewise.
408 (dlang_value): Likewise. Handle function literal symbols.
409 (dlang_template_args): Pass 'info' to dlang_value.
410 * testsuite/d-demangle-expected: Add new test.
411
4122021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
413
414 * d-demangle.c (dlang_attributes): Handle typeof(*null).
415 (dlang_type): Likewise. Demangle 'n' as typeof(null).
416 * testsuite/d-demangle-expected: Update tests.
417
38b19c5b
GA
4182021-08-23 Iain Sandoe <iain@sandoe.co.uk>
419
420 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
421 Cast the first argument to set_32 as needed.
422
6e529985
GA
4232021-08-18 Iain Sandoe <iain@sandoe.co.uk>
424
425 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
426 Arrange to swap the LTO index tables where needed.
427
25b6bfea
GA
4282021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
429
430 * make-temp-file.c (usrtmp): Remove.
431 (choose_tmpdir): Remove use of usrtmp.
432
c8abc205
GA
4332021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
434
435 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
436
4372021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
438 David Faust <david.faust@oracle.com>
439 Jose E. Marchesi <jose.marchesi@oracle.com>
440 Weimin Pan <weimin.pan@oracle.com>
441
442 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
443 sections.
444
28c62475
GA
4452021-06-05 John David Anglin <danglin@gcc.gnu.org>
446
447 PR target/100734
448 * configure.ac: Use libiberty snprintf and vsnprintf on
449 hppa*-*-hpux*.
450 * configure: Regenerate.
451
cfe82a0c
GA
4522021-05-06 Tom Tromey <tom@tromey.com>
453
454 * hashtab.c (htab_eq_string): New function.
455
99e8df7a
GA
4562021-05-04 Eric Botcazou <ebotcazou@adacore.com>
457
458 * configure.ac: Make test for variables more robust.
459 * configure: Regenerate.
460
e690396d
GA
4612021-05-03 H.J. Lu <hjl.tools@gmail.com>
462
463 PR bootstrap/99703
464 * configure: Regenerated.
465
c1ef0c92
GA
4662021-04-21 Andreas Schwab <schwab@linux-m68k.org>
467
468 PR demangler/100177
469 * rust-demangle.c (demangle_const_char): Properly print the
470 character value.
471
95d217ab
GA
4722021-03-31 Patrick Palka <ppalka@redhat.com>
473
474 PR c++/88115
475 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
476 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
477 (d_print_comp_inner): Likewise.
478 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
479 change.
480 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
481 * testsuite/demangle-expected: Adjust __alignof__ tests.
482
bc212776
GA
4832021-03-16 Nick Clifton <nickc@redhat.com>
484
485 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
486
b2a55caf
GA
4872021-02-20 Mike Frysinger <vapier@gentoo.org>
488
489 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
490 (configure_deps): Rename to ...
491 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
492 ($(srcdir)/configure): Replace $(configure_deps) with
493 $(srcdir)/aclocal.m4.
494 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
495 * acinclude.m4: New file.
496 * configure: Regenerate.
497
50352c6c
GA
4982021-02-19 Ayush Mittal <ayush.m@samsung.com>
499
500 * argv.c (expandargv): free allocated buffer if read fails.
501
f7884fb1
GA
5022021-02-01 Martin Sebor <msebor@redhat.com>
503
504 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
505 to avoid -Wstringop-truncation.
506
7e73f511
GA
5072021-01-04 Martin Liska <mliska@suse.cz>
508
509 * strverscmp.c: Convert to utf8 from iso8859.
510
077fefbf
GA
5112020-12-22 Jason Merrill <jason@redhat.com>
512
513 PR c++/67343
514 * cp-demangle.h (struct d_info): Add unresolved_name_state.
515 * cp-demangle.c (d_prefix): Add subst parm.
516 (d_nested_name): Pass it.
517 (d_unresolved_name): Split out from...
518 (d_expression_1): ...here.
519 (d_demangle_callback): Maybe retry with old sr mangling.
520 * testsuite/demangle-expected: Add test.
521
1a5e728a
GA
5222020-12-21 Jason Merrill <jason@redhat.com>
523
524 * cp-demangle.c (d_expression_1): Recognize qualified-id
525 on RHS of dt/pt.
526 * testsuite/demangle-expected: Add test.
527
5282020-12-21 Jason Merrill <jason@redhat.com>
529
530 * cp-demangle.c (d_unqualified_name): Clear is_expression.
531 * testsuite/demangle-expected: Add tests.
532
360258da
GA
5332020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
534
535 * configure: Regenerate.
536 * configure.ac: Avoid using sanitizer.
537
77f67db2
GA
5382020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
539
540 * rust-demangle.c (struct rust_demangler): Add
541 skipping_printing and bound_lifetime_depth fields.
542 (eat): Add (v0-only).
543 (parse_integer_62): Add (v0-only).
544 (parse_opt_integer_62): Add (v0-only).
545 (parse_disambiguator): Add (v0-only).
546 (struct rust_mangled_ident): Add punycode{,_len} fields.
547 (parse_ident): Support v0 identifiers.
548 (print_str): Respect skipping_printing.
549 (print_uint64): Add (v0-only).
550 (print_uint64_hex): Add (v0-only).
551 (print_ident): Respect skipping_printing,
552 Support v0 identifiers.
553 (print_lifetime_from_index): Add (v0-only).
554 (demangle_binder): Add (v0-only).
555 (demangle_path): Add (v0-only).
556 (demangle_generic_arg): Add (v0-only).
557 (demangle_type): Add (v0-only).
558 (demangle_path_maybe_open_generics): Add (v0-only).
559 (demangle_dyn_trait): Add (v0-only).
560 (demangle_const): Add (v0-only).
561 (demangle_const_uint): Add (v0-only).
562 (basic_type): Add (v0-only).
563 (rust_demangle_callback): Support v0 symbols.
564 * testsuite/rust-demangle-expected: Add v0 testcases.
565
5662020-11-13 Seija Kijin <doremylover456@gmail.com>
567
568 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
569
0f5f9ed5
GA
5702020-11-11 Patrick Palka <ppalka@redhat.com>
571
572 PR c++/88115
573 * cp-demangle.c (d_print_comp_inner)
574 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
575 "operator " prefix for __alignof__.
576 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
577 operand of __alignof__.
578 * testsuite/demangle-expected: Test demangling for __alignof__.
579
2bee28dd
GA
5802020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
581
582 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
583
8e97b905
GA
5842020-10-06 Martin Liska <mliska@suse.cz>
585
586 PR lto/97290
587 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
588 Use sh_link of a .symtab_shndx section.
589
a2b7397b
GA
5902020-09-24 Mark Wielaard <mark@klomp.org>
591
592 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
593 and DW_UT_END.
594
31a05046
GA
5952020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
596
597 * floatformat.c (floatformat_bfloat16_big): New.
598 (floatformat_bfloat16_little): New.
599
6002020-09-08 Alan Modra <amodra@gmail.com>
601
602 * d-demangle.c: Include limits.h.
603 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
604 (dlang_number): Simplify and correct overflow test. Only
605 write *ret on returning non-NULL. Make "ret" an unsigned long*.
606 Only succeed for result of [0,UINT_MAX].
607 (dlang_decode_backref): Simplify and correct overflow test.
608 Only write *ret on returning non-NULL. Only succeed for
609 result [1,MAX_LONG].
610 (dlang_backref): Remove now unnecessary range check.
611 (dlang_symbol_name_p): Likewise.
612 (string_need): Take a size_t n arg, and use size_t tem.
613 (string_append): Use size_t n.
614 (string_appendn, string_prependn): Take a size_t n arg.
615 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
616 (dlang_lname, dlang_parse_template): Take an unsigned long len
617 arg.
618 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
619 (dlang_parse_integer, dlang_parse_string),
620 (dlang_parse_arrayliteral, dlang_parse_assocarray),
621 (dlang_parse_structlit, dlang_parse_tuple),
622 (dlang_template_symbol_param, dlang_template_args): Use
623 unsigned long variables.
624 * testsuite/d-demangle-expected: Add new tests.
625
57ea0894
GA
6262020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
627
628 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
629 parameter storage classes.
630 (dlang_type): Remove identifier type.
631 * testsuite/d-demangle-expected: Update tests.
632
6a1ad710
GA
6332020-08-03 Richard Biener <rguenther@suse.de>
634
635 PR lto/96385
636 * simple-object-elf.c
637 (simple_object_elf_copy_lto_debug_sections): Localize global
638 UNDEFs and reuse the prevailing name.
639
d48cca8f
GA
6402020-07-30 H.J. Lu <hjl.tools@gmail.com>
641
642 PR bootstrap/96202
643 * configure: Regenerated.
644
8ca07a30
GA
6452020-07-14 Ian Lance Taylor <iant@golang.org>
646
647 PR demangler/96143
648 * cp-demangle.c (d_lambda): Don't add substitution candidate.
649 * testsuite/demangle-expected: Update a few existing test cases
650 accordingly, and add a new test case.
651
86536295
GA
6522020-07-10 Jason Merrill <jason@redhat.com>
653
654 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
655 (d_expression_1): Handle di and dX.
656 (is_designated_init, d_maybe_print_designated_init): New.
657 (d_print_comp_inner): Use d_maybe_print_designated_init.
658 * testsuite/demangle-expected: Add designator tests.
659
c9c05f73
GA
6602020-06-26 Nick Clifton <nickc@redhat.com>
661
662 * bsearch.c (bsearch): Remove use of register keyword.
663 * bsearch_r.c (bsearch_r): Likewise.
664
4543acc8
GA
6652020-06-23 Nick Alcock <nick.alcock@oracle.com>
666
667 * bsearch_r.c: New file.
668 * Makefile.in (CFILES): Add bsearch_r.c.
669 (REQUIRED_OFILES): Add bsearch_r.o.
670 * functions.texi: Regenerate.
671
885ef72f
GA
6722020-05-29 H.J. Lu <hjl.tools@gmail.com>
673
674 PR bootstrap/95413
675 * configure: Regenerated.
676
3a55774f
IB
6772020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
678
679 * d-demangle.c (dlang_attributes): Add @live attribute.
680 * testsuite/d-demangle-expected: Add new tests.
681
3f30a274
IB
6822020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
683 Iain Buclaw <ibuclaw@gdcproject.org>
684
685 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
686 (struct dlang_info): New struct
687 (dlang_decode_backref): New function.
688 (dlang_backref): New function.
689 (dlang_symbol_backref): New function.
690 (dlang_type_backref): New function.
691 (dlang_symbol_name_p): New function.
692 (dlang_function_type_noreturn): New function.
693 (dlang_function_type): Add 'info' parameter. Decode function type
694 with dlang_function_type_noreturn.
695 (dlang_function_args): Add 'info' parameter.
696 (dlang_type): Add 'info' parameter. Handle back referenced types.
697 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
698 referenced symbols. Split off decoding of plain identifiers to...
699 (dlang_lname): ...here.
700 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
701 function type and return with dlang_type.
702 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
703 'suffix_modifier' parameter. Decode function type with
704 dlang_function_type_noreturn.
705 (dlang_parse_tuple): Add 'info' parameter.
706 (dlang_template_symbol_param): New function.
707 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
708 with dlang_template_symbol_param. Handle back referenced values, and
709 externally mangled parameters.
710 (dlang_parse_template): Add 'info' parameter.
711 (dlang_demangle_init_info): New function.
712 (dlang_demangle): Initialize and pass 'info' parameter.
713 * testsuite/d-demangle-expected: Add new tests.
714
d17cdc17
L
7152020-05-12 H.J. Lu <hongjiu.lu@intel.com>
716
717 PR bootstrap/94998
718 * configure: Regenerated.
719
eedc73a2
L
7202020-04-28 H.J. Lu <hongjiu.lu@intel.com>
721
722 PR bootstrap/94739
723 * configure: Regenerated.
724
76458c91
JJ
7252020-04-27 Jakub Jelinek <jakub@redhat.com>
726
727 PR demangler/94797
728 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
729 * testsuite/demangle-expected: Add operator<=> test.
730
8fc8bf80
L
7312020-04-25 H.J. Lu <hongjiu.lu@intel.com>
732
733 PR bootstrap/94739
734 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
735 (configure_deps): Add $(srcdir)/../config/cet.m4 and
736 $(srcdir)/../config/enable.m4.
737 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
738 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
739 AC_SUBST(CET_HOST_FLAGS).
740 * configure: Regenerated.
741
c9f90a25
RB
7422020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
743
744 * simple-object.c (handle_lto_debug_sections): Name
745 ".GCC.command.line" among debug sections to be copied over
746 from lto objects.
747
3bb6abbf
NC
7482020-03-02 Nick Clifton <nickc@redhat.com>
749
750 * testsuite/demangle-expected: Update expected demangling of
751 enable_if pattern.
752
57735060
L
7532020-03-02 H.J. Lu <hongjiu.lu@intel.com>
754
755 PR lto/93966
756 * simple-object.c (handle_lto_debug_sections): Also copy
757 .note.gnu.property section.
758
02ce382c
SL
7592020-02-12 Sandra Loosemore <sandra@codesourcery.com>
760
761 PR libstdc++/79193
762 PR libstdc++/88999
763
764 * configure: Regenerated.
765
5f44a434
AB
7662020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
767
768 * hashtab.c (htab_remove_elt): Make a parameter const.
769 (htab_remove_elt_with_hash): Likewise.
770
18193e8f
AO
7712020-01-23 Alexandre Oliva <oliva@adacore.com>
772
773 * argv.c (writeargv): Output empty args as "".
774
8d9254fc
JJ
7752020-01-01 Jakub Jelinek <jakub@redhat.com>
776
777 Update copyright years.
778
1cd4fe3d
TR
7792019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
780
781 * make-relative-prefix.c (split_directories):
782 Return early on empty 'name'
783
513e0aa0
JL
7842019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
785
786 * cp-demangle.c (d_print_init): Remove const from 4th param.
787 (cplus_demangle_fill_name): Initialize d->d_counting.
788 (cplus_demangle_fill_extended_operator): Likewise.
789 (cplus_demangle_fill_ctor): Likewise.
790 (cplus_demangle_fill_dtor): Likewise.
791 (d_make_empty): Likewise.
792 (d_count_templates_scopes): Remobe const from 3rd param,
793 Return on dc->d_counting > 1,
794 Increment dc->d_counting.
795 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
796 (cplus_demangle_fill_builtin_type): Likewise.
797 (cplus_demangle_fill_operator): Likewise.
798
7992019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
32fc3719
EMB
800
801 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
802 (rust_demangle): Remove.
803 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
804 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
805 (parse_legacy_escape): Rename to decode_legacy_escape.
806 (rust_is_mangled): Remove.
807 (struct rust_demangler): Add.
808 (peek): Add.
809 (next): Add.
810 (struct rust_mangled_ident): Add.
811 (parse_ident): Add.
812 (rust_demangle_sym): Remove.
813 (print_str): Add.
814 (PRINT): Add.
815 (print_ident): Add.
816 (rust_demangle_callback): Add.
817 (struct str_buf): Add.
818 (str_buf_reserve): Add.
819 (str_buf_append): Add.
820 (str_buf_demangle_callback): Add.
821 (rust_demangle): Add.
822 * rust-demangle.h: Remove.
823
f73cb38f
MS
8242019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
825
826 * testsuite/demangle-expected: Fix test.
827
e0c866dd
KK
8282019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
829
830 * cp-demangle.c (d_expr_primary): Handle
831 nullptr demangling.
832 * testsuite/demangle-expected: Added test.
833
1c40e119
PP
8342019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
835
836 * cp-demangle.c (d_number): Avoid signed int overflow.
837
420fb10c
MS
8382019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
839
840 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
841 and `imaginary`, as opposed to after.
842 * testsuite/demangle-expected: Adjust test.
843
e1cb00db
EMB
8442019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
845
846 * rust-demangle.c (looks_like_rust): Remove.
847 (rust_is_mangled): Don't check escapes.
848 (is_prefixed_hash): Allow 0-9a-f permutations.
849 (rust_demangle_sym): Don't bail on unknown escapes.
850 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
851
42bf58bb
EMB
8522019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
853
854 * rust-demangle.c (unescape): Remove.
855 (parse_lower_hex_nibble): New function.
856 (parse_legacy_escape): New function.
857 (is_prefixed_hash): Use parse_lower_hex_nibble.
858 (looks_like_rust): Use parse_legacy_escape.
859 (rust_demangle_sym): Use parse_legacy_escape.
860 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
861
d23db385
ML
8622019-08-27 Martin Liska <mliska@suse.cz>
863
864 PR lto/91478
865 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
866 First find a WEAK HIDDEN symbol in symbol table that will be
867 preserved. Later, use the symbol name for all removed symbols.
868
8f88e7f6
ML
8692019-08-12 Martin Liska <mliska@suse.cz>
870
871 * Makefile.in: Add filedescriptor.c.
872 * filedescriptor.c: New file.
873 * lrealpath.c (is_valid_fd): Remove.
874
0fddb184
ML
8752019-08-08 Martin Liska <mliska@suse.cz>
876
877 PR bootstrap/91352
878 * lrealpath.c (is_valid_fd): New function.
879
70121844
ML
8802019-07-24 Martin Liska <mliska@suse.cz>
881
882 PR lto/91228
883 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
884 Find first '\0' starting from gnu_lto + 1.
885
b1bc0f50
RK
8862019-07-12 Ren Kimura <rkx1209dev@gmail.com>
887
888 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
889 This fixes a Bug 90924.
890
a861990d
ML
8912019-07-22 Martin Liska <mliska@suse.cz>
892
893 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
894 Do not search for gnu_lto_v1, but search for first '\0'.
895
979526c9
EMB
8962019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
897
898 * cplus-dem.c: Include rust-demangle.h.
899 * rust-demangle.c: Include rust-demangle.h.
900 * rust-demangle.h: New file.
901
2a1c064a
MF
9022019-05-31 Michael Forney <mforney@mforney.org>
903
904 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
905 is non-zero.
906
927e42fd
B
9072019-04-30 Ben L <bobsayshilol@live.co.uk>
908
6c8dbbfe
B
909 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
910 * testsuite/d-demangle-expected: Add testcase.
911
f181b8e7
B
912 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
913 * testsuite/d-demangle-expected: Add testcase.
914
dba20a51
B
915 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
916 * testsuite/d-demangle-expected: Add testcase.
917
80b1ab15
B
918 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
919 * testsuite/d-demangle-expected: Add testcase.
920
81adfd10
B
921 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
922 * testsuite/d-demangle-expected: Add testcase.
923
80024f31
B
924 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
925 * testsuite/demangle-expected: Add testcase.
926
927e42fd
B
927 * cp-demangle.c (d_encoding): Guard against NULL return values from
928 d_right (dc).
929 * testsuite/demangle-expected: Add testcase.
930
956bea2c
B
9312019-04-29 Ben L <bobsayshilol@live.co.uk>
932
933 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
934 char is valid.
935 * testsuite/demangle-expected: Add testcase.
936
6fe6bd7c
NC
9372019-04-10 Nick Clifton <nickc@redhat.com>
938
939 PR 89394
940 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
941 lengths.
942 (d_count_templates_scopes): Replace num_templates and num_scopes
943 parameters with a struct d_print_info pointer parameter. Adjust
944 body of the function accordingly. Add recursion counter and check
945 that the recursion limit is not reached.
946 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
947 Reset recursion counter afterwards, unless the recursion limit was
948 reached.
949
6d31ef2a
AM
9502019-04-07 Alan Modra <amodra@gmail.com>
951
952 * functions.texi: Regenerate.
953
62de703f
JM
9542019-03-14 Jason Merrill <jason@redhat.com>
955 Jakub Jelinek <jakub@redhat.com>
956
957 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
958 than if *slot is HTAB_EMPTY_ENTRY.
959
f9f75f8d
PW
9602019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
961
962 * splay-tree.c (splay_tree_insert): Also release old KEY in case
963 of insertion of a key equal to an already present key.
964 (splay_tree_new_typed_alloc): Update comment.
965
4293cd6e
NF
9662019-01-22 Nidal Faour <nidal.faour@wdc.com>
967
968 PR lto/88422
969 * simple-object.c (O_BINARY): Define if not already defined.
970 (simple_object_copy_lto_debug_sections): Create file in binary
971 mode.
972
2197ea17
TT
9732019-01-21 Tom Tromey <tom@tromey.com>
974
975 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
976
2d91f79d
TH
9772019-01-14 Tom Honermann <tom@honermann.net>
978
979 * cp-demangle.c (cplus_demangle_builtin_types)
980 (cplus_demangle_type): Add name demangling for char8_t (Du).
981 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
982 new char8_t type.
983
adcb167e
SL
9842019-01-09 Sandra Loosemore <sandra@codesourcery.com>
985
986 PR other/16615
987
988 * cp-demangle.c: Mechanically replace "can not" with "cannot".
989 * floatformat.c: Likewise.
990 * strerror.c: Likewise.
991
a5544970
JJ
9922019-01-01 Jakub Jelinek <jakub@redhat.com>
993
994 Update copyright years.
995
6c8120c5
JM
9962018-12-22 Jason Merrill <jason@redhat.com>
997
998 Remove support for demangling GCC 2.x era mangling schemes.
999 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1000 internal_cplus_demangle, and all subroutines.
1001 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1002 Lucid, ARM, HP, and EDG demangling styles.
1003 (cplus_demangle): Remove 'work' variable. Don't call
1004 internal_cplus_demangle.
1005
e96d1d8c
NC
10062018-12-07 Nick Clifton <nickc@redhat.com>
1007
1008 PR 87681
1009 PR 87675
1010 PR 87636
1011 PR 87350
1012 PR 87335
1013 * cp-demangle.h (struct d_info): Add recursion_level field.
1014 * cp-demangle.c (d_function_type): Add recursion counter.
1015 If the recursion limit is reached and the check is not disabled,
1016 then return with a failure result.
1017 (cplus_demangle_init_info): Initialise the recursion_level field.
1018 (d_demangle_callback): If the recursion limit is enabled, check
1019 for a mangled string that is so long that there is not enough
1020 stack space for the local arrays.
1021 * cplus-dem.c (struct work): Add recursion_level field.
1022 (squangle_mop_up): Set the numb and numk fields to zero.
1023 (work_stuff_copy_to_from): Handle the case where a btypevec or
1024 ktypevec field is NULL.
1025 (demangle_nested_args): Add recursion counter. If
1026 the recursion limit is not disabled and reached, return with a
1027 failure result.
1028
4be5c72c
JM
10292018-10-23 Jason Merrill <jason@redhat.com>
1030
1031 Implement P0732R2, class types in non-type template parameters.
1032 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1033 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1034 (d_special_name): Handle TA.
1035 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1036
22e05272
JM
10372018-10-31 Joseph Myers <joseph@codesourcery.com>
1038
1039 PR bootstrap/82856
1040 Merge from binutils-gdb:
1041 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1042
1043 * configure.ac: Remove AC_PREREQ.
1044 * configure: Re-generate.
1045 * config.in: Re-generate.
1046
df1346b4
NS
10472018-10-01 Nathan Sidwell <nathan@acm.org>
1048
1049 * configure.ac (checkfuncs): Add pipe2.
1050 * config.in, configure: Rebuilt.
1051 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1052 to parent with a pipe, when possible.
1053
832c74d9
NS
10542018-08-23 Nathan Sidwell <nathan@acm.org>
1055 Martin Liska <mliska@suse.cz>
1056
1057 PR driver/87056
1058 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1059 scopes to avoid potential clobber.
1060
5c12a855
NS
10612018-08-20 Nathan Sidwell <nathan@acm.org>
1062
1063 * pex-unix.c (pex_child_error): Delete.
1064 (pex_unix_exec_child): Commonize error paths to single message &
1065 exit.
1066
6ef4752b
TT
10672018-07-30 Tom Tromey <tom@tromey.com>
1068
1069 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1070
c00c9d03
ML
10712018-07-26 Martin Liska <mliska@suse.cz>
1072
92a285c1 1073 PR lto/86548
c00c9d03
ML
1074 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1075 (make_temp_file): Call make_temp_file_with_prefix with
92a285c1 1076 first argument set to NULL.
c00c9d03
ML
1077 (make_temp_file_with_prefix): Support also prefix.
1078
30ae6662
EZ
10792018-07-19 Eli Zaretskii <eliz@gnu.org>
1080
1081 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1082 to ENOSYS.
1083
7ce4ce10
JH
10842018-05-30 Jan Hubicka <hubicka@ucw.cz>
1085
7ce4ce10
JH
1086 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1087 (handle_lto_debug_sections_rename): New function.
1088 (handle_lto_debug_sections_norename): New function.
1089 (simple_object_copy_lto_debug_sections): Add rename parameter.
1090
b0c31bc6
BE
10912018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1092
1093 * splay-tree.c (splay_tree_compare_strings,
1094 splay_tree_delete_pointers): New utility functions.
1095
84ec5aea
ML
10962018-05-10 Martin Liska <mliska@suse.cz>
1097
1098 PR bootstrap/64914
1099 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1100
d6df811e
DG
11012018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1102
1103 * argv.c (expandargv): Fix memory leak for copied argv.
1104
6888a172
RO
11052018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1106
1107 PR lto/81968
1108 * simple-object.c (handle_lto_debug_sections): Keep .comment
1109 section.
1110
b2353e59
DM
11112018-03-02 David Malcolm <dmalcolm@redhat.com>
1112
1113 * cp-demangle.c: Update URL for g++ V3 ABI.
1114
c6bff8ad
EZ
11152018-01-20 Eli Zaretskii <eliz@gnu.org>
1116
1117 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1118 ulong_type to avoid warning about 32-bit shift.
1119
bf6f2cc7
RB
11202018-01-11 Richard Biener <rguenther@suse.de>
1121 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1122
1123 PR lto/81968
1124 * simple-object-common.h (struct simple_object_functions):
1125 Change copy_lto_debug_sections callback signature.
1126 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1127 SHF_INFO_LINK): Add defines.
1128 (simple_object_elf_copy_lto_debug_sections): Instead of
1129 leaving not to be copied sections empty unnamed SHT_NULL
1130 remove them from the target section headers and adjust section
1131 reference everywhere. Handle SHN_XINDEX in the symbol table
1132 processing properly.
1133 * simple-object.c (handle_lto_debug_sections): Change
1134 interface to return a modified string and handle renaming
1135 of relocation sections.
1136
3ec62f54
DG
11372018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1138
1139 * argv.c (expandargv): Correct check for dynamically
1140 allocated argv.
1141
85ec4feb
JJ
11422018-01-03 Jakub Jelinek <jakub@redhat.com>
1143
1144 Update copyright years.
1145
c1177db4
RB
11462017-01-02 Richard Biener <rguenther@suse.de>
1147
1148 PR lto/83452
1149 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1150 Do not use UNDEF locals for removed symbols but instead just
1151 define them in the first prevailing section and with no name.
1152 Use the same gnu_lto_v1 name for all removed globals we promote to
1153 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
1154 sh_info and sh_link in removed sections.
1155
bfe6f076
RB
11562017-10-30 Richard Biener <rguenther@suse.de>
1157
1158 PR lto/82757
1159 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1160 Strip two leading _s from the __gnu_lto_* symbols.
1161
160826fe
AM
11622017-10-24 Alan Modra <amodra@gmail.com>
1163
1164 PR lto/82687
1165 PR lto/82575
1166 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1167 Only make __gnu_lto symbols hidden.
1168
ebd208bf
AM
11692017-10-20 Alan Modra <amodra@gmail.com>
1170
1171 PR lto/82575
1172 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1173 Make discarded non-local symbols weak and hidden.
1174
f8049c44
JJ
11752017-10-18 Jakub Jelinek <jakub@redhat.com>
1176
1177 PR lto/82598
1178 * simple-object.c (handle_lto_debug_sections): Copy over also
1179 .note.GNU-stack section with unchanged name.
1180 * simple-object-elf.c (SHF_EXECINSTR): Define.
1181 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1182 on .note.GNU-stack section.
1183
68aac47f
NS
11842017-09-25 Nathan Sidwell <nathan@acm.org>
1185
1186 PR demangler/82195
1187 * cp-demangle.c (d_encoding): Strip return type when name is a
1188 LOCAL_NAME.
1189 (d_local_name): Strip return type of enclosing TYPED_NAME.
1190 * testsuite/demangle-expected: Add and adjust tests.
1191
7cd7dbda
NS
11922017-09-21 Nathan Sidwell <nathan@acm.org>
1193
1194 PR demangler/82195
1195 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1196 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1197 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1198 to strip modifiers that do not belong.
1199 (d_special_name, d_class_enum_type): Revert d_name call change.
1200 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1201 (d_local_name): Revert parsing of a function type.
1202 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1203 TEMPLATE.
1204 * testsuite/demangle-expected: Add & adjust tests
1205
fa0cdfb6
NS
12062017-09-15 Nathan Sidwell <nathan@acm.org>
1207
1208 PR demangler/82195
1209 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1210 (d_local_name): ... here. Parse trailing function args on nested
1211 local_name.
1212 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1213 * testsuite/demangle-expected: Add tests.
1214
dc4b8c68
RB
12152017-09-15 Richard Biener <rguenther@suse.de>
1216
1217 PR lto/81968
1218 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1219 Iterate marking dependent sections necessary.
1220
9d89efeb
NS
12212017-09-15 Nathan Sidwell <nathan@acm.org>
1222
1223 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1224 FNQUAL_COMPONENT_CASE.
1225 (d_encoding): Hold bare_function_type in local var.
1226 (d_local_name): Build name in both cases and build result once.
1227 Collapse switch-if to single conditional.
fa0cdfb6
NS
1228 (d_local_name):
1229
9d89efeb
NS
1230 * testsuite/demangle-expected: Realign blank lines with tests.
1231
ff971abe
JW
12322017-09-12 Jiong Wang <jiong.wang@arm.com>
1233
1234 * dwarfnames.c (DW_CFA_DUP): New define.
1235
39baa1d3
ML
12362017-09-01 Martin Liska <mliska@suse.cz>
1237
1238 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1239 Remove duplicite declaration.
1240
a621861e
RB
12412017-08-31 Richard Biener <rguenther@suse.de>
1242
1243 PR lto/81968
1244 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1245 Keep names of removed global symbols.
1246
62663034
TR
12472017-08-29 Tony Reix <tony.reix@atos.net>
1248
1249 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1250 Improve .go_export csect handling. Don't make assumptions
1251 on containing section or number of auxiliary entries.
1252
1963f60a
RB
12532017-08-28 Richard Biener <rguenther@suse.de>
1254
1255 PR lto/81968
1256 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1257 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1258 removed sections.
1259
d4c550fd
RB
12602017-08-22 Richard Biener <rguenther@suse.de>
1261
1262 PR lto/81925
1263 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1264 type of sh_addralign and sh_entsize and properly write
1265 sh_entsize as Elf_Addr.
1266 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1267
1ea85365
RB
12682017-08-21 Richard Biener <rguenther@suse.de>
1269
1270 * simple-object-common.h (struct simple_object_functions): Add
1271 copy_lto_debug_sections hook.
1272 * simple-object.c: Include fcntl.h.
1273 (handle_lto_debug_sections): New helper function.
1274 (simple_object_copy_lto_debug_sections): New function copying
1275 early LTO debug sections to regular debug sections in a new file.
1276 (simple_object_start_write): Handle NULL segment_name.
1277 * simple-object-coff.c (simple_object_coff_functions): Adjust
1278 for not implemented copy_lto_debug_sections hook.
1279 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1280 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1281 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1282 SHT_GROUP): Add various sectopn header types.
1283 (SHF_EXCLUDE): Add flag.
1284 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1285 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1286 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1287 (STV_DEFAULT): Add symbol visibility.
1288 (SHN_COMMON): Add special section index name.
1289 (struct simple_object_elf_write): New.
1290 (simple_object_elf_start_write): Adjust for new private data.
1291 (simple_object_elf_write_shdr): Pass in values for all fields
1292 we write.
1293 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1294 section headers if requested.
1295 (simple_object_elf_release_write): Release private data.
1296 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1297 as denoted by PFN and all their dependences, symbols and relocations
1298 to the empty destination file.
1299 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1300
ef29f5dd
JK
13012017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1302
1303 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1304
c1d24904
TR
13052017-06-07 Tony Reix <tony.reix@atos.net>
1306 Matthieu Sarter <matthieu.sarter.external@atos.net>
1307 David Edelsohn <dje.gcc@gmail.com>
1308
1309 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1310 Search symbol table for .go_export symbol and apply pfn if found.
1311
63d9caf9
DD
13122017-05-31 DJ Delorie <dj@redhat.com>
1313
1314 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1315 * configure: Likewise.
1316 * config.in: Add HACE_DECL_STRNLEN.
1317
dc64856f
IB
13182017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1319
1320 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1321 with `initializer for'.
1322 * testsuite/demangle-expected: Update tests.
1323
0e3712f6
IB
13242017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1325
1326 * d-demangle.c (dlang_call_convention_p): Move declaration
1327 before dlang_type.
1328 (dlang_type): Handle function types.
1329 * testsuite/d-demangle-expected: Add tests.
1330
1a122a71
IB
13312017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1332
1333 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1334 the demangled hexadecimal directly to string.
1335 * testsuite/d-demangle-expected: Add tests.
1336
1ab4db93
EZ
13372017-05-24 Eli Zaretskii <eliz@gnu.org>
1338
1339 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1340 that calls _cwait, so that this function works on MinGW.
1341
5398cab9
IB
13422017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1343
1344 * d-demangle.c (dlang_hexdigit): New function.
1345 (ascii2hex): Remove function.
1346 (dlang_parse_string): Update to call dlang_hexdigit.
1347 * testsuite/d-demangle-expected: Add tests.
1348
dbe65f77
IB
13492017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1350
1351 * d-demangle.c (strtol): Remove declaration.
1352 Updated all callers to use dlang_number.
1353 (dlang_number): New function.
1354 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1355 * testsuite/d-demangle-expected: Add tests.
1356
5a4dbf7d
IB
13572017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1358
1359 * d-demangle.c (dlang_parse_symbol): Remove function.
1360 (dlang_parse_qualified): New function.
1361 (dlang_parse_mangle): New function.
1362 (dlang_type): Update to call dlang_parse_qualified.
1363 (dlang_identifier): Update to call either dlang_parse_qualified or
1364 dlang_parse_mangle.
1365 (dlang_type_modifier_p): Remove function.
1366 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1367 (dlang_template_args): Update to call dlang_identifier.
1368 (dlang_demangle): Update to call dlang_parse_mangle.
1369 * testsuite/d-demangle-expected: Add tests.
1370
dd03444b
IB
13712017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1372
1373 * d-demangle.c (dlang_value): Add comment explaining why cases for
1374 digits are required.
1375 * testsuite/d-demangle-expected: Update integer value tests.
1376
98bb7ee2
IB
13772017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1378
1379 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1380 * testsuite/d-demangle-expected: Add tests.
1381
13822017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
c6f44bae
IB
1383
1384 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1385 (dlang_parse_template): Only advance if template symbol prefix is
1386 followed by a digit.
1387 * testsuite/d-demangle-expected: Add tests.
1388
ec89d258
IB
13892017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1390
1391 * d-demangle.c (dlang_attributes): Handle scope attributes.
1392 * testsuite/d-demangle-expected: Add tests.
1393
de3b531c
JW
13942017-04-27 Jonathan Wakely <jwakely@redhat.com>
1395
1396 PR demangler/80513
1397 * cp-demangle.c (d_number): Check for overflow.
1398 * cplus-dem.c (consume_count): Fix overflow check.
1399 (gnu_special): Check for underscore after thunk delta.
1400 * testsuite/demangle-expected: Add tests for overflows and invalid
1401 characters in thunks.
1402
6b086d35
MW
14032017-04-21 Mark Wielaard <mark@klomp.org>
1404
1405 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1406 (struct d_print_info): Add recursion field.
1407 (d_print_init): Initialize recursion.
1408 (d_print_comp): Check and update d_print_info recursion depth.
1409
13b6ef76
MW
14102017-04-21 Mark Wielaard <mark@klomp.org>
1411
1412 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1413 fails.
1414
1240212c
MW
14152017-04-21 Mark Wielaard <mark@klomp.org>
1416
1417 * cp-demangle.h (struct d_info): Remove did_subs field.
1418 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1419 (d_template_param): Don't update did_subs.
1420 (d_substitution): Likewise.
1421 (d_checkpoint): Don't assign did_subs.
1422 (d_backtrack): Likewise.
1423 (cplus_demangle_init_info): Don't initialize did_subs.
1424
7a312bbd
PA
14252017-03-27 Pedro Alves <palves@redhat.com>
1426
1427 * cp-demint.c (cplus_demangle_fill_component): Handle
1428 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1429
9905ca97
MW
14302017-03-12 Mark Wielaard <mark@klomp.org>
1431
1432 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1433 demangle_component d_printing.
1434 (cplus_demangle_fill_extended_operator): Likewise.
1435 (cplus_demangle_fill_ctor): Likewise.
1436 (cplus_demangle_fill_dtor): Likewise.
1437
a46586c3
MW
14382017-03-08 Mark Wielaard <mark@klomp.org>
1439
1440 PR demangler/70909
1441 PR demangler/67264
1442 * cp-demangle.c: Fix endless recursion. Pass
1443 struct demangle_component as non const.
1444 (d_make_empty): Initialize variable.
1445 (d_print_comp_inner): Limit recursion.
1446 (d_print_comp): Decrement variable.
1447 * cp-demint.c (cplus_demangle_fill_component): Initialize
1448 variable.
1449 (cplus_demangle_fill_builtin_type): Likewise.
1450 (cplus_demangle_fill_operator): Likewise.
1451 * testsuite/demangle-expected: Add tests.
1452
4bbc35f3
MT
14532017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1454
1455 PR PR c++/70182
1456 * cp-demangle.c (d_unqualified_name): Handle "on" for
1457 operator names.
1458 * testsuite/demangle-expected: Add tests.
1459
f6efea51
MT
14602017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1461
1462 PR c++/77489
1463 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1464 * testsuite/demangle-expected: Add tests for discriminator.
1465
2afd3180
JJ
14662017-01-04 Jakub Jelinek <jakub@redhat.com>
1467
1468 Update copyright years.
1469
8f56cb51
AM
14702017-01-04 Alan Modra <amodra@gmail.com>
1471
1472 * Makefile.in (configure_deps): Update.
1473 * configure: Regenerate.
1474
816f4314
JJ
14752016-12-13 Jakub Jelinek <jakub@redhat.com>
1476
1477 PR c++/78761
1478 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1479 * testsuite/demangle-expected: Add test for decltype(auto).
1480
8e09a726
NS
14812016-12-12 Nathan Sidwell <nathan@acm.org>
1482
1483 PR c++/78252
1484 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1485 (d_print_init): Initialize it.
1486 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1487 is_lambda_arg for auto.
1488 <DEMANGLE_COMPONENT_REFERENCE,
1489 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1490 is_lambda_arg.
1491 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1492 printing.
1493 * testsuite/demangle-expected: Add lambda auto mangling cases.
1494
1d2ccddf 14952016-12-06 DJ Delorie <dj@redhat.com>
2207ff5d
DD
1496
1497 * argv.c (expandargv): Check for directories passed as @-files.
1498
e613205c
DM
14992016-11-30 David Malcolm <dmalcolm@redhat.com>
1500
1501 PR c/78498
1502 * strndup.c (strlen): Delete decl.
1503 (strnlen): Add decl.
1504 (strndup): Call strnlen rather than strlen.
1505 * xstrndup.c (xstrndup): Likewise.
1506
8684b292
NS
15072016-11-29 Nathan Sidwell <nathan@acm.org>
1508
1509 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1510
10d48c59
DT
15112016-11-03 David Tolnay <dtolnay@gmail.com>
1512 Mark Wielaard <mark@klomp.org>
1513
1514 * Makefile.in (CFILES): Add rust-demangle.c.
1515 (REQUIRED_OFILES): Add rust-demangle.o.
1516 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1517 (cplus_demangle): Handle RUST_DEMANGLING.
1518 (rust_demangle): New function.
1519 * rust-demangle.c: New file.
1520 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1521 (check-rust-demangle): New rule.
1522 * testsuite/rust-demangle-expected: New file.
1523
168126e5
MW
15242016-11-15 Mark Wielaard <mark@klomp.org>
1525
1526 * cp-demangle.c (d_expression_1): Make sure third expression
1527 exists for ?: and fold expressions.
1528 * testsuite/demangle-expected: Add examples of strings that could
1529 crash the demangler because of missing expression.
1530
0d0bfbf4
MW
15312016-11-14 Mark Wielaard <mark@klomp.org>
1532
1533 * cplus-dem.c (demangle_signature): After 'H', template function,
1534 no success and don't advance position if end of string reached.
1535 (demangle_template): After 'z', template name, return zero on
1536 premature end of string.
1537 (gnu_special): Guard strchr against searching for zero characters.
1538 (do_type): If member, only advance mangled string when 'F' found.
1539 * testsuite/demangle-expected: Add examples of strings that could
1540 crash the demangler by reading past end of input.
1541
3eb89071
MW
15422016-11-06 Mark Wielaard <mark@klomp.org>
1543
1544 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1545 * configure: Regenerated.
1546
51dc6603
JM
15472016-11-07 Jason Merrill <jason@redhat.com>
1548
1549 * cp-demangle.c (is_fnqual_component_type): New.
1550 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1551 (FNQUAL_COMPONENT_CASE): New.
1552 (d_make_comp, has_return_type, d_print_comp_inner)
1553 (d_print_function_type): Use it.
1554 (next_is_type_qual): New.
1555 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1556
c4ec8585
MW
15572016-11-02 Mark Wielaard <mjw@redhat.com>
1558
1559 * cplus-dem.c (demangle_signature): Move fall through comment.
1560 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1561 * hashtab.c (iterative_hash): Add fall through comments.
1562 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1563 (byte_re_match_2_internal): Add Fall through comment after jump_n.
1564 Change "Note fall through" to "Fall through".
1565 (common_op_match_null_string_p): Return false after set_number_at
1566 instead of fall through.
1567
31f7f784
JM
15682016-11-01 Jason Merrill <jason@redhat.com>
1569
1570 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1571
a3f3eec0
MW
15722016-10-31 Mark Wielaard <mjw@redhat.com>
1573
1574 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1575 XDELETEVEC demangled when unknown.
1576
471a0d47
AS
15772016-09-19 Andrew Stubbs <ams@codesourcery.com>
1578
1579 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1580 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1581
99e77371
MW
15822016-09-10 Mark Wielaard <mjw@redhat.com>
1583
1584 * cp-demangle.c (d_substitution): Change struct demangle_component
1585 variable name from c to dc.
1586
191816a3
MP
15872016-08-12 Marek Polacek <polacek@redhat.com>
1588
1589 PR c/7652
1590 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1591
1841e25c
MB
15922016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
1593
1594 PR c++/71696
1595 * cplus-dem.c: Prevent infinite recursion when there is a cycle
1596 in the referencing of remembered mangled types.
1597 (work_stuff): New stack to keep track of the remembered mangled
1598 types that are currently being processed.
1599 (push_processed_type): New method to push currently processed
1600 remembered type onto the stack.
1601 (pop_processed_type): New method to pop currently processed
1602 remembered type from the stack.
1603 (work_stuff_copy_to_from): Copy values of new variables.
1604 (delete_non_B_K_work_stuff): Free stack memory.
1605 (demangle_args): Push/Pop currently processed remembered type.
1606 (do_type): Do not demangle a cyclic reference and push/pop
1607 referenced remembered type.
1608
ac631cbe
AH
16092016-07-29 Aldy Hernandez <aldyh@redhat.com>
1610
1611 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1612 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1613
34bbc4c5
JM
16142016-07-15 Jason Merrill <jason@redhat.com>
1615
7864eaaf
JM
1616 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1617 (d_expression_1): Handle them.
1618 (d_maybe_print_fold_expression): New.
1619 (d_print_comp_inner): Use it.
1620 (d_index_template_argument): Handle negative index.
1621
34bbc4c5
JM
1622 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1623 (d_print_comp_inner): Handle them.
1624 (d_template_args_1): Split out from d_template_args.
1625 (d_args_length): New.
1626
1841e25c 16272016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
03ef0c6c
MB
1628
1629 PR c++/70926
1630 * cplus-dem.c: Handle large values and overflow when demangling
1631 length variables.
1632 (demangle_template_value_parm): Read only until end of mangled string.
1633 (do_hpacc_template_literal): Likewise.
1634 (do_type): Handle overflow when demangling array indices.
1635
3f393853
BM
16362016-06-12 Brooks Moses <bmoses@google.com>
1637
1638 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
1639 VLAs.
1640
051154a1
AM
16412016-05-31 Alan Modra <amodra@gmail.com>
1642
1643 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1644
e1fe3c69
JJ
16452016-05-19 Jakub Jelinek <jakub@redhat.com>
1646
1647 PR c++/70498
1648 * cp-demangle.c (d_expression_1): Formatting fix.
1649
9b27f113
AV
16502016-05-18 Artemiy Volkov <artemiyv@acm.org>
1651
1652 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
1653 constant.
1654 (demangle_template_value_parm): Handle tk_rvalue_reference
1655 type kind.
1656 (do_type): Support 'O' type id (rvalue references).
1657
1658 * testsuite/demangle-expected: Add tests.
1659
bfbc839a
MB
16602016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
1661
1662 PR c++/70498
1663 * cp-demangle.c: Parse numbers as integer instead of long to avoid
1664 overflow after sanity checks. Include <limits.h> if available.
1665 (INT_MAX): Define if necessary.
1666 (d_make_template_param): Takes integer argument instead of long.
1667 (d_make_function_param): Likewise.
1668 (d_append_num): Likewise.
1669 (d_identifier): Likewise.
1670 (d_number): Parse as and return integer.
1671 (d_compact_number): Handle overflow.
1672 (d_source_name): Change variable type to integer for parsed number.
1673 (d_java_resource): Likewise.
1674 (d_special_name): Likewise.
1675 (d_discriminator): Likewise.
1676 (d_unnamed_type): Likewise.
1677 * testsuite/demangle-expected: Add regression test cases.
1678
bc6d9014
OE
16792016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1680
1681 * configure: Remove SH5 support.
1682
59dad006
MB
16832016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
1684
bdf66f77
MB
1685 PR c++/69687
1686 * cplus-dem.c: Include <limits.h> if available.
1687 (INT_MAX): Define if necessary.
1688 (remember_type, remember_Ktype, register_Btype, string_need):
1689 Abort if we detect cases where we the size of the allocation would
1690 overflow.
1691
cb2763b5 1692 PR c++/70492
59dad006
MB
1693 * cplus-dem.c (gnu_special): Handle case where consume_count returns
1694 -1.
1695
916268f1 16962016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
a3fa7535 1697 Marcel Bohme <boehme.marcel@gmail.com>
916268f1 1698
c1c341ab
JL
1699 PR c++/67394
1700 PR c++/70481
916268f1
MM
1701 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
1702 btypevec/ktypevec.
1703 * testsuite/demangle-expected: Add coverage tests.
1704
13617162
IB
17052016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1706
1707 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
1708 function calling convention.
1709 (dlang_call_convention_p): Likewise.
1710 (dlang_type): Likewise.
1711 * testsuite/d-demangle-expected: Add coverage tests.
1712
acf1f7da
IB
17132016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1714
1715 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
1716 only if parameters were seen before the elipsis symbol.
1717 * testsuite/d-demangle-expected: Add coverage test for parameter-less
1718 variadic functions.
1719
0f4b8b31
IB
17202016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1721
1722 * d-demangle.c (dlang_type): Handle function types only in the context
1723 of seeing a pointer type symbol.
1724 * testsuite/d-demangle-expected: Update function pointer tests.
1725
66f49f07
MF
17262016-01-05 Mike Frysinger <vapier@gentoo.org>
1727
1728 * argv.c (dupargv): Change arg to char * const *. Update comment.
1729 (writeargv, countargv): Likewise.
1730 * functions.texi (dupargv, writeargv, countargv): Likewise.
1731
ae120683
MF
17322016-01-05 Mike Frysinger <vapier@gentoo.org>
1733
1734 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
1735
f3ce6437
PP
17362015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
1737
1738 * crc32.c: In the documentation, don't refer to GDB's
1739 now-nonexistent crc32 implementation. In the table-generation
1740 program embedded within the documentation, change the type of
1741 the induction variables i and j from int to unsigned int, to
1742 avoid undefined behavior.
1743
f8e66330
NC
17442015-12-21 Nick Clifton <nickc@redhat.com>
1745
1746 PR 66827
1747 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
1748 shifting.
1749
921da198
PA
17502015-11-27 Pedro Alves <palves@redhat.com>
1751
1752 PR other/61321
1753 PR other/61233
921da198
PA
1754 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
1755 DEMANGLE_COMPONENT_CONVERSION.
1756 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
1757 instead of DEMANGLE_COMPONENT_CAST.
1758 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
1759 component if handling a conversion.
1760 (d_count_templates_scopes, d_print_comp_inner): Handle
1761 DEMANGLE_COMPONENT_CONVERSION.
1762 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
1763 of DEMANGLE_COMPONENT_CAST.
1764 (d_print_cast): Rename as ...
1765 (d_print_conversion): ... this. Adjust comments.
1766 (d_print_cast): Rewrite - simply print the left subcomponent.
1767 * cp-demint.c (cplus_demangle_fill_component): Handle
1768 DEMANGLE_COMPONENT_CONVERSION.
1769
1770 * testsuite/demangle-expected: Add tests.
1771
633ce971
MS
17722015-11-12 Mike Stump <mikestump@comcast.net>
1773
1774 * Makefile.in (etags tags TAGS): Use && instead of ;.
1775
126e0b6b
AM
17762015-11-09 Alan Modra <amodra@gmail.com>
1777
1778 * configure.ac: Check size of size_t.
1779 * configure: Regenerate.
61c94e79 1780 * config.in: Regenerate.
126e0b6b 1781
a186d523
AM
17822015-11-09 Alan Modra <amodra@gmail.com>
1783
1784 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
1785 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
1786 after alloc failure check.
1787
f0e525fe
AM
17882015-11-09 Alan Modra <amodra@gmail.com>
1789
1790 PR gdb/17133
1791 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
1792 (obstack_exit_failure): Don't use exitfail.h.
1793 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
1794 Provide default. Don't include gettext.h.
1795 (_Noreturn): Define.
1796 * obstacks.texi: Adjust node references to external libc info files.
1797
c9f265c9
AM
17982015-11-09 Alan Modra <amodra@gmail.com>
1799
1800 PR gdb/17133
1801 * obstack.c: Import current gnulib file.
1802 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
1803
41fdbd54
JB
18042015-11-06 Joel Brobecker <brobecker@adacore.com>
1805
1806 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
1807 Android hosts.
1808 * configure: Regenerate.
1809
08585fba
JM
18102015-10-28 Jason Merrill <jason@redhat.com>
1811
1812 * Makefile.in (TAGS): Fix for separate build directory.
1813
efd40fc4
RM
18142015-10-18 Roland McGrath <roland@gnu.org>
1815 Iain Sandoe <iain@codesourcery.com>
1816
1817 PR other/63758
1818 * pex-unix.c: Obtain the environment interface from settings in
1819 environ.h rather than in-line code. Update copyright date.
1820 * setenv.c: Likewise.
1821 * xmalloc.c: Likewise.
1822
b8fd7909
JM
18232015-09-30 Jason Merrill <jason@redhat.com>
1824
1825 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
1826 (cplus_demangle_type): Let d_cv_qualifiers handle it.
1827 (d_dump, d_make_comp, has_return_type, d_encoding)
1828 (d_count_templates_scopes, d_print_comp_inner)
1829 (d_print_mod_list, d_print_mod, d_print_function_type)
1830 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
1831
68bac640
ILT
18322015-08-15 Ian Lance Taylor <iant@google.com>
1833
1834 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
1835 ABI tags.
1836
fd91ffb8
IB
18372015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
1838
1839 * d-demangle.c (dlang_parse_real): Remove call to strtod.
1840 (strtod): Remove declaration.
1841 * testsuite/d-demangle-expected: Update float and complex literal
1842 tests to check correct hexadecimal demangling.
1843
76d96a5a
MM
18442015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
1845
1846 * cp-demangle.c (d_dump): Fix syntax error.
1847 (d_identifier): Adjust type of len to match d_source_name.
1848 (d_expression_1): Fix out-of-bounds access. Check code variable for
1849 NULL before dereferencing it.
1850 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
1851 (d_print_comp_inner): Add NULL pointer check.
1852 * cp-demangle.h (d_peek_next_char): Define as inline function when
1853 CHECK_DEMANGLER is defined.
1854 (d_advance): Likewise.
1855 * testsuite/demangle-expected: Add new testcases.
1856
9b004cd3 18572015-07-09 Uros Bizjak <ubizjak@gmail.com>
62ee3145 1858
9b004cd3
UB
1859 * getruntime.c (RUSAGE_SELF): Define if not already defined.
1860 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
62ee3145 1861
603eaec4
JM
18622015-06-01 Jason Merrill <jason@redhat.com>
1863
1864 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
1865 extended qualifier.
1866
f50f17e6
YJ
18672015-05-22 Yunlian Jiang <yunlian@google.com>
1868
1869 * configure.ac: Add AC_GNU_SOURCE.
1870 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
1871 * configure, config.in: Rebuild.
1872 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
1873
7e865541
IB
18742015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1875
1876 * d-demangle.c (dlang_symbol_kinds): New enum.
1877 (dlang_parse_symbol): Update signature. Handle an ambiguity between
1878 pascal functions and template value arguments. Only check for a type
1879 if parsing a function, or at the top level. Return failure if the
1880 entire symbol was not successfully demangled.
1881 (dlang_identifier): Update signature. Handle an ambiguity between two
1882 adjacent digits in a mangled symbol string.
1883 (dlang_type): Update call to dlang_parse_symbol.
1884 (dlang_template_args): Likewise.
1885 (dlang_parse_template): Likewise.
1886 (dlang_demangle): Likewise.
1887 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
1888 examples to the unittests.
1889
ed4cdb85
IB
18902015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1891
1892 * d-demangle.c (dlang_template_args): Skip over specialized template
1893 parameters in mangled symbol.
1894 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
1895 template parameters.
1896
59251a73
IB
18972015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1898
1899 * d-demangle.c (dlang_type): Handle cent and ucent types.
1900 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
1901
7ce4461f
IB
19022015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1903
1904 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
1905 return parameters in the mangled string. Return NULL if have encountered
1906 an unknown attribute.
1907 (dlang_function_args): Handle return parameters in the mangled string.
1908 * testsuite/d-demangle-expected: Add coverage tests for functions with
1909 return parameters and return attributes.
1910
5cc158e9
IB
19112015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1912
1913 * d-demangle.c (dlang_identifier): Check encoded length of identifier
1914 to verify strncmp matches entire string.
1915 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
1916
fa66ced4
IB
19172015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1918
1919 * d-demangle.c (dlang_type_modifiers): New function.
1920 (dlang_type_modifier_p): New function.
1921 (dlang_call_convention_p): Ignore any kind of type modifier.
1922 (dlang_type): Handle and emit the type modifier after delegate types.
1923 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
1924 * testsuite/d-demangle-expected: Add coverage tests for all valid
1925 usages of function symbols with type modifiers.
1926
76b41cad
IB
19272015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1928
1929 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
1930 end of the symbol, but expected something to read.
1931 (dlang_attributes): Likewise.
1932 (dlang_function_type): Likewise.
1933 (dlang_type): Likewise.
1934 (dlang_identifier): Likewise.
1935 (dlang_value): Likewise.
1936
eb058b7d
IB
19372015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1938
1939 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
1940 non-printable characters as hex or escape sequences.
1941 * testsuite/d-demangle-expected: Add test for templates with tabs and
1942 newlines embedded into the signature.
1943
f5e7f590
JB
19442015-05-08 Joel Brobecker <brobecker@adacore.com>
1945
1946 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
1947 but not HAVE_SYS_TIME_H.
1948
ffa176b0
EZ
19492015-04-22 Eli Zaretskii <eliz@gnu.org>
1950
1951 * setenv.c <environ>: Declare only if not a macro.
1952
77019397
MO
19532015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
1954
1955 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
1956
cacf1f59
JJ
19572015-04-10 Jakub Jelinek <jakub@redhat.com>
1958 Iain Sandoe <iain@codesourcery.com>
1959
1960 PR target/65351
1961 * configure: Regenerate.
1962
e8a4ed3b
JJ
19632015-04-07 Jakub Jelinek <jakub@redhat.com>
1964 Iain Sandoe <iain@codesourcery.com>
1965
1966 PR target/65351
1967 * configure: Regenerate.
1968
b411ed0c
EZ
19692015-01-19 Eli Zaretskii <eliz@gnu.org>
1970
1971 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
1972 macros.
1973
e8850918
UB
19742014-12-24 Uros Bizjak <ubizjak@gmail.com>
1975 Ben Elliston <bje@au.ibm.com>
1976 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1977
1978 * xasprintf.c: New file.
1979 * Makefile.in (CFILES): Add xasprintf.c.
1980 (REQUIRED_OFILES): Add xasprintf.$(objext).
1981 (xasprintf.$(objext)): New target.
1982 * functions.texi: Regenerate.
1983
01ca36af 19842014-12-11 Uros Bizjak <ubizjak@gmail.com>
92a285c1
ML
1985 Ben Elliston <bje@au.ibm.com>
1986 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
01ca36af
UB
1987
1988 * xvasprintf.c: New file.
1989 * vprintf-support.h: Likewise.
1990 * vprintf-support.c: Likewise.
1991 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
1992 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
1993 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
1994 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
1995 * functions.texi: Regenerate.
1996 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
1997
7b5216dd
JDA
19982014-11-22 John David Anglin <danglin@gcc.gnu.org>
1999
2000 PR other/63694
2001 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2002 declarations.
2003 * configure: Regenerated.
2004
43cf21c6
KY
20052014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2006
2007 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2008 unsigned long.
2009
3d00119c
AB
20102014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
2011 Manuel López-Ibáñez <manu@gcc.gnu.org>
2012
2013 PR driver/36312
2014 * filename_cmp.c (canonical_filename_eq): New function to check if
2015 file names are the same.
2016 * functions.texi: Updated with documentation for new function.
2017
35485da9
DM
20182014-11-11 David Malcolm <dmalcolm@redhat.com>
2019
2020 * ChangeLog.jit: New.
2021
8c768629
RO
20222014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2023
2024 * sigsetmask.c (_POSIX_SOURCE): Remove.
2025
ea41822a
YG
20262014-10-28 Yury Gribov <y.gribov@samsung.com>
2027
2028 * strtoll.c: New file.
2029 * strtoull.c: New file.
2030 * configure.ac: Add long long checks. Add harness for strtoll and
2031 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
2032 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2033 * config.in: Regenerate.
2034 * configure: Regenerate.
2035 * functions.texi: Regenerate.
2036 * testsuite/Makefile.in (check-strtol): New rule.
2037 (test-strtol): Likewise.
2038 (mostlyclean): Clean up strtol test.
2039 * testsuite/test-strtol.c: New test.
2040
e39423c0
DM
20412014-10-15 David Malcolm <dmalcolm@redhat.com>
2042
2043 * choose-temp.c (choose_tmpdir): Remove now-redundant local
2044 copy of prototype.
2045 * functions.texi: Regenerate.
2046 * make-temp-file.c (choose_tmpdir): Convert return type from
2047 char * to const char * - given that this returns a pointer to
2048 a memoized allocation, the caller must not touch it.
2049
2a523cfe
JB
20502014-10-14 Joel Brobecker <brobecker@adacore.com>
2051
2052 * d-demangle.c: Replace strtold with strtod in global comment.
2053 (strtold): Remove declaration.
2054 (strtod): New declaration.
2055 (dlang_parse_real): Declare value as double instead of long
2056 double. Replace call to strtold by call to strtod.
2057 Update format in call to snprintf.
2058
00eaaa50
JM
20592014-09-26 Jason Merrill <jason@redhat.com>
2060
2061 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2062
29ce50b0
MO
20632014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
2064
2065 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2066 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2067 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2068 * pex-win32.c (pex_win32_open_write): Likewise.
2069 * pex-common.c (pex_run_in_environment): Likewise.
2070
43b1b9ed
IB
20712014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
2072
2073 * Makefile.in (CFILES): Add d-demangle.c.
2074 (REQUIRED_OFILES): Add d-demangle.o.
2075 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2076 (cplus_demangle): Likewise.
2077 * d-demangle.c: New file.
2078 * testsuite/Makefile.in (really-check): Add check-d-demangle.
2079 * testsuite/d-demangle-expected: New file.
2080
0f1fbc83
ILT
20812014-09-19 Ian Lance Taylor <iant@google.com>
2082
2083 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2084 handle objects with more than SHN_LORESERVE sections.
2085 (simple_object_elf_write_shdr): Add sh_link parameter.
2086 (simple_object_elf_write_to_file): Correctly handle objects with
2087 more than SHN_LORESERVE sections.
2088
606f9e78
AB
20892014-08-29 Andrew Burgess <aburgess@broadcom.com>
2090
2091 * cp-demangle.c (d_dump): Only access field from s_fixed part of
2092 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2093 (d_count_templates_scopes): Likewise.
2094
635f4800
GB
20952014-08-13 Gary Benson <gbenson@redhat.com>
2096
2097 * testsuite/demangler-fuzzer.c: New file.
2098 * testsuite/Makefile.in (fuzz-demangler): New rule.
2099 (demangler-fuzzer): Likewise.
2100 (mostlyclean): Clean up demangler fuzzer.
2101
ac8345a5
AB
21022014-06-11 Andrew Burgess <aburgess@broadcom.com>
2103
2104 * cplus-dem.c (do_type): Call string_delete even if the call to
2105 demangle_template fails.
2106
ad484eca
RD
21072014-06-01 Ray Donnelly <mingw.android@gmail.com>
2108
2109 * pex-win32.c (argv_to_cmdline): Don't quote
2110 args unnecessarily
2111
bc2eed9a
PA
21122014-05-28 Pedro Alves <palves@redhat.com>
2113
2114 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2115 and DEMANGLE_COMPONENT_NUMBER.
2116
6aa9ea7f
TS
21172014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2118
2119 * testsuite/demangle-expected: Fix last commit.
2120
70c8c2b9
AB
21212014-05-14 Andrew Burgess <aburgess@broadcom.com>
2122
2123 * cplus-dmem.c (internal_cplus_demangle): Free any resources
2124 allocated by possible previous call to gnu_special.
2125 (squangle_mop_up): Reset pointers to NULL after calling free.
2126 * testsuite/demangle-expected: New test case.
2127
861c3495
GB
21282014-05-08 Gary Benson <gbenson@redhat.com>
2129
2130 * cp-demangle.c (struct d_component_stack): New structure.
2131 (struct d_print_info): New field component_stack.
2132 (d_print_init): Initialize the above.
2133 (d_print_comp_inner): Renamed from d_print_comp.
2134 Do not restore template stack if it would cause a loop.
2135 (d_print_comp): New function.
2136 * testsuite/demangle-expected: New test cases.
2137
4f148bbc
JJ
21382014-04-17 Jakub Jelinek <jakub@redhat.com>
2139
2140 PR sanitizer/56781
2141 * maint-tool: Also emit rule for noasan/ subdirectory.
2142 * configure.ac (NOASANFLAG): Set and substitute.
2143 * Makefile.in: Regenerated.
2144 (NOASANFLAG): Set.
2145 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2146 subdir.
2147 (stamp-noasandir): New goal.
2148 * configure: Regenerated.
2149
25336bb6
RB
21502014-04-01 Richard Biener <rguenther@suse.de>
2151
2152 * simple-object.c (simple_object_internal_write): Handle
2153 EINTR and short writes.
2154
2486c24a
RB
21552014-03-28 Richard Biener <rguenther@suse.de>
2156
2157 * simple-object.c (simple_object_internal_read): Handle
2158 EINTR and short reads.
2159
52684bb3
UB
21602014-03-13 Uros Bizjak <ubizjak@gmail.com>
2161
2162 * regex.c (bzero) [!_LIBC]: Define without coma expression.
2163 (regerror): Cast the call to memcpy to (void) to avoid unused
2164 value warnings.
2165
e191f502
TS
21662014-01-28 Thomas Schwinge <thomas@codesourcery.com>
2167
2168 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2169 to help the compiler.
2170
d2d21de9
TT
21712014-01-21 Tom Tromey <tromey@redhat.com>
2172
2173 * _doprint.c (checkit): Use stdarg, not VA_* macros.
2174 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2175 * concat.c (concat_length, concat_copy, concat_copy2, concat)
2176 (reconcat): Use stdarg, not VA_* macros.
2177 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2178 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2179 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2180
0225cc0f
MF
21812014-01-06 Mike Frysinger <vapier@gentoo.org>
2182
2183 PR other/56780
2184 * configure.ac: Delete target_header_dir assignment.
2185 * configure: Regenerated.
2186
0a15a50e
GB
21872014-01-06 Gary Benson <gbenson@redhat.com>
2188
2189 * cp-demangle.c (struct d_print_info): New fields
2190 next_saved_scope, copy_templates, next_copy_template and
2191 num_copy_templates.
2192 (d_count_templates): New function.
2193 (d_print_init): New parameter "dc".
2194 Estimate numbers of templates and scopes required.
2195 (d_print_free): Removed function.
2196 (cplus_demangle_print_callback): Allocate stack for
2197 templates and scopes. Removed call to d_print_free.
2198 (d_copy_templates): Removed function.
2199 (d_save_scope): New function.
2200 (d_get_saved_scope): Likewise.
2201 (d_print_comp): Replace state saving/restoring code with
2202 calls to d_save_scope and d_get_saved_scope.
2203
1f26ac87
JM
22042013-12-23 Bill Maddox <maddox@google.com>
2205
2206 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2207 Handle unified ctor/dtor.
2208 (d_ctor_dtor_name): Handle unified ctor/dtor.
2209
85d09f61
CC
22102013-11-22 Cary Coutant <ccoutant@google.com>
2211
2212 PR other/59195
2213 * cp-demangle.c (struct d_info_checkpoint): New struct.
2214 (struct d_print_info): Add current_template field.
2215 (d_operator_name): Set flag when processing a conversion
2216 operator.
2217 (cplus_demangle_type): When processing <template-args> for
2218 a conversion operator, backtrack if necessary.
2219 (d_expression_1): Renamed from d_expression.
2220 (d_expression): New wrapper around d_expression_1.
2221 (d_checkpoint): New function.
2222 (d_backtrack): New function.
2223 (d_print_init): Initialize current_template.
2224 (d_print_comp): Set current_template.
2225 (d_print_cast): Put current_template in scope for
2226 printing conversion operator name.
2227 (cplus_demangle_init_info): Initialize is_expression and
2228 is_conversion.
2229 * cp-demangle.h (struct d_info): Add is_expression and
2230 is_conversion fields.
2231 * testsuite/demangle-expected: New test cases.
2232
66204992
AS
22332013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2234
2235 * configure: Regenerate.
2236
27297d2d
UB
22372013-11-12 Uros Bizjak <ubizjak@gmail.com>
2238
2239 * cp-demangle.c (d_copy_templates): Cast result of malloc
2240 to (struct d_print_template *).
2241 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2242
eda14d6a
MG
22432013-10-29 Marc Glisse <marc.glisse@inria.fr>
2244
2245 PR tree-optimization/58689
2246 * concat.c: Remove note about xmalloc.
2247
4962e513
GP
22482013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2249
2250 * testsuite/test-demangle.c: Include unistd.h.
27297d2d 2251
c24d86bc
GB
22522013-10-25 Gary Benson <gbenson@redhat.com>
2253
2254 * cp-demangle.c (struct d_saved_scope): New structure.
2255 (struct d_print_info): New fields saved_scopes and
2256 num_saved_scopes.
2257 (d_print_init): Initialize the above.
2258 (d_print_free): New function.
2259 (cplus_demangle_print_callback): Call the above.
2260 (d_copy_templates): New function.
2261 (d_print_comp): New variables saved_templates and
2262 need_template_restore.
27297d2d
UB
2263 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2264 Capture scope the first time the component is traversed, and use the
2265 captured scope for subsequent traversals.
c24d86bc
GB
2266 * testsuite/demangle-expected: Add regression test.
2267
89ac0797
GP
22682013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2269
2270 * testsuite/test-expandargv.c: Include unistd.h.
2271
459260ec
DM
22722013-10-15 David Malcolm <dmalcolm@redhat.com>
2273
2274 * configure.ac: If --enable-host-shared, use -fPIC.
2275 * configure: Regenerate.
2276
ea0882a0
PP
22772013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2278
2279 * cp-demangle.c (d_name): Demangle local-source-names.
2280 * testsuite/demangle-expected: New test.
2281
8b415b27
PC
22822013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2283
2284 PR bootstrap/58386
2285 Revert:
2286
2287 2013-09-10 Gary Benson <gbenson@redhat.com>
2288
2289 * cp-demangle.c: Include hashtab.h.
2290 (struct d_print_info): New field saved_scopes.
2291 (d_print_init): Initialize the above.
2292 (d_print_free): New function.
2293 (cplus_demangle_print_callback): Call the above.
2294 (struct d_saved_scope): New structure.
2295 (d_store_scope): New function.
2296 (d_free_scope) Likewise.
2297 (d_restore_scope) Likewise.
2298 (d_hash_saved_scope) Likewise.
2299 (d_equal_saved_scope) Likewise.
2300 (d_print_comp): New variable saved_scope.
2301 [DEMANGLE_COMPONENT_REFERENCE,
2302 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2303 time the component is traversed, and use the captured scope for
2304 subsequent traversals.
0e2cd22d 2305 * testsuite/demangle-expected: Add regression test.
8b415b27 2306
669ea36c
GB
23072013-09-10 Gary Benson <gbenson@redhat.com>
2308
2309 * cp-demangle.c: Include hashtab.h.
2310 (struct d_print_info): New field saved_scopes.
2311 (d_print_init): Initialize the above.
2312 (d_print_free): New function.
2313 (cplus_demangle_print_callback): Call the above.
2314 (struct d_saved_scope): New structure.
2315 (d_store_scope): New function.
2316 (d_free_scope) Likewise.
2317 (d_restore_scope) Likewise.
2318 (d_hash_saved_scope) Likewise.
2319 (d_equal_saved_scope) Likewise.
2320 (d_print_comp): New variable saved_scope.
2321 [DEMANGLE_COMPONENT_REFERENCE,
2322 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2323 time the component is traversed, and use the captured scope for
2324 subsequent traversals.
0e2cd22d 2325 * testsuite/demangle-expected: Add regression test.
669ea36c 2326
a98cbc36
AM
23272013-08-20 Alan Modra <amodra@gmail.com>
2328
2329 * floatformat.c (floatformat_ibm_long_double): Rename to..
2330 (floatformat_ibm_long_double_big): ..this.
2331 (floatformat_ibm_long_double_little): New.
2332
3830d98a
TG
23332013-07-09 Tristan Gingold <gingold@adacore.com>
2334
2335 * makefile.vms (OBJS): Add dwarfnames.obj
2336
8c9fddf4
MB
23372013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2338
2339 PR other/56780
969ac969 2340 * configure.ac: Move test for --enable-install-libiberty
8c9fddf4
MB
2341 outside of the 'with_target_subdir' test so that it actually gets
2342 run. Add output messages to show the test result.
969ac969
JJ
2343 * configure: Regenerate.
2344 * Makefile.in (install_to_libdir): Place the
8c9fddf4
MB
2345 installation of the libiberty library in the same guard as that
2346 used for the headers to prevent it being installed unless
2347 requested via --enable-install-libiberty.
2348
b768e8cf
DE
23492013-05-06 David Edelsohn <dje.gcc@gmail.com>
2350 Peter Bergner <bergner@vnet.ibm.com>
2351 Segher Boessenkool <segher@kernel.crashing.org>
2352 Jakub Jelinek <jakub@redhat.com>
2353
2354 * hashtab.c (hash_pointer): Remove conditional and avoid
2355 unexecuted shift equal to wordsize.
2356
ecdbd01a 23572013-04-22 Andi Kleen <ak@linux.intel.com>
86210f13
AK
2358
2359 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2360
9eb85f27
JM
23612013-04-03 Jason Merrill <jason@redhat.com>
2362
0861bec8
JM
2363 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2364 (d_pointer_to_member_type): Simplify.
2365
9eb85f27
JM
2366 Demangle C++11 ref-qualifier.
2367 * cp-demangle.c (d_ref_qualifier): New.
2368 (d_nested_name, d_function_type): Use it.
2369 (d_parmlist): Don't get confused by a ref-qualifier.
2370 (cplus_demangle_type): Reorder ref-qualifier.
2371 (d_pointer_to_member_type): Likewise.
2372 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2373 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2374 (d_make_comp, has_return_type, d_encoding): Likewise.
2375 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2376 (d_print_function_type, is_ctor_or_dtor): Likewise.
2377
071928d9
KT
23782013-03-27 Kai Tietz <ktietz@redhat.com>
2379
2380 * configure: Regenerated.
2381
34d3a672
TB
23822013-03-06 Tobias Burnus <burnus@net-b.de>
2383
2384 * libiberty.texi: Update comment, remove lowersections.
2385 * obstacks.texi: Regenerate.
2386
233fa360
JJ
23872013-03-05 Jakub Jelinek <jakub@redhat.com>
2388
2389 PR middle-end/56526
2390 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2391 wrapper_sect_offset to avoid a warning.
2392
40bf31ed
TB
23932013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2394
2395 * obstacks.texi (Obstacks): Trim @node to only contain the
2396 node name.
2397 * libiberty.texi (Obstacks): Lower section.
2398
622aac0b
JM
23992013-02-14 Jason Merrill <jason@redhat.com>
2400
2401 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2402 (d_print_comp): Likewise.
2403
4ab7747c
JJ
24042013-02-09 Jakub Jelinek <jakub@redhat.com>
2405
2406 PR other/56245
2407 * regex.c (PTR_INT_TYPE): Define.
2408 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2409
b1a2e8c6
KT
24102013-01-31 Kai Tietz <ktietz@redhat.com>
2411
4cfc6e54
KT
2412 PR other/54620
2413 * sha1.c (sha1_process_block): Handle case that size_t is
2414 a wider-integer-scalar as a 32-bit unsigned integer.
2415
b7138297 2416 PR other/53413
b1a2e8c6
KT
2417 * md5.c (md5_process_block): Handle case that size_t is
2418 a wider-integer-scalar a 32-bit unsigned integer.
2419
ad8c59a1
ILT
24202013-01-04 Ian Lance Taylor <iant@google.com>
2421
2422 PR other/54800
2423 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2424 bother to zero out a buffer we are about to set anyhow.
2425
a9b01f00
DE
24262013-01-01 David Edelsohn <dje.gcc@gmail.com>
2427
2428 * simple-object-xcoff.c: New file.
2429 * Makefile.in: Add it to build machinery.
2430 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2431 * simple-object.c (format_functions): Add
2432 simple_object_xcoff_functions.
2433
c61e8502
JM
24342012-11-10 Jason Merrill <jason@redhat.com>
2435
2436 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2437 (d_name): Not here.
2438
7dbb85a7
JM
24392012-11-09 Jason Merrill <jason@redhat.com>
2440
2441 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2442 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2443 (d_abi_tags): New.
2444 (d_name): Call it.
2445
7c424acd
JM
24462012-10-08 Jason Merrill <jason@redhat.com>
2447
2448 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2449 (d_make_comp, d_print_comp): Likewise.
2450
9a9baa52
ILT
24512012-09-18 Ian Lance Taylor <iant@google.com>
2452
2453 * strnlen.c: New file.
2454 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2455 present.
2456 * Makefile.in: Rebuild dependencies.
2457 (CFILES): Add strnlen.c.
2458 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2459 * configure, config.in, functions.texi: Rebuild.
2460
2461 * maint-tool: Accept .def files in the include directory.
2462
ed770de9
FW
24632012-09-18 Florian Weimer <fweimer@redhat.com>
2464
2465 PR other/54411
2466 * objalloc.c (_objalloc_alloc): Add overflow check covering
2467 alignment and CHUNK_HEADER_SIZE addition.
2468
fabfa16b
L
24692011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2470
2471 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2472 xmalloc return.
2473 (buildargv): Likewise. Also replace strdup with xstrdup.
2474 (expandargv): Don't check dupargv return.
2475
55529d36
L
24762011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2477
2478 PR binutils/14526
2479 * argv.c (buildargv): Replace alloca with xmalloc/free.
2480
c9ac76ae
AS
24812012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2482
2483 * floatformat.c (floatformat_to_double): Correctly handle numbers
2484 between 1 and 2. Simplify handling of denormal number.
2485 (main): Test with 1.1.
2486
d555a90e
MF
24872012-07-31 Mike Frysinger <vapier@gentoo.org>
2488
2489 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2490 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2491
9cd6dd82
KH
24922012-07-26 Kazu Hirata <kazu@codesourcery.com>
2493 Sandra Loosemore <sandra@codesourcery.com>
2494
2495 * pex-win32.c (pex_win32_exec_child): Only close original file
2496 descriptors if child is launched successfully.
2497
aefa74bd
JM
24982012-07-18 Jason Merrill <jason@redhat.com>
2499
2500 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2501 (op_is_new_cast): New.
2502 (d_expression, d_print_comp): Check it.
2503
69488641
DE
25042012-07-13 Doug Evans <dje@google.com>
2505
2506 * filename_cmp.c (filename_hash, filename_eq): New functions.
2507
8a8b3779
AS
25082012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2509
2510 * copying-lib.texi (Library Copying): Don't use @heading inside
2511 @enumerate.
2512
d931f693
TT
25132012-05-22 Tom Tromey <tromey@redhat.com>
2514
2515 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2516 * testsuite/demangle-expected: Add regression test.
2517 * cp-demangle.c (d_find_pack): Return NULL for
2518 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2519
11ec770e
TT
25202012-04-27 Tom Tromey <tromey@redhat.com>
2521
2522 * dwarfnames.c: New file.
2523 * Makefile.in (CFILES): Add dwarfnames.
2524 (REQUIRED_OFILES): Add dwarfnames.
2525 (./dwarfnames.$(objext)): New target.
2526
c1a96977
TG
25272012-04-04 Tristan Gingold <gingold@adacore.com>
2528
2529 * pex-unix.c (to_ptr32): Fix style.
2530
63e1e57a
TG
25312012-04-02 Tristan Gingold <gingold@adacore.com>
2532
2533 * stack-limit.c: Includes ansidecl.h.
2534 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2535
c19267cb
JM
25362012-03-20 Jason Merrill <jason@redhat.com>
2537
2538 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2539
c93ea196
JM
25402012-03-07 Jason Merrill <jason@redhat.com>
2541
2542 * cp-demangle.c (cplus_demangle_operators): Add li.
2543 (d_unqualified_name): Handle it specially.
2544
bfb676c1
JJ
25452012-01-26 Jakub Jelinek <jakub@redhat.com>
2546
2547 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2548 about using preprocessor directives inside of macro arguments.
2549
daecebc8
DR
25502012-01-22 Douglas B Rupp <rupp@gnat.com>
2551
2552 * configure: Regenerate.
2553
3abbe458
JM
25542012-01-10 Jason Merrill <jason@redhat.com>
2555
2556 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2557 Omit a trailing space in the operator name.
2558
49f2da1a
JM
25592012-01-06 Jason Merrill <jason@redhat.com>
2560
4b6aaa99
JM
2561 PR c++/6057
2562 PR c++/48051
2563 PR c++/50855
2564 PR c++/51322
2565 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2566 DEMANGLE_COMPONENT_INITIALIZER_LIST.
2567 (d_make_comp): Likewise. Allow null right arg for
2568 DEMANGLE_COMPONENT_TRINARY_ARG2.
2569 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2570 (d_template_args, d_template_arg): Handle 'J' for argument packs.
2571 (d_exprlist): Add terminator parm.
2572 (d_expression, d_print_comp): Handle initializer lists, nullary
2573 expressions, prefix/suffix operators, and new.
2574 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2575 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2576 * testsuite/demangle-expected: Add tests.
2577
49f2da1a
JM
2578 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2579 and vector are substitutable.
2580 (cplus_demangle_operators): Sort.
2581
925b0ed8
AK
25822012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2583
2584 * configure: Regenerate.
2585
341d3f6e
JJ
25862012-01-02 Jakub Jelinek <jakub@redhat.com>
2587
2588 * make-relative-prefix.c (make_relative_prefix_1): Avoid
2589 stack overflow if PATH contains just a single entry and
2590 HOST_EXECUTABLE_SUFFIX needs to be used.
2591
2592 PR driver/48306
2593 * make-relative-prefix.c: Include sys/stat.h.
2594 (make_relative_prefix_1): If access succeeds, check also stat
2595 if nstore is a regular file.
2596
4a5e00ca
AS
25972011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2598
2599 * configure: Regenerate.
2600
8c3db96e
TG
26012011-12-20 Tristan Gingold <gingold@adacore.com>
2602
2603 * aclocal.m4: Assume strncmp works in cross case.
2604 * configure: Regenerate
2605
095af58f
AS
26062011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2607
2608 * configure: Regenerate.
2609
0a35513e
AH
26102011-11-07 Richard Henderson <rth@redhat.com>
2611
2612 Merged from transactional-memory.
2613
2614 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2615 gnu_v3_object_ctor_group.
2616 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2617 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2618 and gnu_v3_object_dtor_group.
2619 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2620 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2621 (d_make_comp, d_print_comp): Likewise.
2622 (d_special_name): Generate them.
2623
b25dd954
JM
26242011-11-04 Jason Merrill <jason@redhat.com>
2625
2626 PR c++/48370
2627 * cp-demangle.c (d_special_name, d_print_comp): Handle a
2628 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2629
4092fb6e
DE
26302011-11-02 Doug Evans <dje@google.com>
2631
9f2f6d5e 2632 * Makefile.in (CFILES): Add timeval-utils.c.
4092fb6e
DE
2633 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2634 (INSTALLED_HEADERS): Add timeval-utils.h.
2635 (timeval-utils.$(objext)): Add rule.
2636
d6b0f0f1
ILT
26372011-10-28 Ian Lance Taylor <iant@google.com>
2638
2639 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2640
b20577ea
IS
26412011-10-26 Iain Sandoe <iains@gcc.gnu.org>
2642
2643 PR target/48108
2644 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
2645 GNU_WRAPPER_NAMES): New macros.
2646 (simple_object_mach_o_segment): Handle wrapper scheme.
2647 (simple_object_mach_o_write_section_header): Allow the segment name
2648 to be supplied.
2649 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
2650 that the top-level segment name in the load command is empty.
2651 (simple_object_mach_o_write_to_file): Determine the number of
2652 sections during segment output, use that in writing the header.
2653
d58818f7
ILT
26542011-10-10 Ian Lance Taylor <iant@google.com>
2655
2656 PR c++/48665
2657 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
2658 function type, change them to apply to the "this" parameter.
2659 * testsuite/demangle-expected: Add test case.
2660
be50fcea
DE
26612011-09-28 Doug Evans <dje@google.com>
2662
8c850a5a 2663 * timeval-utils.c: New file.
8c850a5a 2664
be50fcea
DE
2665 * argv.c (countargv): New function.
2666
2d2b02c4
CC
26672011-09-23 Cary Coutant <ccoutant@google.com>
2668
2669 PR 40831
2670 * cp-demangle.c (d_make_comp): Add new component type.
2671 (cplus_demangle_mangled_name): Check for clone suffixes.
2672 (d_parmlist): Don't error out if we see '.'.
2673 (d_clone_suffix): New function.
2674 (d_print_comp): Print info for clone suffixes.
2675 * testsuite/demangle-expected: Add new testcases.
2676
d303ec8e 26772011-09-23 Ian Lance Taylor <iant@google.com>
ae0d176c 2678 Pierre Vittet <piervit@pvittet.com>
d303ec8e
ILT
2679
2680 * md5.c (md5_process_bytes): Correct handling of unaligned
2681 buffer.
2682
e3aa9eba
RO
26832011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2684
2685 * aclocal.m4: Include ../config/picflag.m4.
2686 * configure.ac (GCC_PICFLAG): Call it.
2687 (enable_shared): Clear PICFLAG unless shared.
2688 * configure: Regenerate.
2689
c49b1a29
SE
26902011-08-12 Steve Ellcey <sje@cup.hp.com>
2691
2692 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2693
bd820218
UB
26942011-08-06 Uros Bizjak <ubizjak@gmail.com>
2695
2696 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2697
4bbff96e
JM
26982011-08-01 Jason Merrill <jason@redhat.com>
2699
2700 PR c++/49932
2701 * cp-demangle.c (d_prefix): Handle decltype.
2702 * testsuite/demangle-expected: Test it.
2703
52bed4d7
L
27042011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2705
2706 * testsuite/demangle-expected: Remove an extra line.
2707
f2e6f32e
ILT
27082011-07-26 Ian Lance Taylor <iant@google.com>
2709
2710 * cp-demangle.c (d_print_init): Initialize pack_index field.
2711 (d_print_comp): Check for NULL template argument.
2712 * testsuite/demangle-expected: Add test case.
2713
a0a22423
GP
27142011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
2715
2716 PR target/49817
2717 * stack-limit.c: Include <stdint.h>.
2718
d423df48
JJ
27192011-07-22 Jakub Jelinek <jakub@redhat.com>
2720
2721 PR c++/49756
2722 * stack-limit.c: New file.
2723 * Makefile.in: Regenerate deps.
2724 (CFILES): Add stack-limit.c.
2725 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
2726 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
2727 (AC_CHECK_FUNCS): Likewise.
2728 * configure: Regenerated.
2729 * config.in: Regenerated.
2730
a517066d
JM
27312011-07-04 Jason Merrill <jason@redhat.com>
2732
2733 * cp-demangle.c (d_expression): Handle 'this'.
2734 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
2735
985b34c7
JB
27362011-07-01 Joel Brobecker <brobecker@adacore.com>
2737
2738 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
2739 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
2740
cb0ad104
JK
27412011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2742
2743 PR debug/49408
2744 * cp-demangle.c (d_print_comp): Suppress argument list for function
2745 references by the '&' unary operator. Keep also already processed
2746 variant without the argument list. Suppress argument list types for
2747 function call used in an expression.
2748 * testsuite/demangle-expected: Fix excessive argument list types in
2749 `test for typed function in decltype'. New testcase for no argument
2750 list types printed. 3 new testcases for function references by the
2751 '&' unary operator..
2752
dd70e080
JM
27532011-06-20 Jason Merrill <jason@redhat.com>
2754
2755 PR c++/37089
2756 * cp-demangle.c (d_print_comp): Handle reference smashing.
2757 * testsuite/demangle-expected: Test it.
2758
5fe8e1e9
JK
27592011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2760
2761 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
2762 Suppress d_print_mod for DMGL_RET_POSTFIX.
2763 * testsuite/demangle-expected: New testcases for --ret-postfix.
2764
f019462c
JK
27652011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2766
2767 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
2768 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
2769 * testsuite/demangle-expected: New testcases for --ret-drop.
2770 * testsuite/test-demangle.c: Document --ret-drop in a comment.
2771 (main): New variable ret_drop, fill it, call cplus_demangle with it.
2772
743a99db
JK
27732011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2774
2775 * cp-demangle.c (struct d_print_info): Remove field options.
2776 (d_print_init): Remove parameter options.
2777 (cplus_demangle_print_callback): Update all the callers.
2778 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
2779 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
2780 Add parameter options, update all the callers.
2781
04695783
JM
27822011-04-20 Jim Meyering <meyering@redhat.com>
2783
2784 * cp-demint.c (cplus_demangle_v3_components): Remove useless
2785 if-before-free.
2786 * cplus-dem.c (squangle_mop_up): Likewise.
2787 (delete_non_B_K_work_stuff): Likewise.
2788 * pex-common.c (pex_free): Likewise.
2789 * pex-msdos.c (pex_msdos_cleanup): Likewise.
2790 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
2791 (win32_spawn): Likewise.
2792 * regex.c (FREE_VAR, weak_alias): Likewise.
2793 * spaces.c (spaces): Likewise.
2794
4b9726d4
JM
27952011-04-10 Jim Meyering <meyering@redhat.com>
2796
2797 Avoid memory overrun in a test leading to potential double-free.
2798 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
2799 i.e., do copy the trailing NUL byte.
2800
178aa0f6
TG
28012011-03-31 Tristan Gingold <gingold@adacore.com>
2802
2803 * makefile.vms (OBJS): Add filename_cmp.obj
2804
94369251
KT
28052011-02-28 Kai Tietz <kai.tietz@onevision.com>
2806
2807 * filename_cmp.c (filename_ncmp): New function.
2808 * functions.texi: Regenerated.
2809
996c0cb0
RW
28102011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2811
2812 * splay-tree.c: Escape wrapping newlines in texinfo markup
2813 with '@', to fix function declaration output rendering.
2814 * gather-docs: Relax and improve macro name matching to actually
2815 match all current names and to allow input line wrapping.
2816 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
2817 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
2818 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
2819 pexecute.txh, random.c, setenv.c, setproctitle.c,
2820 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
2821 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
2822 Wrap long texinfo input lines.
2823 * functions.texi: Regenerate.
2824
9e7955b2
MF
28252011-01-18 Mike Frysinger <vapier@gentoo.org>
2826
2827 * .gitignore: New file.
2828
23346f36
DE
28292010-12-08 Doug Evans <dje@google.com>
2830
2831 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
2832 all callers updated. Rewrite to be non-recursive.
2833
4c7d97e6
RO
28342010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2835
2836 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
2837
52ae149d
AG
28382010-11-20 Anthony Green <green@moxielogic.com>
2839
2840 * configure.ac: Turn PR_SET_NAME link test into a test for
2841 sys/prctl.h.
2842 * configure, config.in: Rebuilt.
2843 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
2844 (setproctitle) Test for PR_SET_NAME definition.
2845
455c8f48
RW
28462010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2847
2848 PR other/46202
2849 * Makefile.in (install-strip): New phony target.
2850 (install): Also mark as phony.
2851
d82f74d3
ILT
28522010-11-16 Ian Lance Taylor <iant@google.com>
2853
2854 * simple-object.c (simple_object_attributes_merge): Rename from
2855 simple_object_attributes_compare. Call merge field.
2856 * simple-object-common.h (struct simple_object_functions): Rename
2857 attributes_compare field to attribute_merge.
2858 * simple-object-elf.c (EM_SPARC): Define.
2859 (EM_SPARC32PLUS): Define.
2860 (simple_object_elf_attributes_merge): Renamed from
2861 simple_object_elf_attributes_compare. Permit EM_SPARC and
2862 EM_SPARC32PLUS objects to be merged.
2863 (simple_object_elf_functions): Update function name.
2864 * simple-object-coff.c (simple_object_coff_attributes_merge):
2865 Rename from simple_object_coff_attributes_compare.
2866 (simple_object_coff_functions): Update function name.
2867 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
2868 Renamed from simple_object_mach_o_attributes_compare.
2869 (simple_object_mach_o_functions): Update function name.
2870
431f321f
L
28712010-11-16 H.J. Lu <hongjiu.lu@intel.com>
2872
2873 PR other/42670
2874 PR binutils/11137
2875 * cp-demangle.c (d_make_demangle_mangled_name): New.
2876 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
2877
2878 * testsuite/demangle-expected: Updated.
2879
28d1e73f
KT
28802010-11-14 Kai Tietz <kai.tietz@onevision.com>
2881
2882 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
2883 offset.
2884
759fe240
ILT
28852010-11-12 Ian Lance Taylor <iant@google.com>
2886
2887 PR other/46332
2888 * cp-demangle.c (d_print_function_type): Don't print parentheses
2889 if there are no modifiers to print.
2890 * testsuite/demangle-expected: Tweak one test case, add another.
2891
3b63ca7e
RH
28922010-11-04 Richard Henderson <rth@redhat.com>
2893
2894 * configure.ac (AC_CHECK_HEADERS): Add process.h.
2895 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
2896 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
2897 * configure, config.in: Rebuild.
2898 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
2899 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2900
1cfabf34
ILT
29012010-11-02 Ian Lance Taylor <iant@google.com>
2902 Dave Korn <dave.korn.cygwin@gmail.com>
2903 Iain Sandoe <iains@gcc.gnu.org>
2904
2905 * simple-object.c: New file.
2906 * simple-object-common.h: New file.
2907 * simple-object-elf.c: New file.
2908 * simple-object-mach-o.c: New file.
2909 * simple-object-coff.c: New file.
2910 * simple-object.txh: New file.
2911 * configure.ac: Add AC_TYPE_SSIZE_T.
2912 * Makefile.in: Rebuild dependencies.
2913 (CFILES): Add simple-object.c, simple-object-coff,
2914 simple-object-elf.c, and simple-object-mach-o.c.
2915 (REQUIRED_OFILES): Add corresponding object files.
2916 * configure: Rebuild.
2917 * config.in: Rebuild.
2918 * functions.texi: Rebuild.
2919
c3735614
ILT
29202010-10-29 Ian Lance Taylor <iant@google.com>
2921
2922 * setproctitle.c: Add space after function name in @deftypefn
2923 comment.
2924 * functions.texi: Rebuild.
2925
0e0f02ff
RW
29262010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2927
2928 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
2929 * configure: Regenerate.
2930
ecdbd01a 29312010-10-07 Andi Kleen <ak@linux.intel.com>
4e00fad2
AK
2932
2933 * configure: Regenerate.
2934 * configure.ac: Turn PR_SET_NAME check into link check.
2935
ecdbd01a 29362010-10-06 Andi Kleen <ak@linux.intel.com>
6e9bd0f8
AK
2937
2938 * Makefile.in (CFILES): Add setproctitle.
2939 (CONFIGURED_OFILES): Add setproctitle.
2940 (setproctitle): Add rule.
2941 * config.in: Regenerate.
2942 * configure: Regenerate.
2943 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
2944 * setproctitle.c: Add file.
2945 * functions.texi: Regenerate.
2946
a69d9775
TG
29472010-09-22 Tristan Gingold <gingold@adacore.com>
2948
2949 * cplus-dem.c (ada_demangle): Add comments.
2950 Handle stream and controlled type operations.
2951 Decoding of some uppercase letters moved before separators.
2952 * testsuite/demangle-expected: Add tests.
2953
48255616
JL
29542010-09-10 James Lyon <jameslyon0@googlemail.com>
2955
2956 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
2957 * cp-demangle.c (d_find_pack): Add case for
2958 DEMANGLE_COMPONENT_LAMBDA.
2959 * testsuite/demangle-expected: Add regression test.
2960
16f60fcb
TG
29612010-09-08 Tristan Gingold <gingold@adacore.com>
2962
2963 PR 44001
2964 * maint-tool (missing): Fix pattern for object file.
2965 (deps): Use $(objext) for object extension.
2966 * Makefile.in (objext): New variable.
2967 Replace all occurences of .o with .$(objext)
2968 Regenerate with maint-deps
2969 * configure.ac (pexecute): Set to the basename.
2970 * configure: Regenerate.
2971
93f36faa
MR
29722010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
2973
2974 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
2975 corresponding stream has been opened.
2976 (pex_free): Close pipe file descriptors corresponding to child's
2977 stdout and stderr before waiting.
2978
ec760bea
NC
29792010-08-13 Nick Clifton <nickc@redhat.com>
2980
2981 * argv.c (expandargv): Limit the number of times that response
2982 files are opened in order to prevent infinite recursion.
2983
79cf7628
PO
29842010-07-21 Pascal Obry <obry@adacore.com>
2985
2986 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
2987
d414dde9
KW
29882010-07-06 Ken Werner <ken.werner@de.ibm.com>
2989
2990 * floatformat.c (floatformat_ieee_half_big): New variable.
2991 (floatformat_ieee_half_little): Likewise.
2992
1e913734
GP
29932010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
2994
2995 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
2996 Update copyright years.
2997 Move to GFDL 1.3.
2998
9c4d7e52
JJ
29992010-06-10 Jakub Jelinek <jakub@redhat.com>
3000
3001 PR other/43838
3002 * cp-demangle.c (struct d_print_info): Add flush_count field.
3003 (d_print_init): Initialize it to 0.
3004 (d_print_flush): Increment it.
3005 (d_print_comp): If needed flush before appending ", ". Only
3006 decrement dpi->len if no flushes happened during the recursive
3007 call.
3008 * testsuite/demangle-expected: Add a test for this.
3009
a9429e29
LB
30102010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3011
3012 * splay-tree.c: Update copyright years.
3013 (splay_tree_new_typed_alloc): New.
3014 (splay_tree_new_with_allocator): Use it.
3015
3016 * hashtab.c: Update copyright years.
3017 (htab_create_typed_alloc): New.
3018 (htab_create_alloc): Use it.
3019
3020 * functions.texi: Regenerate.
3021
c3f247f4
RW
30222010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
3023 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3024
3025 PR bootstrap/42798
3026 * configure.ac: Check for declaration of 'basename(char *)'.
3027 * configure: Regenerate.
3028
30292010-05-26 Kai Tietz <kai.tietz@onevision.com>
a6766312
KT
3030
3031 * testsuite/demangle-expected: Add tests for __int128
3032 and unsigned __int128 types.
3033
14c2101d
JM
30342010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3035 Jason Merrill <jason@redhat.com>
3036
3037 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3038 (cplus_demangle_type): Handle nullptr.
3039 * testsuite/demangle-expected: Test it.
3040
3009276c
PA
30412010-04-23 Pedro Alves <pedro@codesourcery.com>
3042
3043 * lbasename.c (lbasename): Split into ...
3044 (unix_lbasename, dos_basename): ... these.
3045 (lbasename): ... and reimplement on top of them.
3046 * Makefile.in (lbasename.o): Add dependency on
3047 $(INCDIR)/filenames.h.
3048
0bb8c134
JJ
30492010-04-07 Jakub Jelinek <jakub@redhat.com>
3050
3051 * regex.c (byte_re_match_2_internal): Avoid set but not used
3052 warning.
3053
ce30e6fd
JM
30542010-03-22 Jason Merrill <jason@redhat.com>
3055
3056 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3057
ef74edbd
RW
30582010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3059
3060 * Makefile.in (all): Do not use exec.
3061
2480e18f
TT
30622010-02-04 Tom Tromey <tromey@redhat.com>
3063
3064 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3065
abfe01ce
JM
30662010-02-03 Jason Merrill <jason@redhat.com>
3067
f000c6a7
JM
3068 * cp-demangle.c (d_expression): Handle dependent operator name.
3069
abfe01ce
JM
3070 PR c++/12909
3071 * cp-demangle.c (d_number_component, d_vector_type): New.
3072 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3073
79b754d4
ILT
30742010-01-25 Ian Lance Taylor <iant@google.com>
3075
3076 * cp-demangle.c (cplus_demangle_type): Check for invalid type
3077 after "DF".
3078 * testsuite/demangle-expected: Add test.
3079
4d43dcde
JM
30802010-01-20 Jason Merrill <jason@redhat.com>
3081
3082 PR c++/42338
3083 * cp-demangle.c (d_print_comp): Fix array index printing.
3084
5b40c067
TG
30852010-01-11 Tristan Gingold <gingold@adacore.com>
3086
3087 * cplus-dem.c (ada_demangle): Remove prototype.
3088 (grow_vect): Removed.
3089 (ada_demangle): Rewritten.
3090 (cplus_demangle): Fix indentation.
3091 * testsuite/demangle-expected: Add tests for Ada.
3092
9b2adcdb
L
30932010-01-09 Ian Lance Taylor <iant@google.com>
3094
3095 PR other/42230
3096 * cp-demangle.c (d_demangle): Return dgs.alc on success.
3097
ed945ad9
NI
30982010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3099
3100 PR target/42316
3101 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3102 * configure: Regenerate.
3103
698861dc
DE
31042009-12-07 Doug Evans <dje@google.com>
3105
3106 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3107
59a8dc25
BE
31082009-11-26 Ben Elliston <bje@au.ibm.com>
3109
3110 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3111 * configure: Regenerate.
3112
1dd2c57b
BE
31132009-11-25 Ben Elliston <bje@au.ibm.com>
3114
3115 * functions.texi: Rebuild.
3116
f8766c93
MLI
31172009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3118 Ben Elliston <bje@au.ibm.com>
3119
3120 * README: Mention changes to Makefile.in and functions.texi.
3121 * gather-docs: Mention 'make stamp-functions' in the header.
3122
5120dc38
BE
31232009-11-23 Ben Elliston <bje@au.ibm.com>
3124 Ian Lance Taylor <iant@google.com>
3125
3126 * pex-unix.c (pex_child_error): Improve warning avoidance by
3127 checking the results of write(3) and exiting with -2 if any write
3128 returns a negative value.
3129
d90a2c59
SW
31302009-11-22 Steve Ward <planet36@gmail.com>
3131
3132 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3133
c22c44ba
BE
31342009-11-20 Ben Elliston <bje@au.ibm.com>
3135
3136 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3137 unused result warnings from write(3) calls. Undefine writeerr
3138 after all uses.
3139
70277b30
DG
31402009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3141 Daniel Jacobowitz <dan@codesourcery.com>
3142 Pedro Alves <pedro@codesourcery.com>
3143
70277b30
DG
3144 * argv.c (consume_whitespace): New function.
3145 (only_whitespace): New function.
3146 (buildargv): Always use ISSPACE by calling consume_whitespace.
3147 (expandargv): Skip empty files. Do not stop at the first empty
3148 argument (calling only_whitespace)..
3149 * testsuite/test-expandargv.c: (test_data): Test empty lines
3150 and empty arguments.
3151 (run_tests): Fix false positives due to shorter arguments.
3152
4578037e
MT
31532009-09-30 Martin Thuresson <martint@google.com>
3154
3155 * regex.c (byte_re_match_2_internal): Split declaration and
3156 assignment to avoid -Wc++-compat warning due to goto.
3157
d5f4eddd
JM
31582009-09-29 Jason Merrill <jason@redhat.com>
3159
3160 * Makefile.in: Enable demangle target.
3161 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3162 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3163 (d_parmlist): Factor out from d_bare_function_type.
3164 (d_compact_number): Factor out from d_template_param and d_expression.
3165 (d_append_num): Factor out from d_print_comp.
3166 (d_print_comp, d_print_mod_list): Handle lambdas.
3167 * testsuite/demangle-expected: Add lambda tests.
3168
31a9bec4 31692009-09-23 Matthew Gingell <gingell@adacore.com>
30b639a8
MG
3170
3171 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3172
bcf11ab4
OS
31732009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3174
3175 * choose-temp.c: Include unistd.h for mingw targets.
3176
50cb834f
RO
31772009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3178
3179 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3180
384ed84d
TG
31812009-09-15 Tristan Gingold <gingold@adacore.com>
3182
3183 * config.h-vms (intptr_t): Define to compile hashtab.c
3184
0e497905
OS
31852009-09-04 Ozkan Sezer <sezeroz@gmail.com>
3186
3187 PR target/39065
3188 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3189 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3190 * config.in: Regenerated.
3191 * configure: Regenerated.
3192
2e3dac6f
OS
31932009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3194
3195 PR target/39065
3196 * configure.ac: Also check for intptr_t.
3197 * config.h.in: Regenerated.
3198 * configure: Regenerated.
3199 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3200 instead of of long.
3201
f071aaca
TG
32022009-09-02 Tristan Gingold <gingold@adacore.com>
3203
3204 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3205 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3206 dependencies. Remove unused FORMAT variable.
3207 * configure.com: New file to create build.com DCL script for
3208 Itanium VMS or Alpha VMS.
3209
df58e648
RW
32102009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3211
3212 * configure.ac (AC_PREREQ): Bump to 2.64.
3213
2eba9355
L
32142009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3215
3216 PR ld/10536
3217 * Makefile.in (install-html-recursive): Removed.
3218
5213506e
RW
32192009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3220
3221 * config.in: Regenerate.
3222 * configure: Regenerate.
3223
6efbd53f
RW
32242009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3225
3226 * Makefile.in (AUTOCONF, configure_deps): New variables.
3227 ($(srcdir)/configure): New rule, active only in maintainer mode.
3228
2958f4a2
DR
32292009-07-29 Douglas B Rupp <rupp@gnat.com>
3230
3231 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3232
b303ef51
DR
32332009-07-27 Douglas B Rupp <rupp@gnat.com>
3234
3235 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3236 file instead).
3237 (to_ptr32): New function.
3238 (pex_unix_exec_child): Use it.
3239
330b922f
ILT
32402009-07-24 Ian Lance Taylor <iant@google.com>
3241
3242 PR bootstrap/40854
3243 * crc32.c (xcrc32): Rename from crc32.
3244
b524249c
ILT
32452009-07-24 Ian Lance Taylor <iant@google.com>
3246
3247 * crc32.c: New file.
3248 * Makefile.in: Rebuild dependencies.
3249 (CFILES): Add crc32.c.
3250 (REQUIRED_OFILES): Add ./crc32.o.
3251 * functions.texi: Rebuild.
3252
23b1a789
JK
32532009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3254
3255 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3256 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3257 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3258 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3259 (d_demangle_callback): The variable type is now declared as enum.
3260 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3261
a46f975b
JJ
32622009-06-21 Jakub Jelinek <jakub@redhat.com>
3263
3264 * hashtab.c (htab_traverse): Don't call htab_expand for
3265 nearly empty hashtabs with sizes 7, 13 or 31.
3266
ee07afa0
NC
32672009-06-16 Nick Clifton <nickc@redhat.com>
3268
3269 PR 10197
3270 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3271 conflicts with system function of the same name.
3272
ec5c6f4a
EZ
32732009-05-30 Eli Zaretskii <eliz@gnu.org>
3274
3275 * snprintf.c: Doc fix.
3276
3277 * vsnprintf.c: Doc fix.
3278
bb870b58
KT
32792009-05-29 Kai Tietz <kai.tietz@onevision.com>
3280
bd820218 3281 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
bb870b58 3282
4cfaf1ec
MM
32832009-05-29 Michael Matz <matz@suse.de>
3284
3285 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3286 out when forcing the minimum.
3287 (fibheap_delete_node): Assert that we managed to force the minimum.
3288
0d38b677
TG
32892009-05-25 Tristan Gingold <gingold@adacore.com>
3290
3291 * config.h-vms: Rewritten. Define configure macros.
3292 Use DEC-C builtin alloca.
3293
3294 * makefile.vms (OBJS): Update list.
3295 (OPT): New variable.
3296 (CFLAGS): Update compilation flags.
3297 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3298
7859dde7
ILT
32992009-05-19 Ian Lance Taylor <iant@google.com>
3300 Ben Elliston <bje@au.ibm.com>
3301
3302 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3303 (cplus_demangle_fill_dtor): Likewise.
3304
965cc3c3
JB
33052009-05-17 Julian Brown <julian@codesourcery.com>
3306
3307 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3308 standard handles (stdin, stdout, stderr) in parent.
3309
6874160d
JB
33102009-04-29 Julian Brown <julian@codesourcery.com>
3311
bd820218 3312 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
6874160d
JB
3313 (pex_win32_exec_child): Ensure each process has only one handle open
3314 on pipe endpoints. Close standard input after creating child for
3315 symmetry with standard output/standard error.
3316
ae2040df
EZ
33172009-04-25 Eli Zaretskii <eliz@gnu.org>
3318
3319 * Makefile.in (needed-list): Target removed (not used in GCC
3320 3.0 and later). All references deleted.
3321 (mostlyclean): Remove references to needed.awk and needed2.awk.
3322
01459fb5
EZ
33232009-04-14 Eli Zaretskii <eliz@gnu.org>
3324
3325 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3326 existing and required library functions to with_target_subdir
3327 section, so that the native build does detect them at configure
3328 time.
3329 * configure: Regenerated.
bd820218 3330
92c3e704
OS
33312009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3332
bd820218
UB
3333 PR target/39397
3334 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3335 not as long (members *children and (*wait))
3336 * pex-common.c (pex_run_in_environment): Likewise.
3337 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3338 returned pid value.
3339 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3340 * pex-msdos.c (pex_msdos_wait): Likewise.
92c3e704 3341
020e3d02
AP
33422009-04-07 Arnaud Patard <apatard@mandriva.com>
3343
969ac969
JJ
3344 * configure.ac: Fix Linux/MIPS matching rule.
3345 * configure: Regenerate.
020e3d02 3346
b524249c 33472009-03-27 Ian Lance Taylor <iant@google.com>
5fbd9447
ILT
3348
3349 * memmem.c: New file, from gnulib.
3350 * configure.ac: Add memmem to list of functions provided if they
3351 are not available on the host.
3352 * Makefile.in: Rebuild dependencies.
3353 (CFILES): Add memmem.c.
3354 (CONFIGURED_OFILES): Add memmem.o.
3355 * configure, config.in, functions.texi: Rebuild.
3356
6afcfe0a
JM
33572009-03-23 Jason Merrill <jason@redhat.com>
3358
3359 * cp-demangle.c (d_expression): Handle pack expansion.
3360 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3361 (d_print_subexpr): Don't wrap function parms in ().
3362 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3363 not finding a pack.
3364
448545cb
JM
33652009-03-17 Jason Merrill <jason@redhat.com>
3366
3367 * cp-demangle.c (d_make_function_param): new fn.
3368 (cplus_demangle_mangled_name): Work around abi v2 bug.
3369 (d_expr_primary): Likewise.
3370 (cplus_demangle_operators): Add alignof ops.
3371 (d_expression): Handle function parameters and conversions
3372 with other than 1 operand.
3373 (d_print_comp): Handle function parameters. Fix bug with
3374 function used in type of function.
79b754d4 3375 * testsuite/demangle-expected: Update tests.
448545cb 3376
8c9abf1f
MM
33772009-02-21 Mark Mitchell <mark@codesourcery.com>
3378
3379 * make-temp-file.c (<windows.h>): Include on Windows.
3380 (choose_tmpdir): On Windows, use GetTempPath.
3381
04f9f7b5
DK
33822009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3383
3384 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3385 as it no longer shares libiberty object files.
3386 * configure: Regenerated.
3387
30471e01
JM
33882009-01-07 Jason Merrill <jason@redhat.com>
3389
3390 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3391
381009fe
BE
33922009-01-06 Ben Elliston <bje@au.ibm.com>
3393
3394 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3395 character following a 'D' cannot be recognised.
3396
938e76ad
JM
33972008-12-18 Jason Merrill <jason@redhat.com>
3398
3399 PR c++/38561
3400 * cp-demangle.c (d_expression, d_print_comp): Revert
3401 cast changes.
3402
a77f94e2
JM
34032008-12-17 Jason Merrill <jason@redhat.com>
3404
3405 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3406 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3407 (d_print_comp): Avoid extra ", " with empty template argument packs.
3408 Remove handling for obsolete T() mangling.
3409
07523e7c
JM
34102008-12-10 Jason Merrill <jason@redhat.com>
3411
3412 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3413 (d_print_comp, d_dump): Likewise.
3414
b36c386c
DJ
34152008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3416
3417 * Makefile.in (CPPFLAGS): Define.
3418 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3419
269f1d98
PB
34202008-10-15 Paolo Bonzini <bonzini@gnu.org>
3421
61b74e12 3422 PR bootstrap/37137
269f1d98
PB
3423 * Makefile.in (LIBCFLAGS): Remove.
3424 (FLAGS_TO_PASS): Don't mention it.
3425 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3426
0c9e8424
DE
34272008-10-08 David Edelsohn <edelsohn@gnu.org>
3428
3429 * xstrdup.c: Include <sys/types.h> after "config.h"
bd820218 3430
d208e2d2
JK
34312008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3432
3433 * configure.ac: Call AC_SYS_LARGEFILE.
3434 * config.in: Regenerated.
3435 * configure: Likewise.
3436
38179091
JM
34372008-10-06 Jason Merrill <jason@redhat.com>
3438
3439 * cp-demangle.c (struct d_print_info): Add pack_index.
3440 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3441 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3442 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3443 (cplus_demangle_builtin_types): Add char16/32_t.
3444 (cplus_demangle_type): Recognize them.
3445 (d_template_args): Handle empty argument packs.
3446 (d_template_arg): Handle argument packs.
3447 (d_expression): Handle dependent name.
3448 (d_index_template_argument): New fn.
3449 (d_lookup_template_argument): New fn.
3450 (d_find_pack, d_pack_length): New fn.
3451 (d_print_subexpr): Split out...
3452 (d_print_comp): ...from here. Use d_*_template_argument.
3453 Handle empty arg lists. Support pack expansions.
3454 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3455
5a3d7e74
JM
34562008-09-09 Jason Merrill <jason@redhat.com>
3457
3458 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3459 (d_make_comp): Likewise.
3460 (cplus_demangle_type): Handle decltype and DFP types.
3461 (cplus_demangle_operators): Call operator takes 2 args.
3462 (cplus_demangle_builtin_types): Add DFP types.
3463 (d_exprlist): New fn.
3464 (d_expression): Handle parm placeholders, T() and calls.
3465 (d_print_comp): Handle decltype, T() and calls.
3466 * testsuite/demangle-expected: Test the above.
3467
98b45309
AL
34682008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3469
3470 * pex-win32.c (argv_to_argc): New function.
3471 (spawn_script): Duplicate argv before calling win32_spawn.
3472
60ecfb1b
JJ
34732008-07-31 Jakub Jelinek <jakub@redhat.com>
3474
3475 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3476
a23eb008
DV
34772008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3478
3479 * mkstemps.c (mkstemps): If open failed with errno other than
3480 EEXIST, return immediately.
3481 * make-temp-file.c: Include errno.h.
3482 (make_temp_file): If mkstemps failed, print an error message
3483 before aborting.
3484
f59a2f55
RW
34852008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3486
3487 * maint-tool (deps): Output config.h instead of stamp-h.
3488 * Makefile.in: Rebuild deps.
3489 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3490 Reverts 2007-07-11 change.
3491
6819ba36
EB
34922008-06-19 Eric Blake <ebb9@byu.net>
3493
3494 Adjust strsignal to POSIX 200x prototype.
3495 * strsignal.c (strsignal): Remove const.
3496
18c04407
RW
34972008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3498
3499 * configure: Regenerate.
3500
6ccde948
RW
35012008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3502
3503 * libiberty.texi: Expand TABs, drop indentation outside examples.
3504 * obstacks.texi: Likewise.
3505
951b54cc
AJ
35062008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3507
969ac969
JJ
3508 * configure.ac: use -fPIC on Linux/MIPS hosts.
3509 * configure: Regenerate.
951b54cc 3510
b6baa67d
KVH
35112008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3512
3513 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3514
deb984e6
PB
35152008-04-18 Paolo Bonzini <bonzini@gnu.org>
3516
3517 PR bootstrap/35457
3518 * aclocal.m4: Add override.m4.
3519 * configure: Regenerate.
3520
eeda7b98
ILT
35212008-03-31 Ian Lance Taylor <iant@google.com>
3522
3523 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3524 -fstrict-overflow optimizations.
3525
c91c9c2e
PB
35262008-03-27 Paolo Bonzini <bonzini@gnu.org>
3527
3528 * configure.ac (frags): Don't set, use frag instead.
3529 (PICFLAG): Set here and substitute.
3530 * Makefile.in (PICFLAG): Substitute from autoconf.
3531 * configure: Regenerate.
3532
598848e4
ILT
35332008-03-24 Ian Lance Taylor <iant@google.com>
3534
3535 * sha1.c: New file, from gnulib.
3536 * Makefile.in: Rebuild dependencies.
3537 (CFILES): Add sha1.c.
3538 (REQUIRED_OFILES): Add sha1.o.
3539
01b11940
DE
35402008-03-24 Doug Evans <dje@google.com>
3541
3542 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3543 return from strdup.
3544
5a9340fd
SP
35452008-03-12 Seongbae Park <seongbae.park@gmail.com>
3546
3547 * cplus-dem.c (malloc, realloc): Use void * instead of char *
3548 as return type.
3549
73b38fce
NC
35502008-03-11 Nick Clifton <nickc@redhat.com>
3551
3552 * md5.c (md5_process_bytes): Do not assume that memcpy will
3553 provide a return value.
3554
5ff3a208
BE
35552008-02-19 Ben Elliston <bje@au.ibm.com>
3556
3557 PR other/12618
3558 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3559
e5df4fb1
DD
35602008-01-26 David Daney <ddaney@avtrex.com>
3561
3562 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3563 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3564 DEMANGLE_COMPONENT_CHARACTER cases.
3565 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3566 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3567 (d_make_character): New function.
3568 (d_java_resource): Same.
3569 (d_special_name): Handle "Gr" case.
3570 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3571 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3572 DEMANGLE_COMPONENT_CHARACTER cases.
3573 * testsuite/demangle-expected: Add test for java resource name
3574 mangling.
3575
62b445b3
TJB
35762008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3577
3578 * cplus-dem.c (demangle_function_name): Changed to return value
3579 indicating if a name was correctly demangled.
3580 (iterate_demangle_function): Use demangle_function_name return
3581 value.
3582
daf6ff4c
MLI
35832008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3584
3585 PR other/33768
3586 * splay-tree.c (rotate_left): Fix minor typo in comment.
3587 (rotate_right): Likewise.
3588
983a6f8d
JM
35892007-11-12 Joseph Myers <joseph@codesourcery.com>
3590
3591 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3592 compiler warnings.
3593 (floatformat_ibm_long_double): Use
3594 floatformat_ibm_long_double_is_valid.
3595
da59326f
JM
35962007-11-07 Joseph Myers <joseph@codesourcery.com>
3597 Daniel Jacobowitz <dan@codesourcery.com>
3598
3599 * floatformat.c (mant_bits_set): New.
3600 (floatformat_to_double): Use it. Note no special handling of
3601 split formats.
3602 (floatformat_from_double): Note no special handing of split
3603 formats.
3604 (floatformat_ibm_long_double_is_valid,
3605 floatformat_ibm_long_double): New.
3606 (floatformat_ieee_single_big, floatformat_ieee_single_little,
3607 floatformat_ieee_double_big, floatformat_ieee_double_little,
3608 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3609 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3610 floatformat_m68881_ext, floatformat_i960_ext,
3611 floatformat_m88110_ext, floatformat_m88110_harris_ext,
3612 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3613 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3614 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3615 for addition of split_half field.
3616
48492bdf
TT
36172007-09-06 Tom Tromey <tromey@redhat.com>
3618
3619 * pexecute.txh (pex_free): Document process killing.
3620
1ab28be5 36212007-08-31 Douglas Gregor <doug.gregor@gmail.com>
6819ba36 3622
1ab28be5 3623 * cp-demangle.c (d_dump): Handle
6819ba36 3624 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1ab28be5
DG
3625 (d_make_comp): Ditto.
3626 (cplus_demangle_type): Ditto.
3627 (d_print_comp): Ditto.
3628 (d_print_mod): Ditto.
3629 (d_print_function_type): Ditto.
3630
1651030c
KT
36312007-08-24 Kai Tietz <kai.tietz@onevision.com>
3632
3633 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
3634 * pex-djgpp.c: Likewise.
3635 * pex-msdos.c: Likewise.
3636 * pex-unix.c: Likewise.
3637 * pex-win32.c: Likewise.
3638
9c79ad8b
MS
36392007-08-17 Michael Snyder <msnyder@access-company.com>
3640
3641 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3642
fd83e387
MS
36432007-08-03 Michael Snyder <msnyder@access-company.com>
3644
3645 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3646 leak.
3647
ac847e32
MS
36482007-07-31 Michael Snyder <msnyder@access-company.com>
3649
3650 * cp-demangle.c (d_print_comp): Guard against null.
3651
f4f29b59
BE
36522007-07-25 Ben Elliston <bje@au.ibm.com>
3653
3654 * Makefile.in (CFILES): Remove ternary.c.
3655 (REQUIRED_OFILES): Remove ./ternary.o.
3656 (INSTALLED_HEADERS): Remove ternary.h.
3657 (ternary.o): Remove.
3658 * ternary.c: Remove.
3659
f4e00f44
DD
36602007-07-23 DJ Delorie <dj@redhat.com>
3661
3662 * argv.c (writeargv): Fix typo in inline documentation.
3663 * functions.texi: Regenerate.
3664
6a9131e7
DD
36652007-07-17 DJ Delorie <dj@redhat.com>
3666
3667 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
3668 gettimeofday entry.
3669 * configure: Likewise.
3670
0f3d38b6
AO
36712007-07-11 Alexandre Oliva <aoliva@redhat.com>
3672
3673 * maint-tool (deps): Output stamp-h instead of config.h.
3674 * Makefile.in: Rebuild deps.
3675 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3676
38bb3485
SB
36772007-07-02 Simon Baldwin <simonb@google.com>
3678
3679 * argv.c (writeargv): Removed declaration of unused variable.
3680
aa2480c5
PB
36812007-06-14 Paolo Bonzini <bonzini@gnu.org>
3682
3683 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
3684 * configure: Regenerate.
3685
3bbd5a19
PB
36862007-06-14 Paolo Bonzini <bonzini@gnu.org>
3687
3688 * aclocal.m4: Include config/warnings.m4.
3689 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
3690 * configure: Regenerate.
3691
abea993f
GK
36922007-06-07 Geoffrey Keating <geoffk@apple.com>
3693
3694 * configure.ac: Non-default multilibs can be cross compilations.
3695 * configure: Regenerate
3696
2091ff66
NF
36972007-05-07 Nathan Froyd <froydnj@codesourcery.com>
3698
3699 * argv.c (writeargv): New function.
3700
a2aa65f0
GK
37012007-05-05 Geoffrey Keating <geoffk@apple.com>
3702
3703 * cp-demangle.c (d_name): Detect local-source-name.
3704 (d_prefix): Likewise.
3705 (d_unqualified_name): Implement local-source-name.
3706
186c60ab
JB
37072007-05-03 Joel Brobecker <brobecker@adacore.com>
3708
3709 * filename_cmp.c: Replace include of ctype.h by include of
3710 safe-ctype.h.
3711 (filename_cmp): Use TOLOWER instead of tolower for conversions
3712 that are locale-independent.
3713 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
3714
a3fa7535 37152007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
017133fd
TN
3716
3717 * argv.c: Use ANSI C declarations.
3718 * make-relative-prefix.c: Likewise.
3719
96a94ff4
JB
37202007-04-06 Joel Brobecker <brobecker@adacore.com>
3721
3722 * filename_cmp.c (filename_cmp): Improve documentation.
3723
320fc205
AS
37242007-04-02 Andreas Schwab <schwab@suse.de>
3725
3726 * filename_cmp.c: Include "config.h".
3727
cde515d9
JB
37282007-03-29 Joel Brobecker <brobecker@adacore.com>
3729
3730 * filename_cmp.c: New file.
3731 * Makefile.in (CFILES): Add filename_cmp.c.
3732 (REQUIRED_OFILES): Add filename_cmp.o
3733 (filename_cmp.o): New rule.
3734 * functions.texi: Regenerate.
3735
771904f1
GK
37362007-03-15 Geoffrey Keating <geoffk@apple.com>
3737
3738 * cp-demangle.c (d_encoding): Exit early on error.
3739 (d_pointer_to_member_type): Exit early if cplus_demangle_type
3740 returns NULL.
3741 (cplus_demangle_type): Likewise.
3742 * testsuite/demangle-expected: New testcase.
3743
267686a7
BM
37442007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3745
3746 * Makefile.in: Add install-pdf target as copied from
3747 automake v1.10 rules.
3748 * testsuite/Makefile.in: Add dummy install-pdf target.
3749
5f81370d 37502007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
6819ba36 3751 Eric Botcazou <ebotcazou@libertysurf.fr>
5f81370d
PB
3752
3753 PR other/16513
3754 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
3755 Install headers in multilib independent location.
3756
f86b57e4
DD
37572007-02-26 DJ Delorie <dj@redhat.com>
3758
3759 * configure.ac: add djgpp-specific results, so we don't have to
3760 link during a cross compilation.
3761 * configure: Regenerated.
6819ba36 3762
15b16eb5
RW
37632007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3764
3765 * hex.c: Fix typo.
3766 * choose-temp.c: Likewise.
3767 * functions.texi: Regenerate.
3768
7cf4c53d
VP
37692007-01-31 Vladimir Prus <vladimir@codesourcery.com>
3770
3771 * pex-common.h (struct pex_obj): New fields
6819ba36 3772 stderr_pipe and read_err.
7cf4c53d
VP
3773 * pex-common.c (pex_init_common): Initialize
3774 stderr_pipe.
3775 (pex_run_in_environment): Add error checking
3776 for PEX_STDERR_TO_PIPE. Create a pipe
3777 for stderr if necessary.
3778 (pex_read_err): New.
3779 (pex_free): Close read_err.
3780 * pexecute.txh: Document changes.
3781 * functions.texi: Regenerated.
3782
ae452ed1
BE
37832007-01-31 Ben Elliston <bje@au.ibm.com>
3784
3785 * strsignal.c (psignal): Change type of signo to int.
3786 * functions.texi: Regenerate.
3787
456cc5cf
SB
37882007-01-29 Simon Baldwin <simonb@google.com>
3789
3790 * cp-demangle.h (cplus_demangle_operators): External definition
3791 suppressed if not building for libstdc++.
3792 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
3793 to demangling, provides a malloc-less version of __cxa_demangle.
3794 (cplus_demangle_print_callback): Public callback version of
3795 cplus_demangle_print.
3796 (struct d_growable_string): New growable string structure.
3797 (d_growable_string_init): New function, provides support for
3798 growable strings separate from print info.
3799 (d_growable_string_resize): Likewise.
3800 (d_growable_string_append_buffer): Likewise.
3801 (d_growable_string_callback_adapter):): Likewise.
3802 (d_print_init): New print info initialization function.
3803 (d_print_error): Macro replace by inline function.
3804 (d_print_saw_error): Likewise.
3805 (d_append_char): Likewise.
3806 (d_append_buffer): Likewise.
3807 (d_append_string): New inline function, replaces the
3808 d_append_string_constant macro.
3809 (d_flush_buffer): New function, flushes buffer to callback.
3810 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
3811 for unsupported dynamic arrays replaced by alloca().
3812 (d_demangle): Return string length estimating removed.
3813 (d_dump): Moved error case handling from call site into function.
3814 (d_print_resize): Function removed.
3815 (d_print_append_char): Likewise.
3816 (d_print_append_buffer): Likewise.
3817 (d_print_error): Likewise.
3818 (d_print_comp): Added special case handling for Java arrays.
3819 (java_demangle_v3): Removed string post-processing for Java arrays,
3820 now replaced by special case handling in d_print_comp.
3821 (cplus_demangle_v3_callback): Augmented interface to demangling,
3822 provides a malloc-less version of cplus_demangle_v3.
3823 (java_demangle_v3_callback): Augmented interface to demangling,
3824 provides a malloc-less version of java_demangle_v3.
3825
7d37bf39
BE
38262007-01-12 Ben Elliston <bje@au.ibm.com>
3827
1a8e58a3
BE
3828 * pex-unix.c (writeerr): Cast write result to void.
3829
4d4f0164
BE
3830 * choose-temp.c (choose_temp_base): Check the result of the call
3831 to mktemp rather than testing the length of the modified string.
7d37bf39 3832
5165f125
GK
38332006-12-20 Geoffrey Keating <geoffk@apple.com>
3834
3835 * cp-demangle.h: Add comment explaining what to do to avoid
3836 overrunning string.
3837 (d_check_char): New.
3838 (d_next_char): Don't advance past trailing '\0'.
3839 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
3840 (d_nested_name): Likewise.
3841 (d_special_name): Likewise.
3842 (d_call_offset): Likewise.
3843 (d_function_type): Likewise.
3844 (d_array_type): Likewise.
3845 (d_pointer_to_member_type): Likewise.
3846 (d_template_param): Likewise.
3847 (d_template_args): Likewise.
3848 (d_template_arg): Likewise.
3849 (d_expr_primary): Likewise.
3850 (d_local_name): Likewise.
3851 (d_substitution): Likewise.
3852 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
3853 * testsuite/test-demangle.c: Include sys/mman.h.
3854 (MAP_ANONYMOUS): Define.
3855 (protect_end): New.
3856 (main): Use protect_end.
3857 * testsuite/demangle-expected: Add testcases for overrunning
3858 the end of the string.
3859
334737af 38602006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
6819ba36 3861 J"orn Rennecke <joern.rennecke@st.com>
334737af
AS
3862
3863 PR driver/29931
3864 * make-relative-prefix.c (make_relative_prefix_1): New function,
3865 broken out of make_relative_prefix. Make link resolution dependent
3866 on new parameter.
3867 (make_relative_prefix): Use make_relative_prefix_1.
3868 (make_relative_prefix_ignore_links): New function.
3869
e9903c67
VP
38702006-11-08 Vladimir Prus <vladimir@codesourcery.com>
3871
3872 * pex-win32.c (no_suffixes): Remove.
3873 (std_suffixes): Add "" as first element.
3874 (find_executable): Remove detection of already-present
3875 extension. Try all suffixes in std_suffixes.
6819ba36 3876
36b82060
JB
38772006-11-07 Julian Brown <julian@codesourcery.com>
3878
3879 * floatformat.c (get_field): Fix segfault with little-endian word
3880 order on 64-bit hosts.
3881 (put_field): Likewise.
3882 (min): Move definition.
3883
7445de0a
DS
38842006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
3885
3886 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
3887 (find_executable): Likewise.
3888 (win32_spawn): Cast alloca return to (char**).
3889 Replace malloc with XNEWVEC.
3890 bcopy.c (bcopy): Add explict casts in assignments.
3891
97977a91
BE
38922006-10-25 Ben Elliston <bje@au.ibm.com>
3893
3894 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
6819ba36 3895
b5422ad7
BM
38962006-10-10 Brooks Moses <bmoses@stanford.edu>
3897
3898 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
3899 * testsuite/Makefile.in: Added empty "pdf" target.
3900
53e3e587
ILT
39012006-09-22 Ian Lance Taylor <ian@airs.com>
3902
3903 PR other/29176
3904 * cp-demangle.c (d_substitution): Check for overflow when
3905 computing substitution index.
3906
70aec81b
CV
39072006-08-30 Corinna Vinschen <corinna@vinschen.de>
3908
3909 * configure.ac: Add case for Mingw as host.
3910 * configure: Regenerate.
3911
022d4166
ILT
39122006-08-27 Ian Lance Taylor <ian@airs.com>
3913
5317e1c7
ILT
3914 PR driver/27622
3915 * pex-common.h (struct pex_funcs): Add toclose parameter to
3916 exec_child field.
3917 * pex-common.c (pex_run_in_environment): Pass toclose to
3918 exec_child.
3919 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
3920 * pex-unix.c (pex_unix_exec_child): Likewise.
3921 * pex-msdos.c (pex_msdos_exec_child): Likewise.
3922 * pex-win32.c (pex_win32_exec_child): Likewise.
3923
022d4166
ILT
3924 PR other/28797
3925 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
3926 for a qualified member which is not a function.
3927 * testsuite/demangle-expected: Add test case.
3928
3050098b
JH
39292006-07-27 Jan Hubicka <jh@suse.cz>
3930
3931 PR rtl-optimization/28071
3932 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
3933 downsize the hashtable.
3934
706601d9
PG
39352006-07-04 Peter O'Gorman <peter@pogma.com>
3936
3937 * Makefile.in: chmod 644 before ranlib during install.
3938
239559e7
MS
39392006-06-02 Mark Shinwell <shinwell@codesourcery.com>
3940
3941 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
3942 to environ.
3943
ea60341e
MS
39442006-06-01 Mark Shinwell <shinwell@codesourcery.com>
3945
3946 * pex-common.c: New function pex_run_in_environment.
3947 * pex-common.h: Add environment parameter to exec_child.
3948 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
3949 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
3950 (pex_djgpp_exec_child): Pass environment to child process.
3951 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
3952 (pex_unix_exec_child): Pass environment to child process.
3953 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
3954 New function env_compare for comparing VAR=VALUE pairs.
3955 (win32_spawn): Assemble environment block and pass to CreateProcess.
3956 (spawn_script): Pass environment through to win32_spawn.
3957 (pex_win32_exec_child): Pass environment through to spawn_script and
3958 win32_spawn.
3959 * functions.texi: Regenerate.
3960 * pexecute.txh: Document pex_run_in_environment.
3961
8967e029
MS
39622006-05-28 Mark Shinwell <shinwell@codesourcery.com>
3963
3964 * mkstemps.c: Open temporary files in binary mode.
3965
824bceb0
AB
39662006-05-12 Anton Blanchard <anton@samba.org>
3967
3968 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
3969 hold "int%u_t".
3970
9fff6432
JB
39712006-04-24 Julian Brown <julian@codesourcery.com>
3972
3973 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
3974
8eff378c
JB
39752006-03-29 Jim Blandy <jimb@codesourcery.com>
3976
f33a23a0 3977 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
3978 (pex_init_common): Initialize obj->input_file.
3979 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
3980 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
3981 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 3982 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
3983 * pex-unix.c (pex_unix_fdopenw): New function.
3984 (funcs): List it as our fdopenw function.
3985 * pex-win32.c (pex_win32_fdopenw): New function.
3986 (funcs): List it as our fdopenw function.
3987 * pex-djgpp.c (funcs): Leave fdopenw null.
3988 * pex-msdos (funcs): Same.
3989 * functions.texi: Regenerated.
8eff378c 3990
5ea49f9c
JB
39912006-04-10 Jim Blandy <jimb@codesourcery.com>
3992
3993 * pex-common.c (temp_file): New function, containing guts of
3994 pex-style temporary file name generation.
3995 (pex_run): Use it.
3996
cf61af07
CD
39972006-04-06 Carlos O'Donell <carlos@codesourcery.com>
3998
3999 * Makefile.in: Add install-html, install-html-am, and
6819ba36
EB
4000 install-html-recursive targets. Define mkdir_p and
4001 NORMAL_INSTALL.
cf61af07
CD
4002 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4003 * configure: Regenerate.
4004 * testsuite/Makefile.in: Add install-html and html targets.
4005
bd9e7c5c
MM
40062006-03-31 Mark Mitchell <mark@codesourcery.com>
4007
4008 * pex-win32.c (<errno.h>): Include.
4009 (fix_argv): Remove.
4010 (argv_to_cmdline): New function.
4011 (std_suffixes): New variable.
4012 (no_suffixes): Likewise.
4013 (find_executable): New function.
4014 (win32_spawn): Likewise.
4015 (spawn_script): Use win32_spawn instead of _spawnv[p].
4016 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4017 (pex_win32_wait): Likewise.
4018
58df1c41
JB
40192006-03-24 Jim Blandy <jimb@codesourcery.com>
4020
4021 * pex-common.c (pex_run): Simplify output name handling.
4022
7d898fa2
JB
40232006-03-12 Jim Blandy <jimb@red-bean.com>
4024
4025 * pex-common.h (struct pex_obj): Doc fixes.
4026
ddbbee51
JB
40272006-03-11 Jim Blandy <jimb@red-bean.com>
4028
4029 * functions.texi: Regenerate.
4030
f49712d8
BE
40312006-02-21 Ben Elliston <bje@au.ibm.com>
4032
4033 * pexecute.c (pwait): Syntax fix for previous change.
4034
8f629dc5
UP
40352006-02-17 Uttam Pawar <uttamp@us.ibm.com>
4036
4037 * pexecute.c (pwait): Free vector pointer.
4038 * partition.c (partition_print): Free class_elements pointer.
4039
12c61ac3
RS
40402006-02-11 Roger Sayle <roger@eyesopen.com>
4041 R. Scott Bailey <scott.bailey@eds.com>
4042 Bill Northcott <w.northcott@unsw.edu.au>
4043
4044 PR bootstrap/16787
4045 * floatformat.c: Include <float.h> where available.
4046 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4047
e8f9ec35
GDR
40482006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4049
4050 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
6819ba36 4051 supported.
e8f9ec35
GDR
4052 * configure: Regenerated.
4053
974c2c56
CD
40542006-01-20 Carlos O'Donell <carlos@codesourcery.com>
4055
4056 * testsuite/Makefile.in: Add test-expandargv test.
4057 * testsuite/test-expandargv.c: New test.
4058 * argv.c (expandargv): Check for errors with ferror,
4059 rather than just by looking at return value from fread.
4060
573b07c7
GDR
40612005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4062
4063 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4064 to convert from "from".
4065 (floatformat_to_double): Likewise.
4066 (floatformat_from_double): Use explicit cast to convert from "to".
4067
92aed1cb
TL
40682005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
4069
4070 PR java/9861
4071 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4072 and include return type when found.
4073 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4074 conditional logic to change printing order of return type.when
4075 the DMGL_RET_POSTFIX option is present.
4076 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4077 call.
4078 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4079 * testsuite/demangle-expected: Test cases to verify extended encoding.
4080 Updated comment to document --ret-postfix option.
6819ba36 4081
73a08f87
RG
40822005-11-06 Richard Guenther <rguenther@suse.de>
4083
4084 * splay-tree.c (rotate_left): New function.
4085 (rotate_right): Likewise.
4086 (splay_tree_splay_helper): Remove.
4087 (splay_tree_splay): Re-implement.
4088
0432a5de
MK
40892005-10-31 Mark Kettenis <kettenis@gnu.org>
4090
4091 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4092 New variables.
4093
cb120852
MM
40942005-10-07 Mark Mitchell <mark@codesourcery.com>
4095
4096 * at-file.texi: Fix typo.
4097
36dd6d31
MM
40982005-10-03 Mark Mitchell <mark@codesourcery.com>
4099
4100 * at-file.texi: New file.
4101
affbb54a
MM
41022005-09-27 Mark Mitchell <mark@codesourcery.com>
4103
4104 * argv.c (expandargv): Do not use xmalloc_failed.
4105
97393d0a
MM
41062005-09-26 Mark Mitchell <mark@codesourcery.com>
4107
4108 * argv.c (safe-ctype.h): Include it.
4109 (ISBLANK): Remove.
4110 (stdio.h): Include.
4111 (buildargv): Use ISSPACE instead of ISBLANK.
4112 (expandargv): New function.
240921b9 4113 * Makefile.in: Regenerated.
97393d0a 4114
0d676b85
CF
41152005-09-14 Christopher Faylor <cgf@timesys.com>
4116
4117 * pex-win32.c: Include "windows.h".
4118 (backslashify): New function.
4119 (fix_argv): Use backslashify to convert path to windows format.
4120 Allocate one more place in new argv for potential executable from '#!'
4121 parsing.
4122 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
4123 (openkey): Ditto.
4124 (mingw_rootify): Ditto.
4125 (msys_rootify): Ditto.
4126 (spawn_script): New function.
4127 (pex_win32_exec_child): Save translated argv in newargv. Pass to
4128 spawn_script if spawnv* fails.
4129 (main): New function. Conditional on MAIN. Useful for testing.
4130
e89b6c1c
MK
41312005-08-17 Mark Kettenis <kettenis@gnu.org>
4132
4133 * floatformat.c (floatformat_always_valid): Change type of last
4134 argument to `void *'.
4135 (floatformat_i387_ext_is_valid): Likewise.
4136 (floatformat_to_double): Change type of second argument to `const
4137 void *'.
4138 (floatformat_from_double): Change type of last argument to `void
4139 *'.
4140 (floatformat_is_valid): Change type of last argument to `const
4141 void *'.
4142 (ieee_test): Remove redundant casts.
4143
0cbe2a68
KC
41442005-08-17 Kelley Cook <kcook@gcc.gnu.org>
4145
4146 * strverscmp.c: Update FSF address.
4147 * testsuite/Makefile.in: Likewise.
4148 * testsuite/test-demangle.c: Likewise.
4149 * testsuite/test-pexecute.c: Likewise.
4150
ca1cc111
KG
41512005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4152
4153 * getopt.c: Include ansidecl.h before system headers.
4154
f4f94d6b
BE
41552005-07-22 Ben Elliston <bje@gnu.org>
4156
4157 * getopt.c: Include "ansidecl.h".
4158 (_getopt_initialize): Mark argc and argv parameters as unused.
4159
8cfb7ab7
BE
41602005-07-22 Ben Elliston <bje@gnu.org>
4161
4162 * regex.c (regcomp): Change type of `i' from unsigned to int.
4163
b4db223f
BE
41642005-07-22 Ben Elliston <bje@gnu.org>
4165
4166 Recover patch lost in the sourceware repository:
4167 2005-07-09 Ben Elliston <bje@au.ibm.com>
4168 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4169 * memmove.c: Likewise.
4170 * objalloc.c: Likewise.
4171
8b82b724
BE
41722005-07-22 Ben Elliston <bje@gnu.org>
4173
4174 * configure.ac: Check for a getopt(3) declaration.
4175 * configure, config.in: Regenerate.
4176
7c22afcb
BE
41772005-07-15 Ben Elliston <bje@au.ibm.com>
4178
4179 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4180
72f93778
BE
41812005-07-12 Ben Elliston <bje@au.ibm.com>
4182
4183 * floatformat.c (floatformat_to_double): Add a comment about a
4184 potential source of warnings when compiling this file.
4185
6c5844d2
BE
41862005-07-12 Ben Elliston <bje@au.ibm.com>
4187
4188 * pexecute.c (pexecute): Cast string litrals to char *.
4189 * regex.c (re_comp): Cast a call to gettext() to char *.
4190
769b009e
KC
41912005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4192
4193 * config.table: Delete file. Move former contents into ...
4194 * configure.ac: ... here and escape any brackets for m4.
4195 * Makefile.in (config.status): Remove dependency on config.table.
4196 * configure: Regenerate.
4197
f379ddd1
KC
41982005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4199
4200 * config.in: Regenerate for 6/20 change.
4201
6cbfa10e
SE
42022005-07-03 Steve Ellcey <sje@cup.hp.com>
4203
4204 PR other/13906
4205 * md5.c (md5_process_bytes): Check alignment.
4206
8c7262af
ILT
42072005-07-01 Ian Lance Taylor <ian@airs.com>
4208
4209 PR other/22268
4210 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4211 string while looking for the end of a literal value.
4212 * testsuite/demangle-expected: Add test case.
4213
a3648cfc
DB
42142005-06-30 Daniel Berlin <dberlin@dberlin.org>
4215
4216 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
6819ba36 4217 (DELETED_ENTRY): Ditto.
a3648cfc 4218
83fbfe42
GK
42192005-06-20 Geoffrey Keating <geoffk@apple.com>
4220
4221 * strverscmp.c: New.
4222 * Makefile.in (CFILES): Add strverscmp.c.
4223 (CONFIGURED_OFILES): Add strverscmp.o.
4224 (strverscmp.o): New rule.
4225 (stamp-functions): Add $(srcdir) to files in source directory.
4226 * configure.ac (funcs): Add strverscmp.
4227 (AC_CHECK_FUNCS): Add strverscmp.
4228 * configure: Regenerate.
4229 * functions.texi: Regenerate.
4230
ddcf783b
EZ
42312005-05-28 Eli Zaretskii <eliz@gnu.org>
4232
4233 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4234 * config.in, configure: Regenerate.
4235
15da2806
RH
42362005-05-25 Richard Henderson <rth@redhat.com>
4237
4238 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4239 (d_make_comp, d_print_comp): Likewise.
4240 (d_special_name): Generate one.
4241 * testsuite/demangle-expected: Add a hidden alias test.
4242
d7cf8390
GDR
42432005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4244
4245 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 4246 malloc(), realloc() and sbrk().
d7cf8390
GDR
4247 * config.in: Regenerate.
4248 * configure: Likewise.
4249
4250 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4251 instead of xmalloc.
4252 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4253 * concat.c (liiberty_concat_ptr): Surround definition with an
4254 extern "C" block, if __cplusplus.
4255 (concat): Use XNEWVEC instead of xmalloc.
4256 (reconcat): Likewise.
4257 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 4258 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
4259 (d_print_resize): Properly cast return value of realloc().
4260 (cplus_demangle_print): Same for malloc().
4261 (d_demangle): Likewise.
4262 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4263 "typename" to "type_name".
4264 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4265 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4266 (demangle_template_value_parm): Likewise.
4267 (demangle_template): Likewise.
4268 (recursively_demangle): Likewise.
4269 (do_hpacc_template_literal): Likewise.
4270 (do_arg): Likewise.
4271 (remember_type): Likewise.
4272 (remember_Ktype): Likewise.
4273 (register_Btype): Likewise.
4274 (string_need): Use XRESIZEVEC instead of xrealloc().
4275 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4276 (dyn_string_new): Use XNEW.
4277 (dyn_string_resize): Use XRESIZEVEC.
4278 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4279 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4280 Otherwise include <stdlib.h>.
4281 (exchange): Cast return value of malloc().
4282 * hashtab.c (htab_size): Define as both macro and non-inline
4283 function.
4284 (htab_elements): Likewise.
4285 * getpwd.c (getpwd): Use XNEWVEC.
4286 (htab_create_alloc_ex): Use C90 prototype-style.
4287 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 4288 malloc().
d7cf8390
GDR
4289 * make-relative-prefix.c (save_string): Likewise.
4290 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4291 the file.
4292 (choose_tmpdir): Use XNEWVEC.
4293 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4294 * pex-common.c (pex_init_common): Use XNEW.
4295 (pex_add_remove): Use XRESIZEVEC.
4296 (pex_run): Likewise.
4297 (pex_get_status_and_time): Likewise.
4298 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4299 * pex-msdos.c (pex_init): Use XNEW.
4300 (pex_msdos_exec_child): Likewise.
4301 (pex_msdos_exec_child): Use XRESIZEVEC.
4302 * pex-unix.c (pex_wait): Use XNEW.
4303 * pex-win32.c (fix_argv): Use XNEWVEC.
4304 * pexecute.c (pwait): Likewise.
4305 * setenv.c (setenv): Properly cast return value of malloc().
4306 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4307 "new" to "old_sig" and "new_sig".
4308 * sort.c (main): Use XNEWVEC.
4309 * spaces.c (spaces): Cast return value of malloc().
4310 * strndup.c (strndup): Likewise.
4311 * ternary.c (ternary_insert): Use XNEW.
4312 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4313 with an extern "C" block if __cplusplus.
4314 * xstrdup.c (xstrdup): Cast return value of memcpy().
4315 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4316 block if __cplusplus.
4317 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4318
99e4078f
AJ
43192005-05-16 Andreas Jaeger <aj@suse.de>
4320
4321 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4322 that it's only declared if needed.
4323
4324 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4325 defined.
4326
766643be
AJ
43272005-05-15 Andreas Jaeger <aj@suse.de>
4328
4329 * functions.texi: Regenerated.
4330
2b836651
EZ
43312005-05-15 Eli Zaretskii <eliz@gnu.org>
4332
4333 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4334 braces. Minor wording fixes. Use --- for em-dash. Use
4335 @enumerate in enumerated lists.
4336
d842a495
AJ
4337 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4338 braces.
4339
5db1c531
EZ
43402005-05-11 Eli Zaretskii <eliz@gnu.org>
4341
4342 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4343 sys/stat.h.
4344 (pex_init): Fix last argument to pex_init_common.
4345 (pex_djgpp_exec_child): Remove leading underscore from _open,
4346 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4347 which is undeclared, with `executable', which was unused. Remove
4348 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4349 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4350
bd7d50f8
PB
43512005-05-11 Paul Brook <paul@codesourcery.com>
4352
4353 * Makefile.in: Regenerate dependencies.
4354
ee58dffd
NC
43552005-05-10 Nick Clifton <nickc@redhat.com>
4356
4357 * Update the address and phone number of the FSF organization in
4358 the GPL notices in the following files:
4359 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4360 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4361 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4362 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4363 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4364 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4365 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4366 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4367 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4368 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4369 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4370 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4371 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4372
c1300f45
KC
43732005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4374
4375 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4376 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4377 * configure: Regenerate.
4378
fbc1bc09
KC
43792005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4380
4381 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4382 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4383 * aclocal.m4: Don't include accross.m4.
4384 * configure, config.in: Regenerate.
4385
32e82bd8
KG
43862005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4387
4388 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 4389
32e82bd8
KG
4390 * functions.texi: Regenerate.
4391
6feaa084
KG
43922005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4393
4394 * fopen_unlocked.c (unlock_stream): New.
4395 Consolidate unlocking code into a helper function.
4396
4397 * functions.texi: Regenerate.
4398
3c60ae5a
GDR
43992005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4400
4401 * asprintf.c: Include config.h.
4402 * basename.c: Likewise.
4403 * fdmatch.c: Likewise.
4404 * hex.c: Likewise.
4405 * lbasename.c: Likewise.
4406 * spaces.c: Likewise.
4407 * xatexit.c:Likewise.
2b836651 4408 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
4409 and vasprintf for real.
4410 * configure: Regenerate.
4411
0e0af50b
GDR
44122005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4413
2b836651 4414 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 4415 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 4416
4cf88ac3
GDR
44172005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4418
4419 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 4420 Replace not with negate.
4cf88ac3 4421
1ff7682c
GDR
44222005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4423
4424 * configure.ac: Check declarations for basename, ffs, asprintf,
4425 vasprintf.
4426 * configure: Regenerate.
4427 * config.in: Likewise.
4428
78a7dc90
KG
44292005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4430
4431 * Makefile.in (CFILES): Add fopen_unlocked.c.
4432 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4433 Regenerate dependencies.
4434
4435 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4436
4437 * fopen_unlocked.c: New file.
4438
4439 * functions.texi, configure, config.in: Regenerate.
4440
2f84c996
ILT
44412005-04-04 Ian Lance Taylor <ian@airs.com>
4442
4443 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4444 declaration before statement.
4445
f9a9ac80
KG
44462005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4447
29138797
KG
4448 * bcmp.c: Fix warnings and implement using memcmp.
4449 * bcopy.c: Fix warnings.
4450 * bzero.c: Fix warnings and implement using memset.
4451
f9a9ac80
KG
4452 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4453 -Wstrict-prototypes.
4454 * configure, config.in: Regenerate.
4455
4456 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4457 warnings and reconcile interfaces with relevant standards.
4458
23ea4f4a
ILT
44592005-04-02 Ian Lance Taylor <ian@airs.com>
4460
4461 * cp-demangle.c: Update copyright.
4462
1e3a2100
JM
44632005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4464
4465 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4466 * functions.texi: Regenerate.
4467
a584cf65
ILT
44682005-03-28 Ian Lance Taylor <ian@airs.com>
4469
4470 * pex-common.c: New file.
4471 * pex-one.c: New file.
4472 * pexecute.c: New file.
4473 * pex-common.h: Include <stdio.h>.
4474 (struct pex_obj): Define.
4475 (struct pex_funcs): Define.
4476 (pex_init_common): Declare.
4477 * pex-unix.c: Rewrite.
4478 * pex-win32.c: Rewrite.
4479 * pex-djgpp.c: Rewrite.
4480 * pex-msdos.c: Rewrite.
4481 * testsuite/text-pexecute.c: New file.
4482 * pexecute.txh: Rewrite.
4483 * configure.ac: Check for wait3 and wait4. Set CHECK to
4484 really-check rather than check-cplus-dem.
4485 * functions.texi: Rebuild.
4486 * Makefile.in: Rebuild dependencies.
4487 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4488 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4489 * testsuite/Makefile.in (really-check): New target.
4490 (check-pexecute, test-pexecute): New targets.
4491 * configure: Rebuild.
4492
93764b5b 44932005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 4494
93764b5b
MK
4495 * unlink-if-ordinary.c: Include <sys/types.h>.
4496
93079c81
GDR
44972005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4498
4499 Convert libiberty to use ISO C prototype style 7/n.
4500 * regex.c (PARAMS): Remove definition.
4501 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 4502 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 4503 print_fastmap, print_partial_compiled_pattern,
2b836651 4504 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
4505 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4506 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
4507 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4508 insert_space, wcs_compile_range, byte_compile_range,
4509 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4510 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
4511 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4512 byte_re_match_2_internal, group_match_null_string_p,
4513 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 4514 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
4515 regexec, regerror, regfree): Use ISO C prototype style.
4516 * partition.c: (elem_compare): Likewise.
4517 * cp-demangle.c (print_usage): Likewise.
4518
885f2199
GDR
45192005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4520
4521 Convert libiberty to use ISO C prototype style 5/n.
4522 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 4523 prototypes.
885f2199
GDR
4524 * putenv.c (putenv): Likewise.
4525 * physmem.c (physmem_available, physmem_total, main): Likewise.
4526 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4527 * pex-unix.c (pexecute, pwait): Likewise.
4528 * pex-msdos.c (pexecute, pwait): Likewise.
4529 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 4530 * partition.c (partition_new, partition_delete, partition_union)
885f2199 4531 (elem_compare, partition_print): Likewise.
2b836651
EZ
4532 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4533 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
4534 _obstack_memory_used, print_and_abort, obstack_next_free,
4535 obstack_object_size, obstack_base): Likewise. Remove codes
4536 predicated on !defined(__STDC__).
2b836651 4537 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
4538 objalloc_free_block): Use ISO C prototypes.
4539 * mkstemps.c (mkstemps): Likewise.
4540 * memset.c (memset): Likewise.
4541 * mempcpy.c (mempcpy): Likewise.
4542 * rename.c (rename): Likewise.
4543 * rindex.c (rindex): Likewise.
4544 * setenv.c (setenv, unsetenv): Likewise.
4545 * sigsetmask.c (sigsetmask): Likewise.
4546 * snprintf.c (snprintf): Likewise.
2b836651 4547 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 4548 * spaces.c (spaces): Likewise.
2b836651
EZ
4549 * splay-tree.c (splay_tree_delete_helper,
4550 splay_tree_splay_helper, splay_tree_splay,
885f2199 4551 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 4552 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 4553 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
4554 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4555 splay_tree_max, splay_tree_min, splay_tree_predecessor,
4556 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
4557 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4558 * stpcpy.c (stpcpy): Likewise.
4559 * stpncpy.c (stpncpy): Likewise.
4560 * strcasecmp.c (strcasecmp): Likewise.
4561 * strchr.c (strchr): Likewise.
4562 * strdup.c (strdup): Likewise.
4563
7a17ef5e
GDR
45642005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4565
4566 Convert libiberty to use ISO C prototype style 6/n.
2b836651 4567 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
4568 strtoerrno, main): Use ISO C prototype style.
4569 * strncasecmp.c (strncasecmp): Likewise.
4570 * strncmp.c (strncmp): Likewise.
4571 * strndup.c (strndup): Likewise.
4572 * strrchr.c (strrchr): Likewise.
2b836651 4573 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
4574 strsigno, strtosigno, psignal, main): Likewise.
4575 * strstr.c (strstr): Likewise.
4576 * strtod.c (strtod, atof): Likewise.
4577 * strtol.c (strtol): Likewise.
4578 * strtoul.c (strtoul): Likewise.
2b836651 4579 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
4580 ternary_recursivesearch): Likewise.
4581 * tmpnam.c (tmpnam): Likewise.
4582 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4583 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4584 * vfork.c (vfork): Likewise.
4585 * vfprintf.c (vfprintf): Likewise.
4586 * vprintf.c (vprintf): Likewise.
4587 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4588 * vsprintf.c (vsprintf): Likewise.
4589 * waitpid.c (waitpid): Likewise.
4590 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4591 * xexit.c (xexit): Likewise.
2b836651 4592 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
4593 xcalloc, xrealloc): Likewise.
4594 * xmemdup.c (xmemdup): Likewise.
4595 * xstrdup.c (xstrdup): Likewise.
4596 * xstrerror.c (xstrerror): Likewise.
4597 * xstrndup.c (xstrndup): Likewise.
4598
1134b11d
AJ
45992005-03-27 Andreas Jaeger <aj@suse.de>
4600
4601 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4602 flags.
4603 * configure: Regenerated.
4604
e78410c1
GDR
46052005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4606
4607 * getopt1.c (getopt_long_only): Fix thinko.
4608
6da879de
GDR
46092005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4610
4611 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
4612 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4613 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4614 htab_create_alloc, htab_set_functions_ex, htab_create,
4615 htab_try_create, htab_delete, htab_empty,
4616 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4617 htab_find, htab_find_slot_with_hash, htab_find_slot,
4618 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4619 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
4620 htab_hash_string, iterative_hash): Use ISO C prototype.
4621 * hex.c (hex_init): Likewise.
4622 * index.c (index): Likewise.
1134b11d 4623 * insque.c (insque, remque): Likewise.
6da879de
GDR
4624 * lbasename.c (lbasename): Likewise.
4625 * lrealpath.c (lrealpath): Likewise.
1134b11d 4626 * make-relative-prefix.c (save_string, split_directories,
6da879de 4627 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
4628 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4629 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
4630 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
4631 * memchr.c (memchr): Likewise.
4632 * memcpy.c (memcpy): Likewise.
4633 * memmove.c (memmove): Likewise.
4634 * gettimeofday.c (gettimeofday): Likewise.
4635 * getruntime.c (get_run_time): Likewise.
4636 * getpwd.c (getpwd, getpwd): Likewise.
4637 * getpagesize.c (getpagesize): Likewise.
4638 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 4639 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
4640 _getopt_internal, getopt, main): Likewise.
4641 * getcwd.c (getcwd): Likewise.
4642 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
4643 * floatformat.c (floatformat_always_valid,
4644 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
4645 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 4646 ieee_test, main): Likewise.
1134b11d
AJ
4647 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
4648 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
4649 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
4650 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
4651 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
4652 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
4653 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
4654 fibnode_insert_after, fibnode_remove): Likewise.
4655 * ffs.c (ffs): Likewise.
4656 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
4657 * dyn-string.c (dyn_string_init, dyn_string_new,
4658 dyn_string_delete, dyn_string_release, dyn_string_resize,
4659 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
4660 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
4661 dyn_string_insert_cstr, dyn_string_insert_char,
4662 dyn_string_append, dyn_string_append_cstr,
6da879de 4663 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 4664 Likewise.
6da879de 4665
500d7701
GDR
46662005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4667
4668 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
4669 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
4670 consume_count_with_underscores, code_for_qualifier,
4671 qualifier_string, demangle_qualifier, cplus_demangle_opname,
4672 cplus_mangle_opname, cplus_demangle_set_style,
4673 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 4674 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
4675 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
4676 delete_work_stuff, mop_up, demangle_signature,
4677 demangle_method_args, demangle_template_template_parm,
4678 demangle_expression, demangle_integral_value,
4679 demangle_real_value, demangle_template_value_parm,
4680 demangle_template, arm_pt, demangle_arm_hp_template,
4681 demangle_class_name, demangle_class, iterate_demangle_function,
4682 demangle_prefix, gnu_special, recursively_demangle, arm_special,
4683 demangle_qualified, get_count, do_type, demangle_fund_type,
4684 do_hpacc_template_const_value, do_hpacc_template_literal,
4685 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
4686 register_Btype, remember_Btype, forget_B_and_K_types,
4687 forget_types, demangle_args, demangle_nested_args,
4688 demangle_function_name, string_need, string_delete, string_init,
4689 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
4690 string_appendn, string_prepend, string_prepends, string_prependn,
4691 string_append_template_idx): Use ISO C prootype style.
4692 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 4693 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
4694 cplus_demangle_v3_components): Likewise.
4695
9486db4f
GDR
46962005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4697
4698 Convert libiberty to use ISO C prototype style 2/n.
4699 * cp-demangle.h: Remove uses of PARAMS.
4700 * cp-demangle.c: Likewise.
1134b11d
AJ
4701 (d_dump, cplus_demangle_fill_name,
4702 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
4703 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
4704 d_make_builtin_type, d_make_operator, d_make_extended_operator,
4705 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
4706 cplus_demangle_mangled_name, has_return_type,
4707 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
4708 d_prefix, d_unqualified_name, d_source_name, d_number,
4709 d_identifier, d_operator_name, d_special_name, d_call_offset,
4710 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
4711 d_function_type, d_bare_function_type, d_class_enum_type,
4712 d_array_type, d_pointer_to_member_type, d_template_param,
4713 d_template_args, d_template_arg, d_expression, d_expr_primary,
4714 d_local_name, d_discriminator, d_add_substitution,
4715 d_substitution, d_print_resize, d_print_append_char,
4716 d_print_append_buffer, d_print_error, cplus_demangle_print,
4717 d_print_comp, d_print_java_identifier, d_print_mod_list,
4718 d_print_mod, d_print_function_type, d_print_array_type,
4719 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
4720 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 4721 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 4722 print_usage, main):
9486db4f
GDR
4723
47242005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4725
4726 Convert libiberty to ISO C prototype style 1/n.
4727 * _doprnt.c: Remove conditional #include <varargs.h> on
4728 ANSI_PROTOTYPES as the latter is always assumed.
4729 (_doprnt, checkit, main): Use ISO C prototype.
4730 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
4731 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 4732 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
4733 * atexit.c (atexit): Likewise
4734 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 4735 (asprintf): Use ISO C prototype.
9486db4f
GDR
4736 * basename.c (basename): Likewise
4737 * bcmp.c (bcmp): Likewise.
4738 * bcopy.c (bcopy): Likewise.
4739 * bzero.c (bzero): Likewise.
4740 * bsearch.c (bsearch): Likewise. Improve const-correctness.
4741 * choose-temp.c (choose_temp_base): Likewise.
4742 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
4743 (calloc): Use ISO C prototype.
4744 * clock.c (clock): Likewise.
4745 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 4746 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
4747 concat_copy2, concat, reconcat, main): Use ISO C prototype.
4748 * copysign.c (copysign): Likewise.
4749
17998b22
KG
47502005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4751
4752 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
4753 (REQUIRED_OFILES): Add xstrndup.o.
4754 (CONFIGURED_OFILES): Add strndup.o.
4755 Regenerate dependencies.
4756
4757 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
4758
4759 * strndup.c, xstrndup.c: New.
4760
4761 * config.in, configure, functions.texi: Regenerate.
4762
bb99744f
KG
47632005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4764
4765 * xmemdup.c, xstrdup.c: Expose the tail call.
4766
17049f0b
MM
47672005-03-09 Mark Mitchell <mark@codesourcery.com>
4768
4769 * configure.ac (funcs): Add gettimeofday.
4770 * configure: Regenerated.
4771 * gettimeofday.c: New file.
4772 * Makefile.in (CFILES): Add gettimeofday.
4773 (CONFIGURED_OFILES): Add gettimeofday.o.
4774 (./gettimeofday.o): New rule.
4775
6af8bd50
ILT
47762005-03-09 Ian Lance Taylor <ian@airs.com>
4777
4778 * pex-os2.c: Remove.
4779 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
4780 * Makefile.in (CFILES): Remove pex-os2.c.
4781 (CONFIGURED_OFILES): Remove pex-os2.o.
4782 (pex-os2.o): Remove target.
4783 * configure: Rebuild.
4784
c80d391c
ILT
47852005-03-07 Ian Lance Taylor <ian@airs.com>
4786
4787 * mpw-config.in: Remove.
4788 * mpw-make.sed: Remove.
4789 * mpw.c: Remove.
4790 * Makefile.in (CFILES): Remove pex-mpw.c.
4791 (CONFIGURED_OFILES): Remove pex-mpw.o.
4792 (mpw.o, pex-mpw.o): Remove targets.
4793 * maint-tool (undoc): Remove reference to mpw.c.
4794
fe8ee922
DD
47952005-03-06 DJ Delorie <dj@redhat.com>
4796
4797 * configure.ac (target_header_dir): vfork is a stub under djgpp.
4798 * configure: Regenerated.
4799
c363985d
JB
48002005-03-01 Jan Beulich <jbeulich@novell.com>
4801
4802 * Makefile.in (CFILES): Add unlink-if-ordinary.c
4803 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
4804 Add dependencies and rule for unlink-if-ordinary.o.
4805 * unlink-if-ordinary.c: New.
4806
6a88516c
BE
48072005-03-01 Ben Elliston <bje@au.ibm.com>
4808
4809 * hashtab.c (htab_find_slot_with_hash): Make function
4810 documentation clearer.
4811
b8b3c655
JM
48122005-02-13 Jason Merrill <jason@redhat.com>
4813
4814 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
4815 arguments.
4816
e8805990
TS
48172005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
4818
4819 * hex.c (hex_value): Group 'unsigned int' together to get correct
4820 markup.
4821 * functions.texi: Regenerated.
1134b11d 4822
24f2cabb
L
48232004-12-27 H.J. Lu <hongjiu.lu@intel.com>
4824
4825 * Makefile.in: Undo to 2004-12-17.
4826 * aclocal.m4: Likewise.
4827 * config.table: Likewise.
4828 * configure.ac: Likewise.
4829 * maint-tool: Likewise.
4830 * configure: Likewise.
4831
3d815594
L
48322004-12-19 H.J. Lu <hongjiu.lu@intel.com>
4833
4834 PR bootstrap/19072
4835 * Makefile.in (enable_shared): New substitute.
4836 (LTTARGETLIB): New.
4837 (PREFIXTARGETLIB): New.
4838 (LTTESTLIB): New.
4839 (PREFIXTESTLIB): New.
4840 (CCLD): New.
4841 (LINK): New.
4842 ($(TARGETLIB)): Use $(LINK) to create libraries and create
4843 targets by hand.
4844 ($(TESTLIB)): Likewise.
4845 (mostlyclean): Don't remove .libs. Remove the libtool object
4846 directory.
4847
4848 * config.table (enable_shared): Removed.
4849
4850 * configure.ac (enable_static): Set to yes.
4851 (AC_PROG_LIBTOOL): Removed.
4852 (AM_DISABLE_SHARED): Uncommented.
4853 (AM_PROG_LIBTOOL): Likewise.
4854 (LIBOBJS): Add `./' to avoid VPATH.
4855 (LTLIBOBJS): Likewise.
4856 (enable_shared): Substitute.
4857 * configure: Regenerated.
4858
207db768
L
48592004-12-18 H.J. Lu <hongjiu.lu@intel.com>
4860
4861 * Makefile.in (top_builddir): Set to `.'.
4862 (OUTPUT_OPTION): Removed.
4863 (LIBTOOL): New.
4864 (LTLIBOBJS): New.
4865 (EXTRA_LTOFILES): New.
4866 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
4867 (all): Remove stamp-picdir.
4868 (LTCOMPILE): New.
4869 (.c.lo): New rule.
4870 (REQUIRED_LTOFILES): New.
4871 (CONFIGURED_LTOFILES): New.
4872 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
4873 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
4874 (stamp-picdir): Completely removed.
4875 (maint-missing): Pass $(REQUIRED_LTOFILES)
4876 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
4877 $(CONFIGURED_OFILES)
4878 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
4879 $(CONFIGURED_LTOFILES).
4880 (mostlyclean): Also remove *.lo .libs.
4881 Run "make maint-deps".
4882
4883 * aclocal.m4: Include ../libtool.m4.
4884
4885 * config.table: Don't check --enable-shared.
4886
4887 * configure.ac (AC_PROG_LIBTOOL): Add.
4888 (AC_PROG_CC_C_O): Removed.
4889 (OUTPUT_OPTION): Removed.
4890 (NO_MINUS_C_MINUS_O): Removed.
4891 (ltpexecute): New substitute.
4892 (LIBOBJS): Cleanup.
4893 * configure: Regenerated.
4894
4895 * maint-tool: Updated for .lo/libtool.
4896
d49d0907
BE
48972004-12-11 Ben Elliston <bje@au.ibm.com>
4898
4899 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
4900 * configure: Regenerate.
4901 * config.in: Likewise.
4902
b180d5fb
DD
49032004-12-07 DJ Delorie <dj@redhat.com>
4904
4905 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
4906 that recursion (and thus large stack space) is not needed.
4907
ecc30353
MK
49082004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
4909
4910 * pex-unix.c: Fix the spelling of longjmp.
4911
0b167d51
ILT
49122004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
4913
4914 PR other/18623
4915 * cp-demangle.c (d_call_offset): Remove useless local variables
4916 offset and virtual_offset.
4917 * cplus-dem.c (ada_demangle): Remove useless local variable
4918 at_start_name.
4919 (demangle_template): Remove useless local variable start.
4920
2d59754f
RS
49212004-11-19 Roger Sayle <roger@eyesopen.com>
4922
4923 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
4924 "ansidecl.h" to avoid redeclaration errors with native compilers.
4925 * regex.c: Protect config.h from multiple inclusion.
4926
ea27a394
MS
49272004-11-12 Mike Stump <mrs@apple.com>
4928
610784f0
MS
4929 * Makefile.in (libiberty.html): Fix html generation.
4930
626ff3de
AN
49312004-09-08 Adam Nemet <anemet@lnxw.com>
4932
4933 * vasprintf.c: Accept __va_copy in addition to va_copy.
4934
1134b11d 49352004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
4936
4937 * configure: Regenerate.
4938
1134b11d 49392004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
4940
4941 * configure.ac: Do not enable multilibs for build-side libiberty.
4942
1134b11d 49432004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
4944
4945 * lrealpath.c (lrealpath): Add _WIN32 support.
4946
0cf61401
ZW
49472004-06-28 Zack Weinberg <zack@codesourcery.com>
4948
4949 * cp-demangle.h: Declare cplus_demangle_operators,
4950 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
4951 cplus_demangle_type as static if IN_GLIBCPP_V3.
4952
00a5aa9c
ILT
49532004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
4954
4955 PR other/16240
4956 * cp-demangle.c (d_expr_primary): Check for a failure return from
4957 cplus_demangle_type.
5cd29062 4958 * testsuite/demangle-expected: Add test case.
00a5aa9c 4959
b47785f4
DS
49602004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
4961
4962 * pex-win32.c (fix_argv): Expand comment.
4963
54b2f310
DJ
49642004-05-25 Daniel Jacobowitz <drow@false.org>
4965
4966 * Makefile.in: Add .NOEXPORT.
4967
8fd58397
DR
49682004-04-29 Douglas B Rupp <rupp@gnat.com>
4969
4970 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
4971 copyright.
4972
6489430a
MR
49732004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4974
4975 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
4976 * configure: Regenerate.
4977
9bf3c9cc
RH
49782004-04-22 Richard Henderson <rth@redhat.com>
4979
4980 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
4981 (CHAR_BIT): Provide default.
4982 (struct prime_ent, prime_tab): New.
4983 (higher_prime_index): Rename from higher_prime_number, return index.
4984 (htab_mod_1): New.
4985 (htab_mod, htab_mod_m2): Use it.
4986 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
4987 (htab_expand): Likewise.
4988 * configure.ac: Check for stdint.h.
4989 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
4990 * config.in, configure: Rebuild.
4991
80790b05
ILT
49922004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
4993
4994 * strerror.c: Include config.h, and redefine sys_nerr and
4995 sys_errlist, before including ansidecl.h and libiberty.h.
4996
7f96816a
JL
49972004-04-13 Jeff Law <law@redhat.com>
4998
4999 * hashtab.c (htab_remove_elt_with_hash): New function.
5000 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5001
d9175b87
RH
50022004-03-31 Richard Henderson <rth@redhat.com>
5003
5004 * hashtab.c (htab_size): Move to top of file; mark inline.
5005 (htab_elements): Likewise.
5006 (htab_mod, htab_mod_m2): New.
5007 (htab_delete): Refactor htab->size and htab->entries.
5008 (htab_empty): Likewise.
5009 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5010 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5011 (htab_clear_slot): Use htab_size, htab_elements.
5012 (htab_traverse_noresize, htab_traverse): Likewise.
5013
e8190aa2
ILT
50142004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5015
fed8129b
ILT
5016 * pex-unix.c (pexecute): Use vfork instead of fork, with
5017 appropriate changes to make this safe.
5018 * pex-common.h (STDERR_FILE_NO): Define.
5019
e8190aa2
ILT
5020 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5021 an 80 column screen. Run maint-deps.
5022
a4f74b58
KC
50232004-03-09 Kelley Cook <kcook@gcc.gnu.org>
5024
5025 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
5026 * acconfig.h: Delete redundant file.
5027 * config.in: Regenerate.
5028 * configure: Regenerate.
5029
3beb1315
HPN
50302004-03-09 Hans-Peter Nilsson <hp@axis.com>
5031
5032 * configure: Regenerate for config/accross.m4 correction.
5033
688556b9
AJ
50342004-03-07 Andreas Jaeger <aj@suse.de>
5035
5036 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5037 prototypes.
5038 (main): Initialize style.
5039
80a19ac8
ILT
50402004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5041
31058ee3
ILT
5042 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5043 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5044 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5045 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5046 short types to D_PRINT_DEFAULT. Change other integer types to use
5047 new D_PRINT_* values where appropriate. Change float types to
5048 D_PRINT_FLOAT.
5049 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5050 values.
5051 * testsuite/demangle-expected: Adjust two test cases.
5052
5053 * cp-demangle.c (d_print_function_type): Print a space before the
5054 parenthesis around the function type in more cases.
5055 * testsuite/demangle-expected: Adjust one test case.
5056
93f20626
ILT
5057 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5058 parentheses around a cast.
5059 * testsuite/demangle-expected: Adjust two test cases to match new
5060 output.
5061
dbd6ec2b
ILT
5062 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5063
80a19ac8
ILT
5064 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5065 push more than one of the same CV-qualifier on the top of the
5066 stack.
5067 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5068 move the CV-qualifiers to apply to the element type instead.
5069 (d_print_array_type): When checking the modifiers, keep looking
5070 past ones which have been printed already.
5071 * testsuite/demangle-expected: Add three test cases.
5072
8ad1c80e
ILT
50732004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5074
e8ed4ac2
ILT
5075 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5076 empty string correctly.
5077
4a368ffd
ILT
5078 * cp-demangle.c (__cxa_demangle): It is not an error if status is
5079 not NULL. It is an error if the mangled name is the same as a
5080 built-in type name.
5081 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5082 than cplus_demangle_v3.
5083
8ad1c80e
ILT
5084 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5085 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5086
ef2a223f
MK
50872004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
5088
5089 * regex.c: Include <ansidecl.h>.
5090 (regcomp): Cast i to int.
5091 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5092
5254fd7b
ILT
50932004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5094
5095 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5096 * configure: Regenerate.
5097
398b3deb
DD
50982004-01-22 DJ Delorie <dj@redhat.com>
5099
5100 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
5101 with explicit build rules.
5102 (VPATH): Remove.
5103 (.c.o): Poison.
5104 * configure.ac (pexecute, LIBOBJS): Add ./ .
5105 * maint-tool: Build dependencies with explicit rules.
5106
4e394293
KH
51072004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5108
5109 * strdup.c (strdup): Constify the argument.
5110
0046e342
LR
51112004-01-14 Loren J. Rittle <ljrittle@acm.org>
5112
5113 * Makefile.in (distclean): Remove config.cache.
5114
d4f3ce5c
DJ
51152004-01-13 Daniel Jacobowitz <drow@mvista.com>
5116
5117 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5118 takes two parameters.
5119 * cp-demint.c (cplus_demangle_fill_component): Likewise.
5120
5e777af5
ILT
51212004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
5122
5123 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
5124 defined, rename some functions which are to become static via
5125 #define.
5126 (CP_STATIC_IF_GLIBCPP_V3): Define.
5127 (struct d_operator_info): Move definition to cp-demangle.h, and
5128 rename to demangle_operator_info. Change all uses.
5129 (enum d_builtin_type_print): Move definition to cp-demangle.h.
5130 (struct d_builtin_type_info): Move definition to cp-demangle.h,
5131 and rename to demangle_builtin_type_info. Change all uses.
5132 (enum d_comp_type): Move definition to include/demangle.h, and
5133 rename to demangle_component_type, and change all enums to start
5134 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
5135 (struct d_comp): Move definition to include/demangle.h, and rename
5136 to demangle_component. Change all uses.
5137 (struct d_info): Move definition to cp-demangle.h.
5138 (cplus_demangle_fill_name): New function.
5139 (cplus_demangle_fill_extended_operator): New function.
5140 (cplus_demangle_fill_ctor): New function.
5141 (cplus_demangle_fill_dtor): New function.
5142 (d_make_empty): Remove type parameter. Change all callers.
5143 (d_make_name): Use cplus_demangle_fill_name.
5144 (d_make_extended_operator): Use
5145 cplus_demangle_fill_extended_operator.
5146 (d_make_ctor): Use cplus_demangle_fill_ctor.
5147 (d_make_dtor): Use cplus_demangle_fill_dtor.
5148 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
5149 non-static by default. Change all callers.
5150 (cplus_demangle_operators): Rename from d_operators. Change all
5151 uses. Make non-static by default. Add sentinel at end of array.
5152 (d_operator_name): Adjust initialization of high for new sentinel
5153 in cplus_demangle_operators.
5154 (cplus_demangle_builtin_types): Rename from d_builtin_types.
5155 Change all uses. Make non-static by default. Change initializer
5156 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5157 (cplus_demangle_type): Rename from d_type. Make non-static by
5158 default. Change all callers.
5159 (cplus_demangle_init_info): Rename from d_init_info. Make
5160 non-static by default. Change all callers.
5161 * cp-demangle.h: New file.
5162 * cp-demint.c: New file.
5163 * Makefile.in: Rebuild dependencies.
5164 (CFILES): Add cp-demint.c.
5165 (REQUIRED_OFILES): Add cp-demint.o.
5166
c31d56ed
KC
51672004-01-09 Kelley Cook <kcook@gcc.gnu.org>
5168
5169 * configure.in: Rename file to ...
5170 * configure.ac: ... this.
5171 * Makefile.in: Update a comment for above change.
5172 * README: Likewise.
5173 * config.in: Regenerate.
5174
e4796f1c
ILT
51752004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
5176
5177 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5178 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5179 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5180 demangling template parameters.
5181 * testsuite/test-demangle.c (fail): New static function.
5182 (main): Support new options in input file: --no-params,
5183 --is-v3-ctor, and --is-v3-dtor.
5184 * testsuite/demangle-expected: Add --no-params to most tests, and
5185 add the correct result when parameters are not demangled. Add
5186 some simple tests for V3 constructor/destructor recognition.
5187
4d425229
KG
51882003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5189
5190 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5191
6b309c6e
DJ
51922003-12-22 Daniel Jacobowitz <drow@mvista.com>
5193
5194 PR debug/13272
5195 * Makefile.in (lbasename.o): Depend on filenames.h.
5196 * lbasename.c: Include "filenames.h" instead of defining
5197 its macros locally.
5198
2d6c4025
ILT
51992003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5200
5201 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5202 dynamic arrays.
5203 (struct d_operator_info): Add len field.
5204 (struct d_builtin_type_info): Add len and java_len fields.
5205 (struct d_standard_sub_info): Add simple_len, full_len, and
5206 set_last_name_len fields.
5207 (struct d_comp): Add len field to s_string.
5208 (struct d_info): Add send, did_subs, and expansion fields.
5209 (d_append_string_constant): Define.
5210 (d_append_string): Remove. Change all users to use
5211 d_append_string_constant or d_append_buffer instead.
5212 (d_make_sub): Add len parameter. Change all callers.
5213 (d_name): Increase expansion when substituting std::.
5214 (d_unqualified_name): Increase expansion for an operator.
5215 (d_number): Don't use multiplication for negative numbers.
5216 (d_identifier): Make sure there are enough characters in the
5217 string for the specified length. Adjust expansion for an
5218 anonymous namespace.
5219 (d_operators): Initialize len field.
5220 (d_special_name, d_ctor_dtor_name): Increase expansion.
5221 (d_builtin_types): Initialize len and java_len fields.
5222 (d_type): Increase expansion for a builtin type.
5223 (d_cv_qualifiers): Increase expansion for each qualifier.
5224 (d_bare_function_type): Decrease expansion when removing single
5225 void parameter.
5226 (d_template_param): Increment did_subs.
5227 (d_expression): Increase expansion for an operator.
5228 (d_expr_primary): Decrease expansion for a type we will print
5229 specially.
5230 (standard_subs): Initialize new fields.
5231 (d_substitution): Increment did_subs when doing a normal
5232 substitution. Increase expansion for a special substitution.
5233 (d_print): Add estimate parameter. Change all callers.
5234 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5235 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5236 (d_print_java_identifier): Rename from d_print_identifier. Handle
5237 only Java case. Change caller.
5238 (d_init_info): Change return type to void. Change all callers.
5239 Initialize send, did_subs, and expansion fields. Do not
5240 initialize comps and subs fields.
5241 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5242 arrays on stack. Make an estimate of the length of the demangled
5243 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5244 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5245 subs arrays on stack.
5246
2307e075
ILT
52472003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5248
5249 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5250 after the identifier.
5251 * testsuite/demangle-expected: Add test case.
5252
a91d1af0
ILT
52532003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5254
5255 Fix for PR c++/13447:
5256 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5257 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5258 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5259 D_COMP_QUAL_NAME.
5260 (is_ctor_or_dtor): Likewise.
5261 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5262 D_COMP_QUAL_NAME.
5263 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5264 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5265 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5266 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5267 * testsuite/demangle-expected: Add two test cases.
5268
5269 * cp-demangle.c (d_print_function_type): Clear the global modifier
5270 list when printing the modifiers, not just when printing the
5271 function parameters.
5272 * testsuite/demangle-expected: Add two test cases.
5273
8d686df2
ILT
52742003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5275
cbc278f4
ILT
5276 * cp-demangle.c (d_print_function_type): Print the function
5277 parameters with no modifiers.
5278 * testsuite/demangle-expected: Add test case.
5279
8d686df2
ILT
5280 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5281 expect that we've read the entire string.
5282 (is_ctor_or_dtor): Don't expect that we've read the entire
5283 string--reverse patch of 2003-11-29.
5284
adf269c7
BK
52852003-12-15 Brendan Kehoe <brendan@zen.org>
5286
969ac969 5287 * Makefile.in (floatformat.o): Add dependency on
adf269c7
BK
5288 config.h to accompany change of 2003-12-03.
5289
374caa50
ILT
52902003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5291
5292 Fix handling of constructor/destructor of standard substitution:
5293 * cp-demangle.c (struct d_standard_sub_info): Define.
5294 (d_substitution): Add prefix argument. Change all callers.
5295 Rework handling of standard substitutions to print full name when
5296 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5297 * testsuite/demangle-expected: Add test case.
5298
5299 Fix handling of negative literal constants:
5300 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5301 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5302 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5303 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5304 * testsuite/demangle-expected: Add test case.
5305
a51753e4
ILT
53062003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5307
5308 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5309 (d_last_char): Define new macro.
5310 (d_make_name): Reject an empty name.
5311 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5312 (d_substitution, d_print_identifier): Likewise.
5313 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5314 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5315 (d_print_mod) Use new d_last_char macro.
5316 (d_print_cast): Use new d_last_char macro.
5317 (is_ctor_or_dtor): Don't leak memory.
5318
5319 Fix handling of member function modifiers:
5320 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5321 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5322 (d_dump): Dump new d_comp_type values.
5323 (d_make_comp): Accept new d_comp_type values.
5324 (has_return_type): Only accept _THIS variants of qualifiers.
5325 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5326 qualifiers.
5327 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5328 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5329 qualifiers and printing them at the end, add _THIS qualifiers to
5330 the modifier list.
5331 (d_print_comp) [D_COMP_*_THIS]: New cases.
5332 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5333 qualifiers.
5334 (d_print_mod_list): Add suffix parameter. Change all callers.
5335 Keep walking the list even if the current modifier has been
5336 printed.
5337 (d_print_mod): Handle new _THIS qualifiers.
5338 (d_print_function_type): Handle new _THIS qualifiers when deciding
5339 whether to print a parenthesis. Put a space before the
5340 parenthesis in some cases. Call d_print_mod_list again at the
5341 end, passing suffix as 1.
5342 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5343 * testsuite/demangle-expected: Add test case.
5344
5345 Fix for PR gcc/13304:
5346 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5347 before the '<' is itself a '<', insert a space.
5348 (d_print_cast): Likewise.
5349 * testsuite/demangle-expected: Add test case.
5350
5351 Fix for PR gcc/13244:
5352 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5353 which uses the '>' operator in an extra layer of parens.
5354 * testsuite/demangle-expected: Add test case.
5355
bee6ab3e
ILT
53562003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5357
5358 * floatformat.c: Include "config.h" and <string.h> if available.
5359 (INFINITY, NAN): Define if not defined by <math.h>.
5360 (floatformat_to_double): Handle NaN, infinity, and denormalized
5361 numbers.
5362 (floatformat_from_double): Likewise.
5363 (ieee_test): In debugging code, use little endian rather than big
5364 endian. Correct tests to handle NaN and to check correct sign of
5365 zero. Omit m68k extended test.
5366 (main): Add more debugging cases.
5367
f26deb3d
ILT
53682003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5369
5370 * cp-demangle.c (d_demangle): Only return success if we consumed
5371 the entire demangled string.
5372 (is_ctor_or_dtor): Likewise.
5373
5374 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5375 to restore expected result of EDG test case to original expected
5376 result.
5377
81dc098b
ILT
53782003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5379
5380 * cp-demangle.c (struct d_print_mod): Add templates field.
5381 (d_make_builtin_type): Check for NULL type.
5382 (d_make_extended_operator): Check for NULL name.
5383 (d_make_ctor, d_make_dtor): Likewise.
5384 (d_mangled_name): Add top_level parameter. Change all callers.
5385 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5386 CV-qualifiers.
5387 (d_type): Check some return values we rely on.
5388 (d_bare_function_type, d_array_type): Likewise.
5389 (d_pointer_to_member_type, d_template_args): Likewise.
5390 (d_add_substitution): Fail if argument is NULL.
5391 (d_print_resize): Check whether buf is NULL.
5392 (d_print_comp): Save current templates list with each modifier.
5393 Don't pass the modifier list down when printing a template.
5394 (d_print_cast): Don't pass the modifier list down when printing a
5395 template.
5396 (d_print_mod_list): Temporarily set templates list while printing
5397 a modifier.
5398 (d_print_mod): Check that buf is not NULL before using it.
5399 (d_print_function_type): Print parens if there is no modifier.
5400 (d_init_info): Permit as many substitutions as there are
5401 characters in the mangled name.
5402 * testsuite/demangle-expected: Add two new test cases.
5403
eb459c81
ILT
54042003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5405
5406 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5407 d_demangle.
5408
ad07f5e5
ILT
54092003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5410
5411 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5412 callers.
5413 (print_usage): Display new -p option.
5414 (long_options): Add --no-params.
5415 (main): Accept and handle -p.
5416
0ba5c8a2
ILT
54172003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5418
5419 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5420 whether we have a template.
5421 * testsuite/demangle-expected: Add four new tests.
5422
bd6946d1
ILT
54232003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5424
9cca376f
ILT
5425 * testsuite/demangle-expected: Minor changes to match output of
5426 new demangler: adjust whitespace in four tests, and change order
5427 of qualifiers in one test.
5428
bd6946d1
ILT
5429 * cp-demangle.c: Complete rewrite.
5430
6df5a5c7
MM
54312003-11-19 Mark Mitchell <mark@codesourcery.com>
5432
5433 * cp-demangle.c (demangle_type): Correct thinko in substitution
5434 processing.
5435
a9b571f2
ILT
54362003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5437
820555e6
ILT
5438 * cp-demangle.c (demangle_operator_name): Remove space before
5439 "sizeof".
5440 (demangle_type_ptr): Put qualifiers in the right place. Handle
5441 qualifiers in pointer to member specially.
5442 (demangle_type): Handle qualifiers for pointer or reference
5443 specially. Handle function type.
5444 (demangle_local_name): Save and restore caret around demangling of
5445 initial encoding.
5446
c4328d32
ILT
5447 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5448 cplus_demangle.
5449
a9b571f2
ILT
5450 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5451
ad37274a
AJ
54522003-10-31 Andreas Jaeger <aj@suse.de>
5453
5454 * floatformat.c (floatformat_always_valid): Add unused attribute.
5455
27eb8ab1
JZ
54562003-10-30 Josef Zlomek <zlomekj@suse.cz>
5457
5458 Jan Hubicka <jh@suse.cz>
5459 * vasprintf.c (int_vasprintf): Pass va_list by value.
5460 Use va_copy for copying va_list.
5461 (vasprintf): Pass va_list by value.
5462
e0432c1c
JZ
54632003-10-30 Josef Zlomek <zlomekj@suse.cz>
5464
5465 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5466 instead of increasing n_elements when inserting to deleted slot.
5467
08c5b96d
B
54682003-10-20 J. Brobecker <brobecker@gnat.com>
5469
5470 * cplus-dem.c (demangle_template): Register a new Btype only
5471 when needed.
5472 * testsuite/demangle-expected: Add a new test.
5473
968e3f93
L
54742003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5475
5476 * testsuite/demangle-expected: Update the expected output of
5477 _GLOBAL__I__Z2fnv.
5478
bca48dc6
DJ
54792003-10-02 Daniel Jacobowitz <drow@mvista.com>
5480
5481 * strerror.c: Revert last change. Declare static sys_nerr
5482 and sys_errlist using different names.
5483
b9e8f4b3
DJ
54842003-10-01 Daniel Jacobowitz <drow@mvista.com>
5485
5486 * strerror.c: Don't provide or reference sys_errlist if
5487 strerror is available.
5488
c0590bfd
L
54892003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5490
5491 * configure.in: Check if $MAKEINFO is missing.
5492 * configure: Regenerated.
5493
b033df90
DJ
54942003-09-24 Daniel Jacobowitz <drow@mvista.com>
5495
5496 * configure.in: Use AC_PROG_CPP_WERROR.
5497 * configure: Regenerated.
5498
83c07342
AC
54992003-09-22 Andrew Cagney <cagney@redhat.com>
5500
5501 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5502 (floatformat_always_valid): New function.
5503 (floatformat_i387_ext): Initialize new "is_valid" field to
5504 "floatformat_i387_ext_is_valid".
5505 (floatformat_ieee_single_little): Initialize "is_valid" field to
5506 floatformat_always_valid.
5507 (floatformat_ieee_double_big): Ditto.
5508 (floatformat_ieee_double_little): Ditto.
5509 (floatformat_ieee_double_little): Ditto.
5510 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5511 (floatformat_i960_ext): Ditto.
5512 (floatformat_m88110_ext): Ditto.
5513 (floatformat_m88110_harris_ext): Ditto.
5514 (floatformat_arm_ext_big): Ditto.
5515 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5516 (floatformat_ia64_spill_big): Ditto.
5517 (floatformat_ia64_spill_little): Ditto.
5518 (floatformat_ia64_quad_big): Ditto.
5519 (floatformat_ia64_quad_little): Ditto.
5520 (floatformat_ia64_quad_little): Ditto.
5521 (floatformat_is_valid): Call "is_valid".
5522
c9fbef12
AC
55232003-09-15 Andrew Cagney <cagney@redhat.com>
5524
5525 * floatformat.c (get_field): Make "data" constant.
5526 (floatformat_is_valid, floatformat_to_double): Make "from"
5527 constant, fix casts.
5528 (floatformat_from_double): Make "from" constant.
5529
9c8860c3
DJ
55302003-09-15 Daniel Jacobowitz <drow@mvista.com>
5531
5532 * floatformat.c (floatformat_is_valid): New function.
5533 (get_field, put_field): Correct comments.
5534
13f7d3a1
JZ
55352003-09-06 Josef Zlomek <zlomekj@suse.cz>
5536
5537 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5538 FIBHEAPKEY_T.
5539
03eec143 55402003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
5541
5542 PR bootstrap/12100
5543 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5544 * configure: Rebuilt.
5545
238235ef
DJ
55462003-08-27 Daniel Jacobowitz <drow@mvista.com>
5547
5548 * aclocal.m4: Include acx.m4 and no-executables.m4.
5549 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5550 (LIB_AC_PROG_CC): Remove.
5551 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
5552 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5553 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
5554 performing link tests.
5555 * configure: Regenerated.
5556
2b81b2c9
NN
55572003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5558
0cf61401 5559 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 5560
7b96f3e4
DS
55612003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
5562
5563 * pex-win32.c (pexecute): Mark parameters this_pname and
5564 temp_base as unused. Remove unused variables retries,
5565 sleep_interval. Initialize org_stdin, org_stdout.
5566 (pwait): Mark parameter flags as unused.
5567
55682003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
5569
5570 * pex-win32.c (fix_argv): Ensure that the executable pathname
5571 uses Win32 backslashes.
5572 (pexecute): Cast away constness when assigning *errmsg_arg.
5573
6f8507b1
L
55742003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5575
5576 * testsuite/demangle-expected: Add more GNU V3 testcases.
5577
21299dbd
ZW
55782003-06-22 Zack Weinberg <zack@codesourcery.com>
5579
5580 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5581 not HC_ASCII and HC_EBCDIC.
5582 Add documentation in form expected by gather-docs.
5583 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5584 * Makefile.in, functions.texi: Regenerate.
5585
7468e0b5
ZW
55862003-06-21 Zack Weinberg <zack@codesourcery.com>
5587
5588 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
5589 for charset determination.
5590
cf8e4b78
DH
55912003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
5592
5593 * configure.in: Add check for malloc.h needed by
5594 m68k for function free().
5595 * configure: Regenerated.
5596 * config.in: Add HAVE_MALLOC_H.
5597 * hashtab.c: include malloc.h were available for
5598 free().
5599
aa9dc53d 56002003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 5601
aa9dc53d
ACY
5602 PR bootstrap/10974
5603 * physmem.c: Update comment.
5604 * configure.in: Modify test for _system_configuration for older
5605 AIX systems.
5606
5607 * config.in, configure: Regenerated.
7468e0b5 5608
8191fe81
JDA
56092003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5610
5611 PR other/10810
5612 * test-demangle.c (getline): Fix fence-post error.
5613
8d398258
NC
56142003-06-03 Nick Clifton <nickc@redhat.com>
5615
5616 * asprintf.c: Change comment to note that -1 is returned upon
5617 error.
5618 * vasprintf.c: Likewise.
5619 (vasprintf): Return -1 upon error.
5620 * functions.texi: Document changes to asprintf and vasprintf.
5621
29ad6d3f
KC
56222003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5623
5624 * config.table: Accept i[345867]86 variant.
5625
49a19cfd
JB
56262003-05-15 Jim Blandy <jimb@redhat.com>
5627
5628 * hex.c (_hex_value): Make this unsigned.
5629 (hex_value): Update documentation for new return type. hex_value
5630 now expands to an unsigned int expression, to avoid unexpected
5631 sign extension when we store it in a bfd_vma, which is larger than
5632 int on some platforms.
5633 * functions.texi: Regenerated.
5634
d5d4eae2
JZ
56352003-05-07 Josef Zlomek <zlomekj@suse.cz>
5636
5637 * splay-tree.c (splay_tree_predecessor): Fix comment.
5638 (splay_tree_successor): Fix comment.
5639
5cc5a0d0
JM
56402003-05-07 Jason Merrill <jason@redhat.com>
5641
9d70d418 5642 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
5643 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5644 * aclocal.m4: Include accross.m4.
5645 * configure, config.in: Regenerate.
5646
05c30f22
KG
56472003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5648
5649 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
5650 * configure: Regenerate.
5651
41fe9404
CW
56522003-05-03 Carlo Wood <carlo@alinoe.com>
5653
5654 * cp-demangle.c: Fix typo in "char_traints" string-literal.
5655
52dd3224
KG
56562003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5657
5658 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
5659 (main): Test that we don't write too much data.
5660
bd3fbc6b
KG
56612003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5662
5663 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
5664 vsnprintf.
5665 * snprintf.c, vsnprintf.c: New files.
5666 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
5667 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
5668 Regenerate dependencies.
5669
5670 * functions.texi, configure, config.in: Regenerated.
5671
029bcc09
KG
56722003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5673
5674 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
5675 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
5676 and stpncpy.
5677 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
5678 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
5679 Regenerate dependencies.
5680
5681 * functions.texi, configure, config.in: Regenerated.
5682
c9ac9147
KG
56832003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5684
5685 * argv.c: Fix comments.
5686 * calloc.c: Don't unnecessarily include "libiberty.h".
5687 (bzero): Add prototype.
5688 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5689 * getcwd.c (getcwd): Use standard definition to avoid conflicts
5690 with system headers.
5691 * hashtab.c (htab_traverse): Delete unused variables.
5692 * rename.c: Include "ansidecl.h".
5693 (rename): Use standard definition to avoid conflicts with system
5694 headers.
5695 * strsignal.c: Rely on ANSI_PROTOTYPES.
5696 * strstr.c: Check GNUC >= 2, not GNUC == 2.
5697 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5698 * vprintf.c: Include "ansidecl.h" earlier, rely on
5699 ANSI_PROTOTYPES.
5700 * vsprintf.c: Include "ansidecl.h" earlier, rely on
5701 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 5702
c9ac9147
KG
5703 * Makefile.in: Regenerate dependencies.
5704
98475c57
DD
57052003-04-15 DJ Delorie <dj@redhat.com>
5706
5707 * maint-tool (deps): Scan for headers in $srcdir also.
5708
55adc7bd
KG
57092003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5710
5711 PR target/10338
5712 PR bootstrap/10198
5713 PR bootstrap/10140
5714 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
5715 __mempcpy.
5716 * regex.c (regerror): Likewise.
5717
0ae0f1b0
RS
57182003-04-14 Roger Sayle <roger@eyesopen.com>
5719
5720 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
5721 * memchr.c: Likewise.
5722 * strcasecmp.c: Likewise.
5723 * strncasecmp.c: Likewise.
5724 * strncmp.c: Likewise.
5725 * xatexit.c: Likewise.
5726 * xmalloc.c: Likewise.
5727
5728 * copysign.c: Use traditional function declaration instead of DEFUN.
5729 * sigsetmask.c: Likewise.
5730
5731 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
5732 * memset.c: Likewise.
5733
5734 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
5735 * memmove.c: Likewise.
5736
88702c45
RS
57372003-04-14 Roger Sayle <roger@eyesopen.com>
5738
5739 * strdup.c (strdup): Tweak implementation to use memcpy.
5740
39e8d049
KG
57412003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5742
5743 * configure.in (HAVE_UINTPTR_T): Always define.
5744 * configure: Regenerated.
5745
9f2e0608
AO
57462003-03-23 Alexandre Oliva <aoliva@redhat.com>
5747
5748 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
5749 instead of $$CC alone.
5750 (install_to_tooldir): Use it.
5751
dbccdc42
JH
57522003-17-03 Jan Hubicka <jh@suse.cz>
5753
5754 * hashtab.c (htab_traverse_noresize): Break out from ...
5755 * hashtab.c (htab_traverse): ... here.
5756
0a8e3de3
JH
57572003-12-03 Jan Hubicka <jh@suse.cz>
5758
cd22e4af
JH
5759 * hashtab.c (htab_expand): Fix warning.
5760
0a8e3de3
JH
5761 * hashtab.c (htab_expand): Compute the size of hashtable based
5762 on the number of elements actually used.
5763 (htab_traverse): Call htab_expand when table is too empty.
5764
8fe85775
CW
57652003-03-11 Carlo Wood <carlo@gnu.org>
5766
5767 * cplus-dem.c (demangle_integral_value): Correction to reflect
5768 patch of 2002-01-10 in order to also make negative multi-digits
5769 without leading underscore work.
5770
3bf27822
MM
57712003-03-03 Mark Mitchell <mark@codesourcery.com>
5772
5773 * cplus-dem.c: Add license exception to copyright notice.
5774
434fa0b8
KG
57752003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5776
5777 * physmem.c: Formatting changes from upstream.
5778
ed935c35
DS
57792003-02-24 Danny Smith <dannysmith@users.source.forge.net>
5780
5781 * physmem.c (physmem_total): Add _WIN32 support.
5782 (physmem_available): Likewise.
5783
7f9fc006
RO
57842003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5785
5786 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
5787 GSI_PHYSMEM.
5788 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
5789
d47f75c4
KG
57902003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5791
5792 * configure.in: Check for sys/systemcfg.h and
5793 _system_configuration.
5794 * physmem.c: Add support for AIX. Tweek formatting as per
5795 upstream coreutils beta.
5796
170230b7
KG
57972003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5798 Richard Earnshaw <rearnsha@arm.com>
5799 Geoffrey Keating <geoffk@apple.com>
7468e0b5 5800
170230b7
KG
5801 * configure.in: Check for sys/sysctl.h and sysctl.
5802 * physmem.c: Add support for *bsd and darwin.
5803 * Makefile.in: Generate depedency for physmem.o.
5804
4a06f7f2
RO
58052003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5806
5807 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
5808 Tru64 UNIX.
5809 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
5810 Tru64 UNIX.
5811
5812 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
5813 machine/hal_sysinfo.h, sys/table.h.
5814 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
5815 * configure, config.in: Regenerate.
5816
64c7e556
KG
58172003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5818
5819 * configure.in: Check for sys/sysmp.h and sysmp.
5820 * physmem.c: Pull upstream copy, add support for irix6.
5821
5822 * config.in, configure: Regenerated.
5823
e9019af6
KG
58242003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5825
5826 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
5827 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
5828 pstat_getdynamic.
7468e0b5 5829
a354191e
KG
58302003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5831
5832 * Makefile.in (CFILES): Add physmem.c.
5833 (REQUIRED_OFILES): Add physmem.o.
5834 * configure.in: Check for sys/pstat.h.
5835 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
5836 * physmem.c: New file, copied from textutils.
5837
5838 * config.in, configure: Regenerated.
5839
4876b2b4
DJ
58402003-02-20 Daniel Jacobowitz <drow@mvista.com>
5841
5842 * Makefile.in (CFILES): Add lrealpath.c.
5843 (REQUIRED_OFILES): Add lrealpath.o.
5844 (lrealpath.o): Add rule.
5845 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
5846 * configure.in: Add realpath and canonicalize_file_name to
5847 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
5848 for canonicalize_file_name.
5849 * lrealpath.c: New file.
5850 * make-relative-prefix.c: Update documentation.
5851 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
5852 * config.in: Regenerated.
5853 * configure: Regenerated.
5854 * functions.texi: Regenerated.
5855
e182f0a3 58562003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
5857
5858 * cplus_dem.c: Fix typo: intializes -> initializes.
5859
3343fdd2
AO
58602003-02-20 Alexandre Oliva <aoliva@redhat.com>
5861
5862 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5863 config.status.
5864 * configure: Rebuilt.
5865
902cf50c
DJ
58662003-02-13 Daniel Jacobowitz <drow@mvista.com>
5867
5868 Fix PR c++/7612.
5869 * cplus-dem.c (demangle_signature): Call string_delete.
5870 Remove extra string_init.
5871 (demangle_arm_hp_template): Call string_delete instead of
5872 string_clear. Add missing string_delete call.
5873 (demangle_qualified): Add missing string_delete call.
5874 (do_type): Remove unused variable btype. Add missing string_delete
5875 call. Call string_delete instead of string_clear.
5876 (demangle_fund_type): Move variable btype inside of the switch
5877 statement. Add missing string_delete call.
5878 (do_arg): Call string_delete instead of string_clear. Remove extra
5879 string_init.
5880 (demangle_nested_args): Free work->previous_argument.
5881
7ac27e08
KG
58822003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5883
5884 * acconfig.h: New file. Add uintptr_t.
5885 * config.in: Regenerated.
5886
b3a8389d
JM
58872003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5888
5889 * libiberty.texi: Update to GFDL 1.2.
5890
d8c22ce7
CC
58912003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5892
5893 * Makefile.in (libiberty_topdir): New subst.
5894 (mkinstalldirs): Redefine in terms of the above.
5895 * configure.in: AC_SUBST it.
5896 * configure: Regenerate.
5897
4ce1921a
CC
58982003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5899
5900 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
5901 (info-subdir, install-info-subdir, clean-info-subdir)
5902 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
5903 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
5904 Pass $(FLAGS_TO_PASS).
5905
93239fdb
AO
59062003-01-27 Alexandre Oliva <aoliva@redhat.com>
5907
5908 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
5909 /`$$CC -print-multi-os-directory`.
5910
74828682
DJ
59112003-01-26 Daniel Jacobowitz <drow@mvista.com>
5912
5913 * hashtab.c (htab_create_alloc_ex): New function.
5914 (hatab_set_functions_ex): New function.
5915 (htab_delete, htab_expand): Support alternate allocation functions.
5916
ece0e59f
CF
59172003-01-24 Christopher Faylor <cgf@redhat.com>
5918
5919 * configure.in: Remove special pex-cygwin consideration.
5920 * configure: Regenerate.
5921 * pex-cygwin.c: Remove.
5922 * Makefile.in: Remove pex-cygwin.[co] lines.
5923
55d0e5e0
ZW
59242003-01-24 Zack Weinberg <zack@codesourcery.com>
5925
5926 * Makefile.in (CFILES): Add pex-*.c.
5927 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
5928 (CONFIGURED_OFILES): Add pex-*.o.
5929 (TEXIFILES): Add pexecute.txh.
5930 (pexecute.o): Delete rule.
5931 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
5932 pex-unix.o, pex-win32.o): New rules.
5933 * configure.in: Change AC_INIT argument to xmalloc.c.
5934 Compute appropriate pexecute implementation and substitute it
5935 as @pexecute@.
5936
5937 * pexecute.c: Split up into...
5938 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
5939 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
5940 new files.
5941
5942 * functions.texi: Regenerate.
5943 * configure: Regenerate.
5944
120cdf68
JZ
59452003-01-20 Josef Zlomek <zlomekj@suse.cz>
5946
5947 * hashtab.c (htab_expand): Fix allocation of new entries.
5948
90e5b39f
CC
59492003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5950
5951 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
5952
d7082cd7
CC
5953 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
5954 mkinstalldirs command.
5955
eaed9290
DS
59562002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
5957
5958 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
5959 Define for hosts with HOST_EXECUTABLE_SUFFIX.
5960
ef4e4181
NC
59612002-11-24 Nick Clifton <nickc@redhat.com>
5962
5963 * make-relative-prefix.c (make_relative_prefix): Ensure return
5964 string is empty before using strcat to construct it.
5965
42766f8d
DJ
59662002-11-22 Daniel Jacobowitz <drow@mvista.com>
5967
5968 * Makefile.in: Add make-relative-prefix.c.
5969 * make-relative-prefix.c: New file.
5970 * functions.texi: Rebuilt.
5971
783080ab
JJ
59722002-11-16 Jakub Jelinek <jakub@redhat.com>
5973
5974 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
5975 used with arguments in traditional C' warnings.
5976
7da64d7a
JJ
59772002-10-16 Jakub Jelinek <jakub@redhat.com>
5978
5979 * config.table: Use mh-s390pic for s390x too.
5980
de78f58b
AJ
59812002-10-06 Andreas Jaeger <aj@suse.de>
5982
969ac969 5983 * cplus-dem.c (ada_demangle): Get rid of unneeded
de78f58b
AJ
5984 variable and of strict-aliasing warning.
5985 (grow_vect): Use char as first parameter.
5986
6c5d742e
KG
59872002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5988
5989 * Makefile.in (all): Fix multilib parallel build.
5990
f08b7eee
JDA
59912002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
5992
5993 * cp-demangle.c (demangling_new): Cast 0 to enum.
5994 (demangle_char): Cast return of strdup to char *.
5995 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
5996 (is_gnu_v3_mangled_dtor): Likewise.
5997 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
5998 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
5999 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6000 * md5.c (md5_process_bytes): Cast results back to const void *.
6001 (md5_process_block): Add cast to const md5_uint32 *.
6002 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6003 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6004 unsigned short.
6005 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6006 to void *.
6007 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6008
8d87f295
NC
60092002-09-19 Nick Clifton <nickc@redhat.com>
6010
6011 * README: Update email addresses for bugs and patches.
6012
6eedb9ca
MS
60132002-09-10 Mike Stump <mrs@apple.com>
6014
6015 * splay-tree.c (splay_tree_successor): Fix comments.
6016
3fd9d606
ZW
60172002-09-11 Zack Weinberg <zack@codesourcery.com>
6018
b2196e8f 6019 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
6020 * testsuite/Makefile.in: Adjust for test-demangle.
6021 * testsuite/regress-demangle: Deleted.
6022 * testsuite/test-demangle.c: New file.
6023 * testsuite/demangle-expected: Change \$ to $ throughout, now that
6024 this file is not being read by a shell script.
6025
70c4e67a
RS
60262002-09-05 Roger Sayle <roger@eyesopen.com>
6027
6028 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6029
65b91091
DD
60302002-08-07 DJ Delorie <dj@redhat.com>
6031
6032 * regex.c (re_error_msgid): Just use a simple array of strings.
6033 (re_compile_pattern): Compensate.
6034 (re_comp): Likewise.
6035 (re_comp): Likewise.
6036 (regerror): Likewise.
6037
437974a9
NB
60382002-07-29 Neil Booth <neil@daikokuya.co.uk>
6039
6040 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 6041
28a34ec1
JM
60422002-07-10 Jason Merrill <jason@redhat.com>
6043
6044 * cp-demangle.c (demangle_identifier): Support extended Unicode
6045 characters.
6046
84326592
KG
60472002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6048
6049 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 6050 !defined IN_GLIBCPP_V3.
84326592 6051
5d69ba1f
MM
60522002-07-01 Mark Mitchell <mark@codesourcery.com>
6053
6054 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6055 Set it for the "st" operator.
6056 (demangle_expression): Handle expressions with types as arguments.
6057
7fda878c
DR
60582002-06-30 Douglas Rupp <rupp@gnat.com>
6059
6060 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6061 * Makefile.in (OUTPUT_OPTION): Use.
6062
112bae77
PB
60632002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6064
6065 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6066 (install_to_tooldir): Likewise.
6067
53309d5c
DR
60682002-06-17 Douglas Rupp <rupp@gnat.com>
6069
6070 * lbasename.c: Add 2002 to copyright.
6071 (IS_DIR_SEPARATOR): Remove VMS junk.
6072
045b3a49
GK
60732002-06-05 Geoffrey Keating <geoffk@redhat.com>
6074
6075 * hashtab.c (htab_create): New stub function for backward
6076 compatibility.
6077 (htab_try_create): Likewise.
6078
e2500fed
GK
60792002-06-03 Geoffrey Keating <geoffk@redhat.com>
6080
6081 * hashtab.c (htab_create): Delete.
6082 (htab_try_create): Delete.
6083 (htab_create_alloc): New.
6084 (htab_delete): Support user-specified memory allocation.
6085 (htab_expand): Likewise.
6086
9f3dbd92
RL
60872002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6088
6089 * configure.in: Fix typo in the code checking for sys_errlist.
6090 * configure: Regenerated.
6091
e4723404
AS
60922002-05-13 Andreas Schwab <schwab@suse.de>
6093
6094 * config.table: Use mh-x86pic also for x86-64.
6095
6706f116
AO
60962002-05-08 Alexandre Oliva <aoliva@redhat.com>
6097
6098 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6099 script entry, and set LD to it when configuring multilibs.
6100 * configure: Rebuilt.
6101
deae2ed9
MM
61022002-05-07 Mark Mitchell <mark@codesourcery.com>
6103
6104 * configure.in (AC_TYPE_PID_T): Use it.
6105 * configure: Regenerated.
6106 * getruntime.c: Include <sys/types.h>.
6107 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
6108
4fc4e478
RH
61092002-04-09 Richard Henderson <rth@redhat.com>
6110
6111 * hashtab.c (higher_prime_number): Use 7 as minimum.
6112 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6113 (htab_find_slot_with_hash): Likewise.
6114
bd7e6f2d
PE
61152002-04-01 Phil Edwards <pme@gcc.gnu.org>
6116
6117 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
6118 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
6119 not compile if IN_GLIBCPP_V3 defined.
6120 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
6121
a8f55e51
BM
61222002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6123
de78f58b 6124 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
6125 if it is NULL.
6126
96adcacb
DD
61272002-03-27 DJ Delorie <dj@redhat.com>
6128
6129 * hex.c: Add documentation.
6130 (_hex_value): Provide non-ASCII empty table.
6131 (hex_init): Initialize the non-ASCII table.
6132 * functions.texi: Regenerate.
6133
2b613c6a
MM
61342002-03-27 Mark Mitchell <mark@codesourcery.com>
6135
6136 * dyn-string.c: Add libgcc exception to copyright notice.
6137
cd862df8
L
61382002-03-26 H.J. Lu (hjl@gnu.org)
6139
6140 * config.table: Support --with-build-subdir.
6141 * configure.in: Likewise.
6142 * configure: Rebuild.
6143
ed300793
SG
61442002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6145
6146 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6147 seen.
6148
b3dd43df
MM
61492002-03-12 Mark Mitchell <mark@codesourcery.com>
6150
6151 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6152 notice.
6153
50c74579
DR
61542002-03-11 Douglas B Rupp <rupp@gnat.com>
6155
6156 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6157
957978a4
JB
61582002-03-06 Jim Blandy <jimb@redhat.com>
6159
6160 * splay-tree.c (splay_tree_xmalloc_allocate,
6161 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6162 prototyped definitions. Mark `data' arguments as unused.
6163
ccc49bed
AC
61642002-03-06 Andrew Cagney <ac131313@redhat.com>
6165
6166 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6167
48d7db63
PE
61682002-03-04 Phil Edwards <pme@gcc.gnu.org>
6169
6170 * configure.in: Add --enable-install-libiberty option.
6171 * Makefile.in (INSTALLED_HEADERS): New variable.
6172 (install_to_libdir): Possibly also copy headers.
6173 * configure: Regenerated.
6174
af18e951
NB
61752002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6176
6177 * xmalloc.c (xmalloc_fail): Clarify error message further.
6178
d8d7c3c3
NB
61792002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6180
6181 * xmalloc.c (xmalloc_fail): Clarify error message.
6182
00c2f96f
JB
61832002-02-22 Jim Blandy <jimb@redhat.com>
6184
6185 * splay-tree.c (splay_tree_xmalloc_allocate,
6186 splay_tree_xmalloc_deallocate): New functions.
6187 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6188 above functions and a dummy data pointer.
6189 (splay_tree_new_with_allocator): New function.
6190 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6191 splay_tree_remove): Use the splay tree's allocation and
6192 deallocation functions.
6193
b1c1a22f
SS
61942002-02-19 Scott Snyder <snyder@fnal.gov>
6195
6196 * testsuite/demangle-expected: Add test case for infinite loop in
6197 demangler.
6198 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6199 if do_type() doesn't make any progress --- prevents an infinite
6200 loop.
6201
336669e7
CW
62022002-02-18 Carlo Wood <carlo@gnu.org>
6203
6204 PR c++/5390
6205 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6206 numbers that do not start with an underscore; This is needed
6207 for integer template parameters. This doesn't break anything
6208 because multi-digit numbers are never followed by a digit.
6209 * testsuite/demangle-expected: Corrected all mangled test
6210 cases with multi-digit template parameters: g++ 2.95.x does
6211 not generate underscores around these parameters.
6212
c13db5d1
JM
62132002-02-05 Jason Merrill <jason@redhat.com>
6214
6215 * cplus-dem.c (flags): Add DMGL_VERBOSE
6216 (cplus_demangle_v3_p): Remove.
6217 (demangle_it): Add DMGL_TYPES to passed flags.
6218 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6219 (cplus_demangle_v3_type): Remove.
6220 (cplus_demangle_v3): Add options parm.
6221
d74697b8
L
62222002-02-02 H.J. Lu (hjl@gnu.org)
6223
6224 * cp-demangle.c (cp_demangle_type): Do not protect with
6225 IN_LIBGCC2.
6226 (cplus_demangle_v3_all): New.
6227 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6228 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6229
6230 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6231 Initialized to cplus_demangle_v3.
6232 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6233 of cplus_demangle_v3.
6234 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6235 command line symbol.
6236
6237 * testsuite/regress-demangle: Pass the mangled name at the
6238 command line.
6239
3a441e38
L
62402002-02-01 H.J. Lu <hjl@gnu.org>
6241
6242 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6243 DMGL_GNU_V3.
6244
6d747e63
PE
62452002-01-31 Phil Edwards <pme@gcc.gnu.org>
6246
6247 * cp-demangle.c: Revert yesterday's change.
6248
46af757b
AM
62492002-01-31 Adam Megacz <adam@xwt.org>
6250
969ac969 6251 * configure.in: Treat mingw the same as cywin
46af757b
AM
6252 wrt HAVE_SYS_ERRLIST.
6253
46ab74b1
PE
62542002-01-30 Phil Edwards <pme@gcc.gnu.org>
6255
6256 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6257 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6258 cp_demangle_type.
6259 * testsuite/demangle-expected: New gnu-v3 test.
6260
e64d0626
MV
62612002-01-22 Momchil Velikov <velco@fadata.bg>
6262
6263 * configure.in (variable detection): Use arrays of unspecified
6264 size instead of plain integers.
6265
9ce3f7e5
DD
62662002-01-18 DJ Delorie <dj@redhat.com>
6267
6268 * Makefile.in (TESTLIB): New. This library is for future
6269 testsuites.
6270 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6271 break down by letter.
6272 (REQUIRED_OFILES): List long-to-compile files first.
6273 (maint-deps): New, target for updating dependencies.
6274 (dependencies): Update.
6275 * maint-tool: Add dependency-generating option.
6276 * configure.in: Check for _doprnt even if we're not providing it.
6277 * configure: Regenerate.
6278
6279 * _doprnt.c: Modifications to allow compiling on any platform.
6280 * copysign.c: Likewise.
6281 * putenv.c: Likewise.
6282 * setenv.c: Likewise.
6283 * vsprintf.c: Likewise.
6284
0e83ceb1
DR
62852002-01-15 Douglas B Rupp <rupp@gnat.com>
6286
6287 * mkstemps.c (mkstemps): On VMS, open temp file with option
6288 that causes it to be deleted when closed.
6289
adddf5bf
KG
62902002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6291
5e65297b
KG
6292 * cp-demangle.c (long_options): Const-ify.
6293 * cplus-dem.c (long_options): Likewise.
6294
adddf5bf
KG
6295 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6296 strstr instead.
6297
a4219437
IR
62982001-12-31 Ira Ruben <ira@apple.com>
6299
6300 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6301 * configure: Regenerated.
af328d8d
DR
6302
63032001-12-24 Douglas B. Rupp <rupp@gnat.com>
6304
6305 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6306 * configure: Regenerated.
a4219437 6307
63de15a4
CR
63082001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6309
6310 PR other/2719
6311 * cplus-dem.c (consume_count): Treat negative count as an error.
6312 * testsuite/demangle-expected: Added testcase.
6313
ee262b6f
DR
6314Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6315
6316 * configure.in: Hardcode that vfork works on VMS host.
6317 * configure: Regenerated.
6318
d06ba3c7
RH
63192001-12-06 Richard Henderson <rth@redhat.com>
6320
6321 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6322 (cplus_demangle): Support no_demangling.
6323
e490616e
ZW
63242001-11-27 Zack Weinberg <zack@codesourcery.com>
6325
6326 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6327 in libiberty context. Fix typo in leading comment.
6328 * configure.in: Fix various AC_DEFINEs so autoheader works.
6329 If any of vprintf, vsprintf, vfprintf is missing from libc,
6330 then AC_REPLACE_FUNCS(_doprnt).
6331
97e620cf 63322001-11-26 DJ Delorie <dj@redhat.com>
e490616e 6333 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
6334
6335 * Makefile.in (stamp-h): Depend on Makefile for proper
6336 serialization.
6337 (*-subdir): Depend on config.h for proper serialization.
6338
c3bb7df0
DD
63392001-11-26 DJ Delorie <dj@redhat.com>
6340
6341 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6342 * configure: Regenerate.
6343 * config.h: Add HAVE_ALLOCA_H.
6344
23850d35
KG
63452001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6346
2c47b56b
KG
6347 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6348 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6349 is available.
23850d35 6350
7ddfb651
JL
6351Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6352
d3982b71
JL
6353 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6354 * configure.in (HAVE_UINTPTR_T): Test for system defining
6355 uintptr_t and define HAVE_UINTPTR_T appropriately.
6356 * regex.c (uintptr_t): Do not provide a definition if the
6357 system provided one.
6358
7ddfb651
JL
6359 * regex.c (PREFIX): Provide an alternate definition for
6360 non-ANSI/ISO compilers.
6361 (ARG_PREFIX): Likewise.
6362
2e683037
JM
63632001-11-12 Jim Meyering <meyering@lucent.com>
6364
6365 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6366 this code would end up calling gettext even in packages built
6367 with --disable-nls.
6368 * getopt.c (_): Likewise.
6369 * regex.c (_): Likewise.
6370
f749bd83
AM
63712001-11-03 Alan Modra <amodra@bigpond.net.au>
6372
6373 * configure.in: Cope with missing makeinfo.
55a10d7c 6374 * configure: Regenerate.
f749bd83 6375
26ad2982
KG
63762001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6377
e5969ba6
KG
6378 * hex.c (hex_init): Provide empty stub.
6379
26ad2982
KG
6380 * hex.c (hex_init): Delete.
6381 (_hex_value): Const-ify and initialize at compile-time.
6382
afb649d5
L
63832001-10-19 H.J. Lu <hjl@gnu.org>
6384
6385 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6386 necessary.
6387
5bed56d9
DD
63882001-10-17 DJ Delorie <dj@redhat.com>
6389
6390 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6391 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 6392 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
6393 Improve manual formatting.
6394 * functions.texi: Regenerate.
6395
aac04c15
DD
63962001-10-15 DJ Delorie <dj@redhat.com>
6397
6398 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6399 (maint-undoc): New.
6400 maint-tool: Add "undoc" tool.
6401 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6402 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6403 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6404 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6405 documentation.
6406 * fnmatch.txh: New.
6407 * functions.texi: Regenerate.
fae8182a 6408
0e4e9e8f
JM
64092001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6410
6411 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6412 * strtod.c: Use "ISO C" instead of "ANSI C".
6413 * functions.texi: Regenerate.
6414
7f8fa05d
JM
64152001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6416
6417 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6418 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6419 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6420 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6421 spelling. Give names to function arguments in documentation. Use
6422 (void) prototypes in documentation.
6423 * functions.texi: Regenerate.
6424
0be6abca
KG
64252001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6426
6427 * argv.c (buildargv, tests, main): Const-ify.
6428 * cp-demangle.c (operator_code): Likewise.
6429 * cplus-dem.c (optable, libiberty_demanglers,
6430 cplus_demangle_set_style, cplus_demangle_name_to_style,
6431 print_demangler_list): Likewise.
6432 * hashtab.c (higher_prime_number): Likewise.
6433 * strcasecmp.c (charmap): Likewise.
6434 * strerror.c (error_info, strerror, main): Likewise.
6435 * strncasecmp.c (charmap): Likewise.
6436 * strsignal.c (signal_info): Likewise.
6437
0e30ffc5
DD
64382001-09-29 DJ Delorie <dj@redhat.com>
6439
6440 * configure: Regenerate.
6441
576fb787
KG
64422001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6443
6444 * concat.c: Include stdlib.h.
6445
e922f978
EZ
64462001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6447
6448 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6449 @dircategory and @direntry directives. Add @finalout.
6450 (many nodes): Lose the next,prev,up pointers on the @nide line.
6451 (Using, Supplemental Functions, Replacement Functions): Fix
6452 markup.
6453 (Functions): Move around, to allow makeinfo to build the manual
6454 without next,prev,up pointers in thye node lines.
6455 (Licenses): Fix typos.
6456
6457 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6458 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6459 * functions.texi: Regenerate.
6460
6461 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6462 line.
6463
ae9092da
DD
64642001-09-27 DJ Delorie <dj@redhat.com>
6465
6466 * configure.in: Don't use in-tree texinfo, because libiberty must
6467 be built before it. Check for makeinfo version 4 or higher.
6468 * functions.texi: Regenerate.
fae8182a 6469
aaa5f039
DD
64702001-09-20 DJ Delorie <dj@redhat.com>
6471 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 6472
aaa5f039
DD
6473 * configure.in (MAKEINFO, PERL): Detect these.
6474 (--enable-maintainer-mode): Add.
6475 * configure: Regenerate.
6476 * Makefile.in (MAKEINFO, PERL): Define.
6477 (libiberty.info, libiberty.dvi, libiberty.html): New.
6478 (CFILES): Add bsearch.c.
6479 (CONFIGURED_OFILES): New, list of objects configure might add.
6480 (maint-missing, maint-buildall): New, for maintainers only.
6481 (clean, mostlyclean): Add info/dvi/html files.
6482 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6483 * gather-docs: New, for maintainers.
6484 * maint-tool: New, for maintainers.
6485 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6486 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6487 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6488 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6489 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6490 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6491 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6492 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6493 documentation.
fae8182a 6494
c1766881
KG
64952001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6496
6497 * concat.c (reconcat): Fix for traditional C.
6498
ad43d46f
KG
64992001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6500
6501 * concat.c (reconcat): New function.
6502
c1d49704
KG
65032001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6504
c793eea7
KG
6505 * concat.c (vconcat_length, vconcat_copy, concat_length,
6506 concat_copy, concat_copy2): New functions.
6507 (concat): Use vconcat_length/vconcat_copy.
6508
c1d49704
KG
6509 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6510 Define.
6511
7a98d9b2
KG
65122001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6513
6514 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6515 VA_FIXEDARG & VA_CLOSE.
fae8182a 6516
7a98d9b2
KG
6517 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6518 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6519 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6520
e2dff3f2
KG
65212001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6522
6523 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6524
d0708dc1
UD
65252001-08-23 Ulrich Drepper <drepper@redhat.com>
6526
6527 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6528
65292001-08-23 Ulrich Drepper <drepper@redhat.com>
6530
6531 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6532 instead of mbrtowc.
6533 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6534 wcslen, and __wcscoll instead of wcscoll.
6535
ffb9435b
MK
65362001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6537
de78f58b
AJ
6538 * fibheap.c (fibheap_init, fibnode_init): Remove.
6539 (fibheap_new, fibnode_new): Use xcalloc to allocate and
6540 initialize memory.
6541 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 6542
f379eac3
RH
65432001-08-21 Richard Henderson <rth@redhat.com>
6544
6545 * Makefile.in (fibheap.o): Depend on config.h.
6546 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
6547 functions for inlining.
6548
b1c45ae4
CF
6549Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
6550
6551 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6552 hosting on cygwin.
6553 * configure: Regenerate.
6554
0310e5ac
AC
65552001-08-20 Andrew Cagney <ac131313@redhat.com>
6556
6557 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6558 HARRIS_FLOAT_FORMAT.
6559 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6560 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6561 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6562 (floatformat_m88110_harris_ext): New float formats.
6563
8c23e0a4
DB
65642001-08-20 Daniel Berlin <dan@cgsoftware.com>
6565
6566 * fibheap.c: New file. Fibonacci heap.
6567
6568 * Makefile.in (CFILES): Add fibheap.c.
6569 (REQUIRED_OFILES): Add fibheap.o.
6570 (fibheap.o): Add dependencies for fibheap.o.
6571
91625004
CF
65722001-08-17 Christopher Faylor <cgf@cygnus.com>
6573
6574 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6575 * configure: Regenerate.
6576
9e0ba685
RH
65772001-08-16 Richard Henderson <rth@redhat.com>
6578
6579 * hashtab.c (htab_hash_string): New.
6580
d80dedbe
AC
65812001-08-13 Andrew Cagney <ac131313@redhat.com>
6582
6583 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6584 name.
6585
ccea0d85
IH
65862001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
6587
6588 * regex.c (wcs_regex_compile): Use appropriate string
6589 to compare with collating element.
6590 Fix the padding for the alignment.
6591
b0e9bc8c 65922001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
6593
6594 * lbasename.c (lbasename): Change function definition to return a
6595 const char pointer.
6596
056400f1
JM
65972001-08-07 Jason Merrill <jason_merrill@redhat.com>
6598
6599 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6600 for".
6601
4e627c41
RH
66022001-08-03 Richard Henderson <rth@redhat.com>
6603
6604 * Makefile.in (concat.o): Depend on config.h.
6605
b6a2f884
AJ
66062001-07-30 Andreas Jaeger <aj@suse.de>
6607
6608 * concat.c: Include "config.h".
6609
c4b9cfe0
AJ
66102001-07-30 Andreas Jaeger <aj@suse.de>
6611
6612 * regex.c: Declare wcs functions only if compiling with
6613 MBS_SUPPORT.
6614 Don't use #elif for traditional C.
6615
66162001-07-23 Ulrich Drepper <drepper@redhat.com>
6617
6618 * regex.c: Revamp memory allocation for WCHAR functions to
6619 not use too much stack.
6620
66212001-07-30 Andreas Jaeger <aj@suse.de>
6622
6623 * regex.c: Declare wcs functions only if compiling with
6624 MBS_SUPPORT.
6625 Don't use #elif for traditional C.
6626
2cf50fd3
DJ
66272001-07-25 Daniel Jacobowitz <drow@mvista.com>
6628
6629 * Makefile.in (regex.o): Add dependency on config.h.
6630
27ffc806
DD
66312001-07-18 Andreas Schwab <schwab@suse.de>
6632
6633 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6634 underscore character.
6635
66362001-07-18 Ulrich Drepper <drepper@redhat.com>
6637
6638 * regex.c: Limit string length printed in debug messages to 100
6639 chars.
6640
66412001-07-18 Andreas Jaeger <aj@suse.de>
6642
6643 * regex.c: Place under LGPL version 2.1.
6644
dd771632
JJ
66452001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6646
6647 * Makefile.in: Add support for regex code.
6648 * regex.c: New file.
6649
29650b2b
MK
66502001-07-05 Mark Klein <mklein@dis.com>
6651
6652 * Makefile.in: Add ffs.c dependency.
6653 * configure.in: Add ffs.c.
6654 * ffs.c: New file.
6655
c8b28221
RH
66562001-06-18 Richard Henderson <rth@redhat.com>
6657
6658 * concat.c: Include <sys/types.h>.
6659
473c2d0b
LR
66602001-06-11 Loren J. Rittle <ljrittle@acm.org>
6661
a4c03da2 6662 bootstrap/3106
473c2d0b
LR
6663 * strerror.c (sys_nerr): Hide the OS header version.
6664 * strsignal.c (sys_nsig): Likewise.
6665
0bdcca68
RH
66662001-06-10 Richard Henderson <rth@redhat.com>
6667
6668 * concat.c: Include string.h. Fix int vs size_t usage.
6669 Simplify the iteration loops. Use memcpy.
6670
6de133d3
MK
66712001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6672
6673 * partition.c: Fix misspelling of `implementation'.
6674
8a153288
TS
66752001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6676
6677 * md5.c (md5_init_ctx): Declare constants as unsigned.
6678 (md5_process_block): Likewise.
6679
641b2721
ZW
66802001-05-07 Zack Weinberg <zackw@stanford.edu>
6681
6682 * cp-demangle.c (demangle_v3_with_details,
6683 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
6684 function definition.
6685 * ternary.c: Use K+R style function definitions. Use PTR, not
6686 void *. Make arguments constant where possible.
6687
5cdba4ff
MM
66882001-05-07 Mark Mitchell <mark@codesourcery.com>
6689
6690 * splay-tree.h (splay_tree_max): New function.
6691 (splay_tree_min): Likewise.
6692
9dab060e
DB
66932001-04-15 Daniel Berlin <dan@cgsoftware.com>
6694
6695 * ternary.c: New file - Ternary search tree implementation.
6696
6697 * Makefile.in: Add ternary.o, and ternary.c dependencies.
6698
d02af173
ZW
66992001-04-03 Zack Weinberg <zackw@stanford.edu>
6700
6701 * make-temp-file.c (try): Inline.
6702
94b68558
RH
67032001-02-28 Richard Henderson <rth@redhat.com>
6704
6705 * Makefile.in (make-temp-file.o): Depend on config.h.
6706
27f66c0b
KG
67072001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6708
6709 * memchr.c (memchr): Adjust condition to avoid infinite loop.
6710
f1a0345c
JJ
67112001-03-23 Jakub Jelinek <jakub@redhat.com>
6712
6713 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
6714 `_' not followed by a digit is invalid.
6715
a519fba6
JB
67162001-03-22 Jim Blandy <jimb@redhat.com>
6717
6718 * cp-demangle.c (string_list_delete): Use dyn_string_delete
6719 instead of free, to free the contents as well as the string
6720 structure.
6721
49ee944b
ZW
67222001-03-21 Zack Weinberg <zackw@stanford.edu>
6723
6724 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
6725 Don't default P_tmpdir to anything. Try /var/tmp before
6726 /usr/tmp.
6727
33437dc7
ZW
67282001-03-20 Zack Weinberg <zackw@stanford.edu>
6729
6730 * choose-temp.c: Split off make_temp_file, and the code
6731 duplicated between it and choose_temp_base, into...
6732 * make-temp-file.c: ... here; new file.
6733
6734 * Makefile.in (CFILES): Add make-temp-file.c.
6735 (REQUIRED_OFILES): Add make-temp-file.o.
6736
7dce2eff
JB
67372001-03-20 Jim Blandy <jimb@redhat.com>
6738
6739 * cp-demangle.c (struct demangling_def): New fields:
6740 is_constructor and is_destructor.
6741 (demangling_new): Initialize them.
6742 (demangle_ctor_dtor_name): Set them, if we detect a constructor
6743 or destructor.
6744 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
6745 is_gnu_v3_mangled_dtor): New functions.
6746
e03a61f1
JM
67472001-03-20 Jason Merrill <jason@redhat.com>
6748
6749 * cplus-dem.c (main): Skip initial $.
6750
8860ddab
MM
67512001-03-15 Michael Meissner <meissner@redhat.com>
6752
6753 * hashtab.c (higher_prime_number): Silence warning that 4294967291
6754 might be a signed integer under pre-ISO C systems.
6755
2b757d51
NB
67562001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6757 John David Anglin <dave@hiauly1.hia.nrc.ca>
6758
969ac969
JJ
6759 * lbasename.c: New file.
6760 * Makefile.in: Update for lbasename.
2b757d51 6761
1f50aafb
ZW
67622001-03-06 Zack Weinberg <zackw@stanford.edu>
6763
6764 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
6765 * configure.in: Replace all alloca logic with a simple use of
6766 the above new macro.
6767 * config.table: Kill *-*-beos* entry.
6768 * config/mh-beos: Delete.
6769 * configure, config.in: Regenerate.
6770
6771 * Makefile.in (ALLOCA, HFILES): Kill.
6772 (REQUIRED_OFILES): Add alloca.o.
6773 (alloca.o): Depend on libiberty.h.
6774 (argv.o): Don't depend on alloca-conf.h.
6775 * alloca-conf.h: Delete.
6776 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
6777 blocks. Provide the C alloca unconditionally. Use PTR where
6778 appropriate. Make i00afunc static.
6779 * argv.c: Don't include alloca-conf.h.
6780
d9fd5aae
JDA
67812001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6782
6783 * cplus-dem.c (main): Cast enum style to int.
6784
4031ed65
LR
67852001-02-16 Loren J. Rittle <ljrittle@acm.org>
6786
6787 * cplus-dem.c (main): Initialize style.
6788
2ca46e8a
PE
67892001-02-02 Phil Edwards <pme@sources.redhat.com>
6790
6791 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
6792
3b60dd8e
BM
67932001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
6794
6795 Add support for Java demangling under the v3 ABI:
6796 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
6797 (struct demangling_def): Add `style' field.
6798 (demangling_new): New parameter `style'. Set it in demangling_t.
6799 (demangle_prefix): Use NAMESPACE_SEPARATOR.
6800 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
6801 (cp_demangle): New parameter `style'. Pass it to demangling_new().
6802 (main): Call cp_demangle with extra parameter.
6803 (java_demangle_v3): New function.
6804 (java_builtin_type_names): New. Table of primitive type names used
6805 for Java demangling.
6806 (demangle_builtin_type): Look up in java_builtin_type_names if doing
6807 Java output.
1f50aafb 6808 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
6809 demangling.
6810 (long_options): Remove obsolete `java' option.
6811 (main): Remove explicit handling of `java' option. Instead, pass style
6812 parameter in cplus_demangle flags as gdb does.
6813 * testsuite/demangle.expected: Add some Java test cases.
6814
584932e9
DD
68152000-12-29 DJ Delorie <dj@redhat.com>
6816
6817 * fnmatch.c: Make the note about the origins of this file more
6818 accurate, at least until we can sync with glibc.
6819 * getopt.c: Ditto.
6820 * getopt1.c: Ditto.
6821 * md5.c: Ditto.
6822 * obstack.c: Ditto.
6823
dac45916
MS
68242000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6825
6826 * bsearch.c: New file.
6827 * configure.in (funcs): Add bsearch.
6828 (AC_CHECK_FUNCS): Likewise.
6829 * configure, config.in: Regenerate.
6830
a8e4a997
MS
68312000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6832
6833 * safe-ctype.c: #include "ansidecl.h".
6834 * strtod.c: Likewise.
6835
75444da7
MS
68362000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6837
6838 * strtoul.c: Include safe-ctype.h, not ctype.h.
6839
f6bbde28
ZW
68402000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
6841
6842 * safe-ctype.c: New file.
6843 * Makefile.in (CFILES): Add safe-ctype.c.
6844 (REQUIRED_OFILES): Add safe-ctype.o.
6845
6846 * argv.c: Define ISBLANK and use it, not isspace.
6847 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
6848 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
6849 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
6850 before calling TOLOWER(c)/TOUPPER(c).
6851
6c1ce62b 68522000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
6853
6854 * Makefile.in (distclean): When cleaning, remove testsuite.
6855
b5d1497d
JM
68562000-12-05 Jason Merrill <jason@redhat.com>
6857
6858 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
6859 name before allocating the dyn_string.
6860
c6e13630
JM
68612000-12-04 Jason Merrill <jason@redhat.com>
6862
6863 * cp-demangle.c: s/new_abi/v3/.
6864 * cplus-dem.c: Likewise.
6865 (current_demangling_style): Now auto_demangling.
6866 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 6867 (main): Use standard symbol chars for auto_demangling.
c6e13630 6868
a4c9b97e
MM
68692000-11-26 Mark Mitchell <mark@codesourcery.com>
6870
6871 * hashtab.c (higher_prime_number): Use a table, rather than a
6872 seive, to find the next prime.
6873
3b3bd9a7
L
68742000-11-22 H.J. Lu <hjl@gnu.org>
6875
6876 * cplus-dem.c (main): Handle gnat_demangling.
6877
d1209685
ZW
68782000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
6879
6880 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
6881 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
6882 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
6883 argument form of AC_DEFINE in dummy definitions block. Use
6884 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
6885 in dummy block. Preload cache variables instead of bypassing
6886 tests, where possible.
6887 * acconfig.h: Removed.
6888
6889 * xmalloc.c (xmalloc_failed): New function, does error
6890 reporting on failed allocation.
6891 (xmalloc, xcalloc, xrealloc): Use it.
6892
cf183ac2
HPN
68932000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
6894
6895 * cplus-dem.c (cplus_demangle): Fix formatting.
6896 (grow_vect): Ditto.
6897 (ada_demangle): Ditto.
6898 (internal_cplus_demangle): Ditto.
6899 (mop_up): Ditto.
6900
69012000-11-21 H.J. Lu <hjl@gnu.org>
6902
6903 * cplus-dem.c (main): Handle java_demangling.
6904
8bcc782c
KG
69052000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6906
6907 * cplus-dem.c (grow_vect): Prototype.
6908 (ada_demangle): Cast the arg of ctype macros to unsigned char.
6909
29120f44
HPN
69102000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
6911
6912 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
6913 parameter `option'.
6914
0437a5a8
KB
69152000-11-15 Kenneth Block <kenneth.block@compaq.com>
6916
9e038f71 6917 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
6918 be used in GCC.
6919
eab0c1ab 69202000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 6921
29120f44 6922 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
6923 list.
6924
d50d20ec
HPN
69252000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
6926
6927 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
6928 xcalloc depending on htab->return_allocation_failure. Return zero
6929 if calloc fails.
d50d20ec
HPN
6930 (htab_create): Update comment to cover memory allocation.
6931 (htab_try_create): New.
6932 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 6933 Update comment to cover this.
d50d20ec 6934
35e9340f
HPN
69352000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
6936
6937 * hashtab.c: Change void * to PTR where necessary.
6938 (htab_create, htab_expand): Correct formatting of comment before
6939 function.
6940
ea343d1a 69412000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
6942
6943 * cp-demangle.c (string_list_def): Add caret_position and comments.
6944 (result_caret_pos): New macro.
6945 (result_append_string): Rename to...
6946 (result_add_string): ... this, and insert at caret position.
d1209685 6947 Rename throughout.
0870bfd6
AS
6948 (result_append): Rename to...
6949 (result_add): ... this, and insert at caret position. Rename
d1209685 6950 throughout.
0870bfd6
AS
6951 (result_append_char): Rename to...
6952 (result_add_char): ... this, and insert at caret position. Rename
d1209685 6953 throughout.
0870bfd6
AS
6954 (result_append_space): Remove.
6955 (string_list_new): Initialize caret position.
6956 (result_add_separated_char): Use caret position.
6957 (result_get_caret): New funtion.
6958 (result_set_caret): Likewise.
6959 (result_shift_caret): Likewise.
6960 (result_previous_char_is_space): Likewise.
6961 (substitution_start): Use caret position.
6962 (substitution_add): Likewise.
6963 (demangling_new): Initialize caret position.
6964 (demangle_encoding): Use caret position.
d1209685 6965 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
6966 (demangle_type_ptr): Use switch statement. Handle pointers to
6967 arrays. Don't use result_append_space. Use caret position.
6968 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
6969 call to demangle_array_type.
6970 (demangle_array_type): Add parameter to handle pointers to arrays.
6971
f15b9af9
MM
69722000-10-01 Mark Mitchell <mark@codesourcery.com>
6973
6974 * splay-tree.c (splay_tree_insert): Fix formatting.
6975
8f17b5c5
MM
69762000-09-16 Mark Mitchell <mark@codesourcery.com>
6977
6978 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
6979
4eaa189a
MS
69802000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6981
6982 * splay-tree.c: #include <stdio.h>.
6983
29791078
HPN
69842000-09-14 Hans-Peter Nilsson <hp@axis.com>
6985
6986 * testsuite/demangle-expected: Add two tests for anonymous
6987 namespaces.
6988 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
6989
2c9f4db7
MM
69902000-09-10 Mark Mitchell <mark@codesourcery.com>
6991
6992 * splay-tree.c (splay_tree_predecessor): New function.
6993 (splay_tree_successor): Likewise.
6994
bb22da4b
HPN
69952000-09-10 Hans-Peter Nilsson <hp@axis.com>
6996
6997 * testsuite/demangle-expected: Add four tests for type_info
6998 mangling.
bb22da4b
HPN
6999 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7000 for a non-template non-qualified type_info function or node.
7001
759e8187
AS
70022000-09-08 Alex Samuel <samuel@codesourcery.com>
7003
7004 * cp-demangle.c: Fix copyright banner.
7005
2ecd81ef
MS
70062000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7007
7008 * md5.c: #include "ansidecl.h".
7009
d93998ec
AS
70102000-09-06 Alex Samuel <samuel@codesourcery.com>
7011
7012 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7013 (demangle_type): Handle substitution candidates correctly in the
7014 face of special substitutions.
7015
1056d228
AS
70162000-09-05 Alex Samuel <samuel@codesourcery.com>
7017
7018 * cp-demangle.c (demangle_encoding): Rename variable.
7019 (demangle_name): Rename parameter. Handle return type
7020 suppression.
7021 (demangle_nested_name): Rename parameter.
7022 (demangle_prefix): Likewise. Change return type suppression.
7023 (demangle_unqualified_name): Add parameter. Flag constructors and
7024 conversion operators.
7025 (demangle_special_name): Fix comment.
7026 (demangle_type): Rename variable.
7027 (demangle_bare_function_type): Check for missing return type and
d1209685 7028 parameter.
1056d228
AS
7029 (demangle_class_enum_type): Rename parameter.
7030 (demangle_discriminator): Fix misspelling in comment.
7031
2f31ed7e
DD
70322000-08-31 DJ Delorie <dj@redhat.com>
7033
7034 * configure.in (Cygwin): special case cygwin only when we're
7035 building cygwin, not when we're hosting cygwin.
7036
02bcb9c6
AS
70372000-09-04 Alex Samuel <samuel@codesourcery.com>
7038
7039 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
7040 <expression>.
7041
aee749cf
AS
70422000-09-04 Alex Samuel <samuel@codesourcery.com>
7043
7044 * cp-demangle.c (demangle_type_ptr): Increment position past
7045 pointer and reference characters.
7046
92a16bbe
AS
70472000-09-04 Alex Samuel <samuel@codesourcery.com>
7048
7049 * cp-demangle.c (demangle_nv_offset): New function.
7050 (demangle_v_offset): Likewise.
7051 (demangle_call_offset): Likewise.
7052 (demangle_special_name): Update thunk demangling to comply with
7053 ABI changes.
d1209685 7054
31e0ab1f
AS
70552000-09-03 Alex Samuel <samuel@codesourcery.com>
7056
7057 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7058 (substitution_def): Remove template_parm_number.
7059 (NOT_TEMPLATE_PARM): Remove.
7060 (result_insert_string): New macro.
7061 (result_insert): Likewise.
7062 (result_insert_char): Likewise.
7063 (substitution_add): Remove last parameter. Don't store template
d1209685 7064 parm number.
31e0ab1f
AS
7065 (BFT_NO_RETURN_TYPE): Define as NULL.
7066 (demangle_encoding): Adjust call to demangle_bare_function_type.
7067 (demangle_name): Adjust substitution. Adjust call to
d1209685 7068 substitution_add.
31e0ab1f
AS
7069 (demangle_prefix): Adjust call to substitution_add.
7070 (demangle_identifier): Handle anonymous namespaces.
7071 (demangle_operator_name): Change demangling of vendor-extended
7072 operator to match ABI changes.
7073 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 7074 substitutions here.
31e0ab1f
AS
7075 (demangle_type): Adjust calls to demangle_template_param,
7076 substitution_add, and demangle_type_ptr. Fix substitution of
7077 templated types.
7078 (demangle_function_type): Change parameter to a pointer.
7079 (demangle_bare_function_type): Likewise. Adjust insertion point.
7080 (demangle_template_param): Remove last parameter.
7081 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 7082 demangle_template_param.
31e0ab1f
AS
7083 (is_mangled_char): Accept `$' and `.'.
7084 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7085 * dyn-string.c (dyn_string_insert_char): New function.
7086
ccbc3eb7
HPN
70872000-08-31 Hans-Peter Nilsson <hp@axis.com>
7088
7089 * testsuite/demangle-expected: Add nine tests for
7090 underscore-after-number followed by five tests for name-signature
7091 delimiter.
7092
53dce582
RH
70932000-08-28 Richard Henderson <rth@cygnus.com>
7094
7095 * Makefile.in (md5.o): Depend on config.h.
7096
881c6935
JM
70972000-08-28 Jason Merrill <jason@redhat.com>
7098
7099 * Makefile.in (REQUIRED_OFILES): Add md5.o.
7100 (CFILES): Add md5.c.
7101 * md5.c: New file.
7102
a440fd19
AS
71032000-08-27 Alex Samuel <samuel@codesourcery.com>
7104
7105 * cp-demangle.c (demangle_name): Initialize template_p in local
7106 name case. Don't re-add substitutions as candidates.
7107 (demangle_nested_name): Use <unqualified-name>.
7108 (demangle_prefix): Likewise. Don't add template names as
7109 substitution candidates twice, or re-add a substitution or the
7110 last prefix component.
7111 (demangle_local_name): Adjust output format.
7112
d01ce591
AS
71132000-08-25 Alex Samuel <samuel@codesourcery.com>
7114
7115 * cp-demangle.c (result_add_separated_char): Change parameter to
7116 int.
7117 (substitution_add): Don't check for duplicates. Check if
7118 previously allocated size is zero.
7119 (demangle_name): Remove duplicate check for std substitution.
7120 Clear template flag appropriately.
7121 (demangle_prefix): Remove argument to demangle_substitution.
7122 Don't check that template flag is already set.
7123 (demangle_operator_name): Add pt operator.
7124 (demangle_type): Don't treat r as built-in type. Remove argument
7125 to demangle_substitution. Fix substitution candidate mechanics.
7126 Handle <template-template-parm>s. Improve comments.
d1209685 7127 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
7128 (demangle_substitution): Remove parameter.
7129 (print_usage): Remove extra fprintf option.
7130
2f59c8eb
GM
71312000-08-24 Greg McGary <greg@mcgary.org>
7132
969ac969 7133 * random.c (end_ptr): Revert previous change.
2f59c8eb 7134
2f26c11d
GM
71352000-08-24 Greg McGary <greg@mcgary.org>
7136
969ac969 7137 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2f26c11d 7138 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
969ac969 7139 * random.c (end_ptr): Likewise.
2f26c11d 7140
e282c9c9
AS
71412000-08-23 Alex Samuel <samuel@codesourcery.com>
7142
7143 * cp-demangle.c (result_close_template_list): Remove function.
7144 (result_add_separated_char): New function.
7145 (result_open_template_list): New macro.
7146 (result_close_template_list): Likewise.
7147 (demangle_prefix): Don't set template_p if the
7148 prefix ends with a ctor name.
7149 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7150 (demangle_type): Check for template args after substitution.
7151 (demangle_template_args): Use result_open_template_list.
d1209685 7152
c9b6494a
ZW
71532000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7154
7155 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7156
d1209685 71572000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
7158
7159 * config/mh-openedition.h: Added -DLE370 definition.
7160
0aab2795
ME
71612000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7162
7163 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7164 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7165 Cast program to 'char *' in errmsg_arg assignment.
7166 (PWAIT_ERROR): Define.
7167 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
7168 to DJGPP's WIF* macros.
7169
c2f275e4
RB
71702000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7171 Jeff Law <law@cygnus.com>
7172
73aa9564
RB
7173 * getcwd.c: Include string.h, stdlib.h for prototypes
7174
c2f275e4 7175 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
7176 * rename.c: Include config.h, unistd.h
7177 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 7178
ccbc3eb7
HPN
71792000-07-24 Hans-Peter Nilsson <hp@axis.com>
7180
7181 * cplus-dem.c (work_stuff_copy_to_from): New.
7182 (delete_non_B_K_work_stuff): New.
7183 (delete_work_stuff): New.
7184 (mop_up): Break out work_stuff partly destruction to
7185 delete_non_B_K_work_stuff.
7186 (iterate_demangle_function): New.
7187 (demangle_prefix): Call iterate_demangle_function instead of
7188 demangle_function_name. Leave handling of name-signature
7189 __-delimiters to iterate_demangle_function.
7190 (demangle_integral_value): Strip an optional
7191 following underscore cautiously. Handle negative numbers.
7192
3388651c
DB
71932000-07-24 Daniel Berlin <dberlin@redhat.com>
7194
d1209685 7195 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
7196 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7197
0fac482e
AS
71982000-07-21 Alex Samuel <samuel@codesourcery.com>
7199
7200 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7201 allocating ctor mangling.
7202 (demangle_array_type): Handle empty and non-constant array length.
7203
8502a100 72042000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
7205 Jeff Law <law@cygnus.com>
7206
c6451ce1
MS
7207 * configure.in (AC_CHECK_HEADERS): Add time.h.
7208 (AC_HEADER_TIME): Add check.
7209 * configure, config.in: Regenerate.
7210 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7211
cd447360
MS
7212 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7213 * configure, config.in: Regenerate.
7214 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7215 * strtol.c, strtoul.c: #include "config.h". Portably #include
7216 <limits.h> and/or <sys/param.h>.
7217 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 7218
3b58c099
MS
7219 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7220 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7221 * configure, config.in: Regenerate.
7222 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7223
8502a100
MS
7224 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7225
da0c7743
MS
72262000-07-21 Mike Stump <mrs@wrs.com>
7227
7228 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 7229 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 7230
838f8562
KG
72312000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7232
7233 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7234
7235 * setenv.c (setenv): Initialize variable `ep'.
7236
7237 * sigsetmask.c (abort): Prototype.
7238
7239 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7240 __STDC__ for stdarg.h include.
7241 (int_vasprintf): Prototype.
7242 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7243 definition. Cast `global_total_width' in comparison.
7244 (main): Prototype. Return a value.
7245
7246 * vfork.c (fork): Prototype.
7247
7248 * xexit.c: Include config.h.
7249
e9958132
JM
72502000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7251
7252 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7253 and print it with %u.
7254
39a6492f
HPN
72552000-07-17 Hans-Peter Nilsson <hp@axis.com>
7256
7257 * testsuite/regress-demangle (failed test): Show result and
7258 expected output.
7259
6d0be369
AH
72602000-07-07 Andrew Haley <aph@cygnus.com>
7261
7262 * cplus-dem.c (main): fflush() after emitting last char before
7263 waiting for input.
7264
bece74bd
AS
72652000-06-28 Alex Samuel <samuel@codesourcery.com>
7266
7267 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7268 (demangle_name): Handle <substitution> followed by
7269 <unqualified-template-name>.
7270 (demangle_type): Follow special substitutions with
7271 <class-enum-type>
7272 (demangle_subtitution): Set template_p for special substitutions.
7273 (main): Fix typos.
d1209685 7274
229b8ec7
AS
72752000-06-27 Alex Samuel <samuel@codesourcery.com>
7276
7277 * cp-demangle.c (demangle_special_name): Swap base and derived
7278 class when demangling construction vtables.
7279
051664b0
AS
72802000-06-21 Alex Samuel <samuel@codesourcery.com>
7281
7282 * cp-demangle.c: Don't include ctype.h.
7283 (IS_DIGIT): New macro.
7284 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7285 instead of isdigit and isalpanum.
7286 (demangling_def): Make name and next const pointers.
7287 (STATUS_ALLOCATION_FAILED): New status code.
7288 (dyn_string_append_space): Handle failure in
7289 dyn_string_append_char.
7290 (int_to_dyn_string): Likewise. Change return value to status_t.
7291 (string_list_new): Handle failure of dyn_string_init.
7292 (result_close_template_list): Change return type to status_t.
7293 Handle failure in dyn_string_append.
7294 (result_push): Change return value to status_t. Handle failure in
7295 string_list_new. Handle failure of result_push throughout.
7296 (substitution_add): Change return value to status_t. Handle
7297 dyn_string failures. Handle failure of substitution_add
7298 throughout.
7299 (template_arg_list_new): Return NULL on allocation failure.
7300 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7301 Handle error result throughout.
7302 (result_append): Likewise.
7303 (result_append_char): Likewise.
7304 (result_append_space): Likewise.
7305 (demangling_new): Make argument a const pointer. Handle
7306 allocation failures.
7307 (demangle_template_args): Handle failure in template_arg_list_new
7308 and result_close_template_list.
7309 (demangle_discriminator): Return if int_to_dyn_string fails.
7310 (cp_demangle): Likewise.
7311 (cp_demangle_type): New function.
7312 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7313 memory allocation failure.
7314 (main): Likewise.
7315 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7316 IN_LIBGCC2.
7317 (dyn_string_init): Change return value to int. Handle
7318 RETURN_ON_ALLOCATION_FAILURE case.
7319 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7320 (dyn_string_release): Delete the dyn_string.
7321 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7322 (dyn_string_copy): Change return type to int.
7323 (dyn_string_copy_cstr): Likewise.
7324 (dyn_string_prepend): Likewise.
7325 (dyn_string_prepend_cstr): Likewise.
7326 (dyn_string_insert): Likewise.
7327 (dyn_string_insert_cstr): Likewise.
7328 (dyn_string_append): Likewise.
7329 (dyn_string_append_cstr): Likewise.
7330 (dyn_string_append_char): Likewise.
7331 (dyn_string_substring): Likewise.
d1209685 7332
fe06b696
ZW
73332000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7334
7335 * cp-demangle.c (demangle_operator_name): Add spaces before
7336 names beginning with a letter: delete, delete[], new, new[],
7337 sizeof.
7338 (demangle_special_name): Handle TF <type> and TJ <type>.
7339
6223e158
PDM
7340Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7341
7342 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7343
48f3e29b
PDM
7344Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7345
7346 * cp-demangle.c (stdio.h): File included unconditionaly.
7347 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7348 * dyn-string.c (stdio.h): File included.
7349 * partition.c (partition_print): No `&' needed to take the address of
7350 a function.
7351
69197e7e
KG
73522000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7353
7354 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 7355
69197e7e
KG
7356 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7357
7358 * cp-demangle.c (demangle_char): Change parameter from char to int.
7359 (demangle_expression, demangle_expr_primary): Remove extra
7360 semi-colon in prototype.
7361
7362 * dyn-string.c (dyn_string_append_char): Change parameter from
7363 char to int.
7364
7365 * memcmp.c (memcmp): Constify.
7366
7367 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7368 __extension__.
7369
7370 * partition.c (elem_compare): Prototype. Don't cast away
7371 const-ness.
7372
7373 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 7374
7eb23b1f
KG
73752000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7376
7377 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7378
7379 * cp-demangle.c: Include demangle.h.
7380 (template_arg_list_new): DeANSIfy.
7381 (cp_demangle): Make static and add prototype.
7382 (operator_code, operators): Constify.
7383 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7384
3faa108c
AS
73852000-06-05 Alex Samuel <samuel@codesourcery.com>
7386
7387 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7388 unsigned char.
7389 (demangle_unqualified_name): Likewise.
7390 (demangle_number_literally): Likewise.
7391 (demangle_type): Likewise.
7392 (demangle_substitution): Likewise.
7393 (is_mangled_char): Likewise, for isalnum.
7394
69afa80d
AS
73952000-06-04 Alex Samuel <samuel@codesourcery.com>
7396
7397 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7398 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7399 (cp-demangle.o): New dependency.
7400 (dyn-string.o): Likewise.
7401
7402 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7403
7404 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7405 demangler.
7406 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7407 demangling mode.
7408 (gnu_new_abi_symbol_characters): New function.
7409 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7410 file.
7411 * cp-demangle.c: New file.
d1209685 7412
0b72c3df
AC
7413Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7414
7415 * floatformat.c: Add name to each floatformat field.
7416
270cea06
JL
7417Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7418
7419 * Makefile.in (objalloc.o): Depend on config.h
7420
d11ec6f0
ZW
74212000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7422
7423 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7424 if HAVE_STRING_H.
7425 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7426 * objalloc.c: Include config.h. Include stdlib.h and don't
7427 declare malloc or free if HAVE_STDLIB_H.
7428 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7429 else declare malloc without prototype. Include string.h if
7430 HAVE_STRING_H, else declare memset without prototype. Don't
7431 include stddef.h.
7432
f8e2da56
MS
74332000-05-23 Mike Stump <mrs@wrs.com>
7434
7435 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 7436 -j3.
f8e2da56 7437
650f3068
DA
74382000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7439
7440 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7441
1d2da2e1
HB
74422000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7443
d1209685 7444 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
7445 probably zero, also eliminate a warning on alpha.
7446
47668d0a
DE
74472000-05-15 David Edelsohn <edelsohn@gnu.org>
7448
c7a79a32 7449 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
7450 on $(enable_shared).
7451
36348eab
JJ
74522000-05-10 Jakub Jelinek <jakub@redhat.com>
7453
7454 * config.table: Use mh-sparcpic for sparc*-*-*.
7455
209bbe34
NC
74562000-05-08 Nick Clifton <nickc@cygnus.com>
7457
7458 * Makefile.in (CFILES): Add strncmp.c.
7459 (NEEDED): Add strncmp.
7460
a85a47fb
KG
74612000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7462
7463 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7464 Cast the arguments to `islower' to `unsigned char'.
7465 (print_demangler_list): Prototype.
7466
4aef973c
PDM
7467Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7468
7469 * sort.c (UCHAR_MAX): Provide fallback definition.
7470
3b94497c
AO
74712000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7472
7473 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7474 SUBDIRS.
7475
24eaa47a
KB
74762000-04-28 Kenneth Block <block@zk3.dec.com>
7477 Jason Merrill <jason@casey.cygnus.com>
7478
d1209685
ZW
7479 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7480 (cplus_demangle_set_style): New function for setting style.
7481 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 7482
a9266bfa
KG
74832000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484
7485 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7486
7487 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7488 (libiberty_AC_FUNC_STRNCMP): Invoke.
7489
7490 * strncmp.c: New file.
7491
8e02c4d0
JH
7492Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7493
7494 * hashtab.c (htab_expand): Add prototype.
7495 (find_empty_slot_for_expand): Likewise.
7496
4feeaae3
KG
74972000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7498
7499 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7500 match prototype.
7501 (htab_expand): Cast the return value of xcalloc.
7502
18a94a2f
MM
75032000-04-24 Mark Mitchell <mark@codesourcery.com>
7504
7505 * hashtab.c (hash_pointer): New function.
7506 (eq_pointer): Likewise.
7507 (htab_hash_pointer): New variable.
7508 (htab_eq_pointer): Likewise.
7509
eeb0656f
MM
75102000-04-23 Mark Mitchell <mark@codesourcery.com>
7511
b51024fc
MM
7512 * sort.c (sort_pointers): Fix endianness bugs.
7513
eeb0656f
MM
7514 * sort.c: New file.
7515 * Makefile.in (CFILES): Add sort.c
7516 (REQUIRED_OFILES): Add sort.o.
7517 (sort.o): New target.
7518
7277f72d
MS
75192000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7520
7521 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7522 4.3BSD systems.
7523
e38992e8
RK
7524Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7525
7526 * hashtab.c: Various minor cleanups.
7527 (htab_find_slot_with_hash): INSERT is now enum insert_option.
7528 (htab_find_slot): Likewise.
7529
498e1ab1
DP
75302000-04-16 Dave Pitts <dpitts@cozx.com>
7531
7532 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 7533
dc17cc7b
RH
75342000-04-05 Richard Henderson <rth@cygnus.com>
7535
7536 * splay-tree.c (splay_tree_remove): New.
7537
b13eb66b
MM
75382000-03-30 Mark Mitchell <mark@codesourcery.com>
7539
7540 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7541 codes.
7542 (htab_find_with_hash): Likewise.
7543 (htab_find_slot_with_hash): Likewise.
d1209685 7544
0194e877
ZW
75452000-03-29 Zack Weinberg <zack@wolery.cumb.org>
7546
7547 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7548 unless it will be used. Rearrange loop for better
7549 optimization.
7550 (higher_prime_number): Add static prototype.
7551
abc61fd4
JL
7552Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7553
7554 * Makefile.in (partition.o): Depend on config.h
7555
8c5d513f
BS
75562000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
7557
7558 * hashtab.c (find_empty_slot_for_expand): New function.
7559 (htab_expand): Use it instead of htab_find_slot.
7560 (htab_find_with_hash): Renamed from htab_find; now accepts extra
7561 argument HASH.
7562 (htab_find_slot_with_hash): Likewise for htab_find_slot.
7563 (htab_find): New wrapper function.
7564 (htab_find_slot): Likewise.
7565 (htab_traverse): Pass slot, not entry, to called function.
7566
d9d4fb43
AS
75672000-03-09 Alex Samuel <samuel@codesourcery.com>
7568
7569 * Makefile.in (CFILES): Add partition.c.
7570 (REQUIRED_OFILES): Add partition.o.
7571 (partition.o): New rule.
7572 * partition.c: New file.
d1209685 7573
5dc9cffd
ZW
75742000-03-09 Zack Weinberg <zack@wolery.cumb.org>
7575
7576 * hashtab.c (htab_create): Set del_f.
7577 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7578 Use it.
7579
5194cf08
ZW
75802000-03-08 Zack Weinberg <zack@wolery.cumb.org>
7581
7582 * hashtab.c: Remove debugging variables (all_searches,
7583 all_collisions, all_expansions). Delete
7584 all_hash_table_collisions.
7585 (create_hash_table, delete_hash_table, empty_hash_table,
7586 find_hash_table_entry, remove_element_from_hash_table_entry,
7587 clear_hash_table_slot, traverse_hash_table, hash_table_size,
7588 hash_table_elements_number, hash_table_collisions): Rename to:
7589 htab_create, htab_delete, htab_empty, htab_find_slot,
7590 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7591 htab_elements, htab_collisions.
7592 (htab_find): New function, handles common case where you don't
7593 plan to add or delete an entry.
7594 (htab_expand): Don't create a whole new table, just a new
7595 entry vector.
7596 (htab_find_slot): Simplify logic.
7597
5ad5a984
ILT
75981999-08-03 Ian Lance Taylor <ian@zembu.com>
7599
7600 * floatformat.c: Add casts to avoid signed/unsigned warnings.
7601 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7602
7603 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7604 $(TARGETLIB)n so it works on MSDOS.
7605 (install_to_tooldir): Likewise.
7606
76071999-07-21 Ian Lance Taylor <ian@zembu.com>
7608
7609 From Mark Elbrecht:
7610 * makefile.dos: Remove; obsolete.
7611 * configure.bat: Remove; obsolete.
7612
76131999-07-11 Ian Lance Taylor <ian@zembu.com>
7614
7615 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7616 warning.
7617
aeecce42
MK
76182000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7619
7620 * pexecute.c: Conditionally include string.h.
5194cf08 7621 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 7622
1eaf7d9c
KG
76232000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7624
7625 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7626 we're using gcc.
7627
7628 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7629
0fadedb2
GK
76301999-12-27 Geoff Keating <geoffk@cygnus.com>
7631
7632 * vasprintf.c (int_vasprintf): Don't re-read the format character
7633 as this mishandles strings like '%%s'.
7634
08230f26
MM
76351999-12-05 Mark Mitchell <mark@codesourcery.com>
7636
7637 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
7638 rather than struct splay_tree_node.
7639 (splay_tree_insert): Use struct splay_tree_s rather than struct
7640 splay_tree.
7641
6de9b8ff
PDM
7642Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7643
7644 * hashtab.c (sys/types.h): File included.
7645
f3636679
JM
76461999-11-22 Jason Merrill <jason@casey.cygnus.com>
7647
7648 * strtoul.c, strtol.c, random.c: Remove advertising clause from
7649 BSD license, pursuant with
7650
7651 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
7652
36dd3a44
JL
7653Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
7654
7655 * hashtab.c: Include stdio.h.
7656
6e300472
JL
7657Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
7658
7659 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
7660
df548dfc
PDM
7661Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
7662
7663 * xstrdup (sys/types.h): Include this file.
7664
2c375143
NS
76651999-10-28 Nathan Sidwell <nathan@acm.org>
7666
7667 * Makefile.in (SUBDIRS): New macro.
7668 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
7669 avoid multiple subdirectory cleaning.
7670 (*-subdir): Use SUBDIRS.
7671
a82cecda
JK
76721999-10-25 Jim Kingdon <http://developer.redhat.com/>
7673
7674 * cplus-dem.c: Move declarations of standard_symbol_characters and
7675 hp_symbol_characters inside #ifdef MAIN to avoid compiler
7676 warnings.
7677
ed38f5d5
ZW
76781999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
7679
7680 * hashtab.c (find_hash_table_entry): When returning a
7681 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
7682 (clear_hash_table_slot): New function which deletes an entry
7683 by its position in the table, not its value.
7684 (traverse_hash_table): New function which calls a hook
7685 function for every live entry in the table.
7686
b60fe4a7
MM
76871999-10-19 Mark Mitchell <mark@codesourcery.com>
7688
7689 * cplus-dem.c (INTBUF_SIZE): New macro.
7690 (string_append_template_idx): New function.
7691 (demangle_expression): Likewise.
7692 (demangle_integral_value): Use it.
7693 (demangle_real_value): New function, split out from ...
7694 (demangle_template_value_parm): ... here. Use
7695 string_append_template_idx. Use demangle_real_value.
7696 (demangle_template): Use string_append_template_idx.
7697 (demangle_qualified): Use consume_count_with_underscores.
7698 (get_count): Tweak formatting.
7699 (do_type): Use string_append_template_idx.
5194cf08 7700
3da5522a
KG
77011999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7702
7703 * calloc.c: Add a public domain notice.
7704
d7d36ea8
PDM
7705Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
7706
7707 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
7708
a2f945c6
VM
7709Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
7710
7711 * Makefile.in (CFILES): Add hashtab.c
7712 (REQUIRED_OFILES): Add hashtab.o
7713 (hashtab.o): Add dependencies.
7714 * hashtab.c: New file
7715
7f22ec2e
MK
7716Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
7717
7718 * basename.c (DIR_SEPARATOR): New macro.
7719 (DIR_SEPARATOR_2): Likewise.
7720 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
7721 (IS_DIR_SEPARATOR): Likewise.
7722 (main): Handle MSDOS style pathname.
7723
7c56a6ce
MM
77241999-10-11 Mark Mitchell <mark@codesourcery.com>
7725
7726 * cplus-dem.c (do_type): Handle pointer to member types whose
7727 enclosing classes have namespace scope.
7728
cd32188b
ME
7729Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
7730
7731 * config.table: Provide a backup shell for executing move-if-change.
7732
fc232f7a
MM
77331999-10-02 Mark Mitchell <mark@codesourcery.com>
7734
7735 * xmalloc.c (xmalloc): Fix spelling error.
7736 (xcalloc, xrealloc): Likewise.
7737
2a138827
KG
77381999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7739
7740 * cplus-dem.c (fancy_abort, demangle_integral_value,
7741 demangle_arm_hp_template, recursively_demangle,
7742 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
7743 (program_name, program_version, fatal): Constify a char*.
7744 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
7745 (main): Call return, not exit.
7746
5a657fc3
KG
77471999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7748
7749 * choose-temp.c: Remove obsolete comment about gcc.
7750 (make_temp_file): Constify a char*.
7751
33c5ddcd
KG
7752Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7753
7754 * xmemdup.c: Include sys/types.h.
7755
b10647f1
JG
77561999-09-07 Jeff Garzik <jgarzik@pobox.com>
7757
7758 * xmemdup.c: New xmemdup function.
7759 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
7760
3dd6c3af
LV
7761Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
7762
5194cf08 7763 * config.table: Add openedition target.
3dd6c3af
LV
7764 * config/mh-openedition: New file.
7765
19e28e2a
ME
7766Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
7767
7768 * pexecute.c (pexecute): Fill in temp_base when needed.
7769
4dfeccf9
RH
77701999-08-31 Richard Henderson <rth@cygnus.com>
7771
7772 * getpwd.c: Check HAVE_GETCWD before defining it away.
7773
4ac3cb83
KG
77741999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7775
7776 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
7777 (REQUIRED_OFILES): Add getpwd.o.
7778 (getpwd.o): Add target.
7779
7780 * configure.in (AC_PREREQ): Bump to 2.13.
7781 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
7782
7783 * getpwd.c: New file, moved here from gcc.
7784
e797ff70
KG
77851999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7786
7787 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
7788 comparing against a signed quantity.
7789 (arm_special): Likewise.
7790 (demangle_fund_type): Likewise.
7791 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 7792 ATTRIBUTE_UNUSED.
e797ff70
KG
7793 (main): Constify variable `valid_symbols'.
7794
55247fce
PDM
7795Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
7796
7797 * strtoul.c (strtoul): Add parentheses around && within ||.
7798
76632dd0
DJ
7799Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
7800
7801 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
7802 libdir, libsubdir and tooldir.
7803
d080bbfa
MM
78041999-08-01 Mark Mitchell <mark@codesourcery.com>
7805
7806 * splay-tree.c (splay_tree_insert): Return the new node.
7807
a81c752a
RH
78081999-07-14 Richard Henderson <rth@cygnus.com>
7809
5194cf08 7810 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
7811 prototyping directly.
7812 * choose-temp.c: Conditionally include string.h.
7813
8f1824d9
JM
78141999-07-12 Jason Merrill <jason@yorick.cygnus.com>
7815
7816 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
7817
652374d3
ILT
78181999-07-11 Ian Lance Taylor <ian@zembu.com>
7819
7820 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7821 warning.
7822
a4494286
JM
78231999-07-07 Jason Merrill <jason@yorick.cygnus.com>
7824
7825 * Makefile.in (needed-list): Only include stuff we actually need
7826 for libstdc++.
7827
90e72e20
AS
78281999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7829
7830 * configure.in (checkfuncs): Add gettimeofday.
7831 * config.in, configure: Regenerated.
7832
b569200e
MK
7833Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
7834
7835 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
7836 the test fails.
7837 * configure: Regenerate.
7838
73919448
MS
78391999-06-10 Mike Stump <mrs@wrs.com>
7840
7841 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
7842 parallel builds.
7843
fee9125c
KG
78441999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7845
7846 * putenv.c: Include ansidecl.h to define `const'.
7847 * setenv.c: Likewise.
7848
71cce721
MN
7849Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
7850
a7c9637f
JL
7851 * Makefile.in (CFILES): Add putenv.c and setenv.c.
7852 * configure.in (funcs): Add putenv and setenv.
7853 (AC_CHECK_FUNCS): Check for putenv and setenv.
7854 * configure: Rebuilt.
7855 * putenv.c setenv.c: New files.
7856
71cce721
MN
7857 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
7858 bytes of space using malloc.
7859
53504016
SG
7860Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
7861
7862 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
7863 the *mangled pointer beyond the end of the string. Clean up code to
7864 match prevailing coding style.
7865
34842539
MH
78661999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7867
7868 * tmpnam.c (L_tmpnam): Fix typo.
7869
3a08531d
ME
7870Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
7871
7872 * cplus-dem.c (standard_symbol_characters): Renamed from
7873 standard_symbol_alphabet. No longer modify TABLE.
7874 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
7875 modify TABLE.
7876 (main): Corresponding changes. Use strchr to determine if a
7877 character is valid.
7878
8db9d08b
JB
78791999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
7880
7881 * cplus-dem.c (main): Use table lookup to distinguish identifier
7882 characters from non-identifier characters.
7883 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
7884
6a071f4a
FF
7885Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
7886
7887 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
7888 * getruntime.c: Only attempt to include sys/resource.h and
7889 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
7890 are defined.
7891
7dd88617
DT
7892Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
7893
7894 * configure.in (alloca detection): Handle alloca directly for interix.
7895 * configure: Rebuilt.
7896
7a1528bc
MK
7897Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
7898
7899 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
7900
76409268
JB
79011999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
7902
7903 Fix from Dale Hawkins:
5194cf08 7904 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
7905 reallocated properly if we use it again.
7906
7907 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
7908 stricter about syntax. Always null-terminate string.
7909
acbbd80a
MK
7910Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
7911
7912 * configure.in (checkfuncs): Check for sbrk.
7913 * config.in: Rebuilt.
7914 * configure: Likewise.
7915 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
7916
92523551
JB
79171999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
7918
7919 Fix from Marcus Daniels:
7920 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
7921 identifier looking for another underscore.
7922
36eb4217
MK
7923Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
7924
7925 * pexecute.c: Change all references to __UWIN__ to _UWIN.
7926 * xmalloc.c: Likewise.
7927 (xcalloc): UWIN has sbrk.
7928 (xrealloc): Fix guard macro.
7929
2c45d1a0
RH
79301999-04-11 Richard Henderson <rth@cygnus.com>
7931
7932 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
7933 or <alloca.h>.
7934 * clock.c (GNU_HZ): New definition.
7935 (clock): Use it.
7936 * getruntime.c: Likewise.
7937
7938 * config.table: Use mh-beos.
7939 * config/mh-beos: New file.
7940
391cdef0
MM
79411999-04-11 Mark Mitchell <mark@codesourcery.com>
7942
7943 * cplus-dem.c (demangle_template_value_parm): Handle
7944 pointers-to-members.
7945 (do_type): Handle template parameters as qualifiers.
7946
9d229989
JB
79471999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
7948
7949 * cplus-dem.c: Attempt to handle overflows in counts with some
7950 semblance of grace.
7951 (consume_count): Detect overflows. Return -1 to indicate errors,
7952 instead of zero.
7953 (demangle_template_value_parm, demangle_template): Handle change
7954 to consume_count's return convention.
7955
7c72138a
TT
79561999-04-05 Tom Tromey <tromey@cygnus.com>
7957
7958 * testsuite/regress-demangle: New file.
7959 * testsuite/demangle-expected: New file.
7960
7961 * Makefile.in (all, check, installcheck, info, install-info,
7962 clean-info, dvi, install, etags, tags, mostlyclean, clean,
7963 distclean, maintainer-clean, realclean): Depend on corresponding
7964 `-subdir' target.
7965 (all-subdir check-subdir installcheck-subdir info-subdir
7966 install-info-subdir clean-info-subdir dvi-subdir
7967 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
7968 distclean-subdir maintainer-clean-subdir): New target.
7969 * testsuite/Makefile.in: New file.
7970 * configure: Rebuilt.
7971 * configure.in: Create testsuite/Makefile.
7972
ae7f7270
MM
79731999-04-02 Mark Mitchell <mark@codesourcery.com>
7974
7975 * splay-tree.h (splay_tree_compare_pointers): Define.
7976
30f72379
MM
79771999-03-30 Mark Mitchell <mark@codesourcery.com>
7978
7979 * splay-tree.c (splay_tree_compare_ints): Define.
7980
4cc48683
TT
79811999-03-30 Tom Tromey <tromey@cygnus.com>
7982
7983 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
7984 don't advance input pointer.
7985 (demangle_class_name): If consume_count didn't find a count, do
7986 nothing. Don't bother with `strlen' sanity check; consume_count
7987 does it for us.
7988
3510075c
JL
79891999-03-16 Stan Shebs <shebs@andros.cygnus.com>
7990
7991 From Art Haas <ahaas@neosoft.com>:
7992 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
7993 when doing arm or hp style.
7994 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 7995
89f602a7
MK
7996Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
7997
7998 * pexecute.c (__CYGWIN32__): Rename to
7999 (__CYGWIN__): this.
8000 * xmalloc.c: Likewise.
8001
8002 Changes to support i386-pc-uwin.
8003 * configure.in (*-*-uwin*): Workaround for vfork bug.
8004 * configure: Regenerate.
8005 * pexecute.c (pexecute): Be like standard Unix.
8006 (pwait): Likewise.
8007 * xmalloc.c (first_break): Define.
8008 (xmalloc_set_program_name): Use.
8009 (xmalloc): Use.
8010
9346c824
FS
8011Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8012
8013 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8014
3510075c
JL
8015Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8016
8017 * config.table: Check cygwin*, not cygwin32*.
8018
8ec65f13
DB
8019Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8020
8021 * Makefile.in: Change mkstemp -> mkstemps.
8022
687361c8
ME
8023Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
8024
8025 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8026 * configure.in (funcs): Check for and conditionally add mkstemps to
8027 the list of functions libiberty will provide.
8028 * configure: Rebuilt.
5194cf08 8029
b207e09c
MK
8030Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8031
5194cf08 8032 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
8033 platforms that don't have HZ.
8034 * getruntime.c (HZ): Likewise.
8035
16b4c15e
RH
8036Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8037
8038 * Makefile.in (xstrdup.o): Depend on config.h.
8039
38beb75c
UD
8040Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
8041
8042 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8043 freeing it.
8044
7e4311a3
KG
8045Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8046
8047 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8048
3510075c
JL
8049Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8050
8051 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8052 splay-tree.o.
8053
80541999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8055
8056 * configure.in: Require autoconf 2.12.1 or higher.
8057
fb9939b8
MM
80581998-12-30 Michael Meissner <meissner@cygnus.com>
8059
8060 * random.c (NULL): Don't redefine NULL if it is already defined.
8061
087aa398
KG
8062Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8063
8064 * argv.c (buildargv): Cast the result of alloca in assignment.
8065
8066 * choose-temp.c: Include stdlib.h.
38beb75c 8067
087aa398 8068 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
8069 (snarf_numeric_literal): Constify first parameter.
8070 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8071 int, not a char.
087aa398
KG
8072 (demangle_qualifier): Likewise.
8073 (demangle_signature): Cast the argument of a ctype function to
8074 unsigned char.
8075 (arm_pt): Add parens around assignment used as truth value.
8076 (demangle_arm_hp_template): Constify variable `args'.
8077 (do_hpacc_template_const_value): Cast the argument of a ctype
8078 function to unsigned char.
8079 (do_hpacc_template_literal): Remove unused variable `i'.
8080 (snarf_numeric_literal): Constify parameter `args'.
8081 Cast the argument of a ctype function to unsigned char.
8082
8083 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 8084 avoid ambiguous `else'.
38beb75c 8085
087aa398 8086 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
8087 `cstart' and `cend' to unsigned char. Cast the argument of macro
8088 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
8089
8090 * objalloc.c (free): Add prototype.
8091
21f2174d
HPN
8092Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
8093
8094 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8095
3510075c
JL
8096Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8097
8098 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 8099 doesn't exist.
3510075c 8100 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 8101
e8fc8222
AM
8102Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8103
8104 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8105 bumping the pointer we read from. Also prepend these codes,
8106 as we do in other places.
8107
3510075c
JL
81081998-12-18 Nick Clifton <nickc@cygnus.com>
8109
8110 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8111 'const char *' in order to match its usage when calling siblings.
8112 (snarf_numeric_literal): Make first arg 'const char **' in order
8113 to match usage.
11a0bb74 8114
f4f30aa1
JL
8115Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8116
11a0bb74
KG
8117 * choose-temp.c: Don't check IN_GCC anymore.
8118
8119 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8120 * memchr.c (memchr): Likewise.
8121 * memcpy.c (memcpy): Likewise.
8122 * memmove.c (memmove): Likewise.
38beb75c 8123
11a0bb74
KG
8124 * mkstemp.c: Don't check IN_GCC anymore.
8125 * pexecute.c: Likewise.
8126 * splay-tree.c: Likewise.
38beb75c 8127
11a0bb74
KG
8128 * strchr.c (strchr): Use `const', not `CONST'.
8129 * strrchr.c (strrchr): Likewise.
8130 * strtol.c (strtol): Likewise.
8131 * strtoul.c (strtoul): Likewise.
8132
70d5ccef
DT
8133Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
8134 Elena Zannoni <ezannoni@cygnus.com>
8135 Stan Shebs <shebs@cygnus.com>
8136 Edith Epstein <eepstein@cygnus.com>
8137 Andres MacLeod <amacleod@cygnus.com>
8138 Satish Pai <pai@apollo.hp.com>
8139
8140 * HP aCC demangling support.
8141 * cplus-dem.c
8142 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
8143 demangling correctly when -edg specified; set the demangling style
8144 when user specifies 'edg'. Set strip_underscore to
8145 prepends_underscore, if not HPUXHPPA. Set
8146 current_demangling_style to hp_demangling if HPUXHPPA. Set
8147 current demangling style correctly if the switch is hp. Read
8148 label correctly also in the HP style case.
70d5ccef 8149 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 8150 function.
70d5ccef 8151 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 8152 style for this case is the same as ARM.
70d5ccef
DT
8153 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8154 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
8155 demangle_arm_pt.); check and set value of temp_start field in
8156 multiple places. Also, when ceching for end of template args,
8157 check to see if at end of static member of template class.
70d5ccef 8158 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 8159 include template args in string defining class.
70d5ccef
DT
8160 (demangle_class_name): use demangel_arm_hp_template.
8161 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
8162 HP_DEMANGLING and currently point at an 'X' in the mangled name.
8163 Handle EDG_DEMANGLING style. Handle constructor and destructor
8164 ops for HP style.
70d5ccef 8165 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
8166 styles. global destructor and constructor for HP style are same
8167 as for ARM style. Same for local variables.
70d5ccef
DT
8168 (demangle_qualified): handle EDG_DEMANGLING style.
8169 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
8170 cases '1' - '9' : initialize the temp_start field to -1 and handle
8171 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
8172 and AUTO_DEMANGLING styles. If expecting a function and managed
8173 to demangle the funct args, then handle the LUCID_DEMANGLING,
8174 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
8175 class name after "Lnnn_ in HP style case. HP style too needs to
8176 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 8177 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 8178 value param for HP/aCC.
70d5ccef 8179 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 8180 literal parameter for HP aCC.
70d5ccef
DT
8181 (recursively_demangle): new function
8182 (snarf_numeric_literal): new function.
8183 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 8184 to message.
70d5ccef 8185
8d525fa8
CF
8186Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8187
8188 * pexecute.c: Remove obsolete ifdefed cygwin code.
8189
9b1a92d8
KG
8190Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8191
8192 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8193 * cplus-dem.c: Likewise. Conform to libiberty.h.
8194 * pexecute.c: Likewise.
8195 * splay-tree.c: Likewise.
8196
c85c3232
MS
81971998-11-25 Mike Stump <mrs@wrs.com>
8198
8199 * Makefile.in (splay-tree.o): Add config.h dependency.
8200
35a6cd99
KG
8201Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8202
8203 * configure.in: Use AC_PREREQ(2.12.1).
8204
6e6e34b7
BK
82051998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8206
5194cf08 8207 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 8208
59b67c11
JL
8209Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8210
8211 * mpw.c (mpw_access): Add missing parens.
8212
a6458d1d
KG
8213Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8214
8215 * configure.in: Call AC_HEADER_SYS_WAIT.
8216
8217 * pexecute.c: Include sys/wait.h when !IN_GCC.
8218
3510075c
JL
8219Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8220
8221 * pexecute.c: revert back to checking old Cygwin
8222 preprocessor symbol until some time has passed.
8223
8224Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8225
8226 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8227 since it will now support similar constructs.
8228
a9acf741
KG
8229Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8230
8231 * configure.in: Check for calloc.
8232
8233 * calloc.c: New file.
8234
8235 * xmalloc.c (xcalloc): New function.
8236
a49fb37a
AM
8237Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8238
8239 *cplus-dem.c (demangle_prefix): Use the last "__"
8240 in the mangled name when looking for the signature. This allows
8241 template names to begin with "__".
8242
0e714131
MM
82431998-11-08 Mark Mitchell <mark@markmitchell.com>
8244
ec2288ff
MM
8245 * cplus-dem.c (type_kind_t): Add tk_reference.
8246 (demangle_template_value_parm): Handle it.
8247 (do_type): Use it for references, instead of tk_pointer.
8248
0e714131
MM
8249 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8250 not internal_cplus_demangle.
8251
2931b6d4
KG
8252Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8253
8254 * choose-temp.c: Don't include gansidecl.h.
8255 * mkstemp.c: Likewise.
8256 * pexecute.c: Likewise.
8257
dd8f3ed5
GN
8258Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8259
5194cf08
ZW
8260 * configure.in: detect cygwin* instead of cygwin32*
8261 * configure: regenerate
dd8f3ed5 8262
c5f7c445
KG
8263Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8264
8265 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
8266 whether to include config.h. Possibly include unistd.h in the
8267 !IN_GCC case. Define VFORK_STRING as a printable function call
8268 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8269 defined, include vfork.h. If VMS is defined, define vfork()
8270 appropriately. Remove vfork check on USG, we're using autoconf.
8271 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8272 locally what string to use.
c5f7c445 8273
ad3ef78e
MM
82741998-10-26 Mark Mitchell <mark@markmitchell.com>
8275
8276 * splay-tree.c: Tweak include directives to make sure declarations of
8277 xmalloc and free are available.
8278
224301c1
MM
82791998-10-25 Mark Mitchell <mark@markmitchell.com>
8280
8281 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8282 anonymous namespaces.
38beb75c 8283
d9db46fd
MM
82841998-10-23 Mark Mitchell <mark@markmitchell.com>
8285
8286 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8287 with type_quals.
8288 (TYPE_UNQUALIFIED): New macro.
8289 (TYPE_QUAL_CONST): Likewise.
8290 (TYPE_QUAL_VOLATILE): Likewise.
8291 (TYPE_QUAL_RESTRICT): Likewise.
8292 (code_for_qualifier): New function.
8293 (qualifier_string): Likewise.
8294 (demangle_qualifier): Likewise.
8295 (internal_cplus_demangle): Use them.
8296 (demangle_signature): Likewise.
8297 (demangle_template_value_parm): Likewise.
8298 (do_type): Likewise.
8299 (demangle_fund_type)): Likewise.
224301c1 8300
b056ad1c
KG
8301Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8302
8303 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8304 to match prototype.
8305
ed87f9c8
MM
83061998-10-21 Mark Mitchell <mark@markmitchell.com>
8307
8308 * splay-tree.c: New file.
8309 * Makefile.in (CFILES): Add it.
8310 (REQUIRED_OFILES): Likewise.
8311 (splay-tree.o): Add dependencies.
8312
e0c13971
AS
8313Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8314
8315 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8316 range of 'K' index.
8317
91e0f659
KG
8318Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8319
8320 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8321
8322 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8323 `unsigned char'.
8324 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8325 comparing against one.
8326 (cplus_mangle_opname): Likewise.
8327 (demangle_integral_value): Cast argument of ctype macro to
8328 `unsigned char'.
8329 (demangle_template_value_parm): Likewise.
8330 (demangle_template): Initialize variable `bindex'. Cast the
8331 result of `strlen' to (int) when comparing against one. Remove
8332 unused variable `start_of_value_parm'.
8333 (demangle_class_name): Cast the result of `strlen' to (int) when
8334 comparing against one.
8335 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8336 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8337 when comparing against one.
8338 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8339 (get_count): Likewise.
8340 (do_type): Likewise. Cast the result of `strlen' to (int) when
8341 comparing against one.
8342 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8343 (demangle_function_name): Cast the result of `strlen' to (int)
8344 when comparing against one.
8345
8346 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8347 comparing against one.
8348
73aeb2ff
JL
8349Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8350
5194cf08
ZW
8351 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8352 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8353 * config.in, configure: Rebuilt.
ae76f1be 8354
73aeb2ff
JL
8355 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8356 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8357 * config.in, configure: Rebuilt.
8358
dd8f3ed5
GN
8359Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8360
5194cf08 8361 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 8362
f77d8413
MT
8363Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8364
8365 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8366
ca6b370d
JL
8367Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8368
8369 * Merge egcs & devo libiberty.
8370
719bb4e3 83711998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
ab4856b1
ML
8372
8373 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8374
96e88994
KG
8375Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8376
8377 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
c4b9cfe0
AJ
8378 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8379 IN_GCC.
96e88994
KG
8380
8381 * vasprintf.c: Include stdarg.h/varargs.h first.
8382
8383 * vprintf.c: Likewise.
8384
3f3726a3
JL
8385Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8386
8387 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8388 is the canonical copy. Define ISSPACE if !IN_GCC.
7520c31b 8389 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
f45da49c 8390 * getopt1.c, obstack.c: Similarly.
16ba4214 8391 * Makefile.in: Build mkstemp.o
3f3726a3 8392
ca6b370d
JL
8393Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8394
8395 * configure.in: Include asprintf in list of functions known not
8396 to be in newlib.
8397 * configure: Rebuild.
8398
28235a5c
MK
8399Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8400
8401 * cplus-dem.c (work_stuff): Add dllimported.
8402 (demangled_prefix): Mark symbols imported from PE DLL.
8403 (internal_cplus_demangled): Handle.
8404
5210f3d0
JM
84051998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8406
8407 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8408 stay failed.
8409
a7825625
KG
8410Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8411
8412 * cplus-dem.c: Include config.h if it exists. Also, only
8413 prototype malloc/realloc if we can't get stdlib.h.
8414
ca6b370d
JL
8415Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8416
8417 * configure.in: Switch back to checking --with-target-subdir when
8418 deciding whether to check for newlib, undoing part of July 15
8419 change.
8420 * configure: Rebuild.
8421
8422Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8423
8424 * cplus-dem.c (type_kind_t): New type.
8425 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8426 on this paramter, rather than demangling the type again.
8427 (demangle_integral_value): Pass tk_integral.
8428 (demangle_template_: Pass the value returned from do_type.
8429 (do_type): Return a type_kind_t. Pass tk_integral to
8430 demangle_template_value_parm for array bounds.
8431 (demangle_fund_type): Likewise.
8432
8433 Also incorporate from GCC version:
8434
8435 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8436
8437 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8438
8439Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8440
8441 * cplus-dem.c (demangle_nested_args): Make function definition
8442 static to match the prototype.
8443
4d17a06f
MM
8444Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8445
8446 * cplus-dem.c (type_kind_t): New type.
8447 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8448 on this paramter, rather than demangling the type again.
8449 (demangle_integral_value): Pass tk_integral.
8450 (demangle_template_: Pass the value returned from do_type.
8451 (do_type): Return a type_kind_t. Pass tk_integral to
8452 demangle_template_value_parm for array bounds.
8453 (demangle_fund_type): Likewise.
8454
8455 Also incorporate from GCC version:
8456
8457 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8458
8459 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8460
ca6b370d
JL
8461Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8462
8463 * Makefile.in (ALLOCA): New variable.
8464 ($(TARGETLIB)): Add $(ALLOCA) to library.
8465 (needed-list): Add $(ALLOCA).
8466 ($(ALLOCA)): Depend upon stamp-picdir.
8467
d94f5c58
KG
8468Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8469
8470 * cplus-dem.c (demangle_nested_args): Make function definition
8471 static to match the prototype.
8472
ca6b370d
JL
8473Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8474
8475 * configure.in: Check --with-cross-host rather than
8476 --with-target-subdir when deciding whether build uses a cross
8477 compiler, and when deciding where to install the library.
8478 * configure: Rebuild.
8479
8480Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8481
8482 * cplus-dem.c (demangle_nested_args): Return a value.
9923cc56 8483
ca6b370d
JL
8484Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8485
8486 * cplus-dem.c (string): Move definition before work_stuff.
8a2a7ea2
MM
8487 (work_stuff): Add volatile_type, forgetting_types,
8488 previous_argument, and nrepeats fields.
8489 (SCOPE_STRING): New macro.
8490 (demangle_template): Add `remember' parameter. Add comment.
8491 Register the `B' code type here, if remembering. Tidy. Fix crash
8492 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8493 (demangle_nested_args): New function.
8494 (internal_cplus_demangle): Handle volatile-qualified member
38beb75c 8495 functions.
8a2a7ea2
MM
8496 (mop_up): Delete the previous_argument string if present.
8497 (demangle_signature): Tidy. Handle volatile-qualified member
8498 functions. Handle back-references using the `B' code. Use extra
8499 parameter to demangle_template and SCOPE_STRING where appropriate.
8500 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
38beb75c 8501 code.
8a2a7ea2
MM
8502 (demangle_class): Use SCOPE_STRING.
8503 (gnu_special): Pass additional argument to demangle_template.
8504 Use SCOPE_STRING.
8505 (demangle_qualified): Save qualified types for later
8506 back-references. Handle constructors and destructors for template
8507 types correctly.
8508 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8509 demangle_template. Use demangled_nested_args. Don't remember
8510 qualified types here; that's now done in demangle_qualified.
8511 Similarly for templates.
8512 (do_arg): Improve commment. Handle 'n' repeat code.
8513 (remember_type): Check forgetting_types.
8514 (demangle_args): Deal with 'n' repeat codes. Tidy.
38beb75c 8515
ca6b370d
JL
8516Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8517
8518 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8519 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8520
8521Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8522
8523 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8524 From Chris Faylor <cgf@cygnus.com>.
8525
8526Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8527
8528 * obstack.c: Update to latest FSF version.
8529
8530Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
8531
8532 * Makefile.in: Add a dependency on stamp-picdir for the
8533 objects, so that we can do a parallel build.
9923cc56 8534
6391b50a
MK
8535Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8536
8537 * configure.in (checkfuncs): Add missing "'".
8538
ca6b370d 8539Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
10c62dce 8540
ca6b370d
JL
8541 * obstack.c (_obstack_memory_used): Elide this function if we're
8542 on a system with GNU libc.
10c62dce 8543
ca6b370d 8544Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
75f6bf44 8545
ca6b370d 8546 * Makefile.in (distclean): Remove config.log.
75f6bf44 8547
ca6b370d 8548Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7b195f77 8549
ca6b370d
JL
8550 * Makefile.in (distclean): Don't remove alloca-conf.h.
8551
8552Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8553
8554 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7b195f77 8555
1cc75298
MM
85561998-05-21 Mark Mitchell <mmitchell@usa.net>
8557
8558 * cplus-dem.c (do_type): Handle volatile qualification.
38beb75c 8559
39d65850
MH
85601998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
8561
8562 * configure.in: Check for unistd.h as well.
8563 * configure: Rebuild.
8564 * config.in: Rebuild.
8565 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8566 is defined in unistd.h. Reformat conditional block for easier reading.
8567
8568 * config.table (shared): Default to no if ${enable_shared}
8569 is unset or empty; this logic is used by the toplevel
8570 configure scripts, too.
8571
c2953795
JL
8572Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
8573
8574 * config.table: Add line to set enable_shared in the Makefile
8575 as needed.
8576
d6f4ec51
KG
8577Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8578
3affd5f0
JL
8579 * cplus-dem.c (squangle_mop_up): Change return type to void.
8580 (internal_cplus_demangle): Remove unused parameter `options'.
8581 All callers changed.
8582 (cplus_demangle_opname): Remove function wide variable `int i' and
8583 replace with `size_t i' at each location where it is used.
8584 (cplus_mangle_opname): change type of `i' from int to size_t.
8585
8586Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
8587
8588 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
8589 than sparc or sun.
8590 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8591
8592Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
8593
8594 * configure.in: Set libiberty_topdir correctly when srcdir is
8595 "." and with_target_subdir is not set.
8596 * configure: Rebuild.
8597
8598Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8599
8600 * configure.in: Add *-*-mingw32* case.
8601 * configure: Rebuild.
8602
8603Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
8604
8605 * config.table: Never use a PIC file for *-*-cygwin32*.
8606
8607 * Makefile.in (config.status): Depend upon config.table.
8608
8609 * configure.in: On a cygwin32 host, always compile random, and
8610 don't test for sys_siglist, strsignal, or psignal.
8611 * configure: Rebuild.
8612
8613 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8614 * getcwd.c: Likewise.
8615 * getpagesize.c: Likewise.
8616 * getruntime.c: Likewise.
8617
8618Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
8619
8620 Use autoconf tests rather than the old dummy.c test:
8621 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8622 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
8623 most functions. Add special cases to handle newlib and VxWorks.
8624 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
8625 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
8626 CONFIG_FILES is set; set ac_file before calling it.
8627 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8628 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8629 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8630 (i[3456]-*-mingw32*): Remove.
8631 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
8632 (LIBOBJS): New variable.
8633 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
8634 (all): Depend upon needed-list. Don't check RULE1.
8635 (@target_makefile_frag@): Remove.
8636 (COMPILE.c): Include @DEFS@.
8637 (HFILES): Add alloca-conf.h.
8638 (REQUIRED_OFILES): Remove basename.o.
8639 ($(TARGETLIB)): New target.
8640 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
8641 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
8642 (needed-list, config.h): Rewrite.
8643 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
8644 (.always.): Remove.
8645 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
8646 (stamp-h): New target.
8647 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
8648 (basename.o): Don't depend upon config.h.
8649 (getruntime.o): Depend upon config.h.
8650 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
8651 NEED_on_exit.
8652 * basename.c: Don't include config.h. Don't check NEED_basename.
8653 * clock.c: Include config.h.
8654 * getcwd.c: Likewise.
8655 * getpagesize.c: Likewise.
8656 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
8657 HAVE_TIMES.
8658 * strerror.c: Change uses of NEED_sys_errlist to
8659 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
8660 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
8661 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
8662 HAVE_PSIGNAL.
8663 * acconfig.h: New file.
8664 * dummy.c: Remove.
8665 * functions.def: Remove.
8666 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
8667 * config/mh-windows (HDEFINES): Remove.
8668 * config/mh-cygwin32: Remove.
8669 * config/mh-go32: Remove.
8670 * config/mh-irix4: Remove.
8671 * config/mh-riscix: Remove.
8672 * config/mh-sysv4: Remove.
8673 * config/mt-mingw32: Remove.
8674 * config/mt-vxworks5: Remove.
8675 * config.in: New file, generated using autoheader.
8676 * configure: Rebuild.
8677
8678Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
8679
8680 * configure.in: Rewrite to use autoconf.
8681 * configure: Generate using autoconf.
8682 * config/mh-a68bsd: Remove.
8683 * config/mh-apollo68: Remove.
8684 * config/mh-hpbsd: Remove.
8685 * config/mh-ncr3000: Remove.
8686 * config/mh-sysv: Remove.
8687 * config/mh-aix (RANLIB, INSTALL): Don't define.
8688 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
8689 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
8690 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
8691 * config.table: Change config_shell to CONFIG_SHELL, and use
8692 libiberty_topdir to find move-if-change.
c4b9cfe0 8693 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
3affd5f0
JL
8694 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
8695 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
8696 * Makefile.in (srcdir): Set to @srcdir@.
8697 (VPATH): Likewise.
8698 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
8699 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
8700 (CC, CFLAGS, RANLIB)): Likewise.
8701 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
8702 (target_makefile_frag, host_makefile_frag): Add substitutions.
8703 (INSTALL_DEST): Set to @INSTALL_DEST@.
8704 (Makefile): Depend upon config.status. Don't depend upon
8705 $(host_makefile_frag) or $(target_makefile_frag).
8706 (config.status): New target.
8707
8708Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
8709
8710 * config/mt-sunos4: Remove. Should be handled by --with-headers
8711 and --with-libraries options at top level.
8712 * config.table: Never use mt-sunos4.
8713
8714 * alloca-conf.h: New file, combining alloca-norm.h and
8715 alloca-botch.h.
8716 * alloca-norm.h: Remove.
8717 * alloca-botch.h: Remove.
8718 * configure.in: Set shell variables files and links to empty.
8719 * config.table: Don't set shell variable files.
8720 * configure.bat: Don't create alloca-conf.h.
8721 * makefile.vms: Likewise.
8722 * mpw-config.in: Likewise.
8723 * vmsbuild.com: Likewise.
8724
8725Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
8726
8727 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
8728 target depending upon config.h.
8729 (alloca.o): Add target depending upon config.h
8730 (basename.o, choose-temp.o, fnmatch.o): Likewise.
8731 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
8732 (strsignal.o, xstrerror.o): Likewise.
d6f4ec51 8733
63586755
PS
8734Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8735
8736 * cplus-dem.c (cplus_demangle_opname): Initialize work.
8737
07623417
AM
8738Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8739
8740 * cplus-dem.c (demangle_qualified): Replace missing else.
8741
7bf40741
AS
8742Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8743
8744 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
8745 length in the name of a virtual table.
8746
5e5199e8
AM
8747Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8748
8749 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
8750 (cplus_demangle_opname): Call mop_up_squangle.
38beb75c 8751 (cplus_demangle): Initialize squangle info, then call
5e5199e8 8752 internal_cplus_demangle. (Most code moved there as well)
38beb75c 8753 (internal_cplus_demangle): New function, performs most of what use
5e5199e8
AM
8754 to be done in cplus_demangle, but is only called with this file.
8755 (squangle_mop_up): New function to clean up B and K code data.
8756 (mop_up): set pointers to NULL after freeing.
38beb75c 8757 (demangle_signature, demangle_template, demangle_class): Add
5e5199e8
AM
8758 switch elements to handle K and B codes.
8759 (demangle_prefix, gnu_special, demangle_qualified): Add
8760 code to handle K and B codes.
8761 (do_type, demangle_fund_type): Handle B and K codes.
8762 (remember_Ktype): New function to store K info.
8763 (register_Btype, remember_Btype): New functions for B codes.
8764 (forget_B_and_K_types): New function to destroy B and K info.
8765
3affd5f0 8766Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9ee02b5c 8767
3affd5f0 8768 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
f9c85454 8769
0a9e7530
MH
8770Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
8771
8772 * config.table: Make locating frag files failsafe even for the
8773 special case if configuring and building in srcdir.
8774
b9fb3c42
ILT
8775Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
8776
8777 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
8778
3affd5f0
JL
8779Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
8780
8781 * choose-temp.c: Sync with copy in gcc.
8782
b134508b
ILT
8783Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
8784
8785 * getopt.c: Update to latest FSF version.
8786 * getopt1.c: Likewise.
8787
5890bc92
JL
8788Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
8789
8790 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
8791 strings that are not actually lengths.
8792
f5c3ae66
MH
8793Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
8794
8795 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
8796 (.c.o): Check value of enable_shared, not PICFLAG.
8797 (stamp-picdir): Dito.
8798
3affd5f0
JL
8799Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
8800
5194cf08
ZW
8801 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
8802 since it gets built automatically
3affd5f0 8803
c00f2b9d
MS
8804Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
8805
8806 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
8807 the currently shipping OS.
8808
76a8b46e
JL
8809Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
8810
8811 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
8812 Add fnmatch.o and objalloc.o; remove vasprintf.o.
8813 [config.h]: Define NEED_strsignal.
8814
8815Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
8816
8817 * functions.def: Correct argument types for strerror and
8818 strsignal. Reported by Alex Gutman <agutman@emc.com>.
8819
5890bc92
JL
8820Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
8821
8822 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
8823 values.
8824
3affd5f0 8825Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
1ce26fc4 8826 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
77aff459 8827
1ce26fc4
JL
8828 Add mingw32 support.
8829 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
8830 (pwait): New function for mingw32.
77aff459 8831
1ce26fc4
JL
8832 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
8833 * config/mt-mingw32: New file.
8834 * xmalloc.c (first_break): Not used for mingw32.
8835 (xmalloc_set_program_name): Don't use sbrk on mingw32.
8836 (xmalloc): Likewise.
8837 (xrealloc): Likewise.
77aff459 8838
1ce26fc4 8839Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
84f79fea
JL
8840
8841 * choose-temp.c: Sync with gcc version.
8842
1ce26fc4
JL
8843Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
8844
8845 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
8846 to all filenames in libdir and tooldir.
8847 (distclean): Do MULTICLEAN before deleting Makefile.
8848 (stamp-needed, stamp-config): Add MULTISRCTOP to
8849 pathname for move-if-change.
8850
e7757d69
JL
8851Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
8852
8853 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
8854
8b715b2a
JL
8855Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
8856
8857 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
5890bc92 8858 was already defined previously.
8b715b2a
JL
8859
8860Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
8861
8862 * Makefile.in (INSTALL): Use ../install-sh, not install.
8863
0c23b0b2
JG
8864Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
8865
8866 * Makefile.in (CFILES): Add pexecute.c.
8867
a6e74b83
ILT
8868Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
8869
8870 * asprintf.c: Consistently use either stdarg or varargs.
8871
19ddc834
JM
8872Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
8873
8874 * cplus-dem.c (demangle_signature): Don't look for return types on
8875 constructors. Handle member template constructors.
8876
8877Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
8878
8879 * README: Fix configuration instructions.
8880
8881Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
8882
8883 * pexecute.c: Update to current version from /gd/gnu/lib:
8884
8885 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
8886
5194cf08 8887 * pexecute.c: Use spawn if __CYGWIN32__.
19ddc834
JM
8888
8889 1997-08-08 Paul Eggert <eggert@twinsun.com>
8890
5194cf08 8891 * pexecute.c: Include "config.h" first, as per autoconf manual.
19ddc834
JM
8892
8893 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
8894
5194cf08
ZW
8895 * pexecute.c (fix_argv): New function.
8896 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
8897 Add underscore to cwait function call.
19ddc834 8898
a3a5b5b7
MM
8899Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
8900
5194cf08
ZW
8901 * cplus-dem.c (demangle_template): Add new parameter. Handle new
8902 template-function mangling.
8903 (consume_count_with_underscores): New function.
8904 (demangle_signature): Handle new name-mangling scheme.
a3a5b5b7 8905
19ddc834
JM
8906Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
8907
8908 * asprintf.c: stdarg.h when ALMOST_STDC
8909 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
c4b9cfe0 8910 strncasecmp.o.
19ddc834
JM
8911
8912Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
8913
8914 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
8915
8916 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
8917
8918 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
8919
8920Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
8921
8922 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
8923
19ddc834
JM
8924Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
8925
8926 * asprintf.c (asprintf): New file.
8927 * Makefile.in (CFILES): Add asprintf.c
8928 * functions.def: Ditto.
8929
19ddc834
JM
8930Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
8931
8932 * argv.c (dupargv): New function, duplicate an argument vector.
8933
6599da04
JM
8934Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
8935
8936 * config/mh-cygwin32: also build random.o
8937
8938Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
8939
8940 * cplus-dem.c: Add 'extern' to prepends_underscore.
8941
3510075c
JL
8942Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
8943
8944 * cplus-dem.c: Various changes to produce Java output when passed
8945 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
8946 (main): Support --java and -j flags to set DMGL_JAVA.
8947
6599da04
JM
8948Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
8949
8950 * config/mh-go32 (CC, AR, RANLIB): Don't define.
8951
8952Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
8953
8954 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
8955 (pexecute.o): New target.
8956
8957 * Makefile.in (stamp-needed): New target, replacing needed-list.
8958 (needed-list): Just depend upon stamp-needed.
8959 (stamp-config): New target, replacing config.h.
8960 (config.h): Just depend upon stamp-config.
8961 (mostlyclean): Remove stamp-*.
8962
8963Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
8964
8965 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
8966 INSTALL_DATA for multilibbed installs
8967
8968Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
8969
8970 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
8971
8972 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
8973
8974 * choose-temp.c (try): Insist that temp dir be searchable.
8975
8976 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
8977
8978 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
8979 for current directory.
8980
8981 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
8982
8983 * pexecute.c: Remove special cases for cygwin32.
8984 (pwait): Remove local definition of `pid'.
8985
8986 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
8987
8988 * pexecute.c (vfork): Supply new definition for VMS.
8989 (pwait): Use waitpid instead of wait for VMS.
8990
8991Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
8992
8993 * cplus-dem.c (do_type): Handle `J'.
8994 (demangle_fund_type): Print "complex" for it.
8995
8996Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
8997
8998 * configure.in: Don't turn on multilib here.
8999
9000Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9001
38beb75c 9002 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
6599da04
JM
9003 elided; needed by gdb and not present in libc.
9004
9005Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9006
9007 * Makefile.in (clean): Remove tmpmulti.out.
9008
9009Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9010
38beb75c 9011 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
6599da04
JM
9012 Add new floatformat, mainly for ARM doubles.
9013
9014Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
9015
9016 * config.table: Use ${config_shell} with ${moveifchange}. From
9017 Thomas Graichen <graichen@rzpd.de>.
9018
9019Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
9020
9021 * configure.in: Enable multilibing by default.
9022 Update multilib template to read config-ml.in.
9023
9024Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9025
9026 * makefile.vms: Add objalloc.
9027
9028Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
9029
9030 * cplus-dem.c (demangle_it): Add prototype declaration.
9031 (usage, fatal): Likewise.
9032
9033 * xexit.c (_xexit_cleanup): Add prototype.
9034
9035 * strerror.c (init_error_tables): Declare.
9036
9037Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
9038
9039 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9040 * strsignal.c: Only define strsignal if NEED_strsignal.
9041 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9042 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
9043 to xneeded-list.
9044 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9045 (EXTRA_OFILES): Define to vasprintf.o.
9046 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9047 (EXTRA_OFILES): Add vasprintf.o.
9048 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9049 (vxneeded-list): Add vasprintf.o.
9050
9051Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9052
9053 * objalloc.c: Include <stdio.h>.
9054
9055Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
9056
9057 * objalloc.c: New file.
9058 * Makefile.in (CFILES): Add objalloc.c
9059 (REQUIRED_OFILES): Add objalloc.o.
9060 (objalloc.o): New target.
9061
9062Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9063
9064 * obstack.c: Update to current FSF version.
9065
9066Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9067
38beb75c 9068 * cplus-dem.c: Add prototypes for all static functions.
6599da04
JM
9069 (mystrstr): Make static. Make arguments and result const.
9070 (cplus_match): Remove; not used.
9071
9072Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9073
9074 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9075 __t* symbols.
9076
9077Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
9078
9079 * spaces.c: Declare malloc and free properly.
9080 * strsignal.c (init_signal_tables): Add prototype.
9081 * xatexit.c (_xexit_cleanup): Add parameter declarations.
9082
9083Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9084
9085 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9086 also required because of xmalloc.o.
9087
9088Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
9089
9090 * strsignal.c: Unconditionally redefine sys_siglist around the
9091 inclusion of the system header files.
9092
9093Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
9094
9095 * makefile.vms: Remove 8 bit characters. Update to latest
9096 gcc release.
9097
9098Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
9099
9100 * strsignal.c: Use NEED_sys_siglist instead of
9101 LOSING_SYS_SIGLIST.
9102 * config.table: Don't use mh-lynxos.
9103 * config/mh-lynxos: Remove.
9104
9105Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
9106
9107 * cplus-dem.c: Fix indenting; make identical to the copy
9108 in GCC.
9109 (do_type, case 'M'): Check for a template as well as a class.
9110
9111Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
9112
9113 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9114 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9115 libiberty is incorrect, as well.
9116
9117Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9118
9119 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9120 alloca takes a size_t argument, not just unsigned.
9121
9122Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9123
9124 * cplus-dem.c: Note that this file also lives in GCC.
9125
9126Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9127
9128 * alloca.c: Remove include of libiberty.h for hpux.
9129 * argv.c: Replace defs from libiberty.h.
9130 * spaces.c: Put back externs from removed from libiberty.h.
9131 * vasprintf.c: Remove include of libiberty.h for hpux.
9132
9133Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9134
9135 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9136
9137Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9138
38beb75c
UD
9139 * cplus-dem.c: Revert last two commits due to conflicts with
9140 hpux system headers.
6599da04
JM
9141
9142Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9143
9144 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
38beb75c 9145 Revert last commit due to conflicts with hpux system headers.
6599da04
JM
9146
9147Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9148
9149 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9150 libiberty.h when compiled with a standard compiler.
9151
9152Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9153
38beb75c 9154 * alloca.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9155 Don't redefine NULL.
9156 * argv.c: Move prototypes to libiberty.h.
38beb75c 9157 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9158 Don't redefine NULL.
9159 Use casts to eliminate compiler warnings.
38beb75c 9160 * spaces.c: Remove prototypes for malloc and free which are
6599da04
JM
9161 already in libibrty.h.
9162 * strcasecmp.c: Use casts to eliminate compiler warnings.
38beb75c 9163 * vasprintf.c: Include libiberty.h for definition of malloc.
6599da04
JM
9164 Don't redefine NULL.
9165 * vprintf.c: Include stdarg.h if __STDC__.
9166
9167Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9168
9169 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9170
9171Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
9172
9173 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9174 upward components correctly.
9175
9176Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
9177
9178 * config.table, config/mh-windows: Add support for building under
9179 MSVC (the Microsoft build environment).
9180
9181Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9182
9183 * fnmatch.c: Undef const if not __STDC__.
9184
9185Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
9186
9187 * fnmatch.c: New file.
9188 * Makefile.in (CFILES): Add fnmatch.c.
9189 (REQUIRED_OFILES): Add fnmatch.o.
9190 (fnmatch.o): New target.
9191
9192Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9193
9194 * cplus-dem.c (demangle_template): Fix handling of address args.
9195 (gnu_special): Handle type_info stuff.
9196
9197Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9198
9199 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9200 (mpwify_filename): Handle "::/" case.
9201
9202Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9203
9204 * config/mh-cygwin32: new file (need -DNEED_basename and
9205 -DNEED_sys_siglist for native NT rebuilding)
9206 * config.table (*-*-cygwin32): new entry
9207 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9208
9209Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9210
9211 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9212
9213Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9214
9215 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9216 messed with arguments that included a '/', add escape chars
9217 to double quotes, remove const decl from arg that Mac
9218 compilers don't seem to like.
9219
9220Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9221
9222 * pexecute.c: Update test for win32 (&& ! cygwin32).
9223 * choose-temp.c: fix WIN32 preprocessor defines
9224
9225Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9226
9227 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9228 to editing of default makefile rule.
9229
9230Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9231
9232 * alloca-norm.h: Include <malloc.h> if _WIN32.
9233 * argv.c: Include non-prototyped decls for malloc and string
9234 functions if ! _WIN32 or if __GNUC__.
9235
9236Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9237
9238 * config.h-vms: New file.
9239 * makefile.vms: Use it.
9240
9241Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9242
9243 * getopt.c (_getopt_internal): If argc is 0, just return (before
9244 we reference *argv and segfault).
9245
9246Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9247
9248 * Makefile.in (distclean): Add multilib.out.
9249
9250Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9251
9252 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9253 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9254
9255Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9256
9257 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9258
9259 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9260
9261 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9262
9263 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9264 (do_ofiles): Allow nonexistent source file in pass 3.
9265 (chk_deffunc): New routine.
9266
9267Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9268
9269 * pexecute.c (PEXECUTE_VERBOSE): Define.
9270 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9271
9272Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9273
9274 * Makefile.in (docdir): Removed.
9275
9276Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9277
9278 * Makefile.in (oldincludedir): Removed.
9279
9280Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9281
5194cf08 9282 * Makefile.in (datadir): Set to $(prefix)/share.
6599da04
JM
9283
9284Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9285
9286 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9287 checking for errors from do_type.
9288
9289Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9290
9291 * makefile.vms: New file.
9292 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9293 than declaring malloc, realloc, and sbrk.
9294
9295Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9296
9297 * pexecute.c: New file.
9298
9299Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9300
9301 * xmalloc.c: Declare sbrk.
9302
9303Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9304
9305 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9306 declaration.
9307
9308Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9309
9310 * xstrerror.c: Include <stdio.h>.
9311
9312Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9313
9314 * Makefile.in (CFILES): Add atexit.c.
9315
9316Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9317
9318 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9319
9320Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9321
9322 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9323 #include <stdio.h>
9324 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9325
9326Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9327
5194cf08 9328 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6599da04
JM
9329 Reverts Feb 8, 1995 change.
9330
9331Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9332
9333 * choose-temp.c: New file.
9334 * Makefile.in (CFILES): Add choose-temp.c.
9335 (REQUIRED_OFILES): Add choose-temp.o.
9336
9337Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9338
9339 * floatformat.c (floatformat_to_double): Don't bias exponent when
9340 handling zero's, denorms or NaNs.
9341
9342Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9343
9344 * floatformat.c (floatformat_to_double): Fix bugs with handling
9345 numbers with fractions < 32 bits.
9346
9347Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9348
9349 * config.table: Permit --enable-shared to specify a list of
9350 directories.
9351
9352Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9353
9354 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9355 arguments.
9356
9357Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9358
9359 * configure.in: If srcdir is `.' and with_target_subdir is not
9360 `.', then set MULTISRCTOP before calling config-ml.in.
9361
9362Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9363
9364 * mpw.c (mpw_open): Add debugging output option.
9365
9366Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9367
9368 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9369
9370Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9371
9372 * mpw.c (mpwify_filename): Change 6 to 5 in
9373 strncmp (unixname, "/tmp/", 5).
38beb75c 9374
6599da04
JM
9375Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9376
9377 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9378 handle 0 as a pointer value parameter.
9379
9380Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9381
9382 * Makefile.in (all): Depend upon required-list.
9383 (required-list): New target.
9384 (clean): Remove required-list.
9385
9386Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9387
9388 * win32.c: Deleted.
9389 * config.table (i386-*-win32): Deleted.
9390 * config/mh-i386win32: Deleted.
9391
9392Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9393
9394 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9395 const char *.
9396 (cplus_mangle_opname): Change return type and opname parameter to
9397 const char *. Don't cast return value.
9398
9399Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9400
9401 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9402 definition.
9403
9404Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9405
9406 * obstack.c: Update copyright to 1996.
9407 (_obstack_memory_used): Define new function. Called via
9408 obstack_memory_used macro.
9409
9410Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9411
9412 * xstrdup.c: New file.
9413 * Makefile.in (CFILES): Add xstrdup.c.
9414 (REQUIRED_OFILES): Add xstrdup.o.
9415 (xstrdup.o): New target.
9416
9417Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9418
9419 * atexit.c: New stub to provide atexit on systems that have
9420 on_exit, like SunOS 4.1.x systems.
9421 * functions.def (on_exit, atexit): Ditto.
9422
9423Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9424
9425 * mpw.c (mpw_abort): Remove decl.
9426 (mpw_access): Move debugging printf.
9427
9428Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9429
9430 * config.table: Consistently use ${host} rather than ${xhost} or
9431 ${target}.
9432 * configure.in: Don't bother to set ${xhost} before calling
9433 config.table.
9434
9435Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9436
9437 * Makefile.in (.c.o): Use test instead of the left bracket, to
9438 avoid problems with some versions of make.
9439
9440Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9441
9442 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9443
9444Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9445
9446 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9447 which was set to just alloca.o, which is now automatically marked
9448 as needed by the autoconfiguration process.
9449
9450Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9451
9452 * config.table: Check ${with_cross_host} rather than comparing
9453 ${host} and ${target}.
9454
9455Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9456
9457 * configure.in: If with_target_subdir is empty, set xhost to
9458 ${host} rather than ${target} before calling config.table.
9459
9460Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9461
9462 * Makefile.in (MULTITOP): Deleted.
9463 (MULTISRCTOP, MULTIBUILDTOP): New.
9464 (FLAGS_TO_PASS): Delete INCDIR.
9465 (INCDIR): Add $(MULTISRCTOP).
9466 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9467 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9468 instead of cfg-ml-pos.in.
9469 (cross-compile check): Change to test for with_target_subdir.
9470 (EXTRA_LINKS): Delete.
9471
9472Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9473
9474 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9475 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9476 functions that are supplied by Metrowerks libraries.
9477 (fstat): Clean up descriptor->pointer conversion code.
9478 (InstallConsole, etc): Empty definitions, for when linking
9479 with SIOUX.
9480
9481Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9482
9483 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9484 (.c.o): Stylistic change.
9485
9486Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9487
9488 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9489 phdm@info.ucl.ac.be (Philippe De Muyter).
9490
9491Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9492
9493 * configure.in: Correct sed call.
9494
9495Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9496
9497 * configure.in: Clean up / simplify for native.
9498
9499 * configure.in: Merge in stuff from ../xiberty/configure.in.
9500 * Makefile.in (CC): Add definition (so it can be overrridden
9501 by ../configure).
9502
9503Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9504
9505 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9506 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9507 (link): Remove useless definition with error return.
9508 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9509 Use UnsignedWide type for microsecond counts.
9510
9511Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9512
9513 * memcmp.c (memcmp): Argument types are const void *, not void
9514 *const.
9515
9516 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9517 sys/types.h.
9518 * strcasecmp.c (strcasecmp): Ditto.
9519
9520Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9521
9522 * Makefile.in (BISON): Remove macro.
9523
9524Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
9525
9526 * Makefile.in (HFILES): Add default empty definition.
9527 * mpw-config.in (config.h): Only update if changed.
9528 * mpw-make.in: Remove.
9529 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9530 * mpw.c: Remove semi-clone of strerror code.
9531 (sys_nerr, sys_errlist): Define here.
9532 (Microseconds): Only define as A-line trap if m68k Mac.
9533
9534Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9535
9536 * Makefile.in (maintainer-clean): New synonym for distclean.
9537
9538Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
9539
9540 * config.table: For host, generalize rs6000-ibm-aix*
9541 to *-ibm-aix* so we also include powerpc.
9542
9543Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9544
9545 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
9546
9547 * xstrerror.c: New file.
9548 * Makefile.in, vmsbuild.com: Compile it.
9549
9550Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9551
9552 * config.table (i386-*-win32): New.
9553
9554Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
9555
9556 * Makefile.in (MULTITOP): New variable.
9557 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9558 (all): Add multilib support.
9559 (install_to_tooldir, *clean): Likewise.
9560
9561Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9562
9563 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9564
9565Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
9566
9567 * vmsbuild.com: create "new-lib.olb", build libiberty under that
9568 name, and then make it become "liberty.olb" when done, so that an
9569 incomplete build attempt never leaves behind something which looks
9570 like a complete library.
9571
9572Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
9573
9574 * config/mh-i386pe: New file for PE hosts.
9575 * config.table: Understand PE hosts.
9576
9577Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9578
9579 * cplus-dem.c: Update from gcc.
9580
9581 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
5194cf08 9582 <stddef.h>.
6599da04
JM
9583 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9584
9585Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9586
9587 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9588 * mpw.c: Only test DebugPI once whenever printing debug info.
9589 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9590 also fix to not write on input filename buffer.
9591 (mpw_access): Use stat() instead of open(), works for directories
9592 as well as files.
9593
9594Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9595
9596 * Makefile.in: Massage broken shells that require 'else true'.
9597
9598Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
9599
9600 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9601 Declare __builtin_alloca in the sparc case, as argv.c did.
9602 * argv.c: Replace inline version of alloca-norm.h at start of file with
9603 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
9604 because alloca-norm.h needs to declare alloca as "PTR".
9605
9606Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9607
9608 * win32.c: New file.
9609
9610Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9611
9612 * dummy.c: #include "alloca-conf.h".
9613
9614Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9615
9616 * Makefile.in (mostlyclean): Remove stamp-picdir.
9617 (clean): Don't.
9618
9619Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9620
9621 * config.table (frags): Use toplevel pic frags.
9622
9623 * Makefile.in (PICFLAG): New macro.
9624 (all): Depend on stamp-picdir.
9625 (needed-list): Ditto.
9626 (.c.o): Also build pic object.
9627 (stamp-picdir): New rule.
9628 (mostlyclean): Remove pic.
9629 (clean): Remove stamp-picdir.
9630
9631Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9632
9633 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9634
9635Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
9636
9637 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
9638 to libio-style copyright.
9639 * getpagesize.c: Remove FSF copyright.
9640
9641Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9642
9643 Added improved VMS support from Pat Rankin:
9644
9645 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
9646
9647 * vmsbuild.com: new file.
9648
9649 * getpagesize.c (getpagesize): implement for VMS;
9650 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
9651 support for EVMSERR.
9652
9653Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9654
9655 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
9656
9657 * floatformat.c (floatformat_arm_ext): Define.
9658
9659Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
9660
9661 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
9662 strerror.c, strsignal.c: Remove FSF copyright.
9663 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
9664
9665Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
9666
9667 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
9668 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
9669 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
9670 * strchr.c, strrchr.c: Add cast to suppress const warning.
9671
9672Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9673
9674 * cplus-dem.c: Use const instead of CONST. Don't include
5194cf08 9675 ansidecl.h directly.
6599da04
JM
9676
9677Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9678
9679 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
5194cf08 9680 xrealloc.
6599da04 9681 (-DMAIN): Don't rely on an externally-defined version number;
5194cf08
ZW
9682 instead, require the version number to be defined as a
9683 preprocessor macro. Handle the RS/6000 leading dot. Define
9684 xmalloc, xrealloc and fatal. Don't strip a leading underscore
9685 if we couldn't demangle the word.
6599da04
JM
9686
9687Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
9688
9689 (Old mpw.c change descriptions retained for informational value.)
9690 * mpw.c (warning_threshold): Default to .4 sec.
9691 (overflow_count, current_progress): New globals.
9692 (warn_if_spin_delay): Include current progress type,
9693 such as program name, in message.
9694 (mpw_start_progress): Set current_progress variable from arg.
9695 (mpw_end_progress): Report spin delays by power-of-two-size
9696 buckets instead of constant-size buckets.
9697
9698 * mpw.c: Clean up formatting, types, returns, etc.
9699 (ENOSYS): Define.
9700 (mpw_fread, mpw_fwrite): Define.
9701 (sleep): Define correctly.
9702
9703 * mpw.c: New code to implement cursor spinning support.
9704 (umask): New function.
9705 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
9706
9707 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
9708 basenames for MPW and MPW/Unix filenames.
9709 (mpw_special_init): New function, calls Macsbug if desired.
9710
9711 * mpw.c: Add GPL notice.
9712 (mpwify_filename): Add more transformations.
9713 (mpw_fopen): Call mpwify_filename on file names.
9714 (rename): Remove.
9715 (chdir, getcwd): Add simple definitions.
9716
9717 * mpw.c: Random cleanups, remove unused code bits.
9718 Added copy of strerror.c for gcc's use.
9719 (stat, fstat, _stat): New versions based on Guido van Rossum code.
9720
9721 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
9722
9723 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
9724 (fork, vfork, etc): Print error messages if called.
9725 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
9726 rename, chown): Define.
9727
9728 * mpw-config.in: New file, MPW version of configure.in.
9729 * mpw-make.in: New file, MPW version of Makefile.in.
9730 * mpw.c: New file, MPW compatibility routines.
9731
9732Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
9733
9734 * basename.c: Include config.h before checking for NEED_basename.
9735
9736Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9737
9738 * functions.def: Add DEFFUNC for basename.
9739
9740 * basename.c: Only define basename if NEED_basename.
9741
9742Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9743
9744 * config.table: Fix --enable-shared logic for native builds.
9745
9746Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9747
9748 * cplus-dem.c (demangle_template): Demangle bool literals properly.
9749
9750Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
9751
9752 * strtol.c strtoul.c: Replace these with less buggy versions from
9753 NetBSD. (strtoul in particular couldn't handle base 16.)
9754
9755Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
9756
9757 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
9758
9759 * clock.c: If NO_SYS_PARAM_H is defined, don't include
9760 <sys/param.h>.
9761 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
9762
9763Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
9764
9765 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
9766 a number; ANSI appears to permit any expression, including a
9767 function call.
9768
9769 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
9770 xiberty.
9771 * config/mt-vxworks5: New file.
9772
9773Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
9774
9775 * basename.c (basename): Change argument to be const.
9776
9777Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9778
9779 * Makefile.in (lneeded-list): Don't worry about xmalloc.
9780
9781Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
9782
9783 * Makefile.in (distclean): Delete xhost-mkfrag.
9784
9785Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9786
9787 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9788
9789Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
9790
9791 * hex.c: New file.
9792 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
9793 (hex.o): Add dependencies.
9794
9795 * cplus-dem.c (demangle_prefix): For GNU style constructor and
9796 destructor names, try demangling the remainder of the string.
9797
9798Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
9799
9800 * vasprintf.c (int_vasprintf): New static function.
9801 (vasprintf): Use int_vasprintf. Removes assumption that va_list
9802 is assignment compatible.
9803
9804Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9805
9806 * Makefile.in (LIBCFLAGS): New variable.
9807 (FLAGS_TO_PASS): Pass it.
9808 (.c.o): Use it.
9809
9810Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
9811
9812 * getopt.c, getopt1.c: Do compile these functions under Linux,
9813 since many native versions are based on glibc but are buggy.
9814
9815Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
9816
9817 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
9818 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
9819
9820Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9821
9822 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
9823 * functions.def: Remove vasprintf.
9824
9825Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9826
9827 * xmalloc.c (first_break): New static variable.
9828 (xmalloc_set_program_name): Record sbrk (0) in first_break.
9829 (xmalloc): If memory allocation fails, try to report how much
9830 memory was allocated by the program up to this point.
9831 (xrealloc): Likewise.
9832
9833Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
9834
9835 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
9836 when linking dummy.
9837 * config.table: Add host RISCiX Makefile frag.
9838 * config/mh-riscix: New file.
9839
9840Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9841
9842 * Makefile.in (FLAGS_TO_PASS): Define.
9843 ($(RULE1)): Use $(FLAGS_TO_PASS).
9844
9845Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9846
9847 * vasprintf.c: Include <string.h>.
9848 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
9849 * xatexit.c: Declare malloc.
9850
9851Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
9852
9853 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
9854 one below).
9855
9856Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
9857
9858 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5194cf08 9859 the type index is greater than 9.
6599da04
JM
9860
9861Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
9862
9863 * cplus-dem.c (demangle_qualified): accept optional '_' between
9864 qualified name. This is baecause the template name may end with
9865 numeric and can mixed up with the length of next qualified name.
9866
9867Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
9868
9869 * config/mt-sunos4: Use our standard location for cross-includes
9870 and cross-libs when the target is also a "host" environment (ie no
9871 newlib; includes and such don't belong to us). This is specific
9872 to the Cygnus Support environment.
9873
38beb75c 9874Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6599da04 9875
38beb75c 9876 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
6599da04
JM
9877 xxx<ch=81>.
9878
9879Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
9880
9881 * cplus-dem.c (main): flush stdout to make pipe work.
9882
9883Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
9884
9885 * config.table (*-*-cxux7*): Recognize.
9886 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
9887 Harris-specific float format.
9888 * config/mh-cxux7: New file.
9889
9890Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9891
9892 * cplus-dem.c (demangle_template): Make sure that the result of
9893 consume_count doesn't index beyond the end of the string.
9894
9895Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9896
9897 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
9898 earlier. Improve test for new vtable mangling. Change output back
9899 to `virtual table'.
9900
9901Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9902
9903 * obstack.c: Always compile this code, even if using the GNU
9904 library. Avoids problems with relatively recent binary
9905 incompatibility.
9906
9907Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9908
9909 * cplus-dem.c: Include libiberty.h.
9910 (xmalloc, xrealloc, free): Don't declare.
9911 (strstr): Don't declare parameters.
9912 (xmalloc, xrealloc): Don't define.
9913 (long_options): Add no-strip-underscores.
9914 (main): Call xmalloc_set_program_name. Pass n in short options to
9915 getopt_long. Handle option 'n' to not strip underscores.
9916 (usage): Mention -n and --no-strip-underscores.
9917
9918Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
9919
9920 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5194cf08 9921 space.
6599da04
JM
9922 (gnu_special): Demangle template and qualified names in a vtable name.
9923
9924Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
9925
9926 From gas-2.3 and binutils-2.4 net releases:
9927
9928 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
9929
9930 * makefile.dos: [new] Makefile for dos/go32
9931 * configure.bat: update for latest files
9932 * msdos.c: remove some functions now in libc.a
9933
9934Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
9935
9936 * cplus-dem.c (gnu_special): Recognize thunks, as well as
9937 the new naming style for vtables (when -fvtable-thunks).
9938
9939Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9940
9941 * Makefile.in (XTRAFLAGS): Don't define.
9942 (.c.o, dummy.o): Don't use XTRAFLAGS.
9943 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
9944
9945Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
9946
9947 * vasprintf.c: New file.
9948 * Makefile.in, functions.def: Add it.
9949
9950Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
9951
9952 * cplus-dem.c (demangle_fund_type): Grok bool.
9953
9954Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
9955
38beb75c 9956 * config.table: Add go32
6599da04
JM
9957 * config/mh-go32: New template.
9958
9959Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
9960
9961 * config.table, config/mt-sunos4: config for when sun4 is cross target.
9962
9963Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9964
5194cf08
ZW
9965 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
9966 Declare strlen to return int. Don't include stddef.h.
6599da04
JM
9967
9968Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
9969
5194cf08
ZW
9970 * getopt.c: Delete use of IN_GCC to control whether
9971 stddef.h or gstddef.h is included.
6599da04
JM
9972
9973Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
9974
9975 * cplus-dem.c (demangle_signature): Fix a bug in template function
9976 type numbering.
9977
9978Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
9979
9980 * cplus-dem.c (demangle_signature): Fix template function with arm
9981 style argument type number, Tn.
9982
9983Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
9984
9985 * cplus-dem.c (optable): Add new[] and delete[].
9986
9987Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
9988
9989 * argv.c (buildargv): Don't produce empty argument just because
9990 there is trailing whitespace.
9991
9992Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
9993
9994 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
9995 Handle 'p' same as 'P'.
9996 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
9997
9998Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9999
10000 * floatformat.c (get_field, put_field): Fix off by one error in
10001 little endian case.
10002
10003Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10004
10005 * floatformat.c (floatformat_from_double): Pass unsigned char *,
10006 not char *, to put_field.
10007
10008Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10009
10010 * memmove.c: Re-wrote; placed in public domain.
10011
10012Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10013
10014 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10015 __Q* as a constructor.
10016
10017Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
10018
10019 * ieee-float.c: Removed; no longer used.
10020 * Makefile.in: Changed accordingly.
10021
10022Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10023
10024 * floatformat.c (get_field): Removed unused local variable i.
10025 (put_field): Removed unused local variable i.
10026
10027Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10028
10029 * floatformat.c: New file, intended to replace ieee-float.c.
10030 * Makefile.in: Change accordingly.
10031
10032Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10033
10034 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
38beb75c
UD
10035 (_getopt_initialize): New function, broken out of _getopt_internal.
10036 (_getopt_internal):
6599da04
JM
10037 If long_only and the ARGV-element has the form "-f", where f is
10038 a valid short option, don't consider it an abbreviated form of
10039 a long option that starts with f. Otherwise there would be no
10040 way to give the -f short option.
10041
10042Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10043
5194cf08
ZW
10044 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10045 Test just __STDC__, not emacs.
6599da04
JM
10046
10047Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10048
5194cf08
ZW
10049 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10050 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
6599da04
JM
10051
10052Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10053
5194cf08 10054 * getopt.c (_NO_PROTO): Define before config.h is included.
6599da04
JM
10055
10056Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10057
5194cf08 10058 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
6599da04
JM
10059 <config.h> only under these, else "config.h".
10060
10061Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10062
5194cf08
ZW
10063 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10064 <config.h> instead of "config.h".
6599da04
JM
10065
10066Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
10067
10068 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10069 whether to use prototypes or not.
10070 * strerror.c (const): Never undefine; let ansidecl.h handle it.
10071 * strsignal.c (const): Likewise.
10072
10073Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10074
10075 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10076 Merging common and initialized variables need not be supported by
10077 ANSI C compilers.
10078 (xatexit): Initialize _xexit_cleanup if not already set.
10079 * xexit.c: Comment fix.
10080
10081Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10082
10083 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10084 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10085 assuming that realloc works correctly.
10086
10087Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10088
10089 * concat.c, ieee-float.c: Replace inclusion of <string.h>
10090 with explicit function declarations, as recommended by Ian Taylor.
10091
10092Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10093
10094 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10095 (malloc, realloc): Declare.
10096
10097Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10098
10099 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10100 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10101 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10102 * xmalloc.c: Likewise.
10103 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
10104 macros, not <varargs.h> macros.
10105 * spaces.c (spaces): Make return type const. Don't crash if
10106 malloc returns NULL.
10107 * strerror.c (struct error_info): Make name and msg fields const.
10108 (error_names): Make const.
10109 (strerrno): Make const.
10110 (strtoerrno): Make argument const.
10111 * strsignal.c (struct signal_info): Make name and msg fields
10112 const.
10113 (signal_names, sys_siglist): Make const.
10114 (strsignal, strsigno): Make const.
10115 (strtosigno): Make argument const.
10116 * xatexit.c: Declare parameter types.
10117 * xmalloc.c (name): Make const.
10118 (xmalloc_set_program_name): Make argument const.
10119 * Makefile.in (INCDIR): Define.
10120 (.c.o): Use $(INCDIR).
10121 (dummy.o): Likewise.
10122 (argv.o, basename.o): New targets; depend on libiberty.h.
10123 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10124 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10125 (xmalloc.o): Likewise.
10126 (cplus-dem.o): New target; depend on demangle.h.
10127 (getopt.o, getopt1.o): New targets; depend on getopt.h.
10128 (ieee-float.o): New target; depend on ieee-float.h.
10129 (obstack.o): New target; depend on obstack.h.
10130
10131Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10132
10133 Handle obstack_chunk_alloc returning NULL. This allows
10134 obstacks to be used by libraries, without forcing them
10135 to call exit or longjmp.
10136 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10137 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10138 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10139
10140Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10141
10142 * concat.c, ieee-float.c: Include <string.h>.
10143
10144Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10145
10146 * xmalloc.c (xmalloc_set_program_name): New function.
10147 (xmalloc, xrealloc): Include the name in the error message, if set.
10148
10149 * Replace atexit.c with xatexit.c.
10150 * Makefile.in (CFILES), functions.def: Change references.
10151
10152Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10153
10154 * getruntime.c (get_run_time): Use getrusage or times if
10155 HAVE_GETRUSAGE or HAVE_TIMES are defined.
10156
10157Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10158
10159 * atexit.c: New file.
10160 * Makefile.in (CFILES), functions.def: Add it.
10161 * xexit.c: New file.
10162 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10163 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10164 Change request for 0 bytes into request for 1 byte.
10165
10166Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10167
10168 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10169 unsigned long, to avoid warnings.
10170
10171Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10172
10173 * dummy.c: Don't include time.h ever; always define clock_t as
10174 "unsigned long". Until gcc/fixincludes ensures that clock_t
10175 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
10176 exist, clock_t probably doesn't either.
10177
10178Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
10179
10180 * clock.c, getruntime.c: New files.
10181 * Makefile.in: Add to file lists.
10182 * functions.def (clock): Add to list.
10183 * dummy.c (time.h): Add if __STDC__.
10184 (clock_t): #define as "unsigned long" if not __STDC__.
10185
10186Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10187
10188 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
10189 Edler).
10190
10191Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10192
10193 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10194 linking.
10195
10196Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10197
10198 * cplus-dem.c (demangle_arm_pt): New function. Common code
10199 for ARM template demangling.
10200 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10201 * cplus-dem.c (demangle_prefix): Likewise.
10202
10203Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10204
10205 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10206
10207Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10208
10209 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10210 * strerror.c, strsignal.c: As a small space optimization, don't
10211 include messages when they aren't actually used.
10212
10213 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10214 * cplus-dem.c (demangle_prefix, demangle_function_name,
10215 cplus_demangle_opname): Fixes for systems where cplus_marker
10216 is something other than '$'.
10217
10218Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10219
10220 * waitpid.c: Simple-minded approcimation to waitpid
10221 using vanilla wait.
10222 * functions.def, Makefile.in: Update accordingly,
10223
10224Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10225
10226 * cplus-dem.c(demangle_template): fix bug template instantiation
10227 with value of user defined type.
10228
10229Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10230
10231 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10232 to support unified search of operator in class.
10233
10234Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10235
10236 gcc -Wall lint:
10237 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10238 "digit = *s" as condition in while loop.
10239
10240Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10241
10242 * Makefile.in: pass SHELL to recursive make
10243
10244Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10245
10246 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10247 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10248
10249Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10250
10251 * config.table: Make *-*-hiux* use mh-hpux.
10252
10253Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10254
10255 * config.table: Add * to end of all OS names.
10256
10257Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10258
10259 * Makefile.in (lneeded-list): ensure that object file names are
10260 not duplicated, as multiple instances of the same object file in
10261 a library causes problems on some machines
10262
10263Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10264
10265 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10266
10267Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10268
10269 * strncasecmp.c: new file, implements strncasecmp
10270 * strcasecmp.c: new file, implement strcasecmp
10271
10272 * Makefile.in (CFILES): list these two new source files
10273
10274 * functions.def: add strcasecmp and strncasecmp entries
10275
10276Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10277
10278 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10279 according to ANSI C.
10280
10281Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10282
10283 * cplus-dem.c: add support of ARM global constructor/destructor,
10284 and 'G' for passing record or union in parameter.
10285
10286Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10287
10288 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10289 should not be in functions.def.
10290
10291Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10292
10293 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10294 not be in functions.def.
10295
10296Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10297
10298 * cplus-dem.c: change globl constructor/destructor to proper name
10299
10300Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10301
10302 * cplus-dem.c: fix bug in constructor/destructor
10303
10304Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10305
10306 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10307
10308Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10309
10310 * cplus-dem.c: Fix demangle_template prototype
10311
10312Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10313
10314 * cplus-dem.c: fix template demangling
10315 * cplus-dem.c: fix const type demangling
10316 * cplus-dem.c: fix constructor/destructor, virtual table,
10317 qualifier, global constructor/destructor demangling
10318
10319Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10320
10321 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10322 keep gcc -Wall happy.
10323
10324Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10325
10326 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10327 patch.
10328
10329Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10330
10331 Patch from Paul Flinders:
10332 * cplus-dem.c (do_type): Deal with arrays.
10333
10334Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10335
10336 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10337 than 9 classes.
10338
10339Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10340
10341 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10342 not initialized" warnings under HP/UX
10343
10344Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10345
10346 * strerror.c: Move include of stdio.h after sys_errlist #define.
10347 Also remove NULL definition (stdio.h always defines NULL, so it
10348 never did anything but clutter up the code).
10349
10350Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10351
10352 * Makefile.in, functions.def: handle xmalloc.c
10353
10354 * xmalloc.c: provide xmalloc and xrealloc functions
10355
10356Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10357
10358 * cplus-dem.c: Fix a comment.
10359
10360Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10361
10362 * getopt1.c: Declare const the way getopt.c does.
10363
10364Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10365
10366 * obstack.c, alloca.c: Update from FSF.
10367 * getopt.c, getopt1.c: Update to current FSF version, which
38beb75c 10368 doesn't use alloca.
6599da04
JM
10369
10370Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10371
10372 * Makefile.in (demangle): Add the target with a message saying
10373 where demangle went.
10374
10375Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10376
10377 * Makefile.in: Remove obsolete `demangle' target.
10378
10379Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10380
10381 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10382 avoid infinite loop on vtbl symbols with disambiguating "junk"
10383 tacked on the end.
10384
10385Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10386
10387 * strsignal.c: work around some systems losing definitions of
10388 sys_siglist
10389
10390 * config/mh-lynxos: this system has a losing definition of
10391 sys_siglist
10392
10393 * config.table: use mh-lynxos for *-*-lynxos
10394
10395Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10396
10397 * config.table: Add support for HPPA BSD hosts.
10398
10399 * config/mh-hpbsd: New file.
10400
10401Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10402
10403 * Makefile.in (TAGS): make work when srcdir != objdir.
10404
10405Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10406
10407 * cplus-dem.c (main): Add long options, including --help and
10408 --version.
10409 (usage): New function from code in main.
10410
10411Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10412
10413 * config.table: New shell scipt, sourced by both ./configure,in
10414 and ../xiberty/configure.in, to avoid maintainance lossages.
10415 * configure.in and ../xiberty/configure.in: Use config.table.
10416
10417 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10418 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10419 * ../xiberty/configure.in: Update from ./configure.in.
10420
10421Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10422
10423 * Makefile.in: remove parentdir support
10424
10425Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10426
10427 * cplus-dem.c (xrealloc): Match definition with prototype.
10428
10429Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10430
10431 * cplus-dem.c (demangle_prefix): Demangle cfront
10432 local variables as an extension to ARM demangling.
10433
10434Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10435
10436 * ieee-float.c: Don't require pointers to double to be aligned.
10437
10438Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10439
5194cf08 10440 (merge changes from dlong@cse.ucsc.edu)
6599da04
JM
10441 * cplus-dem.c (consume_count): Simplify.
10442 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10443 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10444
10445 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10446 full prototypes.
10447 * cplus-dem.c (free): Add prototype.
10448 * cplus-dem.c (optable): Fully bracketize initializer.
10449
10450Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10451
10452 * cplus-dem.c: Whether initial underscores are stripped
10453 depends on the external variable prepends_underscore
10454 (which is generated by the binutils Makefile).
10455
10456Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10457
10458 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10459
10460Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10461
10462 * cplus-dem.c (consume_count): Return zero if arg does not
10463 start with digit, and don't consume any input.
10464
10465Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10466
10467 * Makefile.in (demangle): Use ${srcdir} not $^.
10468
10469 * strtod.c: New file, needed at least for BSD 4.3.
10470
10471Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10472
10473 * strsignal.c (sys_siglist): For ANSI compilations, type is
10474 "const char *const". Also remove conditionalization on __STDC__
10475 since const is defined away for non-ANSI.
10476
10477Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10478
10479 * configure.in: Recognize *-*-hpux.
10480 * config/mh-hpux: New file.
10481
10482Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10483
10484 * tmpnam.c: Added ANSI tmpnam() function.
10485 * functions.def, Makefile.in: Update accordingly.
10486
10487Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10488
10489 * cplus-dem.c (demangle_function_name): Get the demangling of
10490 stop__1A right.
10491
10492Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10493
10494 * cplus-dem.c: Declare strstr return type.
10495
10496Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10497
10498 * strsignal.c: Add some AIX signals.
10499
10500Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10501
10502 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10503
10504Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10505
10506 * Makefile.in: add installcheck & dvi targets
10507
10508Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10509
10510 * ieee-float.c: New file, moved from ../gdb (since it is
10511 needed by ../opcode/m68k-dis.c).
10512
10513Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10514
10515 * cplus-dem.c: Replace all references to cfront with ARM.
10516
10517Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10518
10519 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10520 to be more useful as a filter.
10521
10522Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10523
10524 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10525 destination directory before running $(RANLIB), in case that
10526 program tries to create a file in the current directory as part of
10527 its work.
10528
10529Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
10530
10531 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
10532 because BSD 4.4 lacks one. Isn't this fun?
10533
10534Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
10535
10536 * cplus-dem.c (demangle_signature): Set func_done after
10537 demangling a template.
10538 * cplus-dem.c (demangle_template): Fix several small bugs
10539 in demangling GNU style templates.
10540 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
10541 style constructors.
10542 * cplus-dem.c (gnu_special): Fix for templates in GNU style
10543 static data members.
10544
10545Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
10546
10547 * cplus-dem.c (demangle_signature): Modify to include type
10548 modifiers like static and const in remembered types.
10549
10550Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
10551
10552 * cplus-dem.c (demangled_qualified): Add new parameter that tells
10553 whether to prepend or append the qualifiers.
10554 * cplus-dem.c (string_prepends): Used now, remove #if 0.
10555 * cplus-dem.c (demangle_signature): Call demangle_qualified
10556 with prepending.
29120f44 10557 * cplus-dem.c (gnu_special): Recognize static data members that
6599da04
JM
10558 use qualified names.
10559 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
10560 temporary buffer and the prepend or append them to the result,
10561 as specified by the new "append" flag.
10562 * cplus-dem.c (do_type): Call demangled_qualified with
10563 appending.
10564
10565Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
10566
10567 * strsignal.c (signal_table): Now const.
10568 (init_signal_tables): Variable eip now points to const.
10569
10570 * strerror.c (error_table): Now const.
10571 (init_error_tables): Variable eip now points to const.
10572
10573Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
10574
10575 * memchr.c (memchr): New (ANSI standard) function.
10576 * Makefile.in, functions.def: Added memchr.
10577 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10578
10579Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10580
10581 * getopt.c: remove use of USG around <alloca.h>, which never meant
10582 anything anyway
10583
10584 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10585 of USG and USGr4
10586
10587Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
10588
10589 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10590 it's now a type according to the ANSI X3J16 working paper; output
10591 "wchar_t" for it.
10592 (demangle_template): Accept `w' as an integral type.
10593 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
10594 counterparts malloc and realloc to `char *'.
10595 (main): Exit with a 0 status.
10596 * Makefile.in (demangle): Don't expect the user to define
10597 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
10598 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
10599
10600Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
10601
10602 * Makefile.in (AR_FLAGS): Avoid verbosity.
10603 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
10604 replace USGr4 with HAVE_SYSCONF.
10605 * config/mh-solaris: Remove; mh-sysv4 works now.
10606 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
10607 * configure.in: Simplify host matching table, remove separate
10608 solaris config file.
10609
10610Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10611
10612 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10613
10614Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
10615
10616 * cplus-dem.c (xmalloc, xrealloc): Add decls.
10617 (remember_type): Don't cast xmalloc.
10618 (string_need): Likewise; don't cast xrealloc either.
10619
10620Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
10621
10622 * Makefile.in, functions.defs, rename.c: added simple
10623 implementation of rename, since some binutils programs use it.
10624
10625Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
10626
10627 * strsignal.c: Add appropriate 'const' to sys_siglist
10628 extern declaration (if __STDC__). (Needed for Linux.)
10629 * strsignal.c (strsignal): Add cast to remove const-ness.
10630
10631Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
10632
10633 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
10634 before "'s, diagnosed by BSD 4.4 awk.
10635
10636Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
10637
10638 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
10639 and $(NEEDED_LIST), to give some hooks for xiberty.
10640
10641Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10642
10643 * configure.in: use cpu-vendor-triple instead of nested cases
10644
10645Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10646
10647 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
10648 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
10649 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
10650 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
10651 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
10652 Convert from using GPL to LGPL.
10653
10654Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
10655
10656 * Makefile.in (errors): Leave dummy.o and dummy around so that
10657 we can see how the needed list was generated (it's sometimes wrong).
10658 (mostlyclean): Remove them.
10659
10660Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
10661
10662 * getcwd.c: supply a default if MAXPATHLEN is not defined.
10663
10664 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
10665
10666Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
10667
10668 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
10669 when cross-compiling.
10670
10671Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
10672
10673 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
10674 as a time optimization.
10675
10676 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
10677 be more expensive than simply demangling.
10678
10679 * cplus-dem.c (cplus_match): new function.
10680
10681Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
10682
10683 * cplus-dem.c: #include <stdio.h>, to define NULL.
10684 Define current_demangling_style.
10685
10686Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
10687
10688 * cplus-dem.c: New file, moved from ../gdb.
10689 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
10690 function, to avoid compiling in target-dependency for CPLUS_MARKER.
10691 * cplus-dem.c (cplus_demangle): Allow demangling style option
10692 to be passed as a parameter, but using the global variable
10693 current_demangling_style as a default.
10694 * Makefile.in: Update for cplus-dem.c
10695
10696Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
10697
10698 * obstack.c: Merge in comment changes from FSF version. Now
10699 matches the FSF version exactly.
10700
10701Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
10702
10703 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
10704 least on losing DECstations!); use if-then-else instead.
10705
10706Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
10707
10708 * Makefile.in: always create installation directories.
10709
10710Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10711
f33a23a0 10712 * Makefile.in: clean up definition of CFILES, more comments
6599da04
JM
10713
10714Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
10715
10716 * getopt.c (my_index): Make first arg const to match strchr,
10717 which it sometimes is remapped to.
10718
10719Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
10720
10721 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
10722 * obstack.c (_obstack_begin): Initialize use_extra_arg.
10723 * obstack.c (_obstack_begin_1): New, from FSF version.
10724
10725Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
10726
10727 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
10728 extra_arg.
10729 * obstack.c (_obstack_begin): Remove area_id and flags arguments
10730 (previously added for mmalloc support, interface has changed).
10731 Also convert flags usage to use use_extra_arg and maybe_empty_object.
10732
10733Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
10734
10735 * argv.c: Move expandargv inline and eliminate static variables.
10736 Rewrite to always allocate in powers of two. Fix to return an
10737 argv with a single null string arg if passed a null string.
10738
10739Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
10740
10741 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
10742 "(void)" casts from function calls where the return value is
10743 ignored, in accordance with GNU coding standards.
10744
10745Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
10746
10747 * bcopy.c, strerror.c, strsignal.c: Lint.
10748
10749Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10750
10751 * getopt.c: merge changes from make.
10752
10753Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
10754
10755 * alloca.c: Incorporate fixes from gdb/alloca.c.
10756 FIXME: Eventually move gdb's alloca configuration files here,
10757 and remove gdb/alloca.c and its Makefile.in support.
10758
10759Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
10760
10761 * dummy.c: Define NOTHING to /*nothing*/, change return type
10762 of main to int and return zero.
10763 * functions.def: Supply NOTHING as the fourth arg to macros
10764 that don't have an explicit arg, to satisfy picky preprocessors.
10765
10766Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
10767
10768 * Makefile.in: Clean up *clean rules, as per standards.texi.
10769
10770Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10771
10772 * getopt.c, getopt1.c: merged largely gratuitous, mostly
10773 whitespace diffs from other prep distributions.
10774
10775Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
10776
10777 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
10778 it is broken on ncr 3000's.
10779
10780Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
10781
10782 * sigsetmask.c: Rewrite. Old one was very confused about its
10783 arguments and result. New one can't do much, but at least knows
10784 what it can't do, and it's good enough for GDB's use.
10785
10786Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
10787
10788 * functions.def: Use proper prototype for strtoul.
10789
10790Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
10791
10792 * Makefile.in: Add random.c.
10793 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
10794 * configure.in: update solaris2 config.
10795
10796Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
10797
10798 * random.c: Add for random() and srandom().
10799 * functions.def: Add random
10800
10801Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
10802
10803 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
10804 using /usr/ucb/install.
10805
10806Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
10807
10808 * strerror.c: Kludge to guard against a conflict with
10809 possible declaration of sys_errlist in errno.h.
10810
10811Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
10812
10813 * configure.in, config/mh-solaris: add solaris2 config support.
10814
10815Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
10816
10817 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
10818 is not defined (should be defined in signal.h, says Posix.).
10819
10820Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
10821
10822 * getopt.c: merged changes from make-3.62.11.
10823
10824Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
10825
10826 * getopt.c: merged changes from bison-1.18.
10827
10828Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
10829
10830 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
10831 since that introduces a circular dependency.
10832 ($(EXTRA_OFILES) are used to build config.h.)
10833
10834 * strtoul.c: Fixes to handle non-decimal bases better.
10835
10836Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
10837
10838 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
10839 * Makefile.dos: Finish MINUS_G eradication.
10840 * Makefile.in (CFILES): Add strsignal.c.
10841 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
10842 * Makefile.in (needed-list): Split creation of errors file to
10843 separate make target.
10844 * Makefile.in (config.h, needed2.awk, errors): New targets.
10845 * Makefile.in (clean): Split to multiple lines, add needed2.awk
10846 and config.h.
10847 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
10848 * functions.def (strerror): Remove from optional list.
10849 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
10850 * functions.def (strerror, psignal): DEFFUNC's
10851 * strerror.c: Rewrite from scratch to use sys_errlist only if
10852 available, add errno_max(), add strerrno(), add strtoerrno(),
10853 add test driver.
10854 * strsignal.c: New file, signal equivalent to strerror.c.
10855 Uses sys_siglist if available, defines signo_max(), strsignal(),
10856 strsigno(), strtosigno(), psignal(), and test driver.
10857
10858Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
10859
10860 * Makefile.in: do not print recursion line.
10861
10862 * Makefile.in: allow CFLAGS to be passed in from command line.
10863 Removed MINUS_G. Default CFLAGS to -g.
10864
10865Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
10866
10867 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
10868 so libg++ users don't have to be inconvenienced by a
10869 libc.a bug (libc.a needs copysign, but doesn't define it!).
10870 * configure.in: Use config/mh-aix.
10871 * strtoul.c: Handle '-' as required by ANSI.
10872 Clean up radix handling.
10873 * strstr.c: Fix buggy algorithm.
10874 * Makefile.in: Change so that ${EXTRA_OFILES} is
10875 appended to needed-list (which is used by libg++).
10876
10877Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
10878
10879 * configure.in: Recognize new ncr3000 config.
10880 * config/mh-ncr3000: New config file.
10881
10882Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
10883
10884 * argv.c, dummy.c: Lint.
10885
10886Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
10887
10888 * config/mh-sysv4: New config file.
10889 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
10890 host_os == sysv4.
10891 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
10892 pagesize.
10893
10894Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
10895
10896 * getopt.c: Lint.
10897
10898Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
10899
10900 * functions.def (alloca): Fix return type and args to avoid
10901 type clash with gcc's builtin alloca.
10902
10903Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
10904
10905 * configure.in, config/mh-irix4: irix4 support.
10906
10907 * Makefile.in, functions.def, alloca.c: added alloca.
10908
10909Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
10910
10911 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
10912
10913Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
10914
10915 * argv.c: Fix various external function definitions to be
10916 correct in an ANSI compilation environment.
10917
10918Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
10919
10920 * obstack.c: Changes to support calling mmalloc functions,
10921 which take an additional argument over malloc functions.
10922
10923Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
10924
10925 * added check target.
10926
10927Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
10928
10929 * argv.c: #include alloca-conf.h (needed by AIX).
10930
10931Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10932
10933 * Makefile.in, configure.in: removed traces of namesubdir,
10934 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10935 copyrights to '92, changed some from Cygnus to FSF.
10936
10937Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
10938
10939 * argv.c: Check in Fred's version which fixes problems with
10940 alloca().
10941
10942Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
10943
10944 * makefile.dos: Remove NUL to keep patch from failing.
10945
10946Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
10947
10948 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
10949
10950Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
10951
c4b9cfe0 10952 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
6599da04
JM
10953
10954Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
10955
10956 * argv.c: New file to build and destroy standard argument
10957 vectors from a command string.
10958
10959 * Makefile.in: Add argv.c and argv.o to appropriate macros.
10960
10961Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
10962
10963 * configure.in: Change svr4 references to sysv4.
10964
10965 * rindex.c: Declare return type of externally used function
10966 strrchr().
10967
10968Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
10969
10970 * Makefile.in: Remove "***" in normal output, since Make produces
10971 this on errors, and it's convenient to search for.
10972
10973Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
10974
10975 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
10976 New ANSI functions. The old non-ANSI functions (such as bcopy)
10977 should be avoided.
10978 * bcopy.c: Fix to correctly handle overlapping regions.
10979 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
10980 * functions.def: Add the new functions.
10981 * functions.def: Add 4th parameter to DEF macro,
10982 an ansidecl.h-style prototype.
10983 * dummy.c: Use expanded DEF macro to create a dummy function
10984 call, with correct parameter types. (This avoids some
10985 complaints from gcc about predefined builtins.)
10986
10987 Move the functionality of config/mh-default into Makefile.in.
10988 This avoid duplication, and simplifies things slightly.
10989 * Makefile.in: Tweak so we don't need config/mh-default.
10990 * README: Update.
10991 * configure.in: No longer need config/mh-default.
10992 * config/mh-default: Deleted.
10993 * config/mh-sysv: Remove lines copied from old mh-default.
10994
10995Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
10996
10997 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
10998 'mknod' device numbers.
10999
11000Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
11001
11002 * fdmatch.c, Makefile.in: Add new function that takes two
11003 open file descriptors and returns nonzero if they refer to
11004 the same file, zero otherwise. (used in gdb)
11005
11006Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11007 From DJ:
11008 * msdos.c: stub functions for dos.
11009 * makefile.dos, configdj.bat: new.
11010 * getopt.c: Don't include alloca-conf.h in a GO32 world.
38beb75c 11011
6599da04
JM
11012
11013Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11014
11015 * Makefile.in: infodir belongs in datadir.
11016
11017Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11018
11019 * Makefile.in: remove spaces following hyphens because bsd make
11020 can't cope. added standards.text support. install using
11021 INSTALL_DATA.
11022
11023 * configure.in: remove commontargets as it is no longer a
11024 recognized hook.
11025
11026Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11027
11028 * Makefile.in: idestdir and ddestdir go away. Added copyrights
11029 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11030 and mandir now keyed off datadir by default.
11031
11032Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
11033
11034 * Makefile.in: find-needed.awk does not fit in 14 chars.
11035
11036 * Makefile.in: Suppress error checking when compiling the test
11037 program, because Ultrix make/sh aborts there due to a bug.
11038
11039Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
11040
11041 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
11042 * README: Explained how the auto-configuration works,
11043 and how to add new files and/or configurations.
11044
11045Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
11046
11047 * strtoul.c: Avoid defining ULONG_MAX if already defined;
11048 cast a const char * to char * for pedants.
11049
11050 * getopt.c: Only define "const" after local include files get to,
11051 and only if they haven't defined it.
11052
11053Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
11054
11055 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
11056 emulate it with getwd() if available. This avoids callers having
11057 to find a MAXPATHLEN or PATH_MAX value from somewhere.
11058 * Makefile.in, functions.def: getwd->getcwd.
11059 * configure.in: Use generic case for every system.
11060 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
11061 * config/mh-sysv: Use default handling, just add -DUSG.
11062
11063Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
11064
11065 * Makefile.in, config/mh-default: Re-do make magic
11066 so that for the default ("automatic") mode we only
11067 compile the files we actually need. Do this using
11068 a recursive make: The top-level generates the list
11069 of needed files (loosely, the ones missing in libc),
11070 and then passes that list to the recursive make.
11071 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
11072
11073Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
11074
11075 RS/6000 host support (grumble).
11076
11077 * configure.in: Build alloca-conf.h file from alloca-norm.h
11078 (everything else) or alloca-botch.h (rs/6000).
11079 * Makefile.in: Include . on the include path.
11080 * getopt.c: Use alloca-conf.h.
11081 * alloca-norm.h: How to declare alloca on reasonable machines.
11082 * alloca-botch.h: How to declare alloca on braindead machines.
11083
11084Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
11085
11086 * concat.c : New file, like concat() in gdb but can take a
11087 variable number of arguments rather than fixed at 3 args. For
11088 now, client applications must supply an xmalloc(), which is a
11089 front end function to malloc() that deals with out-of-memory
11090 conditions.
11091
11092 * Makefile.in: Add concat.c and concat.o to appropriate macros.
11093
11094Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
11095
11096 * config/mh-svr4: Add sigsetmask to list of required functions.
11097
11098Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
11099
11100 * vsprintf.c: New file.
11101 * functions.def, Makefile.in: Add vsprintf.
11102
11103Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
11104
11105 * configure.in, config/mh-rs6000: Add rs/6000 host support.
11106 * Makefile.in: Compile with debug info.
11107
11108Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
11109
11110 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11111 config/mf-default: Added a default configuration mode,
11112 which includes into libiberty.a functions that are "missing" in libc.
11113 * strdup.c, vprintf.c, vfprintf.c: New files.
11114
11115Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
11116
11117 * config/hmake-svr4: New file.
11118
11119 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11120
11121 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11122 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11123 files containing either portable C versions or emulations using
11124 native library calls.
11125
11126 * strerror.c: Add copyright, internal documentation, etc.
11127
11128 * strtol.c: Replace hardwired hex constants with some more
11129 portable macros. Remove illegal (according to gcc) cast.
11130
11131 * strtoul.c: Replace hardwired hex constant with more portable
11132 macro.
11133
11134 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11135 can override them. Add new source and object file names to CFILES
11136 and OFILES respectively.
11137
11138 * configure.in: Add support for SVR4 makefile fragments.
11139
11140Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
11141
11142 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11143 over-ridden by config/hmake-*
11144 * configure.in: added m88kcvs to sysv list
11145
11146Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
11147
11148 * Makefile.in: Most hosts need strerror, but one or two don't,
11149 and they override these definitions in the host-dependent makefile
11150 fragment.
11151 * config/hmake-mach: The odd man out on strerror -- it's supplied.
11152 * strerror.c: New file.
11153
11154 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
11155 it and bfd uses it.
11156 * configure.in, Makefile.in, config/hmake-mach: Only configure
11157 strtol & strotoul in on Mach.
11158
11159Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
11160
11161 * obstack.c: Merge with latest FSF version.
11162
11163\f
11164Local Variables:
11165version-control: never
11166End: