]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
compiler: load LHS subexpressions of op= assignment only once
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
e8778989
GA
12022-05-10 Martin Liska <mliska@suse.cz>
2
3 * regex.c: Restore comments.
4
52022-05-10 Martin Liska <mliska@suse.cz>
6 Alan Modra <amodra@gmail.com>
7
8 * hashtab.c (htab_empty): Use void * type instead of void **.
9 (htab_expand): Likewise.
10
112022-05-10 Martin Liska <mliska@suse.cz>
12
13 * random.c: Remove 'define PTR'.
14
152022-05-10 Martin Liska <mliska@suse.cz>
16
17 * alloca.c (C_alloca): Use void * instead PTR.
18 * calloc.c (malloc): Likewise.
19 (bzero): Likewise.
20 (calloc): Likewise.
21 * hashtab.c (find_empty_slot_for_expand): Likewise.
22 (eq_pointer): Likewise.
23 (htab_create_alloc_ex): Likewise.
24 (htab_create_typed_alloc): Likewise.
25 (htab_set_functions_ex): Likewise.
26 (htab_delete): Likewise.
27 (htab_empty): Likewise.
28 (htab_expand): Likewise.
29 (htab_find_with_hash): Likewise.
30 (htab_find): Likewise.
31 (htab_find_slot_with_hash): Likewise.
32 (htab_find_slot): Likewise.
33 (htab_remove_elt): Likewise.
34 (htab_remove_elt_with_hash): Likewise.
35 (htab_clear_slot): Likewise.
36 (htab_traverse_noresize): Likewise.
37 (htab_traverse): Likewise.
38 (htab_hash_string): Likewise.
39 (iterative_hash): Likewise.
40 (hash_pointer): Likewise.
41 * memchr.c (memchr): Likewise.
42 * memcmp.c (memcmp): Likewise.
43 * memcpy.c (memcpy): Likewise.
44 * memmove.c (memmove): Likewise.
45 * mempcpy.c (memcpy): Likewise.
46 (mempcpy): Likewise.
47 * memset.c (memset): Likewise.
48 * objalloc.c (malloc): Likewise.
49 (free): Likewise.
50 (objalloc_create): Likewise.
51 (_objalloc_alloc): Likewise.
52 (objalloc_free_block): Likewise.
53 * random.c (PTR): Likewise.
54 (void): Likewise.
55 (initstate): Likewise.
56 (setstate): Likewise.
57 * regex.c: Likewise.
58 * spaces.c (malloc): Likewise.
59 (free): Likewise.
60 * stpcpy.c (memcpy): Likewise.
61 * strdup.c (malloc): Likewise.
62 (memcpy): Likewise.
63 * strerror.c (malloc): Likewise.
64 (memset): Likewise.
65 * strndup.c (malloc): Likewise.
66 (memcpy): Likewise.
67 * strsignal.c (malloc): Likewise.
68 (memset): Likewise.
69 * vasprintf.c (malloc): Likewise.
70 * vprintf-support.c: Likewise.
71 * xatexit.c (malloc): Likewise.
72 * xmalloc.c (xmalloc): Likewise.
73 (xcalloc): Likewise.
74 (xrealloc): Likewise.
75 * xmemdup.c (xmemdup): Likewise.
76
d7f00da1
GA
772022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
78
79 * floatformat.c (floatformat_ieee_quad_big): Renamed from
80 floatformat_ia64_quad_big.
81 (floatformat_ieee_quad_little): Similarly.
82
2cfb33fc
GA
832022-02-22 Jakub Jelinek <jakub@redhat.com>
84
85 PR lto/104617
86 * simple-object-elf.c (simple_object_elf_match): Fix up URL
87 in comment.
88 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
89 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
90 range (inclusive).
91
0bdb0498
GA
922022-02-17 Mark Wielaard <mark@klomp.org>
93
94 * rust-demangle.c (rust_demangle_callback): Ignore everything
95 after '.' char in sym for v0. For legacy symbols search
96 backwards to find the last 'E' before any '.'.
97 * testsuite/rust-demangle-expected: Add new .suffix testcases.
98
1bb52662
GA
992022-01-31 Nick Clifton <nickc@redhat.com>
100
101 PR demangler/98886
102 PR demangler/99935
103 * rust-demangle.c (struct rust_demangler): Add a recursion
104 counter.
105 (demangle_path): Increment/decrement the recursion counter upon
106 entry and exit. Fail if the counter exceeds a fixed limit.
107 (demangle_type): Likewise.
108 (rust_demangle_callback): Initialise the recursion counter,
109 disabling if requested by the option flags.
110
9248ee41
GA
1112022-01-15 Martin Sebor <msebor@redhat.com>
112
113 * regex.c: Suppress -Wuse-after-free.
114
84790a9d
GA
1152021-12-30 Lancelot SIX <lsix@lancelotsix.com>
116
117 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
118 names.
119 * testsuite/demangle-expected: Check demangling of clone symbols
120 with digits in name.
121
774269aa
GA
1222021-12-16 H.J. Lu <hjl.tools@gmail.com>
123
124 Revert:
125 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
126
127 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
128 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
129 (configure_deps): Depend on ../config/gcc-plugin.m4.
130 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
131 RANLIB_PLUGIN_OPTION.
132 * aclocal.m4: Regenerated.
133 * configure: Likewise.
134
8a89c39b
GA
1352021-12-15 H.J. Lu <hjl.tools@gmail.com>
136
137 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
138 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
139 (configure_deps): Depend on ../config/gcc-plugin.m4.
140 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
141 RANLIB_PLUGIN_OPTION.
142 * aclocal.m4: Regenerated.
143 * configure: Likewise.
144
87cd82c8
GA
1452021-11-29 Eric Gallager <egallager@gcc.gnu.org>
146
147 PR other/103021
148 * Makefile.in: Use ETAGS variable in TAGS target.
149 * configure: Regenerate.
150 * configure.ac: Allow ETAGS variable to be overridden.
151
1522021-11-29 Andrew Pinski <apinski@marvell.com>
153
154 * make-temp-file.c (try_dir): Check to see if the dir
155 is actually a directory.
156
c2bd5d8a
GA
1572021-10-22 Eric Gallager <egallager@gcc.gnu.org>
158
159 PR other/102663
160 * Makefile.in: Allow dvi-formatted documentation
161 to be installed.
162
f5b37435
GA
1632021-10-17 Luís Ferreira <contact@lsferreira.net>
164
165 PR d/102618
166 * d-demangle.c (dlang_parse_qualified): Handle anonymous
167 symbols correctly.
168 * testsuite/d-demangle-expected: New tests to cover anonymous
169 symbols.
170
5d5885c9
GA
1712021-10-14 Luís Ferreira <contact@lsferreira.net>
172
173 * testsuite/d-demangle-expected: Add test case for function literals.
174
1752021-10-14 Luís Ferreira <contact@lsferreira.net>
176
177 * testsuite/d-demangle-expected: Add test cases for simple special
178 mangles.
179
52055987
GA
1802021-10-12 Luís Ferreira <contact@lsferreira.net>
181
182 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
183 around lhs and rhs of assignments.
184
9d116bcc
GA
1852021-10-01 Luís Ferreira <contact@lsferreira.net>
186
187 * testsuite/d-demangle-expected: Add missing format for new test
188
391b23e0
GA
1892021-09-23 Luís Ferreira <contact@lsferreira.net>
190
191 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
192 * testsuite/d-demangle-expected: New test.
193
1942021-09-23 Luís Ferreira <contact@lsferreira.net>
195
196 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
197 string is less than length computed by dlang_number.
198
e11c6046
GA
1992021-09-01 Iain Sandoe <iain@sandoe.co.uk>
200
201 * configure: Regenerate.
202 * configure.ac: Do not search for sbrk on Darwin.
203 * xmalloc.c: Do not declare sbrk unless it has been found
204 by configure.
205
1e77fd4f
GA
2062021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
207
208 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
209 * testsuite/d-demangle-expected: Add tests.
210
2112021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
212
213 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
214 (dlang_parse_assocarray): Likewise.
215 (dlang_parse_structlit): Likewise.
216 (dlang_value): Likewise. Handle function literal symbols.
217 (dlang_template_args): Pass 'info' to dlang_value.
218 * testsuite/d-demangle-expected: Add new test.
219
2202021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
221
222 * d-demangle.c (dlang_attributes): Handle typeof(*null).
223 (dlang_type): Likewise. Demangle 'n' as typeof(null).
224 * testsuite/d-demangle-expected: Update tests.
225
38b19c5b
GA
2262021-08-23 Iain Sandoe <iain@sandoe.co.uk>
227
228 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
229 Cast the first argument to set_32 as needed.
230
6e529985
GA
2312021-08-18 Iain Sandoe <iain@sandoe.co.uk>
232
233 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
234 Arrange to swap the LTO index tables where needed.
235
25b6bfea
GA
2362021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
237
238 * make-temp-file.c (usrtmp): Remove.
239 (choose_tmpdir): Remove use of usrtmp.
240
c8abc205
GA
2412021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
242
243 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
244
2452021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
246 David Faust <david.faust@oracle.com>
247 Jose E. Marchesi <jose.marchesi@oracle.com>
248 Weimin Pan <weimin.pan@oracle.com>
249
250 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
251 sections.
252
28c62475
GA
2532021-06-05 John David Anglin <danglin@gcc.gnu.org>
254
255 PR target/100734
256 * configure.ac: Use libiberty snprintf and vsnprintf on
257 hppa*-*-hpux*.
258 * configure: Regenerate.
259
cfe82a0c
GA
2602021-05-06 Tom Tromey <tom@tromey.com>
261
262 * hashtab.c (htab_eq_string): New function.
263
99e8df7a
GA
2642021-05-04 Eric Botcazou <ebotcazou@adacore.com>
265
266 * configure.ac: Make test for variables more robust.
267 * configure: Regenerate.
268
e690396d
GA
2692021-05-03 H.J. Lu <hjl.tools@gmail.com>
270
271 PR bootstrap/99703
272 * configure: Regenerated.
273
c1ef0c92
GA
2742021-04-21 Andreas Schwab <schwab@linux-m68k.org>
275
276 PR demangler/100177
277 * rust-demangle.c (demangle_const_char): Properly print the
278 character value.
279
95d217ab
GA
2802021-03-31 Patrick Palka <ppalka@redhat.com>
281
282 PR c++/88115
283 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
284 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
285 (d_print_comp_inner): Likewise.
286 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
287 change.
288 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
289 * testsuite/demangle-expected: Adjust __alignof__ tests.
290
bc212776
GA
2912021-03-16 Nick Clifton <nickc@redhat.com>
292
293 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
294
b2a55caf
GA
2952021-02-20 Mike Frysinger <vapier@gentoo.org>
296
297 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
298 (configure_deps): Rename to ...
299 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
300 ($(srcdir)/configure): Replace $(configure_deps) with
301 $(srcdir)/aclocal.m4.
302 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
303 * acinclude.m4: New file.
304 * configure: Regenerate.
305
50352c6c
GA
3062021-02-19 Ayush Mittal <ayush.m@samsung.com>
307
308 * argv.c (expandargv): free allocated buffer if read fails.
309
f7884fb1
GA
3102021-02-01 Martin Sebor <msebor@redhat.com>
311
312 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
313 to avoid -Wstringop-truncation.
314
7e73f511
GA
3152021-01-04 Martin Liska <mliska@suse.cz>
316
317 * strverscmp.c: Convert to utf8 from iso8859.
318
077fefbf
GA
3192020-12-22 Jason Merrill <jason@redhat.com>
320
321 PR c++/67343
322 * cp-demangle.h (struct d_info): Add unresolved_name_state.
323 * cp-demangle.c (d_prefix): Add subst parm.
324 (d_nested_name): Pass it.
325 (d_unresolved_name): Split out from...
326 (d_expression_1): ...here.
327 (d_demangle_callback): Maybe retry with old sr mangling.
328 * testsuite/demangle-expected: Add test.
329
1a5e728a
GA
3302020-12-21 Jason Merrill <jason@redhat.com>
331
332 * cp-demangle.c (d_expression_1): Recognize qualified-id
333 on RHS of dt/pt.
334 * testsuite/demangle-expected: Add test.
335
3362020-12-21 Jason Merrill <jason@redhat.com>
337
338 * cp-demangle.c (d_unqualified_name): Clear is_expression.
339 * testsuite/demangle-expected: Add tests.
340
360258da
GA
3412020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
342
343 * configure: Regenerate.
344 * configure.ac: Avoid using sanitizer.
345
77f67db2
GA
3462020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
347
348 * rust-demangle.c (struct rust_demangler): Add
349 skipping_printing and bound_lifetime_depth fields.
350 (eat): Add (v0-only).
351 (parse_integer_62): Add (v0-only).
352 (parse_opt_integer_62): Add (v0-only).
353 (parse_disambiguator): Add (v0-only).
354 (struct rust_mangled_ident): Add punycode{,_len} fields.
355 (parse_ident): Support v0 identifiers.
356 (print_str): Respect skipping_printing.
357 (print_uint64): Add (v0-only).
358 (print_uint64_hex): Add (v0-only).
359 (print_ident): Respect skipping_printing,
360 Support v0 identifiers.
361 (print_lifetime_from_index): Add (v0-only).
362 (demangle_binder): Add (v0-only).
363 (demangle_path): Add (v0-only).
364 (demangle_generic_arg): Add (v0-only).
365 (demangle_type): Add (v0-only).
366 (demangle_path_maybe_open_generics): Add (v0-only).
367 (demangle_dyn_trait): Add (v0-only).
368 (demangle_const): Add (v0-only).
369 (demangle_const_uint): Add (v0-only).
370 (basic_type): Add (v0-only).
371 (rust_demangle_callback): Support v0 symbols.
372 * testsuite/rust-demangle-expected: Add v0 testcases.
373
3742020-11-13 Seija Kijin <doremylover456@gmail.com>
375
376 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
377
0f5f9ed5
GA
3782020-11-11 Patrick Palka <ppalka@redhat.com>
379
380 PR c++/88115
381 * cp-demangle.c (d_print_comp_inner)
382 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
383 "operator " prefix for __alignof__.
384 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
385 operand of __alignof__.
386 * testsuite/demangle-expected: Test demangling for __alignof__.
387
2bee28dd
GA
3882020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
389
390 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
391
8e97b905
GA
3922020-10-06 Martin Liska <mliska@suse.cz>
393
394 PR lto/97290
395 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
396 Use sh_link of a .symtab_shndx section.
397
a2b7397b
GA
3982020-09-24 Mark Wielaard <mark@klomp.org>
399
400 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
401 and DW_UT_END.
402
31a05046
GA
4032020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
404
405 * floatformat.c (floatformat_bfloat16_big): New.
406 (floatformat_bfloat16_little): New.
407
4082020-09-08 Alan Modra <amodra@gmail.com>
409
410 * d-demangle.c: Include limits.h.
411 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
412 (dlang_number): Simplify and correct overflow test. Only
413 write *ret on returning non-NULL. Make "ret" an unsigned long*.
414 Only succeed for result of [0,UINT_MAX].
415 (dlang_decode_backref): Simplify and correct overflow test.
416 Only write *ret on returning non-NULL. Only succeed for
417 result [1,MAX_LONG].
418 (dlang_backref): Remove now unnecessary range check.
419 (dlang_symbol_name_p): Likewise.
420 (string_need): Take a size_t n arg, and use size_t tem.
421 (string_append): Use size_t n.
422 (string_appendn, string_prependn): Take a size_t n arg.
423 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
424 (dlang_lname, dlang_parse_template): Take an unsigned long len
425 arg.
426 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
427 (dlang_parse_integer, dlang_parse_string),
428 (dlang_parse_arrayliteral, dlang_parse_assocarray),
429 (dlang_parse_structlit, dlang_parse_tuple),
430 (dlang_template_symbol_param, dlang_template_args): Use
431 unsigned long variables.
432 * testsuite/d-demangle-expected: Add new tests.
433
57ea0894
GA
4342020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
435
436 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
437 parameter storage classes.
438 (dlang_type): Remove identifier type.
439 * testsuite/d-demangle-expected: Update tests.
440
6a1ad710
GA
4412020-08-03 Richard Biener <rguenther@suse.de>
442
443 PR lto/96385
444 * simple-object-elf.c
445 (simple_object_elf_copy_lto_debug_sections): Localize global
446 UNDEFs and reuse the prevailing name.
447
d48cca8f
GA
4482020-07-30 H.J. Lu <hjl.tools@gmail.com>
449
450 PR bootstrap/96202
451 * configure: Regenerated.
452
8ca07a30
GA
4532020-07-14 Ian Lance Taylor <iant@golang.org>
454
455 PR demangler/96143
456 * cp-demangle.c (d_lambda): Don't add substitution candidate.
457 * testsuite/demangle-expected: Update a few existing test cases
458 accordingly, and add a new test case.
459
86536295
GA
4602020-07-10 Jason Merrill <jason@redhat.com>
461
462 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
463 (d_expression_1): Handle di and dX.
464 (is_designated_init, d_maybe_print_designated_init): New.
465 (d_print_comp_inner): Use d_maybe_print_designated_init.
466 * testsuite/demangle-expected: Add designator tests.
467
c9c05f73
GA
4682020-06-26 Nick Clifton <nickc@redhat.com>
469
470 * bsearch.c (bsearch): Remove use of register keyword.
471 * bsearch_r.c (bsearch_r): Likewise.
472
4543acc8
GA
4732020-06-23 Nick Alcock <nick.alcock@oracle.com>
474
475 * bsearch_r.c: New file.
476 * Makefile.in (CFILES): Add bsearch_r.c.
477 (REQUIRED_OFILES): Add bsearch_r.o.
478 * functions.texi: Regenerate.
479
885ef72f
GA
4802020-05-29 H.J. Lu <hjl.tools@gmail.com>
481
482 PR bootstrap/95413
483 * configure: Regenerated.
484
3a55774f
IB
4852020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
486
487 * d-demangle.c (dlang_attributes): Add @live attribute.
488 * testsuite/d-demangle-expected: Add new tests.
489
3f30a274
IB
4902020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
491 Iain Buclaw <ibuclaw@gdcproject.org>
492
493 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
494 (struct dlang_info): New struct
495 (dlang_decode_backref): New function.
496 (dlang_backref): New function.
497 (dlang_symbol_backref): New function.
498 (dlang_type_backref): New function.
499 (dlang_symbol_name_p): New function.
500 (dlang_function_type_noreturn): New function.
501 (dlang_function_type): Add 'info' parameter. Decode function type
502 with dlang_function_type_noreturn.
503 (dlang_function_args): Add 'info' parameter.
504 (dlang_type): Add 'info' parameter. Handle back referenced types.
505 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
506 referenced symbols. Split off decoding of plain identifiers to...
507 (dlang_lname): ...here.
508 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
509 function type and return with dlang_type.
510 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
511 'suffix_modifier' parameter. Decode function type with
512 dlang_function_type_noreturn.
513 (dlang_parse_tuple): Add 'info' parameter.
514 (dlang_template_symbol_param): New function.
515 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
516 with dlang_template_symbol_param. Handle back referenced values, and
517 externally mangled parameters.
518 (dlang_parse_template): Add 'info' parameter.
519 (dlang_demangle_init_info): New function.
520 (dlang_demangle): Initialize and pass 'info' parameter.
521 * testsuite/d-demangle-expected: Add new tests.
522
d17cdc17
L
5232020-05-12 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR bootstrap/94998
526 * configure: Regenerated.
527
eedc73a2
L
5282020-04-28 H.J. Lu <hongjiu.lu@intel.com>
529
530 PR bootstrap/94739
531 * configure: Regenerated.
532
76458c91
JJ
5332020-04-27 Jakub Jelinek <jakub@redhat.com>
534
535 PR demangler/94797
536 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
537 * testsuite/demangle-expected: Add operator<=> test.
538
8fc8bf80
L
5392020-04-25 H.J. Lu <hongjiu.lu@intel.com>
540
541 PR bootstrap/94739
542 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
543 (configure_deps): Add $(srcdir)/../config/cet.m4 and
544 $(srcdir)/../config/enable.m4.
545 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
546 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
547 AC_SUBST(CET_HOST_FLAGS).
548 * configure: Regenerated.
549
c9f90a25
RB
5502020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
551
552 * simple-object.c (handle_lto_debug_sections): Name
553 ".GCC.command.line" among debug sections to be copied over
554 from lto objects.
555
3bb6abbf
NC
5562020-03-02 Nick Clifton <nickc@redhat.com>
557
558 * testsuite/demangle-expected: Update expected demangling of
559 enable_if pattern.
560
57735060
L
5612020-03-02 H.J. Lu <hongjiu.lu@intel.com>
562
563 PR lto/93966
564 * simple-object.c (handle_lto_debug_sections): Also copy
565 .note.gnu.property section.
566
02ce382c
SL
5672020-02-12 Sandra Loosemore <sandra@codesourcery.com>
568
569 PR libstdc++/79193
570 PR libstdc++/88999
571
572 * configure: Regenerated.
573
5f44a434
AB
5742020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
575
576 * hashtab.c (htab_remove_elt): Make a parameter const.
577 (htab_remove_elt_with_hash): Likewise.
578
18193e8f
AO
5792020-01-23 Alexandre Oliva <oliva@adacore.com>
580
581 * argv.c (writeargv): Output empty args as "".
582
8d9254fc
JJ
5832020-01-01 Jakub Jelinek <jakub@redhat.com>
584
585 Update copyright years.
586
1cd4fe3d
TR
5872019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
588
589 * make-relative-prefix.c (split_directories):
590 Return early on empty 'name'
591
513e0aa0
JL
5922019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
593
594 * cp-demangle.c (d_print_init): Remove const from 4th param.
595 (cplus_demangle_fill_name): Initialize d->d_counting.
596 (cplus_demangle_fill_extended_operator): Likewise.
597 (cplus_demangle_fill_ctor): Likewise.
598 (cplus_demangle_fill_dtor): Likewise.
599 (d_make_empty): Likewise.
600 (d_count_templates_scopes): Remobe const from 3rd param,
601 Return on dc->d_counting > 1,
602 Increment dc->d_counting.
603 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
604 (cplus_demangle_fill_builtin_type): Likewise.
605 (cplus_demangle_fill_operator): Likewise.
606
6072019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
32fc3719
EMB
608
609 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
610 (rust_demangle): Remove.
611 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
612 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
613 (parse_legacy_escape): Rename to decode_legacy_escape.
614 (rust_is_mangled): Remove.
615 (struct rust_demangler): Add.
616 (peek): Add.
617 (next): Add.
618 (struct rust_mangled_ident): Add.
619 (parse_ident): Add.
620 (rust_demangle_sym): Remove.
621 (print_str): Add.
622 (PRINT): Add.
623 (print_ident): Add.
624 (rust_demangle_callback): Add.
625 (struct str_buf): Add.
626 (str_buf_reserve): Add.
627 (str_buf_append): Add.
628 (str_buf_demangle_callback): Add.
629 (rust_demangle): Add.
630 * rust-demangle.h: Remove.
631
f73cb38f
MS
6322019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
633
634 * testsuite/demangle-expected: Fix test.
635
e0c866dd
KK
6362019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
637
638 * cp-demangle.c (d_expr_primary): Handle
639 nullptr demangling.
640 * testsuite/demangle-expected: Added test.
641
1c40e119
PP
6422019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
643
644 * cp-demangle.c (d_number): Avoid signed int overflow.
645
420fb10c
MS
6462019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
647
648 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
649 and `imaginary`, as opposed to after.
650 * testsuite/demangle-expected: Adjust test.
651
e1cb00db
EMB
6522019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
653
654 * rust-demangle.c (looks_like_rust): Remove.
655 (rust_is_mangled): Don't check escapes.
656 (is_prefixed_hash): Allow 0-9a-f permutations.
657 (rust_demangle_sym): Don't bail on unknown escapes.
658 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
659
42bf58bb
EMB
6602019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
661
662 * rust-demangle.c (unescape): Remove.
663 (parse_lower_hex_nibble): New function.
664 (parse_legacy_escape): New function.
665 (is_prefixed_hash): Use parse_lower_hex_nibble.
666 (looks_like_rust): Use parse_legacy_escape.
667 (rust_demangle_sym): Use parse_legacy_escape.
668 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
669
d23db385
ML
6702019-08-27 Martin Liska <mliska@suse.cz>
671
672 PR lto/91478
673 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
674 First find a WEAK HIDDEN symbol in symbol table that will be
675 preserved. Later, use the symbol name for all removed symbols.
676
8f88e7f6
ML
6772019-08-12 Martin Liska <mliska@suse.cz>
678
679 * Makefile.in: Add filedescriptor.c.
680 * filedescriptor.c: New file.
681 * lrealpath.c (is_valid_fd): Remove.
682
0fddb184
ML
6832019-08-08 Martin Liska <mliska@suse.cz>
684
685 PR bootstrap/91352
686 * lrealpath.c (is_valid_fd): New function.
687
70121844
ML
6882019-07-24 Martin Liska <mliska@suse.cz>
689
690 PR lto/91228
691 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
692 Find first '\0' starting from gnu_lto + 1.
693
b1bc0f50
RK
6942019-07-12 Ren Kimura <rkx1209dev@gmail.com>
695
696 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
697 This fixes a Bug 90924.
698
a861990d
ML
6992019-07-22 Martin Liska <mliska@suse.cz>
700
701 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
702 Do not search for gnu_lto_v1, but search for first '\0'.
703
979526c9
EMB
7042019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
705
706 * cplus-dem.c: Include rust-demangle.h.
707 * rust-demangle.c: Include rust-demangle.h.
708 * rust-demangle.h: New file.
709
2a1c064a
MF
7102019-05-31 Michael Forney <mforney@mforney.org>
711
712 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
713 is non-zero.
714
927e42fd
B
7152019-04-30 Ben L <bobsayshilol@live.co.uk>
716
6c8dbbfe
B
717 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
718 * testsuite/d-demangle-expected: Add testcase.
719
f181b8e7
B
720 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
721 * testsuite/d-demangle-expected: Add testcase.
722
dba20a51
B
723 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
724 * testsuite/d-demangle-expected: Add testcase.
725
80b1ab15
B
726 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
727 * testsuite/d-demangle-expected: Add testcase.
728
81adfd10
B
729 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
730 * testsuite/d-demangle-expected: Add testcase.
731
80024f31
B
732 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
733 * testsuite/demangle-expected: Add testcase.
734
927e42fd
B
735 * cp-demangle.c (d_encoding): Guard against NULL return values from
736 d_right (dc).
737 * testsuite/demangle-expected: Add testcase.
738
956bea2c
B
7392019-04-29 Ben L <bobsayshilol@live.co.uk>
740
741 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
742 char is valid.
743 * testsuite/demangle-expected: Add testcase.
744
6fe6bd7c
NC
7452019-04-10 Nick Clifton <nickc@redhat.com>
746
747 PR 89394
748 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
749 lengths.
750 (d_count_templates_scopes): Replace num_templates and num_scopes
751 parameters with a struct d_print_info pointer parameter. Adjust
752 body of the function accordingly. Add recursion counter and check
753 that the recursion limit is not reached.
754 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
755 Reset recursion counter afterwards, unless the recursion limit was
756 reached.
757
6d31ef2a
AM
7582019-04-07 Alan Modra <amodra@gmail.com>
759
760 * functions.texi: Regenerate.
761
62de703f
JM
7622019-03-14 Jason Merrill <jason@redhat.com>
763 Jakub Jelinek <jakub@redhat.com>
764
765 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
766 than if *slot is HTAB_EMPTY_ENTRY.
767
f9f75f8d
PW
7682019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
769
770 * splay-tree.c (splay_tree_insert): Also release old KEY in case
771 of insertion of a key equal to an already present key.
772 (splay_tree_new_typed_alloc): Update comment.
773
4293cd6e
NF
7742019-01-22 Nidal Faour <nidal.faour@wdc.com>
775
776 PR lto/88422
777 * simple-object.c (O_BINARY): Define if not already defined.
778 (simple_object_copy_lto_debug_sections): Create file in binary
779 mode.
780
2197ea17
TT
7812019-01-21 Tom Tromey <tom@tromey.com>
782
783 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
784
2d91f79d
TH
7852019-01-14 Tom Honermann <tom@honermann.net>
786
787 * cp-demangle.c (cplus_demangle_builtin_types)
788 (cplus_demangle_type): Add name demangling for char8_t (Du).
789 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
790 new char8_t type.
791
adcb167e
SL
7922019-01-09 Sandra Loosemore <sandra@codesourcery.com>
793
794 PR other/16615
795
796 * cp-demangle.c: Mechanically replace "can not" with "cannot".
797 * floatformat.c: Likewise.
798 * strerror.c: Likewise.
799
a5544970
JJ
8002019-01-01 Jakub Jelinek <jakub@redhat.com>
801
802 Update copyright years.
803
6c8120c5
JM
8042018-12-22 Jason Merrill <jason@redhat.com>
805
806 Remove support for demangling GCC 2.x era mangling schemes.
807 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
808 internal_cplus_demangle, and all subroutines.
809 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
810 Lucid, ARM, HP, and EDG demangling styles.
811 (cplus_demangle): Remove 'work' variable. Don't call
812 internal_cplus_demangle.
813
e96d1d8c
NC
8142018-12-07 Nick Clifton <nickc@redhat.com>
815
816 PR 87681
817 PR 87675
818 PR 87636
819 PR 87350
820 PR 87335
821 * cp-demangle.h (struct d_info): Add recursion_level field.
822 * cp-demangle.c (d_function_type): Add recursion counter.
823 If the recursion limit is reached and the check is not disabled,
824 then return with a failure result.
825 (cplus_demangle_init_info): Initialise the recursion_level field.
826 (d_demangle_callback): If the recursion limit is enabled, check
827 for a mangled string that is so long that there is not enough
828 stack space for the local arrays.
829 * cplus-dem.c (struct work): Add recursion_level field.
830 (squangle_mop_up): Set the numb and numk fields to zero.
831 (work_stuff_copy_to_from): Handle the case where a btypevec or
832 ktypevec field is NULL.
833 (demangle_nested_args): Add recursion counter. If
834 the recursion limit is not disabled and reached, return with a
835 failure result.
836
4be5c72c
JM
8372018-10-23 Jason Merrill <jason@redhat.com>
838
839 Implement P0732R2, class types in non-type template parameters.
840 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
841 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
842 (d_special_name): Handle TA.
843 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
844
22e05272
JM
8452018-10-31 Joseph Myers <joseph@codesourcery.com>
846
847 PR bootstrap/82856
848 Merge from binutils-gdb:
849 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
850
851 * configure.ac: Remove AC_PREREQ.
852 * configure: Re-generate.
853 * config.in: Re-generate.
854
df1346b4
NS
8552018-10-01 Nathan Sidwell <nathan@acm.org>
856
857 * configure.ac (checkfuncs): Add pipe2.
858 * config.in, configure: Rebuilt.
859 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
860 to parent with a pipe, when possible.
861
832c74d9
NS
8622018-08-23 Nathan Sidwell <nathan@acm.org>
863 Martin Liska <mliska@suse.cz>
864
865 PR driver/87056
866 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
867 scopes to avoid potential clobber.
868
5c12a855
NS
8692018-08-20 Nathan Sidwell <nathan@acm.org>
870
871 * pex-unix.c (pex_child_error): Delete.
872 (pex_unix_exec_child): Commonize error paths to single message &
873 exit.
874
6ef4752b
TT
8752018-07-30 Tom Tromey <tom@tromey.com>
876
877 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
878
c00c9d03
ML
8792018-07-26 Martin Liska <mliska@suse.cz>
880
92a285c1 881 PR lto/86548
c00c9d03
ML
882 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
883 (make_temp_file): Call make_temp_file_with_prefix with
92a285c1 884 first argument set to NULL.
c00c9d03
ML
885 (make_temp_file_with_prefix): Support also prefix.
886
30ae6662
EZ
8872018-07-19 Eli Zaretskii <eliz@gnu.org>
888
889 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
890 to ENOSYS.
891
7ce4ce10
JH
8922018-05-30 Jan Hubicka <hubicka@ucw.cz>
893
7ce4ce10
JH
894 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
895 (handle_lto_debug_sections_rename): New function.
896 (handle_lto_debug_sections_norename): New function.
897 (simple_object_copy_lto_debug_sections): Add rename parameter.
898
b0c31bc6
BE
8992018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
900
901 * splay-tree.c (splay_tree_compare_strings,
902 splay_tree_delete_pointers): New utility functions.
903
84ec5aea
ML
9042018-05-10 Martin Liska <mliska@suse.cz>
905
906 PR bootstrap/64914
907 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
908
d6df811e
DG
9092018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
910
911 * argv.c (expandargv): Fix memory leak for copied argv.
912
6888a172
RO
9132018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
914
915 PR lto/81968
916 * simple-object.c (handle_lto_debug_sections): Keep .comment
917 section.
918
b2353e59
DM
9192018-03-02 David Malcolm <dmalcolm@redhat.com>
920
921 * cp-demangle.c: Update URL for g++ V3 ABI.
922
c6bff8ad
EZ
9232018-01-20 Eli Zaretskii <eliz@gnu.org>
924
925 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
926 ulong_type to avoid warning about 32-bit shift.
927
bf6f2cc7
RB
9282018-01-11 Richard Biener <rguenther@suse.de>
929 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
930
931 PR lto/81968
932 * simple-object-common.h (struct simple_object_functions):
933 Change copy_lto_debug_sections callback signature.
934 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
935 SHF_INFO_LINK): Add defines.
936 (simple_object_elf_copy_lto_debug_sections): Instead of
937 leaving not to be copied sections empty unnamed SHT_NULL
938 remove them from the target section headers and adjust section
939 reference everywhere. Handle SHN_XINDEX in the symbol table
940 processing properly.
941 * simple-object.c (handle_lto_debug_sections): Change
942 interface to return a modified string and handle renaming
943 of relocation sections.
944
3ec62f54
DG
9452018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
946
947 * argv.c (expandargv): Correct check for dynamically
948 allocated argv.
949
85ec4feb
JJ
9502018-01-03 Jakub Jelinek <jakub@redhat.com>
951
952 Update copyright years.
953
c1177db4
RB
9542017-01-02 Richard Biener <rguenther@suse.de>
955
956 PR lto/83452
957 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
958 Do not use UNDEF locals for removed symbols but instead just
959 define them in the first prevailing section and with no name.
960 Use the same gnu_lto_v1 name for all removed globals we promote to
961 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
962 sh_info and sh_link in removed sections.
963
bfe6f076
RB
9642017-10-30 Richard Biener <rguenther@suse.de>
965
966 PR lto/82757
967 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
968 Strip two leading _s from the __gnu_lto_* symbols.
969
160826fe
AM
9702017-10-24 Alan Modra <amodra@gmail.com>
971
972 PR lto/82687
973 PR lto/82575
974 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
975 Only make __gnu_lto symbols hidden.
976
ebd208bf
AM
9772017-10-20 Alan Modra <amodra@gmail.com>
978
979 PR lto/82575
980 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
981 Make discarded non-local symbols weak and hidden.
982
f8049c44
JJ
9832017-10-18 Jakub Jelinek <jakub@redhat.com>
984
985 PR lto/82598
986 * simple-object.c (handle_lto_debug_sections): Copy over also
987 .note.GNU-stack section with unchanged name.
988 * simple-object-elf.c (SHF_EXECINSTR): Define.
989 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
990 on .note.GNU-stack section.
991
68aac47f
NS
9922017-09-25 Nathan Sidwell <nathan@acm.org>
993
994 PR demangler/82195
995 * cp-demangle.c (d_encoding): Strip return type when name is a
996 LOCAL_NAME.
997 (d_local_name): Strip return type of enclosing TYPED_NAME.
998 * testsuite/demangle-expected: Add and adjust tests.
999
7cd7dbda
NS
10002017-09-21 Nathan Sidwell <nathan@acm.org>
1001
1002 PR demangler/82195
1003 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1004 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1005 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1006 to strip modifiers that do not belong.
1007 (d_special_name, d_class_enum_type): Revert d_name call change.
1008 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1009 (d_local_name): Revert parsing of a function type.
1010 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1011 TEMPLATE.
1012 * testsuite/demangle-expected: Add & adjust tests
1013
fa0cdfb6
NS
10142017-09-15 Nathan Sidwell <nathan@acm.org>
1015
1016 PR demangler/82195
1017 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1018 (d_local_name): ... here. Parse trailing function args on nested
1019 local_name.
1020 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1021 * testsuite/demangle-expected: Add tests.
1022
dc4b8c68
RB
10232017-09-15 Richard Biener <rguenther@suse.de>
1024
1025 PR lto/81968
1026 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1027 Iterate marking dependent sections necessary.
1028
9d89efeb
NS
10292017-09-15 Nathan Sidwell <nathan@acm.org>
1030
1031 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1032 FNQUAL_COMPONENT_CASE.
1033 (d_encoding): Hold bare_function_type in local var.
1034 (d_local_name): Build name in both cases and build result once.
1035 Collapse switch-if to single conditional.
fa0cdfb6
NS
1036 (d_local_name):
1037
9d89efeb
NS
1038 * testsuite/demangle-expected: Realign blank lines with tests.
1039
ff971abe
JW
10402017-09-12 Jiong Wang <jiong.wang@arm.com>
1041
1042 * dwarfnames.c (DW_CFA_DUP): New define.
1043
39baa1d3
ML
10442017-09-01 Martin Liska <mliska@suse.cz>
1045
1046 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1047 Remove duplicite declaration.
1048
a621861e
RB
10492017-08-31 Richard Biener <rguenther@suse.de>
1050
1051 PR lto/81968
1052 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1053 Keep names of removed global symbols.
1054
62663034
TR
10552017-08-29 Tony Reix <tony.reix@atos.net>
1056
1057 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1058 Improve .go_export csect handling. Don't make assumptions
1059 on containing section or number of auxiliary entries.
1060
1963f60a
RB
10612017-08-28 Richard Biener <rguenther@suse.de>
1062
1063 PR lto/81968
1064 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1065 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1066 removed sections.
1067
d4c550fd
RB
10682017-08-22 Richard Biener <rguenther@suse.de>
1069
1070 PR lto/81925
1071 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1072 type of sh_addralign and sh_entsize and properly write
1073 sh_entsize as Elf_Addr.
1074 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1075
1ea85365
RB
10762017-08-21 Richard Biener <rguenther@suse.de>
1077
1078 * simple-object-common.h (struct simple_object_functions): Add
1079 copy_lto_debug_sections hook.
1080 * simple-object.c: Include fcntl.h.
1081 (handle_lto_debug_sections): New helper function.
1082 (simple_object_copy_lto_debug_sections): New function copying
1083 early LTO debug sections to regular debug sections in a new file.
1084 (simple_object_start_write): Handle NULL segment_name.
1085 * simple-object-coff.c (simple_object_coff_functions): Adjust
1086 for not implemented copy_lto_debug_sections hook.
1087 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1088 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1089 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1090 SHT_GROUP): Add various sectopn header types.
1091 (SHF_EXCLUDE): Add flag.
1092 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1093 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1094 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1095 (STV_DEFAULT): Add symbol visibility.
1096 (SHN_COMMON): Add special section index name.
1097 (struct simple_object_elf_write): New.
1098 (simple_object_elf_start_write): Adjust for new private data.
1099 (simple_object_elf_write_shdr): Pass in values for all fields
1100 we write.
1101 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1102 section headers if requested.
1103 (simple_object_elf_release_write): Release private data.
1104 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1105 as denoted by PFN and all their dependences, symbols and relocations
1106 to the empty destination file.
1107 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1108
ef29f5dd
JK
11092017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1112
c1d24904
TR
11132017-06-07 Tony Reix <tony.reix@atos.net>
1114 Matthieu Sarter <matthieu.sarter.external@atos.net>
1115 David Edelsohn <dje.gcc@gmail.com>
1116
1117 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1118 Search symbol table for .go_export symbol and apply pfn if found.
1119
63d9caf9
DD
11202017-05-31 DJ Delorie <dj@redhat.com>
1121
1122 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1123 * configure: Likewise.
1124 * config.in: Add HACE_DECL_STRNLEN.
1125
dc64856f
IB
11262017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1127
1128 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1129 with `initializer for'.
1130 * testsuite/demangle-expected: Update tests.
1131
0e3712f6
IB
11322017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1133
1134 * d-demangle.c (dlang_call_convention_p): Move declaration
1135 before dlang_type.
1136 (dlang_type): Handle function types.
1137 * testsuite/d-demangle-expected: Add tests.
1138
1a122a71
IB
11392017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1140
1141 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1142 the demangled hexadecimal directly to string.
1143 * testsuite/d-demangle-expected: Add tests.
1144
1ab4db93
EZ
11452017-05-24 Eli Zaretskii <eliz@gnu.org>
1146
1147 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1148 that calls _cwait, so that this function works on MinGW.
1149
5398cab9
IB
11502017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1151
1152 * d-demangle.c (dlang_hexdigit): New function.
1153 (ascii2hex): Remove function.
1154 (dlang_parse_string): Update to call dlang_hexdigit.
1155 * testsuite/d-demangle-expected: Add tests.
1156
dbe65f77
IB
11572017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1158
1159 * d-demangle.c (strtol): Remove declaration.
1160 Updated all callers to use dlang_number.
1161 (dlang_number): New function.
1162 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1163 * testsuite/d-demangle-expected: Add tests.
1164
5a4dbf7d
IB
11652017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1166
1167 * d-demangle.c (dlang_parse_symbol): Remove function.
1168 (dlang_parse_qualified): New function.
1169 (dlang_parse_mangle): New function.
1170 (dlang_type): Update to call dlang_parse_qualified.
1171 (dlang_identifier): Update to call either dlang_parse_qualified or
1172 dlang_parse_mangle.
1173 (dlang_type_modifier_p): Remove function.
1174 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1175 (dlang_template_args): Update to call dlang_identifier.
1176 (dlang_demangle): Update to call dlang_parse_mangle.
1177 * testsuite/d-demangle-expected: Add tests.
1178
dd03444b
IB
11792017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1180
1181 * d-demangle.c (dlang_value): Add comment explaining why cases for
1182 digits are required.
1183 * testsuite/d-demangle-expected: Update integer value tests.
1184
98bb7ee2
IB
11852017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1186
1187 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1188 * testsuite/d-demangle-expected: Add tests.
1189
11902017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
c6f44bae
IB
1191
1192 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1193 (dlang_parse_template): Only advance if template symbol prefix is
1194 followed by a digit.
1195 * testsuite/d-demangle-expected: Add tests.
1196
ec89d258
IB
11972017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1198
1199 * d-demangle.c (dlang_attributes): Handle scope attributes.
1200 * testsuite/d-demangle-expected: Add tests.
1201
de3b531c
JW
12022017-04-27 Jonathan Wakely <jwakely@redhat.com>
1203
1204 PR demangler/80513
1205 * cp-demangle.c (d_number): Check for overflow.
1206 * cplus-dem.c (consume_count): Fix overflow check.
1207 (gnu_special): Check for underscore after thunk delta.
1208 * testsuite/demangle-expected: Add tests for overflows and invalid
1209 characters in thunks.
1210
6b086d35
MW
12112017-04-21 Mark Wielaard <mark@klomp.org>
1212
1213 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1214 (struct d_print_info): Add recursion field.
1215 (d_print_init): Initialize recursion.
1216 (d_print_comp): Check and update d_print_info recursion depth.
1217
13b6ef76
MW
12182017-04-21 Mark Wielaard <mark@klomp.org>
1219
1220 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1221 fails.
1222
1240212c
MW
12232017-04-21 Mark Wielaard <mark@klomp.org>
1224
1225 * cp-demangle.h (struct d_info): Remove did_subs field.
1226 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1227 (d_template_param): Don't update did_subs.
1228 (d_substitution): Likewise.
1229 (d_checkpoint): Don't assign did_subs.
1230 (d_backtrack): Likewise.
1231 (cplus_demangle_init_info): Don't initialize did_subs.
1232
7a312bbd
PA
12332017-03-27 Pedro Alves <palves@redhat.com>
1234
1235 * cp-demint.c (cplus_demangle_fill_component): Handle
1236 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1237
9905ca97
MW
12382017-03-12 Mark Wielaard <mark@klomp.org>
1239
1240 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1241 demangle_component d_printing.
1242 (cplus_demangle_fill_extended_operator): Likewise.
1243 (cplus_demangle_fill_ctor): Likewise.
1244 (cplus_demangle_fill_dtor): Likewise.
1245
a46586c3
MW
12462017-03-08 Mark Wielaard <mark@klomp.org>
1247
1248 PR demangler/70909
1249 PR demangler/67264
1250 * cp-demangle.c: Fix endless recursion. Pass
1251 struct demangle_component as non const.
1252 (d_make_empty): Initialize variable.
1253 (d_print_comp_inner): Limit recursion.
1254 (d_print_comp): Decrement variable.
1255 * cp-demint.c (cplus_demangle_fill_component): Initialize
1256 variable.
1257 (cplus_demangle_fill_builtin_type): Likewise.
1258 (cplus_demangle_fill_operator): Likewise.
1259 * testsuite/demangle-expected: Add tests.
1260
4bbc35f3
MT
12612017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1262
1263 PR PR c++/70182
1264 * cp-demangle.c (d_unqualified_name): Handle "on" for
1265 operator names.
1266 * testsuite/demangle-expected: Add tests.
1267
f6efea51
MT
12682017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1269
1270 PR c++/77489
1271 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1272 * testsuite/demangle-expected: Add tests for discriminator.
1273
2afd3180
JJ
12742017-01-04 Jakub Jelinek <jakub@redhat.com>
1275
1276 Update copyright years.
1277
8f56cb51
AM
12782017-01-04 Alan Modra <amodra@gmail.com>
1279
1280 * Makefile.in (configure_deps): Update.
1281 * configure: Regenerate.
1282
816f4314
JJ
12832016-12-13 Jakub Jelinek <jakub@redhat.com>
1284
1285 PR c++/78761
1286 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1287 * testsuite/demangle-expected: Add test for decltype(auto).
1288
8e09a726
NS
12892016-12-12 Nathan Sidwell <nathan@acm.org>
1290
1291 PR c++/78252
1292 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1293 (d_print_init): Initialize it.
1294 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1295 is_lambda_arg for auto.
1296 <DEMANGLE_COMPONENT_REFERENCE,
1297 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1298 is_lambda_arg.
1299 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1300 printing.
1301 * testsuite/demangle-expected: Add lambda auto mangling cases.
1302
1d2ccddf 13032016-12-06 DJ Delorie <dj@redhat.com>
2207ff5d
DD
1304
1305 * argv.c (expandargv): Check for directories passed as @-files.
1306
e613205c
DM
13072016-11-30 David Malcolm <dmalcolm@redhat.com>
1308
1309 PR c/78498
1310 * strndup.c (strlen): Delete decl.
1311 (strnlen): Add decl.
1312 (strndup): Call strnlen rather than strlen.
1313 * xstrndup.c (xstrndup): Likewise.
1314
8684b292
NS
13152016-11-29 Nathan Sidwell <nathan@acm.org>
1316
1317 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1318
10d48c59
DT
13192016-11-03 David Tolnay <dtolnay@gmail.com>
1320 Mark Wielaard <mark@klomp.org>
1321
1322 * Makefile.in (CFILES): Add rust-demangle.c.
1323 (REQUIRED_OFILES): Add rust-demangle.o.
1324 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1325 (cplus_demangle): Handle RUST_DEMANGLING.
1326 (rust_demangle): New function.
1327 * rust-demangle.c: New file.
1328 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1329 (check-rust-demangle): New rule.
1330 * testsuite/rust-demangle-expected: New file.
1331
168126e5
MW
13322016-11-15 Mark Wielaard <mark@klomp.org>
1333
1334 * cp-demangle.c (d_expression_1): Make sure third expression
1335 exists for ?: and fold expressions.
1336 * testsuite/demangle-expected: Add examples of strings that could
1337 crash the demangler because of missing expression.
1338
0d0bfbf4
MW
13392016-11-14 Mark Wielaard <mark@klomp.org>
1340
1341 * cplus-dem.c (demangle_signature): After 'H', template function,
1342 no success and don't advance position if end of string reached.
1343 (demangle_template): After 'z', template name, return zero on
1344 premature end of string.
1345 (gnu_special): Guard strchr against searching for zero characters.
1346 (do_type): If member, only advance mangled string when 'F' found.
1347 * testsuite/demangle-expected: Add examples of strings that could
1348 crash the demangler by reading past end of input.
1349
3eb89071
MW
13502016-11-06 Mark Wielaard <mark@klomp.org>
1351
1352 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1353 * configure: Regenerated.
1354
51dc6603
JM
13552016-11-07 Jason Merrill <jason@redhat.com>
1356
1357 * cp-demangle.c (is_fnqual_component_type): New.
1358 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1359 (FNQUAL_COMPONENT_CASE): New.
1360 (d_make_comp, has_return_type, d_print_comp_inner)
1361 (d_print_function_type): Use it.
1362 (next_is_type_qual): New.
1363 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1364
c4ec8585
MW
13652016-11-02 Mark Wielaard <mjw@redhat.com>
1366
1367 * cplus-dem.c (demangle_signature): Move fall through comment.
1368 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1369 * hashtab.c (iterative_hash): Add fall through comments.
1370 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1371 (byte_re_match_2_internal): Add Fall through comment after jump_n.
1372 Change "Note fall through" to "Fall through".
1373 (common_op_match_null_string_p): Return false after set_number_at
1374 instead of fall through.
1375
31f7f784
JM
13762016-11-01 Jason Merrill <jason@redhat.com>
1377
1378 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1379
a3f3eec0
MW
13802016-10-31 Mark Wielaard <mjw@redhat.com>
1381
1382 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1383 XDELETEVEC demangled when unknown.
1384
471a0d47
AS
13852016-09-19 Andrew Stubbs <ams@codesourcery.com>
1386
1387 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1388 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1389
99e77371
MW
13902016-09-10 Mark Wielaard <mjw@redhat.com>
1391
1392 * cp-demangle.c (d_substitution): Change struct demangle_component
1393 variable name from c to dc.
1394
191816a3
MP
13952016-08-12 Marek Polacek <polacek@redhat.com>
1396
1397 PR c/7652
1398 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1399
1841e25c
MB
14002016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
1401
1402 PR c++/71696
1403 * cplus-dem.c: Prevent infinite recursion when there is a cycle
1404 in the referencing of remembered mangled types.
1405 (work_stuff): New stack to keep track of the remembered mangled
1406 types that are currently being processed.
1407 (push_processed_type): New method to push currently processed
1408 remembered type onto the stack.
1409 (pop_processed_type): New method to pop currently processed
1410 remembered type from the stack.
1411 (work_stuff_copy_to_from): Copy values of new variables.
1412 (delete_non_B_K_work_stuff): Free stack memory.
1413 (demangle_args): Push/Pop currently processed remembered type.
1414 (do_type): Do not demangle a cyclic reference and push/pop
1415 referenced remembered type.
1416
ac631cbe
AH
14172016-07-29 Aldy Hernandez <aldyh@redhat.com>
1418
1419 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1420 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1421
34bbc4c5
JM
14222016-07-15 Jason Merrill <jason@redhat.com>
1423
7864eaaf
JM
1424 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1425 (d_expression_1): Handle them.
1426 (d_maybe_print_fold_expression): New.
1427 (d_print_comp_inner): Use it.
1428 (d_index_template_argument): Handle negative index.
1429
34bbc4c5
JM
1430 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1431 (d_print_comp_inner): Handle them.
1432 (d_template_args_1): Split out from d_template_args.
1433 (d_args_length): New.
1434
1841e25c 14352016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
03ef0c6c
MB
1436
1437 PR c++/70926
1438 * cplus-dem.c: Handle large values and overflow when demangling
1439 length variables.
1440 (demangle_template_value_parm): Read only until end of mangled string.
1441 (do_hpacc_template_literal): Likewise.
1442 (do_type): Handle overflow when demangling array indices.
1443
3f393853
BM
14442016-06-12 Brooks Moses <bmoses@google.com>
1445
1446 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
1447 VLAs.
1448
051154a1
AM
14492016-05-31 Alan Modra <amodra@gmail.com>
1450
1451 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1452
e1fe3c69
JJ
14532016-05-19 Jakub Jelinek <jakub@redhat.com>
1454
1455 PR c++/70498
1456 * cp-demangle.c (d_expression_1): Formatting fix.
1457
9b27f113
AV
14582016-05-18 Artemiy Volkov <artemiyv@acm.org>
1459
1460 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
1461 constant.
1462 (demangle_template_value_parm): Handle tk_rvalue_reference
1463 type kind.
1464 (do_type): Support 'O' type id (rvalue references).
1465
1466 * testsuite/demangle-expected: Add tests.
1467
bfbc839a
MB
14682016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
1469
1470 PR c++/70498
1471 * cp-demangle.c: Parse numbers as integer instead of long to avoid
1472 overflow after sanity checks. Include <limits.h> if available.
1473 (INT_MAX): Define if necessary.
1474 (d_make_template_param): Takes integer argument instead of long.
1475 (d_make_function_param): Likewise.
1476 (d_append_num): Likewise.
1477 (d_identifier): Likewise.
1478 (d_number): Parse as and return integer.
1479 (d_compact_number): Handle overflow.
1480 (d_source_name): Change variable type to integer for parsed number.
1481 (d_java_resource): Likewise.
1482 (d_special_name): Likewise.
1483 (d_discriminator): Likewise.
1484 (d_unnamed_type): Likewise.
1485 * testsuite/demangle-expected: Add regression test cases.
1486
bc6d9014
OE
14872016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1488
1489 * configure: Remove SH5 support.
1490
59dad006
MB
14912016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
1492
bdf66f77
MB
1493 PR c++/69687
1494 * cplus-dem.c: Include <limits.h> if available.
1495 (INT_MAX): Define if necessary.
1496 (remember_type, remember_Ktype, register_Btype, string_need):
1497 Abort if we detect cases where we the size of the allocation would
1498 overflow.
1499
cb2763b5 1500 PR c++/70492
59dad006
MB
1501 * cplus-dem.c (gnu_special): Handle case where consume_count returns
1502 -1.
1503
916268f1 15042016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
a3fa7535 1505 Marcel Bohme <boehme.marcel@gmail.com>
916268f1 1506
c1c341ab
JL
1507 PR c++/67394
1508 PR c++/70481
916268f1
MM
1509 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
1510 btypevec/ktypevec.
1511 * testsuite/demangle-expected: Add coverage tests.
1512
13617162
IB
15132016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1514
1515 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
1516 function calling convention.
1517 (dlang_call_convention_p): Likewise.
1518 (dlang_type): Likewise.
1519 * testsuite/d-demangle-expected: Add coverage tests.
1520
acf1f7da
IB
15212016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1522
1523 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
1524 only if parameters were seen before the elipsis symbol.
1525 * testsuite/d-demangle-expected: Add coverage test for parameter-less
1526 variadic functions.
1527
0f4b8b31
IB
15282016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1529
1530 * d-demangle.c (dlang_type): Handle function types only in the context
1531 of seeing a pointer type symbol.
1532 * testsuite/d-demangle-expected: Update function pointer tests.
1533
66f49f07
MF
15342016-01-05 Mike Frysinger <vapier@gentoo.org>
1535
1536 * argv.c (dupargv): Change arg to char * const *. Update comment.
1537 (writeargv, countargv): Likewise.
1538 * functions.texi (dupargv, writeargv, countargv): Likewise.
1539
ae120683
MF
15402016-01-05 Mike Frysinger <vapier@gentoo.org>
1541
1542 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
1543
f3ce6437
PP
15442015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
1545
1546 * crc32.c: In the documentation, don't refer to GDB's
1547 now-nonexistent crc32 implementation. In the table-generation
1548 program embedded within the documentation, change the type of
1549 the induction variables i and j from int to unsigned int, to
1550 avoid undefined behavior.
1551
f8e66330
NC
15522015-12-21 Nick Clifton <nickc@redhat.com>
1553
1554 PR 66827
1555 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
1556 shifting.
1557
921da198
PA
15582015-11-27 Pedro Alves <palves@redhat.com>
1559
1560 PR other/61321
1561 PR other/61233
921da198
PA
1562 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
1563 DEMANGLE_COMPONENT_CONVERSION.
1564 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
1565 instead of DEMANGLE_COMPONENT_CAST.
1566 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
1567 component if handling a conversion.
1568 (d_count_templates_scopes, d_print_comp_inner): Handle
1569 DEMANGLE_COMPONENT_CONVERSION.
1570 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
1571 of DEMANGLE_COMPONENT_CAST.
1572 (d_print_cast): Rename as ...
1573 (d_print_conversion): ... this. Adjust comments.
1574 (d_print_cast): Rewrite - simply print the left subcomponent.
1575 * cp-demint.c (cplus_demangle_fill_component): Handle
1576 DEMANGLE_COMPONENT_CONVERSION.
1577
1578 * testsuite/demangle-expected: Add tests.
1579
633ce971
MS
15802015-11-12 Mike Stump <mikestump@comcast.net>
1581
1582 * Makefile.in (etags tags TAGS): Use && instead of ;.
1583
126e0b6b
AM
15842015-11-09 Alan Modra <amodra@gmail.com>
1585
1586 * configure.ac: Check size of size_t.
1587 * configure: Regenerate.
61c94e79 1588 * config.in: Regenerate.
126e0b6b 1589
a186d523
AM
15902015-11-09 Alan Modra <amodra@gmail.com>
1591
1592 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
1593 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
1594 after alloc failure check.
1595
f0e525fe
AM
15962015-11-09 Alan Modra <amodra@gmail.com>
1597
1598 PR gdb/17133
1599 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
1600 (obstack_exit_failure): Don't use exitfail.h.
1601 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
1602 Provide default. Don't include gettext.h.
1603 (_Noreturn): Define.
1604 * obstacks.texi: Adjust node references to external libc info files.
1605
c9f265c9
AM
16062015-11-09 Alan Modra <amodra@gmail.com>
1607
1608 PR gdb/17133
1609 * obstack.c: Import current gnulib file.
1610 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
1611
41fdbd54
JB
16122015-11-06 Joel Brobecker <brobecker@adacore.com>
1613
1614 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
1615 Android hosts.
1616 * configure: Regenerate.
1617
08585fba
JM
16182015-10-28 Jason Merrill <jason@redhat.com>
1619
1620 * Makefile.in (TAGS): Fix for separate build directory.
1621
efd40fc4
RM
16222015-10-18 Roland McGrath <roland@gnu.org>
1623 Iain Sandoe <iain@codesourcery.com>
1624
1625 PR other/63758
1626 * pex-unix.c: Obtain the environment interface from settings in
1627 environ.h rather than in-line code. Update copyright date.
1628 * setenv.c: Likewise.
1629 * xmalloc.c: Likewise.
1630
b8fd7909
JM
16312015-09-30 Jason Merrill <jason@redhat.com>
1632
1633 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
1634 (cplus_demangle_type): Let d_cv_qualifiers handle it.
1635 (d_dump, d_make_comp, has_return_type, d_encoding)
1636 (d_count_templates_scopes, d_print_comp_inner)
1637 (d_print_mod_list, d_print_mod, d_print_function_type)
1638 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
1639
68bac640
ILT
16402015-08-15 Ian Lance Taylor <iant@google.com>
1641
1642 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
1643 ABI tags.
1644
fd91ffb8
IB
16452015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
1646
1647 * d-demangle.c (dlang_parse_real): Remove call to strtod.
1648 (strtod): Remove declaration.
1649 * testsuite/d-demangle-expected: Update float and complex literal
1650 tests to check correct hexadecimal demangling.
1651
76d96a5a
MM
16522015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
1653
1654 * cp-demangle.c (d_dump): Fix syntax error.
1655 (d_identifier): Adjust type of len to match d_source_name.
1656 (d_expression_1): Fix out-of-bounds access. Check code variable for
1657 NULL before dereferencing it.
1658 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
1659 (d_print_comp_inner): Add NULL pointer check.
1660 * cp-demangle.h (d_peek_next_char): Define as inline function when
1661 CHECK_DEMANGLER is defined.
1662 (d_advance): Likewise.
1663 * testsuite/demangle-expected: Add new testcases.
1664
9b004cd3 16652015-07-09 Uros Bizjak <ubizjak@gmail.com>
62ee3145 1666
9b004cd3
UB
1667 * getruntime.c (RUSAGE_SELF): Define if not already defined.
1668 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
62ee3145 1669
603eaec4
JM
16702015-06-01 Jason Merrill <jason@redhat.com>
1671
1672 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
1673 extended qualifier.
1674
f50f17e6
YJ
16752015-05-22 Yunlian Jiang <yunlian@google.com>
1676
1677 * configure.ac: Add AC_GNU_SOURCE.
1678 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
1679 * configure, config.in: Rebuild.
1680 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
1681
7e865541
IB
16822015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1683
1684 * d-demangle.c (dlang_symbol_kinds): New enum.
1685 (dlang_parse_symbol): Update signature. Handle an ambiguity between
1686 pascal functions and template value arguments. Only check for a type
1687 if parsing a function, or at the top level. Return failure if the
1688 entire symbol was not successfully demangled.
1689 (dlang_identifier): Update signature. Handle an ambiguity between two
1690 adjacent digits in a mangled symbol string.
1691 (dlang_type): Update call to dlang_parse_symbol.
1692 (dlang_template_args): Likewise.
1693 (dlang_parse_template): Likewise.
1694 (dlang_demangle): Likewise.
1695 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
1696 examples to the unittests.
1697
ed4cdb85
IB
16982015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1699
1700 * d-demangle.c (dlang_template_args): Skip over specialized template
1701 parameters in mangled symbol.
1702 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
1703 template parameters.
1704
59251a73
IB
17052015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1706
1707 * d-demangle.c (dlang_type): Handle cent and ucent types.
1708 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
1709
7ce4461f
IB
17102015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1711
1712 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
1713 return parameters in the mangled string. Return NULL if have encountered
1714 an unknown attribute.
1715 (dlang_function_args): Handle return parameters in the mangled string.
1716 * testsuite/d-demangle-expected: Add coverage tests for functions with
1717 return parameters and return attributes.
1718
5cc158e9
IB
17192015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1720
1721 * d-demangle.c (dlang_identifier): Check encoded length of identifier
1722 to verify strncmp matches entire string.
1723 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
1724
fa66ced4
IB
17252015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1726
1727 * d-demangle.c (dlang_type_modifiers): New function.
1728 (dlang_type_modifier_p): New function.
1729 (dlang_call_convention_p): Ignore any kind of type modifier.
1730 (dlang_type): Handle and emit the type modifier after delegate types.
1731 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
1732 * testsuite/d-demangle-expected: Add coverage tests for all valid
1733 usages of function symbols with type modifiers.
1734
76b41cad
IB
17352015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1736
1737 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
1738 end of the symbol, but expected something to read.
1739 (dlang_attributes): Likewise.
1740 (dlang_function_type): Likewise.
1741 (dlang_type): Likewise.
1742 (dlang_identifier): Likewise.
1743 (dlang_value): Likewise.
1744
eb058b7d
IB
17452015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
1746
1747 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
1748 non-printable characters as hex or escape sequences.
1749 * testsuite/d-demangle-expected: Add test for templates with tabs and
1750 newlines embedded into the signature.
1751
f5e7f590
JB
17522015-05-08 Joel Brobecker <brobecker@adacore.com>
1753
1754 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
1755 but not HAVE_SYS_TIME_H.
1756
ffa176b0
EZ
17572015-04-22 Eli Zaretskii <eliz@gnu.org>
1758
1759 * setenv.c <environ>: Declare only if not a macro.
1760
77019397
MO
17612015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
1762
1763 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
1764
cacf1f59
JJ
17652015-04-10 Jakub Jelinek <jakub@redhat.com>
1766 Iain Sandoe <iain@codesourcery.com>
1767
1768 PR target/65351
1769 * configure: Regenerate.
1770
e8a4ed3b
JJ
17712015-04-07 Jakub Jelinek <jakub@redhat.com>
1772 Iain Sandoe <iain@codesourcery.com>
1773
1774 PR target/65351
1775 * configure: Regenerate.
1776
b411ed0c
EZ
17772015-01-19 Eli Zaretskii <eliz@gnu.org>
1778
1779 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
1780 macros.
1781
e8850918
UB
17822014-12-24 Uros Bizjak <ubizjak@gmail.com>
1783 Ben Elliston <bje@au.ibm.com>
1784 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1785
1786 * xasprintf.c: New file.
1787 * Makefile.in (CFILES): Add xasprintf.c.
1788 (REQUIRED_OFILES): Add xasprintf.$(objext).
1789 (xasprintf.$(objext)): New target.
1790 * functions.texi: Regenerate.
1791
01ca36af 17922014-12-11 Uros Bizjak <ubizjak@gmail.com>
92a285c1
ML
1793 Ben Elliston <bje@au.ibm.com>
1794 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
01ca36af
UB
1795
1796 * xvasprintf.c: New file.
1797 * vprintf-support.h: Likewise.
1798 * vprintf-support.c: Likewise.
1799 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
1800 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
1801 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
1802 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
1803 * functions.texi: Regenerate.
1804 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
1805
7b5216dd
JDA
18062014-11-22 John David Anglin <danglin@gcc.gnu.org>
1807
1808 PR other/63694
1809 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
1810 declarations.
1811 * configure: Regenerated.
1812
43cf21c6
KY
18132014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
1814
1815 * testsuite/test-strtol.c (run_tests): Cast strtol return to
1816 unsigned long.
1817
3d00119c
AB
18182014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
1819 Manuel López-Ibáñez <manu@gcc.gnu.org>
1820
1821 PR driver/36312
1822 * filename_cmp.c (canonical_filename_eq): New function to check if
1823 file names are the same.
1824 * functions.texi: Updated with documentation for new function.
1825
35485da9
DM
18262014-11-11 David Malcolm <dmalcolm@redhat.com>
1827
1828 * ChangeLog.jit: New.
1829
8c768629
RO
18302014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1831
1832 * sigsetmask.c (_POSIX_SOURCE): Remove.
1833
ea41822a
YG
18342014-10-28 Yury Gribov <y.gribov@samsung.com>
1835
1836 * strtoll.c: New file.
1837 * strtoull.c: New file.
1838 * configure.ac: Add long long checks. Add harness for strtoll and
1839 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
1840 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
1841 * config.in: Regenerate.
1842 * configure: Regenerate.
1843 * functions.texi: Regenerate.
1844 * testsuite/Makefile.in (check-strtol): New rule.
1845 (test-strtol): Likewise.
1846 (mostlyclean): Clean up strtol test.
1847 * testsuite/test-strtol.c: New test.
1848
e39423c0
DM
18492014-10-15 David Malcolm <dmalcolm@redhat.com>
1850
1851 * choose-temp.c (choose_tmpdir): Remove now-redundant local
1852 copy of prototype.
1853 * functions.texi: Regenerate.
1854 * make-temp-file.c (choose_tmpdir): Convert return type from
1855 char * to const char * - given that this returns a pointer to
1856 a memoized allocation, the caller must not touch it.
1857
2a523cfe
JB
18582014-10-14 Joel Brobecker <brobecker@adacore.com>
1859
1860 * d-demangle.c: Replace strtold with strtod in global comment.
1861 (strtold): Remove declaration.
1862 (strtod): New declaration.
1863 (dlang_parse_real): Declare value as double instead of long
1864 double. Replace call to strtold by call to strtod.
1865 Update format in call to snprintf.
1866
00eaaa50
JM
18672014-09-26 Jason Merrill <jason@redhat.com>
1868
1869 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
1870
29ce50b0
MO
18712014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
1872
1873 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
1874 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
1875 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
1876 * pex-win32.c (pex_win32_open_write): Likewise.
1877 * pex-common.c (pex_run_in_environment): Likewise.
1878
43b1b9ed
IB
18792014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
1880
1881 * Makefile.in (CFILES): Add d-demangle.c.
1882 (REQUIRED_OFILES): Add d-demangle.o.
1883 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
1884 (cplus_demangle): Likewise.
1885 * d-demangle.c: New file.
1886 * testsuite/Makefile.in (really-check): Add check-d-demangle.
1887 * testsuite/d-demangle-expected: New file.
1888
0f1fbc83
ILT
18892014-09-19 Ian Lance Taylor <iant@google.com>
1890
1891 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
1892 handle objects with more than SHN_LORESERVE sections.
1893 (simple_object_elf_write_shdr): Add sh_link parameter.
1894 (simple_object_elf_write_to_file): Correctly handle objects with
1895 more than SHN_LORESERVE sections.
1896
606f9e78
AB
18972014-08-29 Andrew Burgess <aburgess@broadcom.com>
1898
1899 * cp-demangle.c (d_dump): Only access field from s_fixed part of
1900 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
1901 (d_count_templates_scopes): Likewise.
1902
635f4800
GB
19032014-08-13 Gary Benson <gbenson@redhat.com>
1904
1905 * testsuite/demangler-fuzzer.c: New file.
1906 * testsuite/Makefile.in (fuzz-demangler): New rule.
1907 (demangler-fuzzer): Likewise.
1908 (mostlyclean): Clean up demangler fuzzer.
1909
ac8345a5
AB
19102014-06-11 Andrew Burgess <aburgess@broadcom.com>
1911
1912 * cplus-dem.c (do_type): Call string_delete even if the call to
1913 demangle_template fails.
1914
ad484eca
RD
19152014-06-01 Ray Donnelly <mingw.android@gmail.com>
1916
1917 * pex-win32.c (argv_to_cmdline): Don't quote
1918 args unnecessarily
1919
bc2eed9a
PA
19202014-05-28 Pedro Alves <palves@redhat.com>
1921
1922 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
1923 and DEMANGLE_COMPONENT_NUMBER.
1924
6aa9ea7f
TS
19252014-05-22 Thomas Schwinge <thomas@codesourcery.com>
1926
1927 * testsuite/demangle-expected: Fix last commit.
1928
70c8c2b9
AB
19292014-05-14 Andrew Burgess <aburgess@broadcom.com>
1930
1931 * cplus-dmem.c (internal_cplus_demangle): Free any resources
1932 allocated by possible previous call to gnu_special.
1933 (squangle_mop_up): Reset pointers to NULL after calling free.
1934 * testsuite/demangle-expected: New test case.
1935
861c3495
GB
19362014-05-08 Gary Benson <gbenson@redhat.com>
1937
1938 * cp-demangle.c (struct d_component_stack): New structure.
1939 (struct d_print_info): New field component_stack.
1940 (d_print_init): Initialize the above.
1941 (d_print_comp_inner): Renamed from d_print_comp.
1942 Do not restore template stack if it would cause a loop.
1943 (d_print_comp): New function.
1944 * testsuite/demangle-expected: New test cases.
1945
4f148bbc
JJ
19462014-04-17 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR sanitizer/56781
1949 * maint-tool: Also emit rule for noasan/ subdirectory.
1950 * configure.ac (NOASANFLAG): Set and substitute.
1951 * Makefile.in: Regenerated.
1952 (NOASANFLAG): Set.
1953 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
1954 subdir.
1955 (stamp-noasandir): New goal.
1956 * configure: Regenerated.
1957
25336bb6
RB
19582014-04-01 Richard Biener <rguenther@suse.de>
1959
1960 * simple-object.c (simple_object_internal_write): Handle
1961 EINTR and short writes.
1962
2486c24a
RB
19632014-03-28 Richard Biener <rguenther@suse.de>
1964
1965 * simple-object.c (simple_object_internal_read): Handle
1966 EINTR and short reads.
1967
52684bb3
UB
19682014-03-13 Uros Bizjak <ubizjak@gmail.com>
1969
1970 * regex.c (bzero) [!_LIBC]: Define without coma expression.
1971 (regerror): Cast the call to memcpy to (void) to avoid unused
1972 value warnings.
1973
e191f502
TS
19742014-01-28 Thomas Schwinge <thomas@codesourcery.com>
1975
1976 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
1977 to help the compiler.
1978
d2d21de9
TT
19792014-01-21 Tom Tromey <tromey@redhat.com>
1980
1981 * _doprint.c (checkit): Use stdarg, not VA_* macros.
1982 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
1983 * concat.c (concat_length, concat_copy, concat_copy2, concat)
1984 (reconcat): Use stdarg, not VA_* macros.
1985 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
1986 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
1987 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
1988
0225cc0f
MF
19892014-01-06 Mike Frysinger <vapier@gentoo.org>
1990
1991 PR other/56780
1992 * configure.ac: Delete target_header_dir assignment.
1993 * configure: Regenerated.
1994
0a15a50e
GB
19952014-01-06 Gary Benson <gbenson@redhat.com>
1996
1997 * cp-demangle.c (struct d_print_info): New fields
1998 next_saved_scope, copy_templates, next_copy_template and
1999 num_copy_templates.
2000 (d_count_templates): New function.
2001 (d_print_init): New parameter "dc".
2002 Estimate numbers of templates and scopes required.
2003 (d_print_free): Removed function.
2004 (cplus_demangle_print_callback): Allocate stack for
2005 templates and scopes. Removed call to d_print_free.
2006 (d_copy_templates): Removed function.
2007 (d_save_scope): New function.
2008 (d_get_saved_scope): Likewise.
2009 (d_print_comp): Replace state saving/restoring code with
2010 calls to d_save_scope and d_get_saved_scope.
2011
1f26ac87
JM
20122013-12-23 Bill Maddox <maddox@google.com>
2013
2014 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2015 Handle unified ctor/dtor.
2016 (d_ctor_dtor_name): Handle unified ctor/dtor.
2017
85d09f61
CC
20182013-11-22 Cary Coutant <ccoutant@google.com>
2019
2020 PR other/59195
2021 * cp-demangle.c (struct d_info_checkpoint): New struct.
2022 (struct d_print_info): Add current_template field.
2023 (d_operator_name): Set flag when processing a conversion
2024 operator.
2025 (cplus_demangle_type): When processing <template-args> for
2026 a conversion operator, backtrack if necessary.
2027 (d_expression_1): Renamed from d_expression.
2028 (d_expression): New wrapper around d_expression_1.
2029 (d_checkpoint): New function.
2030 (d_backtrack): New function.
2031 (d_print_init): Initialize current_template.
2032 (d_print_comp): Set current_template.
2033 (d_print_cast): Put current_template in scope for
2034 printing conversion operator name.
2035 (cplus_demangle_init_info): Initialize is_expression and
2036 is_conversion.
2037 * cp-demangle.h (struct d_info): Add is_expression and
2038 is_conversion fields.
2039 * testsuite/demangle-expected: New test cases.
2040
66204992
AS
20412013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2042
2043 * configure: Regenerate.
2044
27297d2d
UB
20452013-11-12 Uros Bizjak <ubizjak@gmail.com>
2046
2047 * cp-demangle.c (d_copy_templates): Cast result of malloc
2048 to (struct d_print_template *).
2049 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2050
eda14d6a
MG
20512013-10-29 Marc Glisse <marc.glisse@inria.fr>
2052
2053 PR tree-optimization/58689
2054 * concat.c: Remove note about xmalloc.
2055
4962e513
GP
20562013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2057
2058 * testsuite/test-demangle.c: Include unistd.h.
27297d2d 2059
c24d86bc
GB
20602013-10-25 Gary Benson <gbenson@redhat.com>
2061
2062 * cp-demangle.c (struct d_saved_scope): New structure.
2063 (struct d_print_info): New fields saved_scopes and
2064 num_saved_scopes.
2065 (d_print_init): Initialize the above.
2066 (d_print_free): New function.
2067 (cplus_demangle_print_callback): Call the above.
2068 (d_copy_templates): New function.
2069 (d_print_comp): New variables saved_templates and
2070 need_template_restore.
27297d2d
UB
2071 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2072 Capture scope the first time the component is traversed, and use the
2073 captured scope for subsequent traversals.
c24d86bc
GB
2074 * testsuite/demangle-expected: Add regression test.
2075
89ac0797
GP
20762013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2077
2078 * testsuite/test-expandargv.c: Include unistd.h.
2079
459260ec
DM
20802013-10-15 David Malcolm <dmalcolm@redhat.com>
2081
2082 * configure.ac: If --enable-host-shared, use -fPIC.
2083 * configure: Regenerate.
2084
ea0882a0
PP
20852013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2086
2087 * cp-demangle.c (d_name): Demangle local-source-names.
2088 * testsuite/demangle-expected: New test.
2089
8b415b27
PC
20902013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2091
2092 PR bootstrap/58386
2093 Revert:
2094
2095 2013-09-10 Gary Benson <gbenson@redhat.com>
2096
2097 * cp-demangle.c: Include hashtab.h.
2098 (struct d_print_info): New field saved_scopes.
2099 (d_print_init): Initialize the above.
2100 (d_print_free): New function.
2101 (cplus_demangle_print_callback): Call the above.
2102 (struct d_saved_scope): New structure.
2103 (d_store_scope): New function.
2104 (d_free_scope) Likewise.
2105 (d_restore_scope) Likewise.
2106 (d_hash_saved_scope) Likewise.
2107 (d_equal_saved_scope) Likewise.
2108 (d_print_comp): New variable saved_scope.
2109 [DEMANGLE_COMPONENT_REFERENCE,
2110 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2111 time the component is traversed, and use the captured scope for
2112 subsequent traversals.
0e2cd22d 2113 * testsuite/demangle-expected: Add regression test.
8b415b27 2114
669ea36c
GB
21152013-09-10 Gary Benson <gbenson@redhat.com>
2116
2117 * cp-demangle.c: Include hashtab.h.
2118 (struct d_print_info): New field saved_scopes.
2119 (d_print_init): Initialize the above.
2120 (d_print_free): New function.
2121 (cplus_demangle_print_callback): Call the above.
2122 (struct d_saved_scope): New structure.
2123 (d_store_scope): New function.
2124 (d_free_scope) Likewise.
2125 (d_restore_scope) Likewise.
2126 (d_hash_saved_scope) Likewise.
2127 (d_equal_saved_scope) Likewise.
2128 (d_print_comp): New variable saved_scope.
2129 [DEMANGLE_COMPONENT_REFERENCE,
2130 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2131 time the component is traversed, and use the captured scope for
2132 subsequent traversals.
0e2cd22d 2133 * testsuite/demangle-expected: Add regression test.
669ea36c 2134
a98cbc36
AM
21352013-08-20 Alan Modra <amodra@gmail.com>
2136
2137 * floatformat.c (floatformat_ibm_long_double): Rename to..
2138 (floatformat_ibm_long_double_big): ..this.
2139 (floatformat_ibm_long_double_little): New.
2140
3830d98a
TG
21412013-07-09 Tristan Gingold <gingold@adacore.com>
2142
2143 * makefile.vms (OBJS): Add dwarfnames.obj
2144
8c9fddf4
MB
21452013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2146
2147 PR other/56780
969ac969 2148 * configure.ac: Move test for --enable-install-libiberty
8c9fddf4
MB
2149 outside of the 'with_target_subdir' test so that it actually gets
2150 run. Add output messages to show the test result.
969ac969
JJ
2151 * configure: Regenerate.
2152 * Makefile.in (install_to_libdir): Place the
8c9fddf4
MB
2153 installation of the libiberty library in the same guard as that
2154 used for the headers to prevent it being installed unless
2155 requested via --enable-install-libiberty.
2156
b768e8cf
DE
21572013-05-06 David Edelsohn <dje.gcc@gmail.com>
2158 Peter Bergner <bergner@vnet.ibm.com>
2159 Segher Boessenkool <segher@kernel.crashing.org>
2160 Jakub Jelinek <jakub@redhat.com>
2161
2162 * hashtab.c (hash_pointer): Remove conditional and avoid
2163 unexecuted shift equal to wordsize.
2164
ecdbd01a 21652013-04-22 Andi Kleen <ak@linux.intel.com>
86210f13
AK
2166
2167 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2168
9eb85f27
JM
21692013-04-03 Jason Merrill <jason@redhat.com>
2170
0861bec8
JM
2171 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2172 (d_pointer_to_member_type): Simplify.
2173
9eb85f27
JM
2174 Demangle C++11 ref-qualifier.
2175 * cp-demangle.c (d_ref_qualifier): New.
2176 (d_nested_name, d_function_type): Use it.
2177 (d_parmlist): Don't get confused by a ref-qualifier.
2178 (cplus_demangle_type): Reorder ref-qualifier.
2179 (d_pointer_to_member_type): Likewise.
2180 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2181 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2182 (d_make_comp, has_return_type, d_encoding): Likewise.
2183 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2184 (d_print_function_type, is_ctor_or_dtor): Likewise.
2185
071928d9
KT
21862013-03-27 Kai Tietz <ktietz@redhat.com>
2187
2188 * configure: Regenerated.
2189
34d3a672
TB
21902013-03-06 Tobias Burnus <burnus@net-b.de>
2191
2192 * libiberty.texi: Update comment, remove lowersections.
2193 * obstacks.texi: Regenerate.
2194
233fa360
JJ
21952013-03-05 Jakub Jelinek <jakub@redhat.com>
2196
2197 PR middle-end/56526
2198 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2199 wrapper_sect_offset to avoid a warning.
2200
40bf31ed
TB
22012013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2202
2203 * obstacks.texi (Obstacks): Trim @node to only contain the
2204 node name.
2205 * libiberty.texi (Obstacks): Lower section.
2206
622aac0b
JM
22072013-02-14 Jason Merrill <jason@redhat.com>
2208
2209 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2210 (d_print_comp): Likewise.
2211
4ab7747c
JJ
22122013-02-09 Jakub Jelinek <jakub@redhat.com>
2213
2214 PR other/56245
2215 * regex.c (PTR_INT_TYPE): Define.
2216 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2217
b1a2e8c6
KT
22182013-01-31 Kai Tietz <ktietz@redhat.com>
2219
4cfc6e54
KT
2220 PR other/54620
2221 * sha1.c (sha1_process_block): Handle case that size_t is
2222 a wider-integer-scalar as a 32-bit unsigned integer.
2223
b7138297 2224 PR other/53413
b1a2e8c6
KT
2225 * md5.c (md5_process_block): Handle case that size_t is
2226 a wider-integer-scalar a 32-bit unsigned integer.
2227
ad8c59a1
ILT
22282013-01-04 Ian Lance Taylor <iant@google.com>
2229
2230 PR other/54800
2231 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2232 bother to zero out a buffer we are about to set anyhow.
2233
a9b01f00
DE
22342013-01-01 David Edelsohn <dje.gcc@gmail.com>
2235
2236 * simple-object-xcoff.c: New file.
2237 * Makefile.in: Add it to build machinery.
2238 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2239 * simple-object.c (format_functions): Add
2240 simple_object_xcoff_functions.
2241
c61e8502
JM
22422012-11-10 Jason Merrill <jason@redhat.com>
2243
2244 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2245 (d_name): Not here.
2246
7dbb85a7
JM
22472012-11-09 Jason Merrill <jason@redhat.com>
2248
2249 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2250 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2251 (d_abi_tags): New.
2252 (d_name): Call it.
2253
7c424acd
JM
22542012-10-08 Jason Merrill <jason@redhat.com>
2255
2256 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2257 (d_make_comp, d_print_comp): Likewise.
2258
9a9baa52
ILT
22592012-09-18 Ian Lance Taylor <iant@google.com>
2260
2261 * strnlen.c: New file.
2262 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2263 present.
2264 * Makefile.in: Rebuild dependencies.
2265 (CFILES): Add strnlen.c.
2266 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2267 * configure, config.in, functions.texi: Rebuild.
2268
2269 * maint-tool: Accept .def files in the include directory.
2270
ed770de9
FW
22712012-09-18 Florian Weimer <fweimer@redhat.com>
2272
2273 PR other/54411
2274 * objalloc.c (_objalloc_alloc): Add overflow check covering
2275 alignment and CHUNK_HEADER_SIZE addition.
2276
fabfa16b
L
22772011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2278
2279 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2280 xmalloc return.
2281 (buildargv): Likewise. Also replace strdup with xstrdup.
2282 (expandargv): Don't check dupargv return.
2283
55529d36
L
22842011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2285
2286 PR binutils/14526
2287 * argv.c (buildargv): Replace alloca with xmalloc/free.
2288
c9ac76ae
AS
22892012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2290
2291 * floatformat.c (floatformat_to_double): Correctly handle numbers
2292 between 1 and 2. Simplify handling of denormal number.
2293 (main): Test with 1.1.
2294
d555a90e
MF
22952012-07-31 Mike Frysinger <vapier@gentoo.org>
2296
2297 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2298 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2299
9cd6dd82
KH
23002012-07-26 Kazu Hirata <kazu@codesourcery.com>
2301 Sandra Loosemore <sandra@codesourcery.com>
2302
2303 * pex-win32.c (pex_win32_exec_child): Only close original file
2304 descriptors if child is launched successfully.
2305
aefa74bd
JM
23062012-07-18 Jason Merrill <jason@redhat.com>
2307
2308 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2309 (op_is_new_cast): New.
2310 (d_expression, d_print_comp): Check it.
2311
69488641
DE
23122012-07-13 Doug Evans <dje@google.com>
2313
2314 * filename_cmp.c (filename_hash, filename_eq): New functions.
2315
8a8b3779
AS
23162012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2317
2318 * copying-lib.texi (Library Copying): Don't use @heading inside
2319 @enumerate.
2320
d931f693
TT
23212012-05-22 Tom Tromey <tromey@redhat.com>
2322
2323 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2324 * testsuite/demangle-expected: Add regression test.
2325 * cp-demangle.c (d_find_pack): Return NULL for
2326 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2327
11ec770e
TT
23282012-04-27 Tom Tromey <tromey@redhat.com>
2329
2330 * dwarfnames.c: New file.
2331 * Makefile.in (CFILES): Add dwarfnames.
2332 (REQUIRED_OFILES): Add dwarfnames.
2333 (./dwarfnames.$(objext)): New target.
2334
c1a96977
TG
23352012-04-04 Tristan Gingold <gingold@adacore.com>
2336
2337 * pex-unix.c (to_ptr32): Fix style.
2338
63e1e57a
TG
23392012-04-02 Tristan Gingold <gingold@adacore.com>
2340
2341 * stack-limit.c: Includes ansidecl.h.
2342 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2343
c19267cb
JM
23442012-03-20 Jason Merrill <jason@redhat.com>
2345
2346 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2347
c93ea196
JM
23482012-03-07 Jason Merrill <jason@redhat.com>
2349
2350 * cp-demangle.c (cplus_demangle_operators): Add li.
2351 (d_unqualified_name): Handle it specially.
2352
bfb676c1
JJ
23532012-01-26 Jakub Jelinek <jakub@redhat.com>
2354
2355 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2356 about using preprocessor directives inside of macro arguments.
2357
daecebc8
DR
23582012-01-22 Douglas B Rupp <rupp@gnat.com>
2359
2360 * configure: Regenerate.
2361
3abbe458
JM
23622012-01-10 Jason Merrill <jason@redhat.com>
2363
2364 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2365 Omit a trailing space in the operator name.
2366
49f2da1a
JM
23672012-01-06 Jason Merrill <jason@redhat.com>
2368
4b6aaa99
JM
2369 PR c++/6057
2370 PR c++/48051
2371 PR c++/50855
2372 PR c++/51322
2373 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2374 DEMANGLE_COMPONENT_INITIALIZER_LIST.
2375 (d_make_comp): Likewise. Allow null right arg for
2376 DEMANGLE_COMPONENT_TRINARY_ARG2.
2377 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2378 (d_template_args, d_template_arg): Handle 'J' for argument packs.
2379 (d_exprlist): Add terminator parm.
2380 (d_expression, d_print_comp): Handle initializer lists, nullary
2381 expressions, prefix/suffix operators, and new.
2382 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2383 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2384 * testsuite/demangle-expected: Add tests.
2385
49f2da1a
JM
2386 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2387 and vector are substitutable.
2388 (cplus_demangle_operators): Sort.
2389
925b0ed8
AK
23902012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2391
2392 * configure: Regenerate.
2393
341d3f6e
JJ
23942012-01-02 Jakub Jelinek <jakub@redhat.com>
2395
2396 * make-relative-prefix.c (make_relative_prefix_1): Avoid
2397 stack overflow if PATH contains just a single entry and
2398 HOST_EXECUTABLE_SUFFIX needs to be used.
2399
2400 PR driver/48306
2401 * make-relative-prefix.c: Include sys/stat.h.
2402 (make_relative_prefix_1): If access succeeds, check also stat
2403 if nstore is a regular file.
2404
4a5e00ca
AS
24052011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2406
2407 * configure: Regenerate.
2408
8c3db96e
TG
24092011-12-20 Tristan Gingold <gingold@adacore.com>
2410
2411 * aclocal.m4: Assume strncmp works in cross case.
2412 * configure: Regenerate
2413
095af58f
AS
24142011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2415
2416 * configure: Regenerate.
2417
0a35513e
AH
24182011-11-07 Richard Henderson <rth@redhat.com>
2419
2420 Merged from transactional-memory.
2421
2422 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2423 gnu_v3_object_ctor_group.
2424 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2425 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2426 and gnu_v3_object_dtor_group.
2427 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2428 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2429 (d_make_comp, d_print_comp): Likewise.
2430 (d_special_name): Generate them.
2431
b25dd954
JM
24322011-11-04 Jason Merrill <jason@redhat.com>
2433
2434 PR c++/48370
2435 * cp-demangle.c (d_special_name, d_print_comp): Handle a
2436 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2437
4092fb6e
DE
24382011-11-02 Doug Evans <dje@google.com>
2439
9f2f6d5e 2440 * Makefile.in (CFILES): Add timeval-utils.c.
4092fb6e
DE
2441 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2442 (INSTALLED_HEADERS): Add timeval-utils.h.
2443 (timeval-utils.$(objext)): Add rule.
2444
d6b0f0f1
ILT
24452011-10-28 Ian Lance Taylor <iant@google.com>
2446
2447 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2448
b20577ea
IS
24492011-10-26 Iain Sandoe <iains@gcc.gnu.org>
2450
2451 PR target/48108
2452 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
2453 GNU_WRAPPER_NAMES): New macros.
2454 (simple_object_mach_o_segment): Handle wrapper scheme.
2455 (simple_object_mach_o_write_section_header): Allow the segment name
2456 to be supplied.
2457 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
2458 that the top-level segment name in the load command is empty.
2459 (simple_object_mach_o_write_to_file): Determine the number of
2460 sections during segment output, use that in writing the header.
2461
d58818f7
ILT
24622011-10-10 Ian Lance Taylor <iant@google.com>
2463
2464 PR c++/48665
2465 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
2466 function type, change them to apply to the "this" parameter.
2467 * testsuite/demangle-expected: Add test case.
2468
be50fcea
DE
24692011-09-28 Doug Evans <dje@google.com>
2470
8c850a5a 2471 * timeval-utils.c: New file.
8c850a5a 2472
be50fcea
DE
2473 * argv.c (countargv): New function.
2474
2d2b02c4
CC
24752011-09-23 Cary Coutant <ccoutant@google.com>
2476
2477 PR 40831
2478 * cp-demangle.c (d_make_comp): Add new component type.
2479 (cplus_demangle_mangled_name): Check for clone suffixes.
2480 (d_parmlist): Don't error out if we see '.'.
2481 (d_clone_suffix): New function.
2482 (d_print_comp): Print info for clone suffixes.
2483 * testsuite/demangle-expected: Add new testcases.
2484
d303ec8e 24852011-09-23 Ian Lance Taylor <iant@google.com>
ae0d176c 2486 Pierre Vittet <piervit@pvittet.com>
d303ec8e
ILT
2487
2488 * md5.c (md5_process_bytes): Correct handling of unaligned
2489 buffer.
2490
e3aa9eba
RO
24912011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2492
2493 * aclocal.m4: Include ../config/picflag.m4.
2494 * configure.ac (GCC_PICFLAG): Call it.
2495 (enable_shared): Clear PICFLAG unless shared.
2496 * configure: Regenerate.
2497
c49b1a29
SE
24982011-08-12 Steve Ellcey <sje@cup.hp.com>
2499
2500 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2501
bd820218
UB
25022011-08-06 Uros Bizjak <ubizjak@gmail.com>
2503
2504 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2505
4bbff96e
JM
25062011-08-01 Jason Merrill <jason@redhat.com>
2507
2508 PR c++/49932
2509 * cp-demangle.c (d_prefix): Handle decltype.
2510 * testsuite/demangle-expected: Test it.
2511
52bed4d7
L
25122011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2513
2514 * testsuite/demangle-expected: Remove an extra line.
2515
f2e6f32e
ILT
25162011-07-26 Ian Lance Taylor <iant@google.com>
2517
2518 * cp-demangle.c (d_print_init): Initialize pack_index field.
2519 (d_print_comp): Check for NULL template argument.
2520 * testsuite/demangle-expected: Add test case.
2521
a0a22423
GP
25222011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
2523
2524 PR target/49817
2525 * stack-limit.c: Include <stdint.h>.
2526
d423df48
JJ
25272011-07-22 Jakub Jelinek <jakub@redhat.com>
2528
2529 PR c++/49756
2530 * stack-limit.c: New file.
2531 * Makefile.in: Regenerate deps.
2532 (CFILES): Add stack-limit.c.
2533 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
2534 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
2535 (AC_CHECK_FUNCS): Likewise.
2536 * configure: Regenerated.
2537 * config.in: Regenerated.
2538
a517066d
JM
25392011-07-04 Jason Merrill <jason@redhat.com>
2540
2541 * cp-demangle.c (d_expression): Handle 'this'.
2542 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
2543
985b34c7
JB
25442011-07-01 Joel Brobecker <brobecker@adacore.com>
2545
2546 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
2547 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
2548
cb0ad104
JK
25492011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2550
2551 PR debug/49408
2552 * cp-demangle.c (d_print_comp): Suppress argument list for function
2553 references by the '&' unary operator. Keep also already processed
2554 variant without the argument list. Suppress argument list types for
2555 function call used in an expression.
2556 * testsuite/demangle-expected: Fix excessive argument list types in
2557 `test for typed function in decltype'. New testcase for no argument
2558 list types printed. 3 new testcases for function references by the
2559 '&' unary operator..
2560
dd70e080
JM
25612011-06-20 Jason Merrill <jason@redhat.com>
2562
2563 PR c++/37089
2564 * cp-demangle.c (d_print_comp): Handle reference smashing.
2565 * testsuite/demangle-expected: Test it.
2566
5fe8e1e9
JK
25672011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
2570 Suppress d_print_mod for DMGL_RET_POSTFIX.
2571 * testsuite/demangle-expected: New testcases for --ret-postfix.
2572
f019462c
JK
25732011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2574
2575 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
2576 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
2577 * testsuite/demangle-expected: New testcases for --ret-drop.
2578 * testsuite/test-demangle.c: Document --ret-drop in a comment.
2579 (main): New variable ret_drop, fill it, call cplus_demangle with it.
2580
743a99db
JK
25812011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 * cp-demangle.c (struct d_print_info): Remove field options.
2584 (d_print_init): Remove parameter options.
2585 (cplus_demangle_print_callback): Update all the callers.
2586 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
2587 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
2588 Add parameter options, update all the callers.
2589
04695783
JM
25902011-04-20 Jim Meyering <meyering@redhat.com>
2591
2592 * cp-demint.c (cplus_demangle_v3_components): Remove useless
2593 if-before-free.
2594 * cplus-dem.c (squangle_mop_up): Likewise.
2595 (delete_non_B_K_work_stuff): Likewise.
2596 * pex-common.c (pex_free): Likewise.
2597 * pex-msdos.c (pex_msdos_cleanup): Likewise.
2598 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
2599 (win32_spawn): Likewise.
2600 * regex.c (FREE_VAR, weak_alias): Likewise.
2601 * spaces.c (spaces): Likewise.
2602
4b9726d4
JM
26032011-04-10 Jim Meyering <meyering@redhat.com>
2604
2605 Avoid memory overrun in a test leading to potential double-free.
2606 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
2607 i.e., do copy the trailing NUL byte.
2608
178aa0f6
TG
26092011-03-31 Tristan Gingold <gingold@adacore.com>
2610
2611 * makefile.vms (OBJS): Add filename_cmp.obj
2612
94369251
KT
26132011-02-28 Kai Tietz <kai.tietz@onevision.com>
2614
2615 * filename_cmp.c (filename_ncmp): New function.
2616 * functions.texi: Regenerated.
2617
996c0cb0
RW
26182011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2619
2620 * splay-tree.c: Escape wrapping newlines in texinfo markup
2621 with '@', to fix function declaration output rendering.
2622 * gather-docs: Relax and improve macro name matching to actually
2623 match all current names and to allow input line wrapping.
2624 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
2625 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
2626 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
2627 pexecute.txh, random.c, setenv.c, setproctitle.c,
2628 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
2629 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
2630 Wrap long texinfo input lines.
2631 * functions.texi: Regenerate.
2632
9e7955b2
MF
26332011-01-18 Mike Frysinger <vapier@gentoo.org>
2634
2635 * .gitignore: New file.
2636
23346f36
DE
26372010-12-08 Doug Evans <dje@google.com>
2638
2639 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
2640 all callers updated. Rewrite to be non-recursive.
2641
4c7d97e6
RO
26422010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2643
2644 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
2645
52ae149d
AG
26462010-11-20 Anthony Green <green@moxielogic.com>
2647
2648 * configure.ac: Turn PR_SET_NAME link test into a test for
2649 sys/prctl.h.
2650 * configure, config.in: Rebuilt.
2651 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
2652 (setproctitle) Test for PR_SET_NAME definition.
2653
455c8f48
RW
26542010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2655
2656 PR other/46202
2657 * Makefile.in (install-strip): New phony target.
2658 (install): Also mark as phony.
2659
d82f74d3
ILT
26602010-11-16 Ian Lance Taylor <iant@google.com>
2661
2662 * simple-object.c (simple_object_attributes_merge): Rename from
2663 simple_object_attributes_compare. Call merge field.
2664 * simple-object-common.h (struct simple_object_functions): Rename
2665 attributes_compare field to attribute_merge.
2666 * simple-object-elf.c (EM_SPARC): Define.
2667 (EM_SPARC32PLUS): Define.
2668 (simple_object_elf_attributes_merge): Renamed from
2669 simple_object_elf_attributes_compare. Permit EM_SPARC and
2670 EM_SPARC32PLUS objects to be merged.
2671 (simple_object_elf_functions): Update function name.
2672 * simple-object-coff.c (simple_object_coff_attributes_merge):
2673 Rename from simple_object_coff_attributes_compare.
2674 (simple_object_coff_functions): Update function name.
2675 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
2676 Renamed from simple_object_mach_o_attributes_compare.
2677 (simple_object_mach_o_functions): Update function name.
2678
431f321f
L
26792010-11-16 H.J. Lu <hongjiu.lu@intel.com>
2680
2681 PR other/42670
2682 PR binutils/11137
2683 * cp-demangle.c (d_make_demangle_mangled_name): New.
2684 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
2685
2686 * testsuite/demangle-expected: Updated.
2687
28d1e73f
KT
26882010-11-14 Kai Tietz <kai.tietz@onevision.com>
2689
2690 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
2691 offset.
2692
759fe240
ILT
26932010-11-12 Ian Lance Taylor <iant@google.com>
2694
2695 PR other/46332
2696 * cp-demangle.c (d_print_function_type): Don't print parentheses
2697 if there are no modifiers to print.
2698 * testsuite/demangle-expected: Tweak one test case, add another.
2699
3b63ca7e
RH
27002010-11-04 Richard Henderson <rth@redhat.com>
2701
2702 * configure.ac (AC_CHECK_HEADERS): Add process.h.
2703 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
2704 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
2705 * configure, config.in: Rebuild.
2706 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
2707 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
2708
1cfabf34
ILT
27092010-11-02 Ian Lance Taylor <iant@google.com>
2710 Dave Korn <dave.korn.cygwin@gmail.com>
2711 Iain Sandoe <iains@gcc.gnu.org>
2712
2713 * simple-object.c: New file.
2714 * simple-object-common.h: New file.
2715 * simple-object-elf.c: New file.
2716 * simple-object-mach-o.c: New file.
2717 * simple-object-coff.c: New file.
2718 * simple-object.txh: New file.
2719 * configure.ac: Add AC_TYPE_SSIZE_T.
2720 * Makefile.in: Rebuild dependencies.
2721 (CFILES): Add simple-object.c, simple-object-coff,
2722 simple-object-elf.c, and simple-object-mach-o.c.
2723 (REQUIRED_OFILES): Add corresponding object files.
2724 * configure: Rebuild.
2725 * config.in: Rebuild.
2726 * functions.texi: Rebuild.
2727
c3735614
ILT
27282010-10-29 Ian Lance Taylor <iant@google.com>
2729
2730 * setproctitle.c: Add space after function name in @deftypefn
2731 comment.
2732 * functions.texi: Rebuild.
2733
0e0f02ff
RW
27342010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2735
2736 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
2737 * configure: Regenerate.
2738
ecdbd01a 27392010-10-07 Andi Kleen <ak@linux.intel.com>
4e00fad2
AK
2740
2741 * configure: Regenerate.
2742 * configure.ac: Turn PR_SET_NAME check into link check.
2743
ecdbd01a 27442010-10-06 Andi Kleen <ak@linux.intel.com>
6e9bd0f8
AK
2745
2746 * Makefile.in (CFILES): Add setproctitle.
2747 (CONFIGURED_OFILES): Add setproctitle.
2748 (setproctitle): Add rule.
2749 * config.in: Regenerate.
2750 * configure: Regenerate.
2751 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
2752 * setproctitle.c: Add file.
2753 * functions.texi: Regenerate.
2754
a69d9775
TG
27552010-09-22 Tristan Gingold <gingold@adacore.com>
2756
2757 * cplus-dem.c (ada_demangle): Add comments.
2758 Handle stream and controlled type operations.
2759 Decoding of some uppercase letters moved before separators.
2760 * testsuite/demangle-expected: Add tests.
2761
48255616
JL
27622010-09-10 James Lyon <jameslyon0@googlemail.com>
2763
2764 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
2765 * cp-demangle.c (d_find_pack): Add case for
2766 DEMANGLE_COMPONENT_LAMBDA.
2767 * testsuite/demangle-expected: Add regression test.
2768
16f60fcb
TG
27692010-09-08 Tristan Gingold <gingold@adacore.com>
2770
2771 PR 44001
2772 * maint-tool (missing): Fix pattern for object file.
2773 (deps): Use $(objext) for object extension.
2774 * Makefile.in (objext): New variable.
2775 Replace all occurences of .o with .$(objext)
2776 Regenerate with maint-deps
2777 * configure.ac (pexecute): Set to the basename.
2778 * configure: Regenerate.
2779
93f36faa
MR
27802010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
2781
2782 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
2783 corresponding stream has been opened.
2784 (pex_free): Close pipe file descriptors corresponding to child's
2785 stdout and stderr before waiting.
2786
ec760bea
NC
27872010-08-13 Nick Clifton <nickc@redhat.com>
2788
2789 * argv.c (expandargv): Limit the number of times that response
2790 files are opened in order to prevent infinite recursion.
2791
79cf7628
PO
27922010-07-21 Pascal Obry <obry@adacore.com>
2793
2794 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
2795
d414dde9
KW
27962010-07-06 Ken Werner <ken.werner@de.ibm.com>
2797
2798 * floatformat.c (floatformat_ieee_half_big): New variable.
2799 (floatformat_ieee_half_little): Likewise.
2800
1e913734
GP
28012010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
2802
2803 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
2804 Update copyright years.
2805 Move to GFDL 1.3.
2806
9c4d7e52
JJ
28072010-06-10 Jakub Jelinek <jakub@redhat.com>
2808
2809 PR other/43838
2810 * cp-demangle.c (struct d_print_info): Add flush_count field.
2811 (d_print_init): Initialize it to 0.
2812 (d_print_flush): Increment it.
2813 (d_print_comp): If needed flush before appending ", ". Only
2814 decrement dpi->len if no flushes happened during the recursive
2815 call.
2816 * testsuite/demangle-expected: Add a test for this.
2817
a9429e29
LB
28182010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2819
2820 * splay-tree.c: Update copyright years.
2821 (splay_tree_new_typed_alloc): New.
2822 (splay_tree_new_with_allocator): Use it.
2823
2824 * hashtab.c: Update copyright years.
2825 (htab_create_typed_alloc): New.
2826 (htab_create_alloc): Use it.
2827
2828 * functions.texi: Regenerate.
2829
c3f247f4
RW
28302010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
2831 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2832
2833 PR bootstrap/42798
2834 * configure.ac: Check for declaration of 'basename(char *)'.
2835 * configure: Regenerate.
2836
28372010-05-26 Kai Tietz <kai.tietz@onevision.com>
a6766312
KT
2838
2839 * testsuite/demangle-expected: Add tests for __int128
2840 and unsigned __int128 types.
2841
14c2101d
JM
28422010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
2843 Jason Merrill <jason@redhat.com>
2844
2845 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
2846 (cplus_demangle_type): Handle nullptr.
2847 * testsuite/demangle-expected: Test it.
2848
3009276c
PA
28492010-04-23 Pedro Alves <pedro@codesourcery.com>
2850
2851 * lbasename.c (lbasename): Split into ...
2852 (unix_lbasename, dos_basename): ... these.
2853 (lbasename): ... and reimplement on top of them.
2854 * Makefile.in (lbasename.o): Add dependency on
2855 $(INCDIR)/filenames.h.
2856
0bb8c134
JJ
28572010-04-07 Jakub Jelinek <jakub@redhat.com>
2858
2859 * regex.c (byte_re_match_2_internal): Avoid set but not used
2860 warning.
2861
ce30e6fd
JM
28622010-03-22 Jason Merrill <jason@redhat.com>
2863
2864 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
2865
ef74edbd
RW
28662010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2867
2868 * Makefile.in (all): Do not use exec.
2869
2480e18f
TT
28702010-02-04 Tom Tromey <tromey@redhat.com>
2871
2872 * testsuite/demangle-expected: Add missing --format=gnu-v3.
2873
abfe01ce
JM
28742010-02-03 Jason Merrill <jason@redhat.com>
2875
f000c6a7
JM
2876 * cp-demangle.c (d_expression): Handle dependent operator name.
2877
abfe01ce
JM
2878 PR c++/12909
2879 * cp-demangle.c (d_number_component, d_vector_type): New.
2880 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
2881
79b754d4
ILT
28822010-01-25 Ian Lance Taylor <iant@google.com>
2883
2884 * cp-demangle.c (cplus_demangle_type): Check for invalid type
2885 after "DF".
2886 * testsuite/demangle-expected: Add test.
2887
4d43dcde
JM
28882010-01-20 Jason Merrill <jason@redhat.com>
2889
2890 PR c++/42338
2891 * cp-demangle.c (d_print_comp): Fix array index printing.
2892
5b40c067
TG
28932010-01-11 Tristan Gingold <gingold@adacore.com>
2894
2895 * cplus-dem.c (ada_demangle): Remove prototype.
2896 (grow_vect): Removed.
2897 (ada_demangle): Rewritten.
2898 (cplus_demangle): Fix indentation.
2899 * testsuite/demangle-expected: Add tests for Ada.
2900
9b2adcdb
L
29012010-01-09 Ian Lance Taylor <iant@google.com>
2902
2903 PR other/42230
2904 * cp-demangle.c (d_demangle): Return dgs.alc on success.
2905
ed945ad9
NI
29062010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
2907
2908 PR target/42316
2909 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
2910 * configure: Regenerate.
2911
698861dc
DE
29122009-12-07 Doug Evans <dje@google.com>
2913
2914 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
2915
59a8dc25
BE
29162009-11-26 Ben Elliston <bje@au.ibm.com>
2917
2918 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
2919 * configure: Regenerate.
2920
1dd2c57b
BE
29212009-11-25 Ben Elliston <bje@au.ibm.com>
2922
2923 * functions.texi: Rebuild.
2924
f8766c93
MLI
29252009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2926 Ben Elliston <bje@au.ibm.com>
2927
2928 * README: Mention changes to Makefile.in and functions.texi.
2929 * gather-docs: Mention 'make stamp-functions' in the header.
2930
5120dc38
BE
29312009-11-23 Ben Elliston <bje@au.ibm.com>
2932 Ian Lance Taylor <iant@google.com>
2933
2934 * pex-unix.c (pex_child_error): Improve warning avoidance by
2935 checking the results of write(3) and exiting with -2 if any write
2936 returns a negative value.
2937
d90a2c59
SW
29382009-11-22 Steve Ward <planet36@gmail.com>
2939
2940 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
2941
c22c44ba
BE
29422009-11-20 Ben Elliston <bje@au.ibm.com>
2943
2944 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
2945 unused result warnings from write(3) calls. Undefine writeerr
2946 after all uses.
2947
70277b30
DG
29482009-10-08 Daniel Gutson <dgutson@codesourcery.com>
2949 Daniel Jacobowitz <dan@codesourcery.com>
2950 Pedro Alves <pedro@codesourcery.com>
2951
70277b30
DG
2952 * argv.c (consume_whitespace): New function.
2953 (only_whitespace): New function.
2954 (buildargv): Always use ISSPACE by calling consume_whitespace.
2955 (expandargv): Skip empty files. Do not stop at the first empty
2956 argument (calling only_whitespace)..
2957 * testsuite/test-expandargv.c: (test_data): Test empty lines
2958 and empty arguments.
2959 (run_tests): Fix false positives due to shorter arguments.
2960
4578037e
MT
29612009-09-30 Martin Thuresson <martint@google.com>
2962
2963 * regex.c (byte_re_match_2_internal): Split declaration and
2964 assignment to avoid -Wc++-compat warning due to goto.
2965
d5f4eddd
JM
29662009-09-29 Jason Merrill <jason@redhat.com>
2967
2968 * Makefile.in: Enable demangle target.
2969 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
2970 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
2971 (d_parmlist): Factor out from d_bare_function_type.
2972 (d_compact_number): Factor out from d_template_param and d_expression.
2973 (d_append_num): Factor out from d_print_comp.
2974 (d_print_comp, d_print_mod_list): Handle lambdas.
2975 * testsuite/demangle-expected: Add lambda tests.
2976
31a9bec4 29772009-09-23 Matthew Gingell <gingell@adacore.com>
30b639a8
MG
2978
2979 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
2980
bcf11ab4
OS
29812009-09-22 Ozkan Sezer <sezeroz@gmail.com>
2982
2983 * choose-temp.c: Include unistd.h for mingw targets.
2984
50cb834f
RO
29852009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2986
2987 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
2988
384ed84d
TG
29892009-09-15 Tristan Gingold <gingold@adacore.com>
2990
2991 * config.h-vms (intptr_t): Define to compile hashtab.c
2992
0e497905
OS
29932009-09-04 Ozkan Sezer <sezeroz@gmail.com>
2994
2995 PR target/39065
2996 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
2997 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
2998 * config.in: Regenerated.
2999 * configure: Regenerated.
3000
2e3dac6f
OS
30012009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3002
3003 PR target/39065
3004 * configure.ac: Also check for intptr_t.
3005 * config.h.in: Regenerated.
3006 * configure: Regenerated.
3007 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3008 instead of of long.
3009
f071aaca
TG
30102009-09-02 Tristan Gingold <gingold@adacore.com>
3011
3012 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3013 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3014 dependencies. Remove unused FORMAT variable.
3015 * configure.com: New file to create build.com DCL script for
3016 Itanium VMS or Alpha VMS.
3017
df58e648
RW
30182009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3019
3020 * configure.ac (AC_PREREQ): Bump to 2.64.
3021
2eba9355
L
30222009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3023
3024 PR ld/10536
3025 * Makefile.in (install-html-recursive): Removed.
3026
5213506e
RW
30272009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3028
3029 * config.in: Regenerate.
3030 * configure: Regenerate.
3031
6efbd53f
RW
30322009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3033
3034 * Makefile.in (AUTOCONF, configure_deps): New variables.
3035 ($(srcdir)/configure): New rule, active only in maintainer mode.
3036
2958f4a2
DR
30372009-07-29 Douglas B Rupp <rupp@gnat.com>
3038
3039 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3040
b303ef51
DR
30412009-07-27 Douglas B Rupp <rupp@gnat.com>
3042
3043 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3044 file instead).
3045 (to_ptr32): New function.
3046 (pex_unix_exec_child): Use it.
3047
330b922f
ILT
30482009-07-24 Ian Lance Taylor <iant@google.com>
3049
3050 PR bootstrap/40854
3051 * crc32.c (xcrc32): Rename from crc32.
3052
b524249c
ILT
30532009-07-24 Ian Lance Taylor <iant@google.com>
3054
3055 * crc32.c: New file.
3056 * Makefile.in: Rebuild dependencies.
3057 (CFILES): Add crc32.c.
3058 (REQUIRED_OFILES): Add ./crc32.o.
3059 * functions.texi: Rebuild.
3060
23b1a789
JK
30612009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3062
3063 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3064 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3065 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3066 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3067 (d_demangle_callback): The variable type is now declared as enum.
3068 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3069
a46f975b
JJ
30702009-06-21 Jakub Jelinek <jakub@redhat.com>
3071
3072 * hashtab.c (htab_traverse): Don't call htab_expand for
3073 nearly empty hashtabs with sizes 7, 13 or 31.
3074
ee07afa0
NC
30752009-06-16 Nick Clifton <nickc@redhat.com>
3076
3077 PR 10197
3078 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3079 conflicts with system function of the same name.
3080
ec5c6f4a
EZ
30812009-05-30 Eli Zaretskii <eliz@gnu.org>
3082
3083 * snprintf.c: Doc fix.
3084
3085 * vsnprintf.c: Doc fix.
3086
bb870b58
KT
30872009-05-29 Kai Tietz <kai.tietz@onevision.com>
3088
bd820218 3089 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
bb870b58 3090
4cfaf1ec
MM
30912009-05-29 Michael Matz <matz@suse.de>
3092
3093 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3094 out when forcing the minimum.
3095 (fibheap_delete_node): Assert that we managed to force the minimum.
3096
0d38b677
TG
30972009-05-25 Tristan Gingold <gingold@adacore.com>
3098
3099 * config.h-vms: Rewritten. Define configure macros.
3100 Use DEC-C builtin alloca.
3101
3102 * makefile.vms (OBJS): Update list.
3103 (OPT): New variable.
3104 (CFLAGS): Update compilation flags.
3105 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3106
7859dde7
ILT
31072009-05-19 Ian Lance Taylor <iant@google.com>
3108 Ben Elliston <bje@au.ibm.com>
3109
3110 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3111 (cplus_demangle_fill_dtor): Likewise.
3112
965cc3c3
JB
31132009-05-17 Julian Brown <julian@codesourcery.com>
3114
3115 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3116 standard handles (stdin, stdout, stderr) in parent.
3117
6874160d
JB
31182009-04-29 Julian Brown <julian@codesourcery.com>
3119
bd820218 3120 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
6874160d
JB
3121 (pex_win32_exec_child): Ensure each process has only one handle open
3122 on pipe endpoints. Close standard input after creating child for
3123 symmetry with standard output/standard error.
3124
ae2040df
EZ
31252009-04-25 Eli Zaretskii <eliz@gnu.org>
3126
3127 * Makefile.in (needed-list): Target removed (not used in GCC
3128 3.0 and later). All references deleted.
3129 (mostlyclean): Remove references to needed.awk and needed2.awk.
3130
01459fb5
EZ
31312009-04-14 Eli Zaretskii <eliz@gnu.org>
3132
3133 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3134 existing and required library functions to with_target_subdir
3135 section, so that the native build does detect them at configure
3136 time.
3137 * configure: Regenerated.
bd820218 3138
92c3e704
OS
31392009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3140
bd820218
UB
3141 PR target/39397
3142 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3143 not as long (members *children and (*wait))
3144 * pex-common.c (pex_run_in_environment): Likewise.
3145 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3146 returned pid value.
3147 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3148 * pex-msdos.c (pex_msdos_wait): Likewise.
92c3e704 3149
020e3d02
AP
31502009-04-07 Arnaud Patard <apatard@mandriva.com>
3151
969ac969
JJ
3152 * configure.ac: Fix Linux/MIPS matching rule.
3153 * configure: Regenerate.
020e3d02 3154
b524249c 31552009-03-27 Ian Lance Taylor <iant@google.com>
5fbd9447
ILT
3156
3157 * memmem.c: New file, from gnulib.
3158 * configure.ac: Add memmem to list of functions provided if they
3159 are not available on the host.
3160 * Makefile.in: Rebuild dependencies.
3161 (CFILES): Add memmem.c.
3162 (CONFIGURED_OFILES): Add memmem.o.
3163 * configure, config.in, functions.texi: Rebuild.
3164
6afcfe0a
JM
31652009-03-23 Jason Merrill <jason@redhat.com>
3166
3167 * cp-demangle.c (d_expression): Handle pack expansion.
3168 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3169 (d_print_subexpr): Don't wrap function parms in ().
3170 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3171 not finding a pack.
3172
448545cb
JM
31732009-03-17 Jason Merrill <jason@redhat.com>
3174
3175 * cp-demangle.c (d_make_function_param): new fn.
3176 (cplus_demangle_mangled_name): Work around abi v2 bug.
3177 (d_expr_primary): Likewise.
3178 (cplus_demangle_operators): Add alignof ops.
3179 (d_expression): Handle function parameters and conversions
3180 with other than 1 operand.
3181 (d_print_comp): Handle function parameters. Fix bug with
3182 function used in type of function.
79b754d4 3183 * testsuite/demangle-expected: Update tests.
448545cb 3184
8c9abf1f
MM
31852009-02-21 Mark Mitchell <mark@codesourcery.com>
3186
3187 * make-temp-file.c (<windows.h>): Include on Windows.
3188 (choose_tmpdir): On Windows, use GetTempPath.
3189
04f9f7b5
DK
31902009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3191
3192 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3193 as it no longer shares libiberty object files.
3194 * configure: Regenerated.
3195
30471e01
JM
31962009-01-07 Jason Merrill <jason@redhat.com>
3197
3198 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3199
381009fe
BE
32002009-01-06 Ben Elliston <bje@au.ibm.com>
3201
3202 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3203 character following a 'D' cannot be recognised.
3204
938e76ad
JM
32052008-12-18 Jason Merrill <jason@redhat.com>
3206
3207 PR c++/38561
3208 * cp-demangle.c (d_expression, d_print_comp): Revert
3209 cast changes.
3210
a77f94e2
JM
32112008-12-17 Jason Merrill <jason@redhat.com>
3212
3213 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3214 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3215 (d_print_comp): Avoid extra ", " with empty template argument packs.
3216 Remove handling for obsolete T() mangling.
3217
07523e7c
JM
32182008-12-10 Jason Merrill <jason@redhat.com>
3219
3220 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3221 (d_print_comp, d_dump): Likewise.
3222
b36c386c
DJ
32232008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3224
3225 * Makefile.in (CPPFLAGS): Define.
3226 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3227
269f1d98
PB
32282008-10-15 Paolo Bonzini <bonzini@gnu.org>
3229
61b74e12 3230 PR bootstrap/37137
269f1d98
PB
3231 * Makefile.in (LIBCFLAGS): Remove.
3232 (FLAGS_TO_PASS): Don't mention it.
3233 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3234
0c9e8424
DE
32352008-10-08 David Edelsohn <edelsohn@gnu.org>
3236
3237 * xstrdup.c: Include <sys/types.h> after "config.h"
bd820218 3238
d208e2d2
JK
32392008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3240
3241 * configure.ac: Call AC_SYS_LARGEFILE.
3242 * config.in: Regenerated.
3243 * configure: Likewise.
3244
38179091
JM
32452008-10-06 Jason Merrill <jason@redhat.com>
3246
3247 * cp-demangle.c (struct d_print_info): Add pack_index.
3248 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3249 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3250 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3251 (cplus_demangle_builtin_types): Add char16/32_t.
3252 (cplus_demangle_type): Recognize them.
3253 (d_template_args): Handle empty argument packs.
3254 (d_template_arg): Handle argument packs.
3255 (d_expression): Handle dependent name.
3256 (d_index_template_argument): New fn.
3257 (d_lookup_template_argument): New fn.
3258 (d_find_pack, d_pack_length): New fn.
3259 (d_print_subexpr): Split out...
3260 (d_print_comp): ...from here. Use d_*_template_argument.
3261 Handle empty arg lists. Support pack expansions.
3262 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3263
5a3d7e74
JM
32642008-09-09 Jason Merrill <jason@redhat.com>
3265
3266 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3267 (d_make_comp): Likewise.
3268 (cplus_demangle_type): Handle decltype and DFP types.
3269 (cplus_demangle_operators): Call operator takes 2 args.
3270 (cplus_demangle_builtin_types): Add DFP types.
3271 (d_exprlist): New fn.
3272 (d_expression): Handle parm placeholders, T() and calls.
3273 (d_print_comp): Handle decltype, T() and calls.
3274 * testsuite/demangle-expected: Test the above.
3275
98b45309
AL
32762008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3277
3278 * pex-win32.c (argv_to_argc): New function.
3279 (spawn_script): Duplicate argv before calling win32_spawn.
3280
60ecfb1b
JJ
32812008-07-31 Jakub Jelinek <jakub@redhat.com>
3282
3283 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3284
a23eb008
DV
32852008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3286
3287 * mkstemps.c (mkstemps): If open failed with errno other than
3288 EEXIST, return immediately.
3289 * make-temp-file.c: Include errno.h.
3290 (make_temp_file): If mkstemps failed, print an error message
3291 before aborting.
3292
f59a2f55
RW
32932008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3294
3295 * maint-tool (deps): Output config.h instead of stamp-h.
3296 * Makefile.in: Rebuild deps.
3297 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3298 Reverts 2007-07-11 change.
3299
6819ba36
EB
33002008-06-19 Eric Blake <ebb9@byu.net>
3301
3302 Adjust strsignal to POSIX 200x prototype.
3303 * strsignal.c (strsignal): Remove const.
3304
18c04407
RW
33052008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3306
3307 * configure: Regenerate.
3308
6ccde948
RW
33092008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3310
3311 * libiberty.texi: Expand TABs, drop indentation outside examples.
3312 * obstacks.texi: Likewise.
3313
951b54cc
AJ
33142008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3315
969ac969
JJ
3316 * configure.ac: use -fPIC on Linux/MIPS hosts.
3317 * configure: Regenerate.
951b54cc 3318
b6baa67d
KVH
33192008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3320
3321 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3322
deb984e6
PB
33232008-04-18 Paolo Bonzini <bonzini@gnu.org>
3324
3325 PR bootstrap/35457
3326 * aclocal.m4: Add override.m4.
3327 * configure: Regenerate.
3328
eeda7b98
ILT
33292008-03-31 Ian Lance Taylor <iant@google.com>
3330
3331 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3332 -fstrict-overflow optimizations.
3333
c91c9c2e
PB
33342008-03-27 Paolo Bonzini <bonzini@gnu.org>
3335
3336 * configure.ac (frags): Don't set, use frag instead.
3337 (PICFLAG): Set here and substitute.
3338 * Makefile.in (PICFLAG): Substitute from autoconf.
3339 * configure: Regenerate.
3340
598848e4
ILT
33412008-03-24 Ian Lance Taylor <iant@google.com>
3342
3343 * sha1.c: New file, from gnulib.
3344 * Makefile.in: Rebuild dependencies.
3345 (CFILES): Add sha1.c.
3346 (REQUIRED_OFILES): Add sha1.o.
3347
01b11940
DE
33482008-03-24 Doug Evans <dje@google.com>
3349
3350 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3351 return from strdup.
3352
5a9340fd
SP
33532008-03-12 Seongbae Park <seongbae.park@gmail.com>
3354
3355 * cplus-dem.c (malloc, realloc): Use void * instead of char *
3356 as return type.
3357
73b38fce
NC
33582008-03-11 Nick Clifton <nickc@redhat.com>
3359
3360 * md5.c (md5_process_bytes): Do not assume that memcpy will
3361 provide a return value.
3362
5ff3a208
BE
33632008-02-19 Ben Elliston <bje@au.ibm.com>
3364
3365 PR other/12618
3366 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3367
e5df4fb1
DD
33682008-01-26 David Daney <ddaney@avtrex.com>
3369
3370 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3371 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3372 DEMANGLE_COMPONENT_CHARACTER cases.
3373 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3374 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3375 (d_make_character): New function.
3376 (d_java_resource): Same.
3377 (d_special_name): Handle "Gr" case.
3378 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3379 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3380 DEMANGLE_COMPONENT_CHARACTER cases.
3381 * testsuite/demangle-expected: Add test for java resource name
3382 mangling.
3383
62b445b3
TJB
33842008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3385
3386 * cplus-dem.c (demangle_function_name): Changed to return value
3387 indicating if a name was correctly demangled.
3388 (iterate_demangle_function): Use demangle_function_name return
3389 value.
3390
daf6ff4c
MLI
33912008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3392
3393 PR other/33768
3394 * splay-tree.c (rotate_left): Fix minor typo in comment.
3395 (rotate_right): Likewise.
3396
983a6f8d
JM
33972007-11-12 Joseph Myers <joseph@codesourcery.com>
3398
3399 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3400 compiler warnings.
3401 (floatformat_ibm_long_double): Use
3402 floatformat_ibm_long_double_is_valid.
3403
da59326f
JM
34042007-11-07 Joseph Myers <joseph@codesourcery.com>
3405 Daniel Jacobowitz <dan@codesourcery.com>
3406
3407 * floatformat.c (mant_bits_set): New.
3408 (floatformat_to_double): Use it. Note no special handling of
3409 split formats.
3410 (floatformat_from_double): Note no special handing of split
3411 formats.
3412 (floatformat_ibm_long_double_is_valid,
3413 floatformat_ibm_long_double): New.
3414 (floatformat_ieee_single_big, floatformat_ieee_single_little,
3415 floatformat_ieee_double_big, floatformat_ieee_double_little,
3416 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3417 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3418 floatformat_m68881_ext, floatformat_i960_ext,
3419 floatformat_m88110_ext, floatformat_m88110_harris_ext,
3420 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3421 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3422 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3423 for addition of split_half field.
3424
48492bdf
TT
34252007-09-06 Tom Tromey <tromey@redhat.com>
3426
3427 * pexecute.txh (pex_free): Document process killing.
3428
1ab28be5 34292007-08-31 Douglas Gregor <doug.gregor@gmail.com>
6819ba36 3430
1ab28be5 3431 * cp-demangle.c (d_dump): Handle
6819ba36 3432 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1ab28be5
DG
3433 (d_make_comp): Ditto.
3434 (cplus_demangle_type): Ditto.
3435 (d_print_comp): Ditto.
3436 (d_print_mod): Ditto.
3437 (d_print_function_type): Ditto.
3438
1651030c
KT
34392007-08-24 Kai Tietz <kai.tietz@onevision.com>
3440
3441 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
3442 * pex-djgpp.c: Likewise.
3443 * pex-msdos.c: Likewise.
3444 * pex-unix.c: Likewise.
3445 * pex-win32.c: Likewise.
3446
9c79ad8b
MS
34472007-08-17 Michael Snyder <msnyder@access-company.com>
3448
3449 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3450
fd83e387
MS
34512007-08-03 Michael Snyder <msnyder@access-company.com>
3452
3453 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3454 leak.
3455
ac847e32
MS
34562007-07-31 Michael Snyder <msnyder@access-company.com>
3457
3458 * cp-demangle.c (d_print_comp): Guard against null.
3459
f4f29b59
BE
34602007-07-25 Ben Elliston <bje@au.ibm.com>
3461
3462 * Makefile.in (CFILES): Remove ternary.c.
3463 (REQUIRED_OFILES): Remove ./ternary.o.
3464 (INSTALLED_HEADERS): Remove ternary.h.
3465 (ternary.o): Remove.
3466 * ternary.c: Remove.
3467
f4e00f44
DD
34682007-07-23 DJ Delorie <dj@redhat.com>
3469
3470 * argv.c (writeargv): Fix typo in inline documentation.
3471 * functions.texi: Regenerate.
3472
6a9131e7
DD
34732007-07-17 DJ Delorie <dj@redhat.com>
3474
3475 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
3476 gettimeofday entry.
3477 * configure: Likewise.
3478
0f3d38b6
AO
34792007-07-11 Alexandre Oliva <aoliva@redhat.com>
3480
3481 * maint-tool (deps): Output stamp-h instead of config.h.
3482 * Makefile.in: Rebuild deps.
3483 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3484
38bb3485
SB
34852007-07-02 Simon Baldwin <simonb@google.com>
3486
3487 * argv.c (writeargv): Removed declaration of unused variable.
3488
aa2480c5
PB
34892007-06-14 Paolo Bonzini <bonzini@gnu.org>
3490
3491 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
3492 * configure: Regenerate.
3493
3bbd5a19
PB
34942007-06-14 Paolo Bonzini <bonzini@gnu.org>
3495
3496 * aclocal.m4: Include config/warnings.m4.
3497 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
3498 * configure: Regenerate.
3499
abea993f
GK
35002007-06-07 Geoffrey Keating <geoffk@apple.com>
3501
3502 * configure.ac: Non-default multilibs can be cross compilations.
3503 * configure: Regenerate
3504
2091ff66
NF
35052007-05-07 Nathan Froyd <froydnj@codesourcery.com>
3506
3507 * argv.c (writeargv): New function.
3508
a2aa65f0
GK
35092007-05-05 Geoffrey Keating <geoffk@apple.com>
3510
3511 * cp-demangle.c (d_name): Detect local-source-name.
3512 (d_prefix): Likewise.
3513 (d_unqualified_name): Implement local-source-name.
3514
186c60ab
JB
35152007-05-03 Joel Brobecker <brobecker@adacore.com>
3516
3517 * filename_cmp.c: Replace include of ctype.h by include of
3518 safe-ctype.h.
3519 (filename_cmp): Use TOLOWER instead of tolower for conversions
3520 that are locale-independent.
3521 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
3522
a3fa7535 35232007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
017133fd
TN
3524
3525 * argv.c: Use ANSI C declarations.
3526 * make-relative-prefix.c: Likewise.
3527
96a94ff4
JB
35282007-04-06 Joel Brobecker <brobecker@adacore.com>
3529
3530 * filename_cmp.c (filename_cmp): Improve documentation.
3531
320fc205
AS
35322007-04-02 Andreas Schwab <schwab@suse.de>
3533
3534 * filename_cmp.c: Include "config.h".
3535
cde515d9
JB
35362007-03-29 Joel Brobecker <brobecker@adacore.com>
3537
3538 * filename_cmp.c: New file.
3539 * Makefile.in (CFILES): Add filename_cmp.c.
3540 (REQUIRED_OFILES): Add filename_cmp.o
3541 (filename_cmp.o): New rule.
3542 * functions.texi: Regenerate.
3543
771904f1
GK
35442007-03-15 Geoffrey Keating <geoffk@apple.com>
3545
3546 * cp-demangle.c (d_encoding): Exit early on error.
3547 (d_pointer_to_member_type): Exit early if cplus_demangle_type
3548 returns NULL.
3549 (cplus_demangle_type): Likewise.
3550 * testsuite/demangle-expected: New testcase.
3551
267686a7
BM
35522007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3553
3554 * Makefile.in: Add install-pdf target as copied from
3555 automake v1.10 rules.
3556 * testsuite/Makefile.in: Add dummy install-pdf target.
3557
5f81370d 35582007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
6819ba36 3559 Eric Botcazou <ebotcazou@libertysurf.fr>
5f81370d
PB
3560
3561 PR other/16513
3562 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
3563 Install headers in multilib independent location.
3564
f86b57e4
DD
35652007-02-26 DJ Delorie <dj@redhat.com>
3566
3567 * configure.ac: add djgpp-specific results, so we don't have to
3568 link during a cross compilation.
3569 * configure: Regenerated.
6819ba36 3570
15b16eb5
RW
35712007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3572
3573 * hex.c: Fix typo.
3574 * choose-temp.c: Likewise.
3575 * functions.texi: Regenerate.
3576
7cf4c53d
VP
35772007-01-31 Vladimir Prus <vladimir@codesourcery.com>
3578
3579 * pex-common.h (struct pex_obj): New fields
6819ba36 3580 stderr_pipe and read_err.
7cf4c53d
VP
3581 * pex-common.c (pex_init_common): Initialize
3582 stderr_pipe.
3583 (pex_run_in_environment): Add error checking
3584 for PEX_STDERR_TO_PIPE. Create a pipe
3585 for stderr if necessary.
3586 (pex_read_err): New.
3587 (pex_free): Close read_err.
3588 * pexecute.txh: Document changes.
3589 * functions.texi: Regenerated.
3590
ae452ed1
BE
35912007-01-31 Ben Elliston <bje@au.ibm.com>
3592
3593 * strsignal.c (psignal): Change type of signo to int.
3594 * functions.texi: Regenerate.
3595
456cc5cf
SB
35962007-01-29 Simon Baldwin <simonb@google.com>
3597
3598 * cp-demangle.h (cplus_demangle_operators): External definition
3599 suppressed if not building for libstdc++.
3600 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
3601 to demangling, provides a malloc-less version of __cxa_demangle.
3602 (cplus_demangle_print_callback): Public callback version of
3603 cplus_demangle_print.
3604 (struct d_growable_string): New growable string structure.
3605 (d_growable_string_init): New function, provides support for
3606 growable strings separate from print info.
3607 (d_growable_string_resize): Likewise.
3608 (d_growable_string_append_buffer): Likewise.
3609 (d_growable_string_callback_adapter):): Likewise.
3610 (d_print_init): New print info initialization function.
3611 (d_print_error): Macro replace by inline function.
3612 (d_print_saw_error): Likewise.
3613 (d_append_char): Likewise.
3614 (d_append_buffer): Likewise.
3615 (d_append_string): New inline function, replaces the
3616 d_append_string_constant macro.
3617 (d_flush_buffer): New function, flushes buffer to callback.
3618 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
3619 for unsupported dynamic arrays replaced by alloca().
3620 (d_demangle): Return string length estimating removed.
3621 (d_dump): Moved error case handling from call site into function.
3622 (d_print_resize): Function removed.
3623 (d_print_append_char): Likewise.
3624 (d_print_append_buffer): Likewise.
3625 (d_print_error): Likewise.
3626 (d_print_comp): Added special case handling for Java arrays.
3627 (java_demangle_v3): Removed string post-processing for Java arrays,
3628 now replaced by special case handling in d_print_comp.
3629 (cplus_demangle_v3_callback): Augmented interface to demangling,
3630 provides a malloc-less version of cplus_demangle_v3.
3631 (java_demangle_v3_callback): Augmented interface to demangling,
3632 provides a malloc-less version of java_demangle_v3.
3633
7d37bf39
BE
36342007-01-12 Ben Elliston <bje@au.ibm.com>
3635
1a8e58a3
BE
3636 * pex-unix.c (writeerr): Cast write result to void.
3637
4d4f0164
BE
3638 * choose-temp.c (choose_temp_base): Check the result of the call
3639 to mktemp rather than testing the length of the modified string.
7d37bf39 3640
5165f125
GK
36412006-12-20 Geoffrey Keating <geoffk@apple.com>
3642
3643 * cp-demangle.h: Add comment explaining what to do to avoid
3644 overrunning string.
3645 (d_check_char): New.
3646 (d_next_char): Don't advance past trailing '\0'.
3647 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
3648 (d_nested_name): Likewise.
3649 (d_special_name): Likewise.
3650 (d_call_offset): Likewise.
3651 (d_function_type): Likewise.
3652 (d_array_type): Likewise.
3653 (d_pointer_to_member_type): Likewise.
3654 (d_template_param): Likewise.
3655 (d_template_args): Likewise.
3656 (d_template_arg): Likewise.
3657 (d_expr_primary): Likewise.
3658 (d_local_name): Likewise.
3659 (d_substitution): Likewise.
3660 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
3661 * testsuite/test-demangle.c: Include sys/mman.h.
3662 (MAP_ANONYMOUS): Define.
3663 (protect_end): New.
3664 (main): Use protect_end.
3665 * testsuite/demangle-expected: Add testcases for overrunning
3666 the end of the string.
3667
334737af 36682006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
6819ba36 3669 J"orn Rennecke <joern.rennecke@st.com>
334737af
AS
3670
3671 PR driver/29931
3672 * make-relative-prefix.c (make_relative_prefix_1): New function,
3673 broken out of make_relative_prefix. Make link resolution dependent
3674 on new parameter.
3675 (make_relative_prefix): Use make_relative_prefix_1.
3676 (make_relative_prefix_ignore_links): New function.
3677
e9903c67
VP
36782006-11-08 Vladimir Prus <vladimir@codesourcery.com>
3679
3680 * pex-win32.c (no_suffixes): Remove.
3681 (std_suffixes): Add "" as first element.
3682 (find_executable): Remove detection of already-present
3683 extension. Try all suffixes in std_suffixes.
6819ba36 3684
36b82060
JB
36852006-11-07 Julian Brown <julian@codesourcery.com>
3686
3687 * floatformat.c (get_field): Fix segfault with little-endian word
3688 order on 64-bit hosts.
3689 (put_field): Likewise.
3690 (min): Move definition.
3691
7445de0a
DS
36922006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
3693
3694 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
3695 (find_executable): Likewise.
3696 (win32_spawn): Cast alloca return to (char**).
3697 Replace malloc with XNEWVEC.
3698 bcopy.c (bcopy): Add explict casts in assignments.
3699
97977a91
BE
37002006-10-25 Ben Elliston <bje@au.ibm.com>
3701
3702 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
6819ba36 3703
b5422ad7
BM
37042006-10-10 Brooks Moses <bmoses@stanford.edu>
3705
3706 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
3707 * testsuite/Makefile.in: Added empty "pdf" target.
3708
53e3e587
ILT
37092006-09-22 Ian Lance Taylor <ian@airs.com>
3710
3711 PR other/29176
3712 * cp-demangle.c (d_substitution): Check for overflow when
3713 computing substitution index.
3714
70aec81b
CV
37152006-08-30 Corinna Vinschen <corinna@vinschen.de>
3716
3717 * configure.ac: Add case for Mingw as host.
3718 * configure: Regenerate.
3719
022d4166
ILT
37202006-08-27 Ian Lance Taylor <ian@airs.com>
3721
5317e1c7
ILT
3722 PR driver/27622
3723 * pex-common.h (struct pex_funcs): Add toclose parameter to
3724 exec_child field.
3725 * pex-common.c (pex_run_in_environment): Pass toclose to
3726 exec_child.
3727 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
3728 * pex-unix.c (pex_unix_exec_child): Likewise.
3729 * pex-msdos.c (pex_msdos_exec_child): Likewise.
3730 * pex-win32.c (pex_win32_exec_child): Likewise.
3731
022d4166
ILT
3732 PR other/28797
3733 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
3734 for a qualified member which is not a function.
3735 * testsuite/demangle-expected: Add test case.
3736
3050098b
JH
37372006-07-27 Jan Hubicka <jh@suse.cz>
3738
3739 PR rtl-optimization/28071
3740 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
3741 downsize the hashtable.
3742
706601d9
PG
37432006-07-04 Peter O'Gorman <peter@pogma.com>
3744
3745 * Makefile.in: chmod 644 before ranlib during install.
3746
239559e7
MS
37472006-06-02 Mark Shinwell <shinwell@codesourcery.com>
3748
3749 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
3750 to environ.
3751
ea60341e
MS
37522006-06-01 Mark Shinwell <shinwell@codesourcery.com>
3753
3754 * pex-common.c: New function pex_run_in_environment.
3755 * pex-common.h: Add environment parameter to exec_child.
3756 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
3757 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
3758 (pex_djgpp_exec_child): Pass environment to child process.
3759 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
3760 (pex_unix_exec_child): Pass environment to child process.
3761 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
3762 New function env_compare for comparing VAR=VALUE pairs.
3763 (win32_spawn): Assemble environment block and pass to CreateProcess.
3764 (spawn_script): Pass environment through to win32_spawn.
3765 (pex_win32_exec_child): Pass environment through to spawn_script and
3766 win32_spawn.
3767 * functions.texi: Regenerate.
3768 * pexecute.txh: Document pex_run_in_environment.
3769
8967e029
MS
37702006-05-28 Mark Shinwell <shinwell@codesourcery.com>
3771
3772 * mkstemps.c: Open temporary files in binary mode.
3773
824bceb0
AB
37742006-05-12 Anton Blanchard <anton@samba.org>
3775
3776 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
3777 hold "int%u_t".
3778
9fff6432
JB
37792006-04-24 Julian Brown <julian@codesourcery.com>
3780
3781 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
3782
8eff378c
JB
37832006-03-29 Jim Blandy <jimb@codesourcery.com>
3784
f33a23a0 3785 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
3786 (pex_init_common): Initialize obj->input_file.
3787 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
3788 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
3789 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 3790 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
3791 * pex-unix.c (pex_unix_fdopenw): New function.
3792 (funcs): List it as our fdopenw function.
3793 * pex-win32.c (pex_win32_fdopenw): New function.
3794 (funcs): List it as our fdopenw function.
3795 * pex-djgpp.c (funcs): Leave fdopenw null.
3796 * pex-msdos (funcs): Same.
3797 * functions.texi: Regenerated.
8eff378c 3798
5ea49f9c
JB
37992006-04-10 Jim Blandy <jimb@codesourcery.com>
3800
3801 * pex-common.c (temp_file): New function, containing guts of
3802 pex-style temporary file name generation.
3803 (pex_run): Use it.
3804
cf61af07
CD
38052006-04-06 Carlos O'Donell <carlos@codesourcery.com>
3806
3807 * Makefile.in: Add install-html, install-html-am, and
6819ba36
EB
3808 install-html-recursive targets. Define mkdir_p and
3809 NORMAL_INSTALL.
cf61af07
CD
3810 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
3811 * configure: Regenerate.
3812 * testsuite/Makefile.in: Add install-html and html targets.
3813
bd9e7c5c
MM
38142006-03-31 Mark Mitchell <mark@codesourcery.com>
3815
3816 * pex-win32.c (<errno.h>): Include.
3817 (fix_argv): Remove.
3818 (argv_to_cmdline): New function.
3819 (std_suffixes): New variable.
3820 (no_suffixes): Likewise.
3821 (find_executable): New function.
3822 (win32_spawn): Likewise.
3823 (spawn_script): Use win32_spawn instead of _spawnv[p].
3824 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
3825 (pex_win32_wait): Likewise.
3826
58df1c41
JB
38272006-03-24 Jim Blandy <jimb@codesourcery.com>
3828
3829 * pex-common.c (pex_run): Simplify output name handling.
3830
7d898fa2
JB
38312006-03-12 Jim Blandy <jimb@red-bean.com>
3832
3833 * pex-common.h (struct pex_obj): Doc fixes.
3834
ddbbee51
JB
38352006-03-11 Jim Blandy <jimb@red-bean.com>
3836
3837 * functions.texi: Regenerate.
3838
f49712d8
BE
38392006-02-21 Ben Elliston <bje@au.ibm.com>
3840
3841 * pexecute.c (pwait): Syntax fix for previous change.
3842
8f629dc5
UP
38432006-02-17 Uttam Pawar <uttamp@us.ibm.com>
3844
3845 * pexecute.c (pwait): Free vector pointer.
3846 * partition.c (partition_print): Free class_elements pointer.
3847
12c61ac3
RS
38482006-02-11 Roger Sayle <roger@eyesopen.com>
3849 R. Scott Bailey <scott.bailey@eds.com>
3850 Bill Northcott <w.northcott@unsw.edu.au>
3851
3852 PR bootstrap/16787
3853 * floatformat.c: Include <float.h> where available.
3854 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
3855
e8f9ec35
GDR
38562006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
3857
3858 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
6819ba36 3859 supported.
e8f9ec35
GDR
3860 * configure: Regenerated.
3861
974c2c56
CD
38622006-01-20 Carlos O'Donell <carlos@codesourcery.com>
3863
3864 * testsuite/Makefile.in: Add test-expandargv test.
3865 * testsuite/test-expandargv.c: New test.
3866 * argv.c (expandargv): Check for errors with ferror,
3867 rather than just by looking at return value from fread.
3868
573b07c7
GDR
38692005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
3870
3871 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
3872 to convert from "from".
3873 (floatformat_to_double): Likewise.
3874 (floatformat_from_double): Use explicit cast to convert from "to".
3875
92aed1cb
TL
38762005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
3877
3878 PR java/9861
3879 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
3880 and include return type when found.
3881 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
3882 conditional logic to change printing order of return type.when
3883 the DMGL_RET_POSTFIX option is present.
3884 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
3885 call.
3886 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
3887 * testsuite/demangle-expected: Test cases to verify extended encoding.
3888 Updated comment to document --ret-postfix option.
6819ba36 3889
73a08f87
RG
38902005-11-06 Richard Guenther <rguenther@suse.de>
3891
3892 * splay-tree.c (rotate_left): New function.
3893 (rotate_right): Likewise.
3894 (splay_tree_splay_helper): Remove.
3895 (splay_tree_splay): Re-implement.
3896
0432a5de
MK
38972005-10-31 Mark Kettenis <kettenis@gnu.org>
3898
3899 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
3900 New variables.
3901
cb120852
MM
39022005-10-07 Mark Mitchell <mark@codesourcery.com>
3903
3904 * at-file.texi: Fix typo.
3905
36dd6d31
MM
39062005-10-03 Mark Mitchell <mark@codesourcery.com>
3907
3908 * at-file.texi: New file.
3909
affbb54a
MM
39102005-09-27 Mark Mitchell <mark@codesourcery.com>
3911
3912 * argv.c (expandargv): Do not use xmalloc_failed.
3913
97393d0a
MM
39142005-09-26 Mark Mitchell <mark@codesourcery.com>
3915
3916 * argv.c (safe-ctype.h): Include it.
3917 (ISBLANK): Remove.
3918 (stdio.h): Include.
3919 (buildargv): Use ISSPACE instead of ISBLANK.
3920 (expandargv): New function.
240921b9 3921 * Makefile.in: Regenerated.
97393d0a 3922
0d676b85
CF
39232005-09-14 Christopher Faylor <cgf@timesys.com>
3924
3925 * pex-win32.c: Include "windows.h".
3926 (backslashify): New function.
3927 (fix_argv): Use backslashify to convert path to windows format.
3928 Allocate one more place in new argv for potential executable from '#!'
3929 parsing.
3930 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
3931 (openkey): Ditto.
3932 (mingw_rootify): Ditto.
3933 (msys_rootify): Ditto.
3934 (spawn_script): New function.
3935 (pex_win32_exec_child): Save translated argv in newargv. Pass to
3936 spawn_script if spawnv* fails.
3937 (main): New function. Conditional on MAIN. Useful for testing.
3938
e89b6c1c
MK
39392005-08-17 Mark Kettenis <kettenis@gnu.org>
3940
3941 * floatformat.c (floatformat_always_valid): Change type of last
3942 argument to `void *'.
3943 (floatformat_i387_ext_is_valid): Likewise.
3944 (floatformat_to_double): Change type of second argument to `const
3945 void *'.
3946 (floatformat_from_double): Change type of last argument to `void
3947 *'.
3948 (floatformat_is_valid): Change type of last argument to `const
3949 void *'.
3950 (ieee_test): Remove redundant casts.
3951
0cbe2a68
KC
39522005-08-17 Kelley Cook <kcook@gcc.gnu.org>
3953
3954 * strverscmp.c: Update FSF address.
3955 * testsuite/Makefile.in: Likewise.
3956 * testsuite/test-demangle.c: Likewise.
3957 * testsuite/test-pexecute.c: Likewise.
3958
ca1cc111
KG
39592005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3960
3961 * getopt.c: Include ansidecl.h before system headers.
3962
f4f94d6b
BE
39632005-07-22 Ben Elliston <bje@gnu.org>
3964
3965 * getopt.c: Include "ansidecl.h".
3966 (_getopt_initialize): Mark argc and argv parameters as unused.
3967
8cfb7ab7
BE
39682005-07-22 Ben Elliston <bje@gnu.org>
3969
3970 * regex.c (regcomp): Change type of `i' from unsigned to int.
3971
b4db223f
BE
39722005-07-22 Ben Elliston <bje@gnu.org>
3973
3974 Recover patch lost in the sourceware repository:
3975 2005-07-09 Ben Elliston <bje@au.ibm.com>
3976 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
3977 * memmove.c: Likewise.
3978 * objalloc.c: Likewise.
3979
8b82b724
BE
39802005-07-22 Ben Elliston <bje@gnu.org>
3981
3982 * configure.ac: Check for a getopt(3) declaration.
3983 * configure, config.in: Regenerate.
3984
7c22afcb
BE
39852005-07-15 Ben Elliston <bje@au.ibm.com>
3986
3987 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
3988
72f93778
BE
39892005-07-12 Ben Elliston <bje@au.ibm.com>
3990
3991 * floatformat.c (floatformat_to_double): Add a comment about a
3992 potential source of warnings when compiling this file.
3993
6c5844d2
BE
39942005-07-12 Ben Elliston <bje@au.ibm.com>
3995
3996 * pexecute.c (pexecute): Cast string litrals to char *.
3997 * regex.c (re_comp): Cast a call to gettext() to char *.
3998
769b009e
KC
39992005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4000
4001 * config.table: Delete file. Move former contents into ...
4002 * configure.ac: ... here and escape any brackets for m4.
4003 * Makefile.in (config.status): Remove dependency on config.table.
4004 * configure: Regenerate.
4005
f379ddd1
KC
40062005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4007
4008 * config.in: Regenerate for 6/20 change.
4009
6cbfa10e
SE
40102005-07-03 Steve Ellcey <sje@cup.hp.com>
4011
4012 PR other/13906
4013 * md5.c (md5_process_bytes): Check alignment.
4014
8c7262af
ILT
40152005-07-01 Ian Lance Taylor <ian@airs.com>
4016
4017 PR other/22268
4018 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4019 string while looking for the end of a literal value.
4020 * testsuite/demangle-expected: Add test case.
4021
a3648cfc
DB
40222005-06-30 Daniel Berlin <dberlin@dberlin.org>
4023
4024 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
6819ba36 4025 (DELETED_ENTRY): Ditto.
a3648cfc 4026
83fbfe42
GK
40272005-06-20 Geoffrey Keating <geoffk@apple.com>
4028
4029 * strverscmp.c: New.
4030 * Makefile.in (CFILES): Add strverscmp.c.
4031 (CONFIGURED_OFILES): Add strverscmp.o.
4032 (strverscmp.o): New rule.
4033 (stamp-functions): Add $(srcdir) to files in source directory.
4034 * configure.ac (funcs): Add strverscmp.
4035 (AC_CHECK_FUNCS): Add strverscmp.
4036 * configure: Regenerate.
4037 * functions.texi: Regenerate.
4038
ddcf783b
EZ
40392005-05-28 Eli Zaretskii <eliz@gnu.org>
4040
4041 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4042 * config.in, configure: Regenerate.
4043
15da2806
RH
40442005-05-25 Richard Henderson <rth@redhat.com>
4045
4046 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4047 (d_make_comp, d_print_comp): Likewise.
4048 (d_special_name): Generate one.
4049 * testsuite/demangle-expected: Add a hidden alias test.
4050
d7cf8390
GDR
40512005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4052
4053 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 4054 malloc(), realloc() and sbrk().
d7cf8390
GDR
4055 * config.in: Regenerate.
4056 * configure: Likewise.
4057
4058 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4059 instead of xmalloc.
4060 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4061 * concat.c (liiberty_concat_ptr): Surround definition with an
4062 extern "C" block, if __cplusplus.
4063 (concat): Use XNEWVEC instead of xmalloc.
4064 (reconcat): Likewise.
4065 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 4066 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
4067 (d_print_resize): Properly cast return value of realloc().
4068 (cplus_demangle_print): Same for malloc().
4069 (d_demangle): Likewise.
4070 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4071 "typename" to "type_name".
4072 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4073 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4074 (demangle_template_value_parm): Likewise.
4075 (demangle_template): Likewise.
4076 (recursively_demangle): Likewise.
4077 (do_hpacc_template_literal): Likewise.
4078 (do_arg): Likewise.
4079 (remember_type): Likewise.
4080 (remember_Ktype): Likewise.
4081 (register_Btype): Likewise.
4082 (string_need): Use XRESIZEVEC instead of xrealloc().
4083 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4084 (dyn_string_new): Use XNEW.
4085 (dyn_string_resize): Use XRESIZEVEC.
4086 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4087 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4088 Otherwise include <stdlib.h>.
4089 (exchange): Cast return value of malloc().
4090 * hashtab.c (htab_size): Define as both macro and non-inline
4091 function.
4092 (htab_elements): Likewise.
4093 * getpwd.c (getpwd): Use XNEWVEC.
4094 (htab_create_alloc_ex): Use C90 prototype-style.
4095 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 4096 malloc().
d7cf8390
GDR
4097 * make-relative-prefix.c (save_string): Likewise.
4098 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4099 the file.
4100 (choose_tmpdir): Use XNEWVEC.
4101 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4102 * pex-common.c (pex_init_common): Use XNEW.
4103 (pex_add_remove): Use XRESIZEVEC.
4104 (pex_run): Likewise.
4105 (pex_get_status_and_time): Likewise.
4106 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4107 * pex-msdos.c (pex_init): Use XNEW.
4108 (pex_msdos_exec_child): Likewise.
4109 (pex_msdos_exec_child): Use XRESIZEVEC.
4110 * pex-unix.c (pex_wait): Use XNEW.
4111 * pex-win32.c (fix_argv): Use XNEWVEC.
4112 * pexecute.c (pwait): Likewise.
4113 * setenv.c (setenv): Properly cast return value of malloc().
4114 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4115 "new" to "old_sig" and "new_sig".
4116 * sort.c (main): Use XNEWVEC.
4117 * spaces.c (spaces): Cast return value of malloc().
4118 * strndup.c (strndup): Likewise.
4119 * ternary.c (ternary_insert): Use XNEW.
4120 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4121 with an extern "C" block if __cplusplus.
4122 * xstrdup.c (xstrdup): Cast return value of memcpy().
4123 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4124 block if __cplusplus.
4125 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4126
99e4078f
AJ
41272005-05-16 Andreas Jaeger <aj@suse.de>
4128
4129 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4130 that it's only declared if needed.
4131
4132 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4133 defined.
4134
766643be
AJ
41352005-05-15 Andreas Jaeger <aj@suse.de>
4136
4137 * functions.texi: Regenerated.
4138
2b836651
EZ
41392005-05-15 Eli Zaretskii <eliz@gnu.org>
4140
4141 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4142 braces. Minor wording fixes. Use --- for em-dash. Use
4143 @enumerate in enumerated lists.
4144
d842a495
AJ
4145 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4146 braces.
4147
5db1c531
EZ
41482005-05-11 Eli Zaretskii <eliz@gnu.org>
4149
4150 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4151 sys/stat.h.
4152 (pex_init): Fix last argument to pex_init_common.
4153 (pex_djgpp_exec_child): Remove leading underscore from _open,
4154 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4155 which is undeclared, with `executable', which was unused. Remove
4156 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4157 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4158
bd7d50f8
PB
41592005-05-11 Paul Brook <paul@codesourcery.com>
4160
4161 * Makefile.in: Regenerate dependencies.
4162
ee58dffd
NC
41632005-05-10 Nick Clifton <nickc@redhat.com>
4164
4165 * Update the address and phone number of the FSF organization in
4166 the GPL notices in the following files:
4167 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4168 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4169 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4170 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4171 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4172 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4173 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4174 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4175 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4176 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4177 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4178 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4179 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4180
c1300f45
KC
41812005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4182
4183 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4184 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4185 * configure: Regenerate.
4186
fbc1bc09
KC
41872005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4188
4189 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4190 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4191 * aclocal.m4: Don't include accross.m4.
4192 * configure, config.in: Regenerate.
4193
32e82bd8
KG
41942005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4195
4196 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 4197
32e82bd8
KG
4198 * functions.texi: Regenerate.
4199
6feaa084
KG
42002005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4201
4202 * fopen_unlocked.c (unlock_stream): New.
4203 Consolidate unlocking code into a helper function.
4204
4205 * functions.texi: Regenerate.
4206
3c60ae5a
GDR
42072005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4208
4209 * asprintf.c: Include config.h.
4210 * basename.c: Likewise.
4211 * fdmatch.c: Likewise.
4212 * hex.c: Likewise.
4213 * lbasename.c: Likewise.
4214 * spaces.c: Likewise.
4215 * xatexit.c:Likewise.
2b836651 4216 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
4217 and vasprintf for real.
4218 * configure: Regenerate.
4219
0e0af50b
GDR
42202005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4221
2b836651 4222 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 4223 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 4224
4cf88ac3
GDR
42252005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4226
4227 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 4228 Replace not with negate.
4cf88ac3 4229
1ff7682c
GDR
42302005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4231
4232 * configure.ac: Check declarations for basename, ffs, asprintf,
4233 vasprintf.
4234 * configure: Regenerate.
4235 * config.in: Likewise.
4236
78a7dc90
KG
42372005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4238
4239 * Makefile.in (CFILES): Add fopen_unlocked.c.
4240 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4241 Regenerate dependencies.
4242
4243 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4244
4245 * fopen_unlocked.c: New file.
4246
4247 * functions.texi, configure, config.in: Regenerate.
4248
2f84c996
ILT
42492005-04-04 Ian Lance Taylor <ian@airs.com>
4250
4251 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4252 declaration before statement.
4253
f9a9ac80
KG
42542005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4255
29138797
KG
4256 * bcmp.c: Fix warnings and implement using memcmp.
4257 * bcopy.c: Fix warnings.
4258 * bzero.c: Fix warnings and implement using memset.
4259
f9a9ac80
KG
4260 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4261 -Wstrict-prototypes.
4262 * configure, config.in: Regenerate.
4263
4264 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4265 warnings and reconcile interfaces with relevant standards.
4266
23ea4f4a
ILT
42672005-04-02 Ian Lance Taylor <ian@airs.com>
4268
4269 * cp-demangle.c: Update copyright.
4270
1e3a2100
JM
42712005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4272
4273 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4274 * functions.texi: Regenerate.
4275
a584cf65
ILT
42762005-03-28 Ian Lance Taylor <ian@airs.com>
4277
4278 * pex-common.c: New file.
4279 * pex-one.c: New file.
4280 * pexecute.c: New file.
4281 * pex-common.h: Include <stdio.h>.
4282 (struct pex_obj): Define.
4283 (struct pex_funcs): Define.
4284 (pex_init_common): Declare.
4285 * pex-unix.c: Rewrite.
4286 * pex-win32.c: Rewrite.
4287 * pex-djgpp.c: Rewrite.
4288 * pex-msdos.c: Rewrite.
4289 * testsuite/text-pexecute.c: New file.
4290 * pexecute.txh: Rewrite.
4291 * configure.ac: Check for wait3 and wait4. Set CHECK to
4292 really-check rather than check-cplus-dem.
4293 * functions.texi: Rebuild.
4294 * Makefile.in: Rebuild dependencies.
4295 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4296 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4297 * testsuite/Makefile.in (really-check): New target.
4298 (check-pexecute, test-pexecute): New targets.
4299 * configure: Rebuild.
4300
93764b5b 43012005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 4302
93764b5b
MK
4303 * unlink-if-ordinary.c: Include <sys/types.h>.
4304
93079c81
GDR
43052005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4306
4307 Convert libiberty to use ISO C prototype style 7/n.
4308 * regex.c (PARAMS): Remove definition.
4309 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 4310 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 4311 print_fastmap, print_partial_compiled_pattern,
2b836651 4312 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
4313 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4314 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
4315 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4316 insert_space, wcs_compile_range, byte_compile_range,
4317 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4318 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
4319 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4320 byte_re_match_2_internal, group_match_null_string_p,
4321 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 4322 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
4323 regexec, regerror, regfree): Use ISO C prototype style.
4324 * partition.c: (elem_compare): Likewise.
4325 * cp-demangle.c (print_usage): Likewise.
4326
885f2199
GDR
43272005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4328
4329 Convert libiberty to use ISO C prototype style 5/n.
4330 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 4331 prototypes.
885f2199
GDR
4332 * putenv.c (putenv): Likewise.
4333 * physmem.c (physmem_available, physmem_total, main): Likewise.
4334 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4335 * pex-unix.c (pexecute, pwait): Likewise.
4336 * pex-msdos.c (pexecute, pwait): Likewise.
4337 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 4338 * partition.c (partition_new, partition_delete, partition_union)
885f2199 4339 (elem_compare, partition_print): Likewise.
2b836651
EZ
4340 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4341 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
4342 _obstack_memory_used, print_and_abort, obstack_next_free,
4343 obstack_object_size, obstack_base): Likewise. Remove codes
4344 predicated on !defined(__STDC__).
2b836651 4345 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
4346 objalloc_free_block): Use ISO C prototypes.
4347 * mkstemps.c (mkstemps): Likewise.
4348 * memset.c (memset): Likewise.
4349 * mempcpy.c (mempcpy): Likewise.
4350 * rename.c (rename): Likewise.
4351 * rindex.c (rindex): Likewise.
4352 * setenv.c (setenv, unsetenv): Likewise.
4353 * sigsetmask.c (sigsetmask): Likewise.
4354 * snprintf.c (snprintf): Likewise.
2b836651 4355 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 4356 * spaces.c (spaces): Likewise.
2b836651
EZ
4357 * splay-tree.c (splay_tree_delete_helper,
4358 splay_tree_splay_helper, splay_tree_splay,
885f2199 4359 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 4360 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 4361 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
4362 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4363 splay_tree_max, splay_tree_min, splay_tree_predecessor,
4364 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
4365 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4366 * stpcpy.c (stpcpy): Likewise.
4367 * stpncpy.c (stpncpy): Likewise.
4368 * strcasecmp.c (strcasecmp): Likewise.
4369 * strchr.c (strchr): Likewise.
4370 * strdup.c (strdup): Likewise.
4371
7a17ef5e
GDR
43722005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4373
4374 Convert libiberty to use ISO C prototype style 6/n.
2b836651 4375 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
4376 strtoerrno, main): Use ISO C prototype style.
4377 * strncasecmp.c (strncasecmp): Likewise.
4378 * strncmp.c (strncmp): Likewise.
4379 * strndup.c (strndup): Likewise.
4380 * strrchr.c (strrchr): Likewise.
2b836651 4381 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
4382 strsigno, strtosigno, psignal, main): Likewise.
4383 * strstr.c (strstr): Likewise.
4384 * strtod.c (strtod, atof): Likewise.
4385 * strtol.c (strtol): Likewise.
4386 * strtoul.c (strtoul): Likewise.
2b836651 4387 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
4388 ternary_recursivesearch): Likewise.
4389 * tmpnam.c (tmpnam): Likewise.
4390 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4391 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4392 * vfork.c (vfork): Likewise.
4393 * vfprintf.c (vfprintf): Likewise.
4394 * vprintf.c (vprintf): Likewise.
4395 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4396 * vsprintf.c (vsprintf): Likewise.
4397 * waitpid.c (waitpid): Likewise.
4398 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4399 * xexit.c (xexit): Likewise.
2b836651 4400 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
4401 xcalloc, xrealloc): Likewise.
4402 * xmemdup.c (xmemdup): Likewise.
4403 * xstrdup.c (xstrdup): Likewise.
4404 * xstrerror.c (xstrerror): Likewise.
4405 * xstrndup.c (xstrndup): Likewise.
4406
1134b11d
AJ
44072005-03-27 Andreas Jaeger <aj@suse.de>
4408
4409 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4410 flags.
4411 * configure: Regenerated.
4412
e78410c1
GDR
44132005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4414
4415 * getopt1.c (getopt_long_only): Fix thinko.
4416
6da879de
GDR
44172005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4418
4419 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
4420 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4421 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4422 htab_create_alloc, htab_set_functions_ex, htab_create,
4423 htab_try_create, htab_delete, htab_empty,
4424 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4425 htab_find, htab_find_slot_with_hash, htab_find_slot,
4426 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4427 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
4428 htab_hash_string, iterative_hash): Use ISO C prototype.
4429 * hex.c (hex_init): Likewise.
4430 * index.c (index): Likewise.
1134b11d 4431 * insque.c (insque, remque): Likewise.
6da879de
GDR
4432 * lbasename.c (lbasename): Likewise.
4433 * lrealpath.c (lrealpath): Likewise.
1134b11d 4434 * make-relative-prefix.c (save_string, split_directories,
6da879de 4435 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
4436 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4437 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
4438 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
4439 * memchr.c (memchr): Likewise.
4440 * memcpy.c (memcpy): Likewise.
4441 * memmove.c (memmove): Likewise.
4442 * gettimeofday.c (gettimeofday): Likewise.
4443 * getruntime.c (get_run_time): Likewise.
4444 * getpwd.c (getpwd, getpwd): Likewise.
4445 * getpagesize.c (getpagesize): Likewise.
4446 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 4447 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
4448 _getopt_internal, getopt, main): Likewise.
4449 * getcwd.c (getcwd): Likewise.
4450 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
4451 * floatformat.c (floatformat_always_valid,
4452 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
4453 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 4454 ieee_test, main): Likewise.
1134b11d
AJ
4455 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
4456 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
4457 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
4458 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
4459 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
4460 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
4461 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
4462 fibnode_insert_after, fibnode_remove): Likewise.
4463 * ffs.c (ffs): Likewise.
4464 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
4465 * dyn-string.c (dyn_string_init, dyn_string_new,
4466 dyn_string_delete, dyn_string_release, dyn_string_resize,
4467 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
4468 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
4469 dyn_string_insert_cstr, dyn_string_insert_char,
4470 dyn_string_append, dyn_string_append_cstr,
6da879de 4471 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 4472 Likewise.
6da879de 4473
500d7701
GDR
44742005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4475
4476 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
4477 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
4478 consume_count_with_underscores, code_for_qualifier,
4479 qualifier_string, demangle_qualifier, cplus_demangle_opname,
4480 cplus_mangle_opname, cplus_demangle_set_style,
4481 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 4482 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
4483 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
4484 delete_work_stuff, mop_up, demangle_signature,
4485 demangle_method_args, demangle_template_template_parm,
4486 demangle_expression, demangle_integral_value,
4487 demangle_real_value, demangle_template_value_parm,
4488 demangle_template, arm_pt, demangle_arm_hp_template,
4489 demangle_class_name, demangle_class, iterate_demangle_function,
4490 demangle_prefix, gnu_special, recursively_demangle, arm_special,
4491 demangle_qualified, get_count, do_type, demangle_fund_type,
4492 do_hpacc_template_const_value, do_hpacc_template_literal,
4493 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
4494 register_Btype, remember_Btype, forget_B_and_K_types,
4495 forget_types, demangle_args, demangle_nested_args,
4496 demangle_function_name, string_need, string_delete, string_init,
4497 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
4498 string_appendn, string_prepend, string_prepends, string_prependn,
4499 string_append_template_idx): Use ISO C prootype style.
4500 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 4501 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
4502 cplus_demangle_v3_components): Likewise.
4503
9486db4f
GDR
45042005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4505
4506 Convert libiberty to use ISO C prototype style 2/n.
4507 * cp-demangle.h: Remove uses of PARAMS.
4508 * cp-demangle.c: Likewise.
1134b11d
AJ
4509 (d_dump, cplus_demangle_fill_name,
4510 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
4511 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
4512 d_make_builtin_type, d_make_operator, d_make_extended_operator,
4513 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
4514 cplus_demangle_mangled_name, has_return_type,
4515 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
4516 d_prefix, d_unqualified_name, d_source_name, d_number,
4517 d_identifier, d_operator_name, d_special_name, d_call_offset,
4518 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
4519 d_function_type, d_bare_function_type, d_class_enum_type,
4520 d_array_type, d_pointer_to_member_type, d_template_param,
4521 d_template_args, d_template_arg, d_expression, d_expr_primary,
4522 d_local_name, d_discriminator, d_add_substitution,
4523 d_substitution, d_print_resize, d_print_append_char,
4524 d_print_append_buffer, d_print_error, cplus_demangle_print,
4525 d_print_comp, d_print_java_identifier, d_print_mod_list,
4526 d_print_mod, d_print_function_type, d_print_array_type,
4527 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
4528 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 4529 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 4530 print_usage, main):
9486db4f
GDR
4531
45322005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4533
4534 Convert libiberty to ISO C prototype style 1/n.
4535 * _doprnt.c: Remove conditional #include <varargs.h> on
4536 ANSI_PROTOTYPES as the latter is always assumed.
4537 (_doprnt, checkit, main): Use ISO C prototype.
4538 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
4539 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 4540 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
4541 * atexit.c (atexit): Likewise
4542 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 4543 (asprintf): Use ISO C prototype.
9486db4f
GDR
4544 * basename.c (basename): Likewise
4545 * bcmp.c (bcmp): Likewise.
4546 * bcopy.c (bcopy): Likewise.
4547 * bzero.c (bzero): Likewise.
4548 * bsearch.c (bsearch): Likewise. Improve const-correctness.
4549 * choose-temp.c (choose_temp_base): Likewise.
4550 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
4551 (calloc): Use ISO C prototype.
4552 * clock.c (clock): Likewise.
4553 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 4554 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
4555 concat_copy2, concat, reconcat, main): Use ISO C prototype.
4556 * copysign.c (copysign): Likewise.
4557
17998b22
KG
45582005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4559
4560 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
4561 (REQUIRED_OFILES): Add xstrndup.o.
4562 (CONFIGURED_OFILES): Add strndup.o.
4563 Regenerate dependencies.
4564
4565 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
4566
4567 * strndup.c, xstrndup.c: New.
4568
4569 * config.in, configure, functions.texi: Regenerate.
4570
bb99744f
KG
45712005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4572
4573 * xmemdup.c, xstrdup.c: Expose the tail call.
4574
17049f0b
MM
45752005-03-09 Mark Mitchell <mark@codesourcery.com>
4576
4577 * configure.ac (funcs): Add gettimeofday.
4578 * configure: Regenerated.
4579 * gettimeofday.c: New file.
4580 * Makefile.in (CFILES): Add gettimeofday.
4581 (CONFIGURED_OFILES): Add gettimeofday.o.
4582 (./gettimeofday.o): New rule.
4583
6af8bd50
ILT
45842005-03-09 Ian Lance Taylor <ian@airs.com>
4585
4586 * pex-os2.c: Remove.
4587 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
4588 * Makefile.in (CFILES): Remove pex-os2.c.
4589 (CONFIGURED_OFILES): Remove pex-os2.o.
4590 (pex-os2.o): Remove target.
4591 * configure: Rebuild.
4592
c80d391c
ILT
45932005-03-07 Ian Lance Taylor <ian@airs.com>
4594
4595 * mpw-config.in: Remove.
4596 * mpw-make.sed: Remove.
4597 * mpw.c: Remove.
4598 * Makefile.in (CFILES): Remove pex-mpw.c.
4599 (CONFIGURED_OFILES): Remove pex-mpw.o.
4600 (mpw.o, pex-mpw.o): Remove targets.
4601 * maint-tool (undoc): Remove reference to mpw.c.
4602
fe8ee922
DD
46032005-03-06 DJ Delorie <dj@redhat.com>
4604
4605 * configure.ac (target_header_dir): vfork is a stub under djgpp.
4606 * configure: Regenerated.
4607
c363985d
JB
46082005-03-01 Jan Beulich <jbeulich@novell.com>
4609
4610 * Makefile.in (CFILES): Add unlink-if-ordinary.c
4611 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
4612 Add dependencies and rule for unlink-if-ordinary.o.
4613 * unlink-if-ordinary.c: New.
4614
6a88516c
BE
46152005-03-01 Ben Elliston <bje@au.ibm.com>
4616
4617 * hashtab.c (htab_find_slot_with_hash): Make function
4618 documentation clearer.
4619
b8b3c655
JM
46202005-02-13 Jason Merrill <jason@redhat.com>
4621
4622 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
4623 arguments.
4624
e8805990
TS
46252005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
4626
4627 * hex.c (hex_value): Group 'unsigned int' together to get correct
4628 markup.
4629 * functions.texi: Regenerated.
1134b11d 4630
24f2cabb
L
46312004-12-27 H.J. Lu <hongjiu.lu@intel.com>
4632
4633 * Makefile.in: Undo to 2004-12-17.
4634 * aclocal.m4: Likewise.
4635 * config.table: Likewise.
4636 * configure.ac: Likewise.
4637 * maint-tool: Likewise.
4638 * configure: Likewise.
4639
3d815594
L
46402004-12-19 H.J. Lu <hongjiu.lu@intel.com>
4641
4642 PR bootstrap/19072
4643 * Makefile.in (enable_shared): New substitute.
4644 (LTTARGETLIB): New.
4645 (PREFIXTARGETLIB): New.
4646 (LTTESTLIB): New.
4647 (PREFIXTESTLIB): New.
4648 (CCLD): New.
4649 (LINK): New.
4650 ($(TARGETLIB)): Use $(LINK) to create libraries and create
4651 targets by hand.
4652 ($(TESTLIB)): Likewise.
4653 (mostlyclean): Don't remove .libs. Remove the libtool object
4654 directory.
4655
4656 * config.table (enable_shared): Removed.
4657
4658 * configure.ac (enable_static): Set to yes.
4659 (AC_PROG_LIBTOOL): Removed.
4660 (AM_DISABLE_SHARED): Uncommented.
4661 (AM_PROG_LIBTOOL): Likewise.
4662 (LIBOBJS): Add `./' to avoid VPATH.
4663 (LTLIBOBJS): Likewise.
4664 (enable_shared): Substitute.
4665 * configure: Regenerated.
4666
207db768
L
46672004-12-18 H.J. Lu <hongjiu.lu@intel.com>
4668
4669 * Makefile.in (top_builddir): Set to `.'.
4670 (OUTPUT_OPTION): Removed.
4671 (LIBTOOL): New.
4672 (LTLIBOBJS): New.
4673 (EXTRA_LTOFILES): New.
4674 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
4675 (all): Remove stamp-picdir.
4676 (LTCOMPILE): New.
4677 (.c.lo): New rule.
4678 (REQUIRED_LTOFILES): New.
4679 (CONFIGURED_LTOFILES): New.
4680 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
4681 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
4682 (stamp-picdir): Completely removed.
4683 (maint-missing): Pass $(REQUIRED_LTOFILES)
4684 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
4685 $(CONFIGURED_OFILES)
4686 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
4687 $(CONFIGURED_LTOFILES).
4688 (mostlyclean): Also remove *.lo .libs.
4689 Run "make maint-deps".
4690
4691 * aclocal.m4: Include ../libtool.m4.
4692
4693 * config.table: Don't check --enable-shared.
4694
4695 * configure.ac (AC_PROG_LIBTOOL): Add.
4696 (AC_PROG_CC_C_O): Removed.
4697 (OUTPUT_OPTION): Removed.
4698 (NO_MINUS_C_MINUS_O): Removed.
4699 (ltpexecute): New substitute.
4700 (LIBOBJS): Cleanup.
4701 * configure: Regenerated.
4702
4703 * maint-tool: Updated for .lo/libtool.
4704
d49d0907
BE
47052004-12-11 Ben Elliston <bje@au.ibm.com>
4706
4707 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
4708 * configure: Regenerate.
4709 * config.in: Likewise.
4710
b180d5fb
DD
47112004-12-07 DJ Delorie <dj@redhat.com>
4712
4713 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
4714 that recursion (and thus large stack space) is not needed.
4715
ecc30353
MK
47162004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
4717
4718 * pex-unix.c: Fix the spelling of longjmp.
4719
0b167d51
ILT
47202004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
4721
4722 PR other/18623
4723 * cp-demangle.c (d_call_offset): Remove useless local variables
4724 offset and virtual_offset.
4725 * cplus-dem.c (ada_demangle): Remove useless local variable
4726 at_start_name.
4727 (demangle_template): Remove useless local variable start.
4728
2d59754f
RS
47292004-11-19 Roger Sayle <roger@eyesopen.com>
4730
4731 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
4732 "ansidecl.h" to avoid redeclaration errors with native compilers.
4733 * regex.c: Protect config.h from multiple inclusion.
4734
ea27a394
MS
47352004-11-12 Mike Stump <mrs@apple.com>
4736
610784f0
MS
4737 * Makefile.in (libiberty.html): Fix html generation.
4738
626ff3de
AN
47392004-09-08 Adam Nemet <anemet@lnxw.com>
4740
4741 * vasprintf.c: Accept __va_copy in addition to va_copy.
4742
1134b11d 47432004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
4744
4745 * configure: Regenerate.
4746
1134b11d 47472004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
4748
4749 * configure.ac: Do not enable multilibs for build-side libiberty.
4750
1134b11d 47512004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
4752
4753 * lrealpath.c (lrealpath): Add _WIN32 support.
4754
0cf61401
ZW
47552004-06-28 Zack Weinberg <zack@codesourcery.com>
4756
4757 * cp-demangle.h: Declare cplus_demangle_operators,
4758 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
4759 cplus_demangle_type as static if IN_GLIBCPP_V3.
4760
00a5aa9c
ILT
47612004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
4762
4763 PR other/16240
4764 * cp-demangle.c (d_expr_primary): Check for a failure return from
4765 cplus_demangle_type.
5cd29062 4766 * testsuite/demangle-expected: Add test case.
00a5aa9c 4767
b47785f4
DS
47682004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
4769
4770 * pex-win32.c (fix_argv): Expand comment.
4771
54b2f310
DJ
47722004-05-25 Daniel Jacobowitz <drow@false.org>
4773
4774 * Makefile.in: Add .NOEXPORT.
4775
8fd58397
DR
47762004-04-29 Douglas B Rupp <rupp@gnat.com>
4777
4778 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
4779 copyright.
4780
6489430a
MR
47812004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4782
4783 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
4784 * configure: Regenerate.
4785
9bf3c9cc
RH
47862004-04-22 Richard Henderson <rth@redhat.com>
4787
4788 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
4789 (CHAR_BIT): Provide default.
4790 (struct prime_ent, prime_tab): New.
4791 (higher_prime_index): Rename from higher_prime_number, return index.
4792 (htab_mod_1): New.
4793 (htab_mod, htab_mod_m2): Use it.
4794 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
4795 (htab_expand): Likewise.
4796 * configure.ac: Check for stdint.h.
4797 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
4798 * config.in, configure: Rebuild.
4799
80790b05
ILT
48002004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
4801
4802 * strerror.c: Include config.h, and redefine sys_nerr and
4803 sys_errlist, before including ansidecl.h and libiberty.h.
4804
7f96816a
JL
48052004-04-13 Jeff Law <law@redhat.com>
4806
4807 * hashtab.c (htab_remove_elt_with_hash): New function.
4808 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
4809
d9175b87
RH
48102004-03-31 Richard Henderson <rth@redhat.com>
4811
4812 * hashtab.c (htab_size): Move to top of file; mark inline.
4813 (htab_elements): Likewise.
4814 (htab_mod, htab_mod_m2): New.
4815 (htab_delete): Refactor htab->size and htab->entries.
4816 (htab_empty): Likewise.
4817 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
4818 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
4819 (htab_clear_slot): Use htab_size, htab_elements.
4820 (htab_traverse_noresize, htab_traverse): Likewise.
4821
e8190aa2
ILT
48222004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
4823
fed8129b
ILT
4824 * pex-unix.c (pexecute): Use vfork instead of fork, with
4825 appropriate changes to make this safe.
4826 * pex-common.h (STDERR_FILE_NO): Define.
4827
e8190aa2
ILT
4828 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
4829 an 80 column screen. Run maint-deps.
4830
a4f74b58
KC
48312004-03-09 Kelley Cook <kcook@gcc.gnu.org>
4832
4833 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
4834 * acconfig.h: Delete redundant file.
4835 * config.in: Regenerate.
4836 * configure: Regenerate.
4837
3beb1315
HPN
48382004-03-09 Hans-Peter Nilsson <hp@axis.com>
4839
4840 * configure: Regenerate for config/accross.m4 correction.
4841
688556b9
AJ
48422004-03-07 Andreas Jaeger <aj@suse.de>
4843
4844 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
4845 prototypes.
4846 (main): Initialize style.
4847
80a19ac8
ILT
48482004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
4849
31058ee3
ILT
4850 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
4851 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
4852 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
4853 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
4854 short types to D_PRINT_DEFAULT. Change other integer types to use
4855 new D_PRINT_* values where appropriate. Change float types to
4856 D_PRINT_FLOAT.
4857 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
4858 values.
4859 * testsuite/demangle-expected: Adjust two test cases.
4860
4861 * cp-demangle.c (d_print_function_type): Print a space before the
4862 parenthesis around the function type in more cases.
4863 * testsuite/demangle-expected: Adjust one test case.
4864
93f20626
ILT
4865 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
4866 parentheses around a cast.
4867 * testsuite/demangle-expected: Adjust two test cases to match new
4868 output.
4869
dbd6ec2b
ILT
4870 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
4871
80a19ac8
ILT
4872 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
4873 push more than one of the same CV-qualifier on the top of the
4874 stack.
4875 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
4876 move the CV-qualifiers to apply to the element type instead.
4877 (d_print_array_type): When checking the modifiers, keep looking
4878 past ones which have been printed already.
4879 * testsuite/demangle-expected: Add three test cases.
4880
8ad1c80e
ILT
48812004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
4882
e8ed4ac2
ILT
4883 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
4884 empty string correctly.
4885
4a368ffd
ILT
4886 * cp-demangle.c (__cxa_demangle): It is not an error if status is
4887 not NULL. It is an error if the mangled name is the same as a
4888 built-in type name.
4889 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
4890 than cplus_demangle_v3.
4891
8ad1c80e
ILT
4892 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
4893 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
4894
ef2a223f
MK
48952004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
4896
4897 * regex.c: Include <ansidecl.h>.
4898 (regcomp): Cast i to int.
4899 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
4900
5254fd7b
ILT
49012004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
4902
4903 * configure.ac: Add m4_pattern_allow(LIBOBJS).
4904 * configure: Regenerate.
4905
398b3deb
DD
49062004-01-22 DJ Delorie <dj@redhat.com>
4907
4908 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
4909 with explicit build rules.
4910 (VPATH): Remove.
4911 (.c.o): Poison.
4912 * configure.ac (pexecute, LIBOBJS): Add ./ .
4913 * maint-tool: Build dependencies with explicit rules.
4914
4e394293
KH
49152004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4916
4917 * strdup.c (strdup): Constify the argument.
4918
0046e342
LR
49192004-01-14 Loren J. Rittle <ljrittle@acm.org>
4920
4921 * Makefile.in (distclean): Remove config.cache.
4922
d4f3ce5c
DJ
49232004-01-13 Daniel Jacobowitz <drow@mvista.com>
4924
4925 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
4926 takes two parameters.
4927 * cp-demint.c (cplus_demangle_fill_component): Likewise.
4928
5e777af5
ILT
49292004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
4930
4931 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
4932 defined, rename some functions which are to become static via
4933 #define.
4934 (CP_STATIC_IF_GLIBCPP_V3): Define.
4935 (struct d_operator_info): Move definition to cp-demangle.h, and
4936 rename to demangle_operator_info. Change all uses.
4937 (enum d_builtin_type_print): Move definition to cp-demangle.h.
4938 (struct d_builtin_type_info): Move definition to cp-demangle.h,
4939 and rename to demangle_builtin_type_info. Change all uses.
4940 (enum d_comp_type): Move definition to include/demangle.h, and
4941 rename to demangle_component_type, and change all enums to start
4942 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
4943 (struct d_comp): Move definition to include/demangle.h, and rename
4944 to demangle_component. Change all uses.
4945 (struct d_info): Move definition to cp-demangle.h.
4946 (cplus_demangle_fill_name): New function.
4947 (cplus_demangle_fill_extended_operator): New function.
4948 (cplus_demangle_fill_ctor): New function.
4949 (cplus_demangle_fill_dtor): New function.
4950 (d_make_empty): Remove type parameter. Change all callers.
4951 (d_make_name): Use cplus_demangle_fill_name.
4952 (d_make_extended_operator): Use
4953 cplus_demangle_fill_extended_operator.
4954 (d_make_ctor): Use cplus_demangle_fill_ctor.
4955 (d_make_dtor): Use cplus_demangle_fill_dtor.
4956 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
4957 non-static by default. Change all callers.
4958 (cplus_demangle_operators): Rename from d_operators. Change all
4959 uses. Make non-static by default. Add sentinel at end of array.
4960 (d_operator_name): Adjust initialization of high for new sentinel
4961 in cplus_demangle_operators.
4962 (cplus_demangle_builtin_types): Rename from d_builtin_types.
4963 Change all uses. Make non-static by default. Change initializer
4964 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
4965 (cplus_demangle_type): Rename from d_type. Make non-static by
4966 default. Change all callers.
4967 (cplus_demangle_init_info): Rename from d_init_info. Make
4968 non-static by default. Change all callers.
4969 * cp-demangle.h: New file.
4970 * cp-demint.c: New file.
4971 * Makefile.in: Rebuild dependencies.
4972 (CFILES): Add cp-demint.c.
4973 (REQUIRED_OFILES): Add cp-demint.o.
4974
c31d56ed
KC
49752004-01-09 Kelley Cook <kcook@gcc.gnu.org>
4976
4977 * configure.in: Rename file to ...
4978 * configure.ac: ... this.
4979 * Makefile.in: Update a comment for above change.
4980 * README: Likewise.
4981 * config.in: Regenerate.
4982
e4796f1c
ILT
49832004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
4984
4985 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
4986 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
4987 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
4988 demangling template parameters.
4989 * testsuite/test-demangle.c (fail): New static function.
4990 (main): Support new options in input file: --no-params,
4991 --is-v3-ctor, and --is-v3-dtor.
4992 * testsuite/demangle-expected: Add --no-params to most tests, and
4993 add the correct result when parameters are not demangled. Add
4994 some simple tests for V3 constructor/destructor recognition.
4995
4d425229
KG
49962003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4997
4998 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
4999
6b309c6e
DJ
50002003-12-22 Daniel Jacobowitz <drow@mvista.com>
5001
5002 PR debug/13272
5003 * Makefile.in (lbasename.o): Depend on filenames.h.
5004 * lbasename.c: Include "filenames.h" instead of defining
5005 its macros locally.
5006
2d6c4025
ILT
50072003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5008
5009 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5010 dynamic arrays.
5011 (struct d_operator_info): Add len field.
5012 (struct d_builtin_type_info): Add len and java_len fields.
5013 (struct d_standard_sub_info): Add simple_len, full_len, and
5014 set_last_name_len fields.
5015 (struct d_comp): Add len field to s_string.
5016 (struct d_info): Add send, did_subs, and expansion fields.
5017 (d_append_string_constant): Define.
5018 (d_append_string): Remove. Change all users to use
5019 d_append_string_constant or d_append_buffer instead.
5020 (d_make_sub): Add len parameter. Change all callers.
5021 (d_name): Increase expansion when substituting std::.
5022 (d_unqualified_name): Increase expansion for an operator.
5023 (d_number): Don't use multiplication for negative numbers.
5024 (d_identifier): Make sure there are enough characters in the
5025 string for the specified length. Adjust expansion for an
5026 anonymous namespace.
5027 (d_operators): Initialize len field.
5028 (d_special_name, d_ctor_dtor_name): Increase expansion.
5029 (d_builtin_types): Initialize len and java_len fields.
5030 (d_type): Increase expansion for a builtin type.
5031 (d_cv_qualifiers): Increase expansion for each qualifier.
5032 (d_bare_function_type): Decrease expansion when removing single
5033 void parameter.
5034 (d_template_param): Increment did_subs.
5035 (d_expression): Increase expansion for an operator.
5036 (d_expr_primary): Decrease expansion for a type we will print
5037 specially.
5038 (standard_subs): Initialize new fields.
5039 (d_substitution): Increment did_subs when doing a normal
5040 substitution. Increase expansion for a special substitution.
5041 (d_print): Add estimate parameter. Change all callers.
5042 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5043 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5044 (d_print_java_identifier): Rename from d_print_identifier. Handle
5045 only Java case. Change caller.
5046 (d_init_info): Change return type to void. Change all callers.
5047 Initialize send, did_subs, and expansion fields. Do not
5048 initialize comps and subs fields.
5049 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5050 arrays on stack. Make an estimate of the length of the demangled
5051 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5052 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5053 subs arrays on stack.
5054
2307e075
ILT
50552003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5056
5057 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5058 after the identifier.
5059 * testsuite/demangle-expected: Add test case.
5060
a91d1af0
ILT
50612003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5062
5063 Fix for PR c++/13447:
5064 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5065 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5066 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5067 D_COMP_QUAL_NAME.
5068 (is_ctor_or_dtor): Likewise.
5069 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5070 D_COMP_QUAL_NAME.
5071 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5072 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5073 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5074 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5075 * testsuite/demangle-expected: Add two test cases.
5076
5077 * cp-demangle.c (d_print_function_type): Clear the global modifier
5078 list when printing the modifiers, not just when printing the
5079 function parameters.
5080 * testsuite/demangle-expected: Add two test cases.
5081
8d686df2
ILT
50822003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5083
cbc278f4
ILT
5084 * cp-demangle.c (d_print_function_type): Print the function
5085 parameters with no modifiers.
5086 * testsuite/demangle-expected: Add test case.
5087
8d686df2
ILT
5088 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5089 expect that we've read the entire string.
5090 (is_ctor_or_dtor): Don't expect that we've read the entire
5091 string--reverse patch of 2003-11-29.
5092
adf269c7
BK
50932003-12-15 Brendan Kehoe <brendan@zen.org>
5094
969ac969 5095 * Makefile.in (floatformat.o): Add dependency on
adf269c7
BK
5096 config.h to accompany change of 2003-12-03.
5097
374caa50
ILT
50982003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5099
5100 Fix handling of constructor/destructor of standard substitution:
5101 * cp-demangle.c (struct d_standard_sub_info): Define.
5102 (d_substitution): Add prefix argument. Change all callers.
5103 Rework handling of standard substitutions to print full name when
5104 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5105 * testsuite/demangle-expected: Add test case.
5106
5107 Fix handling of negative literal constants:
5108 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5109 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5110 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5111 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5112 * testsuite/demangle-expected: Add test case.
5113
a51753e4
ILT
51142003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5115
5116 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5117 (d_last_char): Define new macro.
5118 (d_make_name): Reject an empty name.
5119 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5120 (d_substitution, d_print_identifier): Likewise.
5121 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5122 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5123 (d_print_mod) Use new d_last_char macro.
5124 (d_print_cast): Use new d_last_char macro.
5125 (is_ctor_or_dtor): Don't leak memory.
5126
5127 Fix handling of member function modifiers:
5128 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5129 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5130 (d_dump): Dump new d_comp_type values.
5131 (d_make_comp): Accept new d_comp_type values.
5132 (has_return_type): Only accept _THIS variants of qualifiers.
5133 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5134 qualifiers.
5135 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5136 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5137 qualifiers and printing them at the end, add _THIS qualifiers to
5138 the modifier list.
5139 (d_print_comp) [D_COMP_*_THIS]: New cases.
5140 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5141 qualifiers.
5142 (d_print_mod_list): Add suffix parameter. Change all callers.
5143 Keep walking the list even if the current modifier has been
5144 printed.
5145 (d_print_mod): Handle new _THIS qualifiers.
5146 (d_print_function_type): Handle new _THIS qualifiers when deciding
5147 whether to print a parenthesis. Put a space before the
5148 parenthesis in some cases. Call d_print_mod_list again at the
5149 end, passing suffix as 1.
5150 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5151 * testsuite/demangle-expected: Add test case.
5152
5153 Fix for PR gcc/13304:
5154 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5155 before the '<' is itself a '<', insert a space.
5156 (d_print_cast): Likewise.
5157 * testsuite/demangle-expected: Add test case.
5158
5159 Fix for PR gcc/13244:
5160 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5161 which uses the '>' operator in an extra layer of parens.
5162 * testsuite/demangle-expected: Add test case.
5163
bee6ab3e
ILT
51642003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5165
5166 * floatformat.c: Include "config.h" and <string.h> if available.
5167 (INFINITY, NAN): Define if not defined by <math.h>.
5168 (floatformat_to_double): Handle NaN, infinity, and denormalized
5169 numbers.
5170 (floatformat_from_double): Likewise.
5171 (ieee_test): In debugging code, use little endian rather than big
5172 endian. Correct tests to handle NaN and to check correct sign of
5173 zero. Omit m68k extended test.
5174 (main): Add more debugging cases.
5175
f26deb3d
ILT
51762003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5177
5178 * cp-demangle.c (d_demangle): Only return success if we consumed
5179 the entire demangled string.
5180 (is_ctor_or_dtor): Likewise.
5181
5182 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5183 to restore expected result of EDG test case to original expected
5184 result.
5185
81dc098b
ILT
51862003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5187
5188 * cp-demangle.c (struct d_print_mod): Add templates field.
5189 (d_make_builtin_type): Check for NULL type.
5190 (d_make_extended_operator): Check for NULL name.
5191 (d_make_ctor, d_make_dtor): Likewise.
5192 (d_mangled_name): Add top_level parameter. Change all callers.
5193 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5194 CV-qualifiers.
5195 (d_type): Check some return values we rely on.
5196 (d_bare_function_type, d_array_type): Likewise.
5197 (d_pointer_to_member_type, d_template_args): Likewise.
5198 (d_add_substitution): Fail if argument is NULL.
5199 (d_print_resize): Check whether buf is NULL.
5200 (d_print_comp): Save current templates list with each modifier.
5201 Don't pass the modifier list down when printing a template.
5202 (d_print_cast): Don't pass the modifier list down when printing a
5203 template.
5204 (d_print_mod_list): Temporarily set templates list while printing
5205 a modifier.
5206 (d_print_mod): Check that buf is not NULL before using it.
5207 (d_print_function_type): Print parens if there is no modifier.
5208 (d_init_info): Permit as many substitutions as there are
5209 characters in the mangled name.
5210 * testsuite/demangle-expected: Add two new test cases.
5211
eb459c81
ILT
52122003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5213
5214 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5215 d_demangle.
5216
ad07f5e5
ILT
52172003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5218
5219 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5220 callers.
5221 (print_usage): Display new -p option.
5222 (long_options): Add --no-params.
5223 (main): Accept and handle -p.
5224
0ba5c8a2
ILT
52252003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5226
5227 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5228 whether we have a template.
5229 * testsuite/demangle-expected: Add four new tests.
5230
bd6946d1
ILT
52312003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5232
9cca376f
ILT
5233 * testsuite/demangle-expected: Minor changes to match output of
5234 new demangler: adjust whitespace in four tests, and change order
5235 of qualifiers in one test.
5236
bd6946d1
ILT
5237 * cp-demangle.c: Complete rewrite.
5238
6df5a5c7
MM
52392003-11-19 Mark Mitchell <mark@codesourcery.com>
5240
5241 * cp-demangle.c (demangle_type): Correct thinko in substitution
5242 processing.
5243
a9b571f2
ILT
52442003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5245
820555e6
ILT
5246 * cp-demangle.c (demangle_operator_name): Remove space before
5247 "sizeof".
5248 (demangle_type_ptr): Put qualifiers in the right place. Handle
5249 qualifiers in pointer to member specially.
5250 (demangle_type): Handle qualifiers for pointer or reference
5251 specially. Handle function type.
5252 (demangle_local_name): Save and restore caret around demangling of
5253 initial encoding.
5254
c4328d32
ILT
5255 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5256 cplus_demangle.
5257
a9b571f2
ILT
5258 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5259
ad37274a
AJ
52602003-10-31 Andreas Jaeger <aj@suse.de>
5261
5262 * floatformat.c (floatformat_always_valid): Add unused attribute.
5263
27eb8ab1
JZ
52642003-10-30 Josef Zlomek <zlomekj@suse.cz>
5265
5266 Jan Hubicka <jh@suse.cz>
5267 * vasprintf.c (int_vasprintf): Pass va_list by value.
5268 Use va_copy for copying va_list.
5269 (vasprintf): Pass va_list by value.
5270
e0432c1c
JZ
52712003-10-30 Josef Zlomek <zlomekj@suse.cz>
5272
5273 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5274 instead of increasing n_elements when inserting to deleted slot.
5275
08c5b96d
B
52762003-10-20 J. Brobecker <brobecker@gnat.com>
5277
5278 * cplus-dem.c (demangle_template): Register a new Btype only
5279 when needed.
5280 * testsuite/demangle-expected: Add a new test.
5281
968e3f93
L
52822003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5283
5284 * testsuite/demangle-expected: Update the expected output of
5285 _GLOBAL__I__Z2fnv.
5286
bca48dc6
DJ
52872003-10-02 Daniel Jacobowitz <drow@mvista.com>
5288
5289 * strerror.c: Revert last change. Declare static sys_nerr
5290 and sys_errlist using different names.
5291
b9e8f4b3
DJ
52922003-10-01 Daniel Jacobowitz <drow@mvista.com>
5293
5294 * strerror.c: Don't provide or reference sys_errlist if
5295 strerror is available.
5296
c0590bfd
L
52972003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5298
5299 * configure.in: Check if $MAKEINFO is missing.
5300 * configure: Regenerated.
5301
b033df90
DJ
53022003-09-24 Daniel Jacobowitz <drow@mvista.com>
5303
5304 * configure.in: Use AC_PROG_CPP_WERROR.
5305 * configure: Regenerated.
5306
83c07342
AC
53072003-09-22 Andrew Cagney <cagney@redhat.com>
5308
5309 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5310 (floatformat_always_valid): New function.
5311 (floatformat_i387_ext): Initialize new "is_valid" field to
5312 "floatformat_i387_ext_is_valid".
5313 (floatformat_ieee_single_little): Initialize "is_valid" field to
5314 floatformat_always_valid.
5315 (floatformat_ieee_double_big): Ditto.
5316 (floatformat_ieee_double_little): Ditto.
5317 (floatformat_ieee_double_little): Ditto.
5318 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5319 (floatformat_i960_ext): Ditto.
5320 (floatformat_m88110_ext): Ditto.
5321 (floatformat_m88110_harris_ext): Ditto.
5322 (floatformat_arm_ext_big): Ditto.
5323 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5324 (floatformat_ia64_spill_big): Ditto.
5325 (floatformat_ia64_spill_little): Ditto.
5326 (floatformat_ia64_quad_big): Ditto.
5327 (floatformat_ia64_quad_little): Ditto.
5328 (floatformat_ia64_quad_little): Ditto.
5329 (floatformat_is_valid): Call "is_valid".
5330
c9fbef12
AC
53312003-09-15 Andrew Cagney <cagney@redhat.com>
5332
5333 * floatformat.c (get_field): Make "data" constant.
5334 (floatformat_is_valid, floatformat_to_double): Make "from"
5335 constant, fix casts.
5336 (floatformat_from_double): Make "from" constant.
5337
9c8860c3
DJ
53382003-09-15 Daniel Jacobowitz <drow@mvista.com>
5339
5340 * floatformat.c (floatformat_is_valid): New function.
5341 (get_field, put_field): Correct comments.
5342
13f7d3a1
JZ
53432003-09-06 Josef Zlomek <zlomekj@suse.cz>
5344
5345 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5346 FIBHEAPKEY_T.
5347
03eec143 53482003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
5349
5350 PR bootstrap/12100
5351 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5352 * configure: Rebuilt.
5353
238235ef
DJ
53542003-08-27 Daniel Jacobowitz <drow@mvista.com>
5355
5356 * aclocal.m4: Include acx.m4 and no-executables.m4.
5357 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5358 (LIB_AC_PROG_CC): Remove.
5359 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
5360 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5361 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
5362 performing link tests.
5363 * configure: Regenerated.
5364
2b81b2c9
NN
53652003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5366
0cf61401 5367 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 5368
7b96f3e4
DS
53692003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
5370
5371 * pex-win32.c (pexecute): Mark parameters this_pname and
5372 temp_base as unused. Remove unused variables retries,
5373 sleep_interval. Initialize org_stdin, org_stdout.
5374 (pwait): Mark parameter flags as unused.
5375
53762003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
5377
5378 * pex-win32.c (fix_argv): Ensure that the executable pathname
5379 uses Win32 backslashes.
5380 (pexecute): Cast away constness when assigning *errmsg_arg.
5381
6f8507b1
L
53822003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5383
5384 * testsuite/demangle-expected: Add more GNU V3 testcases.
5385
21299dbd
ZW
53862003-06-22 Zack Weinberg <zack@codesourcery.com>
5387
5388 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5389 not HC_ASCII and HC_EBCDIC.
5390 Add documentation in form expected by gather-docs.
5391 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5392 * Makefile.in, functions.texi: Regenerate.
5393
7468e0b5
ZW
53942003-06-21 Zack Weinberg <zack@codesourcery.com>
5395
5396 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
5397 for charset determination.
5398
cf8e4b78
DH
53992003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
5400
5401 * configure.in: Add check for malloc.h needed by
5402 m68k for function free().
5403 * configure: Regenerated.
5404 * config.in: Add HAVE_MALLOC_H.
5405 * hashtab.c: include malloc.h were available for
5406 free().
5407
aa9dc53d 54082003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 5409
aa9dc53d
ACY
5410 PR bootstrap/10974
5411 * physmem.c: Update comment.
5412 * configure.in: Modify test for _system_configuration for older
5413 AIX systems.
5414
5415 * config.in, configure: Regenerated.
7468e0b5 5416
8191fe81
JDA
54172003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5418
5419 PR other/10810
5420 * test-demangle.c (getline): Fix fence-post error.
5421
8d398258
NC
54222003-06-03 Nick Clifton <nickc@redhat.com>
5423
5424 * asprintf.c: Change comment to note that -1 is returned upon
5425 error.
5426 * vasprintf.c: Likewise.
5427 (vasprintf): Return -1 upon error.
5428 * functions.texi: Document changes to asprintf and vasprintf.
5429
29ad6d3f
KC
54302003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5431
5432 * config.table: Accept i[345867]86 variant.
5433
49a19cfd
JB
54342003-05-15 Jim Blandy <jimb@redhat.com>
5435
5436 * hex.c (_hex_value): Make this unsigned.
5437 (hex_value): Update documentation for new return type. hex_value
5438 now expands to an unsigned int expression, to avoid unexpected
5439 sign extension when we store it in a bfd_vma, which is larger than
5440 int on some platforms.
5441 * functions.texi: Regenerated.
5442
d5d4eae2
JZ
54432003-05-07 Josef Zlomek <zlomekj@suse.cz>
5444
5445 * splay-tree.c (splay_tree_predecessor): Fix comment.
5446 (splay_tree_successor): Fix comment.
5447
5cc5a0d0
JM
54482003-05-07 Jason Merrill <jason@redhat.com>
5449
9d70d418 5450 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
5451 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5452 * aclocal.m4: Include accross.m4.
5453 * configure, config.in: Regenerate.
5454
05c30f22
KG
54552003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5456
5457 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
5458 * configure: Regenerate.
5459
41fe9404
CW
54602003-05-03 Carlo Wood <carlo@alinoe.com>
5461
5462 * cp-demangle.c: Fix typo in "char_traints" string-literal.
5463
52dd3224
KG
54642003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5465
5466 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
5467 (main): Test that we don't write too much data.
5468
bd3fbc6b
KG
54692003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5470
5471 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
5472 vsnprintf.
5473 * snprintf.c, vsnprintf.c: New files.
5474 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
5475 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
5476 Regenerate dependencies.
5477
5478 * functions.texi, configure, config.in: Regenerated.
5479
029bcc09
KG
54802003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5481
5482 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
5483 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
5484 and stpncpy.
5485 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
5486 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
5487 Regenerate dependencies.
5488
5489 * functions.texi, configure, config.in: Regenerated.
5490
c9ac9147
KG
54912003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5492
5493 * argv.c: Fix comments.
5494 * calloc.c: Don't unnecessarily include "libiberty.h".
5495 (bzero): Add prototype.
5496 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5497 * getcwd.c (getcwd): Use standard definition to avoid conflicts
5498 with system headers.
5499 * hashtab.c (htab_traverse): Delete unused variables.
5500 * rename.c: Include "ansidecl.h".
5501 (rename): Use standard definition to avoid conflicts with system
5502 headers.
5503 * strsignal.c: Rely on ANSI_PROTOTYPES.
5504 * strstr.c: Check GNUC >= 2, not GNUC == 2.
5505 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5506 * vprintf.c: Include "ansidecl.h" earlier, rely on
5507 ANSI_PROTOTYPES.
5508 * vsprintf.c: Include "ansidecl.h" earlier, rely on
5509 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 5510
c9ac9147
KG
5511 * Makefile.in: Regenerate dependencies.
5512
98475c57
DD
55132003-04-15 DJ Delorie <dj@redhat.com>
5514
5515 * maint-tool (deps): Scan for headers in $srcdir also.
5516
55adc7bd
KG
55172003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5518
5519 PR target/10338
5520 PR bootstrap/10198
5521 PR bootstrap/10140
5522 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
5523 __mempcpy.
5524 * regex.c (regerror): Likewise.
5525
0ae0f1b0
RS
55262003-04-14 Roger Sayle <roger@eyesopen.com>
5527
5528 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
5529 * memchr.c: Likewise.
5530 * strcasecmp.c: Likewise.
5531 * strncasecmp.c: Likewise.
5532 * strncmp.c: Likewise.
5533 * xatexit.c: Likewise.
5534 * xmalloc.c: Likewise.
5535
5536 * copysign.c: Use traditional function declaration instead of DEFUN.
5537 * sigsetmask.c: Likewise.
5538
5539 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
5540 * memset.c: Likewise.
5541
5542 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
5543 * memmove.c: Likewise.
5544
88702c45
RS
55452003-04-14 Roger Sayle <roger@eyesopen.com>
5546
5547 * strdup.c (strdup): Tweak implementation to use memcpy.
5548
39e8d049
KG
55492003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5550
5551 * configure.in (HAVE_UINTPTR_T): Always define.
5552 * configure: Regenerated.
5553
9f2e0608
AO
55542003-03-23 Alexandre Oliva <aoliva@redhat.com>
5555
5556 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
5557 instead of $$CC alone.
5558 (install_to_tooldir): Use it.
5559
dbccdc42
JH
55602003-17-03 Jan Hubicka <jh@suse.cz>
5561
5562 * hashtab.c (htab_traverse_noresize): Break out from ...
5563 * hashtab.c (htab_traverse): ... here.
5564
0a8e3de3
JH
55652003-12-03 Jan Hubicka <jh@suse.cz>
5566
cd22e4af
JH
5567 * hashtab.c (htab_expand): Fix warning.
5568
0a8e3de3
JH
5569 * hashtab.c (htab_expand): Compute the size of hashtable based
5570 on the number of elements actually used.
5571 (htab_traverse): Call htab_expand when table is too empty.
5572
8fe85775
CW
55732003-03-11 Carlo Wood <carlo@gnu.org>
5574
5575 * cplus-dem.c (demangle_integral_value): Correction to reflect
5576 patch of 2002-01-10 in order to also make negative multi-digits
5577 without leading underscore work.
5578
3bf27822
MM
55792003-03-03 Mark Mitchell <mark@codesourcery.com>
5580
5581 * cplus-dem.c: Add license exception to copyright notice.
5582
434fa0b8
KG
55832003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5584
5585 * physmem.c: Formatting changes from upstream.
5586
ed935c35
DS
55872003-02-24 Danny Smith <dannysmith@users.source.forge.net>
5588
5589 * physmem.c (physmem_total): Add _WIN32 support.
5590 (physmem_available): Likewise.
5591
7f9fc006
RO
55922003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5593
5594 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
5595 GSI_PHYSMEM.
5596 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
5597
d47f75c4
KG
55982003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5599
5600 * configure.in: Check for sys/systemcfg.h and
5601 _system_configuration.
5602 * physmem.c: Add support for AIX. Tweek formatting as per
5603 upstream coreutils beta.
5604
170230b7
KG
56052003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5606 Richard Earnshaw <rearnsha@arm.com>
5607 Geoffrey Keating <geoffk@apple.com>
7468e0b5 5608
170230b7
KG
5609 * configure.in: Check for sys/sysctl.h and sysctl.
5610 * physmem.c: Add support for *bsd and darwin.
5611 * Makefile.in: Generate depedency for physmem.o.
5612
4a06f7f2
RO
56132003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5614
5615 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
5616 Tru64 UNIX.
5617 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
5618 Tru64 UNIX.
5619
5620 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
5621 machine/hal_sysinfo.h, sys/table.h.
5622 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
5623 * configure, config.in: Regenerate.
5624
64c7e556
KG
56252003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5626
5627 * configure.in: Check for sys/sysmp.h and sysmp.
5628 * physmem.c: Pull upstream copy, add support for irix6.
5629
5630 * config.in, configure: Regenerated.
5631
e9019af6
KG
56322003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5633
5634 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
5635 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
5636 pstat_getdynamic.
7468e0b5 5637
a354191e
KG
56382003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5639
5640 * Makefile.in (CFILES): Add physmem.c.
5641 (REQUIRED_OFILES): Add physmem.o.
5642 * configure.in: Check for sys/pstat.h.
5643 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
5644 * physmem.c: New file, copied from textutils.
5645
5646 * config.in, configure: Regenerated.
5647
4876b2b4
DJ
56482003-02-20 Daniel Jacobowitz <drow@mvista.com>
5649
5650 * Makefile.in (CFILES): Add lrealpath.c.
5651 (REQUIRED_OFILES): Add lrealpath.o.
5652 (lrealpath.o): Add rule.
5653 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
5654 * configure.in: Add realpath and canonicalize_file_name to
5655 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
5656 for canonicalize_file_name.
5657 * lrealpath.c: New file.
5658 * make-relative-prefix.c: Update documentation.
5659 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
5660 * config.in: Regenerated.
5661 * configure: Regenerated.
5662 * functions.texi: Regenerated.
5663
e182f0a3 56642003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
5665
5666 * cplus_dem.c: Fix typo: intializes -> initializes.
5667
3343fdd2
AO
56682003-02-20 Alexandre Oliva <aoliva@redhat.com>
5669
5670 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
5671 config.status.
5672 * configure: Rebuilt.
5673
902cf50c
DJ
56742003-02-13 Daniel Jacobowitz <drow@mvista.com>
5675
5676 Fix PR c++/7612.
5677 * cplus-dem.c (demangle_signature): Call string_delete.
5678 Remove extra string_init.
5679 (demangle_arm_hp_template): Call string_delete instead of
5680 string_clear. Add missing string_delete call.
5681 (demangle_qualified): Add missing string_delete call.
5682 (do_type): Remove unused variable btype. Add missing string_delete
5683 call. Call string_delete instead of string_clear.
5684 (demangle_fund_type): Move variable btype inside of the switch
5685 statement. Add missing string_delete call.
5686 (do_arg): Call string_delete instead of string_clear. Remove extra
5687 string_init.
5688 (demangle_nested_args): Free work->previous_argument.
5689
7ac27e08
KG
56902003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5691
5692 * acconfig.h: New file. Add uintptr_t.
5693 * config.in: Regenerated.
5694
b3a8389d
JM
56952003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
5696
5697 * libiberty.texi: Update to GFDL 1.2.
5698
d8c22ce7
CC
56992003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5700
5701 * Makefile.in (libiberty_topdir): New subst.
5702 (mkinstalldirs): Redefine in terms of the above.
5703 * configure.in: AC_SUBST it.
5704 * configure: Regenerate.
5705
4ce1921a
CC
57062003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5707
5708 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
5709 (info-subdir, install-info-subdir, clean-info-subdir)
5710 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
5711 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
5712 Pass $(FLAGS_TO_PASS).
5713
93239fdb
AO
57142003-01-27 Alexandre Oliva <aoliva@redhat.com>
5715
5716 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
5717 /`$$CC -print-multi-os-directory`.
5718
74828682
DJ
57192003-01-26 Daniel Jacobowitz <drow@mvista.com>
5720
5721 * hashtab.c (htab_create_alloc_ex): New function.
5722 (hatab_set_functions_ex): New function.
5723 (htab_delete, htab_expand): Support alternate allocation functions.
5724
ece0e59f
CF
57252003-01-24 Christopher Faylor <cgf@redhat.com>
5726
5727 * configure.in: Remove special pex-cygwin consideration.
5728 * configure: Regenerate.
5729 * pex-cygwin.c: Remove.
5730 * Makefile.in: Remove pex-cygwin.[co] lines.
5731
55d0e5e0
ZW
57322003-01-24 Zack Weinberg <zack@codesourcery.com>
5733
5734 * Makefile.in (CFILES): Add pex-*.c.
5735 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
5736 (CONFIGURED_OFILES): Add pex-*.o.
5737 (TEXIFILES): Add pexecute.txh.
5738 (pexecute.o): Delete rule.
5739 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
5740 pex-unix.o, pex-win32.o): New rules.
5741 * configure.in: Change AC_INIT argument to xmalloc.c.
5742 Compute appropriate pexecute implementation and substitute it
5743 as @pexecute@.
5744
5745 * pexecute.c: Split up into...
5746 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
5747 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
5748 new files.
5749
5750 * functions.texi: Regenerate.
5751 * configure: Regenerate.
5752
120cdf68
JZ
57532003-01-20 Josef Zlomek <zlomekj@suse.cz>
5754
5755 * hashtab.c (htab_expand): Fix allocation of new entries.
5756
90e5b39f
CC
57572003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
5758
5759 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
5760
d7082cd7
CC
5761 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
5762 mkinstalldirs command.
5763
eaed9290
DS
57642002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
5765
5766 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
5767 Define for hosts with HOST_EXECUTABLE_SUFFIX.
5768
ef4e4181
NC
57692002-11-24 Nick Clifton <nickc@redhat.com>
5770
5771 * make-relative-prefix.c (make_relative_prefix): Ensure return
5772 string is empty before using strcat to construct it.
5773
42766f8d
DJ
57742002-11-22 Daniel Jacobowitz <drow@mvista.com>
5775
5776 * Makefile.in: Add make-relative-prefix.c.
5777 * make-relative-prefix.c: New file.
5778 * functions.texi: Rebuilt.
5779
783080ab
JJ
57802002-11-16 Jakub Jelinek <jakub@redhat.com>
5781
5782 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
5783 used with arguments in traditional C' warnings.
5784
7da64d7a
JJ
57852002-10-16 Jakub Jelinek <jakub@redhat.com>
5786
5787 * config.table: Use mh-s390pic for s390x too.
5788
de78f58b
AJ
57892002-10-06 Andreas Jaeger <aj@suse.de>
5790
969ac969 5791 * cplus-dem.c (ada_demangle): Get rid of unneeded
de78f58b
AJ
5792 variable and of strict-aliasing warning.
5793 (grow_vect): Use char as first parameter.
5794
6c5d742e
KG
57952002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5796
5797 * Makefile.in (all): Fix multilib parallel build.
5798
f08b7eee
JDA
57992002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
5800
5801 * cp-demangle.c (demangling_new): Cast 0 to enum.
5802 (demangle_char): Cast return of strdup to char *.
5803 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
5804 (is_gnu_v3_mangled_dtor): Likewise.
5805 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
5806 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
5807 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
5808 * md5.c (md5_process_bytes): Cast results back to const void *.
5809 (md5_process_block): Add cast to const md5_uint32 *.
5810 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
5811 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
5812 unsigned short.
5813 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
5814 to void *.
5815 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
5816
8d87f295
NC
58172002-09-19 Nick Clifton <nickc@redhat.com>
5818
5819 * README: Update email addresses for bugs and patches.
5820
6eedb9ca
MS
58212002-09-10 Mike Stump <mrs@apple.com>
5822
5823 * splay-tree.c (splay_tree_successor): Fix comments.
5824
3fd9d606
ZW
58252002-09-11 Zack Weinberg <zack@codesourcery.com>
5826
b2196e8f 5827 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
5828 * testsuite/Makefile.in: Adjust for test-demangle.
5829 * testsuite/regress-demangle: Deleted.
5830 * testsuite/test-demangle.c: New file.
5831 * testsuite/demangle-expected: Change \$ to $ throughout, now that
5832 this file is not being read by a shell script.
5833
70c4e67a
RS
58342002-09-05 Roger Sayle <roger@eyesopen.com>
5835
5836 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
5837
65b91091
DD
58382002-08-07 DJ Delorie <dj@redhat.com>
5839
5840 * regex.c (re_error_msgid): Just use a simple array of strings.
5841 (re_compile_pattern): Compensate.
5842 (re_comp): Likewise.
5843 (re_comp): Likewise.
5844 (regerror): Likewise.
5845
437974a9
NB
58462002-07-29 Neil Booth <neil@daikokuya.co.uk>
5847
5848 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 5849
28a34ec1
JM
58502002-07-10 Jason Merrill <jason@redhat.com>
5851
5852 * cp-demangle.c (demangle_identifier): Support extended Unicode
5853 characters.
5854
84326592
KG
58552002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5856
5857 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 5858 !defined IN_GLIBCPP_V3.
84326592 5859
5d69ba1f
MM
58602002-07-01 Mark Mitchell <mark@codesourcery.com>
5861
5862 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
5863 Set it for the "st" operator.
5864 (demangle_expression): Handle expressions with types as arguments.
5865
7fda878c
DR
58662002-06-30 Douglas Rupp <rupp@gnat.com>
5867
5868 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
5869 * Makefile.in (OUTPUT_OPTION): Use.
5870
112bae77
PB
58712002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
5872
5873 * Makefile.in (install_to_libdir): Add $(DESTDIR).
5874 (install_to_tooldir): Likewise.
5875
53309d5c
DR
58762002-06-17 Douglas Rupp <rupp@gnat.com>
5877
5878 * lbasename.c: Add 2002 to copyright.
5879 (IS_DIR_SEPARATOR): Remove VMS junk.
5880
045b3a49
GK
58812002-06-05 Geoffrey Keating <geoffk@redhat.com>
5882
5883 * hashtab.c (htab_create): New stub function for backward
5884 compatibility.
5885 (htab_try_create): Likewise.
5886
e2500fed
GK
58872002-06-03 Geoffrey Keating <geoffk@redhat.com>
5888
5889 * hashtab.c (htab_create): Delete.
5890 (htab_try_create): Delete.
5891 (htab_create_alloc): New.
5892 (htab_delete): Support user-specified memory allocation.
5893 (htab_expand): Likewise.
5894
9f3dbd92
RL
58952002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
5896
5897 * configure.in: Fix typo in the code checking for sys_errlist.
5898 * configure: Regenerated.
5899
e4723404
AS
59002002-05-13 Andreas Schwab <schwab@suse.de>
5901
5902 * config.table: Use mh-x86pic also for x86-64.
5903
6706f116
AO
59042002-05-08 Alexandre Oliva <aoliva@redhat.com>
5905
5906 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
5907 script entry, and set LD to it when configuring multilibs.
5908 * configure: Rebuilt.
5909
deae2ed9
MM
59102002-05-07 Mark Mitchell <mark@codesourcery.com>
5911
5912 * configure.in (AC_TYPE_PID_T): Use it.
5913 * configure: Regenerated.
5914 * getruntime.c: Include <sys/types.h>.
5915 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
5916
4fc4e478
RH
59172002-04-09 Richard Henderson <rth@redhat.com>
5918
5919 * hashtab.c (higher_prime_number): Use 7 as minimum.
5920 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
5921 (htab_find_slot_with_hash): Likewise.
5922
bd7e6f2d
PE
59232002-04-01 Phil Edwards <pme@gcc.gnu.org>
5924
5925 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
5926 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
5927 not compile if IN_GLIBCPP_V3 defined.
5928 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
5929
a8f55e51
BM
59302002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
5931
de78f58b 5932 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
5933 if it is NULL.
5934
96adcacb
DD
59352002-03-27 DJ Delorie <dj@redhat.com>
5936
5937 * hex.c: Add documentation.
5938 (_hex_value): Provide non-ASCII empty table.
5939 (hex_init): Initialize the non-ASCII table.
5940 * functions.texi: Regenerate.
5941
2b613c6a
MM
59422002-03-27 Mark Mitchell <mark@codesourcery.com>
5943
5944 * dyn-string.c: Add libgcc exception to copyright notice.
5945
cd862df8
L
59462002-03-26 H.J. Lu (hjl@gnu.org)
5947
5948 * config.table: Support --with-build-subdir.
5949 * configure.in: Likewise.
5950 * configure: Rebuild.
5951
ed300793
SG
59522002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
5953
5954 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
5955 seen.
5956
b3dd43df
MM
59572002-03-12 Mark Mitchell <mark@codesourcery.com>
5958
5959 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
5960 notice.
5961
50c74579
DR
59622002-03-11 Douglas B Rupp <rupp@gnat.com>
5963
5964 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
5965
957978a4
JB
59662002-03-06 Jim Blandy <jimb@redhat.com>
5967
5968 * splay-tree.c (splay_tree_xmalloc_allocate,
5969 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
5970 prototyped definitions. Mark `data' arguments as unused.
5971
ccc49bed
AC
59722002-03-06 Andrew Cagney <ac131313@redhat.com>
5973
5974 * floatformat.c (floatformat_arm_ext_big): Delete definition.
5975
48d7db63
PE
59762002-03-04 Phil Edwards <pme@gcc.gnu.org>
5977
5978 * configure.in: Add --enable-install-libiberty option.
5979 * Makefile.in (INSTALLED_HEADERS): New variable.
5980 (install_to_libdir): Possibly also copy headers.
5981 * configure: Regenerated.
5982
af18e951
NB
59832002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
5984
5985 * xmalloc.c (xmalloc_fail): Clarify error message further.
5986
d8d7c3c3
NB
59872002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
5988
5989 * xmalloc.c (xmalloc_fail): Clarify error message.
5990
00c2f96f
JB
59912002-02-22 Jim Blandy <jimb@redhat.com>
5992
5993 * splay-tree.c (splay_tree_xmalloc_allocate,
5994 splay_tree_xmalloc_deallocate): New functions.
5995 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
5996 above functions and a dummy data pointer.
5997 (splay_tree_new_with_allocator): New function.
5998 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
5999 splay_tree_remove): Use the splay tree's allocation and
6000 deallocation functions.
6001
b1c1a22f
SS
60022002-02-19 Scott Snyder <snyder@fnal.gov>
6003
6004 * testsuite/demangle-expected: Add test case for infinite loop in
6005 demangler.
6006 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6007 if do_type() doesn't make any progress --- prevents an infinite
6008 loop.
6009
336669e7
CW
60102002-02-18 Carlo Wood <carlo@gnu.org>
6011
6012 PR c++/5390
6013 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6014 numbers that do not start with an underscore; This is needed
6015 for integer template parameters. This doesn't break anything
6016 because multi-digit numbers are never followed by a digit.
6017 * testsuite/demangle-expected: Corrected all mangled test
6018 cases with multi-digit template parameters: g++ 2.95.x does
6019 not generate underscores around these parameters.
6020
c13db5d1
JM
60212002-02-05 Jason Merrill <jason@redhat.com>
6022
6023 * cplus-dem.c (flags): Add DMGL_VERBOSE
6024 (cplus_demangle_v3_p): Remove.
6025 (demangle_it): Add DMGL_TYPES to passed flags.
6026 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6027 (cplus_demangle_v3_type): Remove.
6028 (cplus_demangle_v3): Add options parm.
6029
d74697b8
L
60302002-02-02 H.J. Lu (hjl@gnu.org)
6031
6032 * cp-demangle.c (cp_demangle_type): Do not protect with
6033 IN_LIBGCC2.
6034 (cplus_demangle_v3_all): New.
6035 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6036 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6037
6038 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6039 Initialized to cplus_demangle_v3.
6040 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6041 of cplus_demangle_v3.
6042 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6043 command line symbol.
6044
6045 * testsuite/regress-demangle: Pass the mangled name at the
6046 command line.
6047
3a441e38
L
60482002-02-01 H.J. Lu <hjl@gnu.org>
6049
6050 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6051 DMGL_GNU_V3.
6052
6d747e63
PE
60532002-01-31 Phil Edwards <pme@gcc.gnu.org>
6054
6055 * cp-demangle.c: Revert yesterday's change.
6056
46af757b
AM
60572002-01-31 Adam Megacz <adam@xwt.org>
6058
969ac969 6059 * configure.in: Treat mingw the same as cywin
46af757b
AM
6060 wrt HAVE_SYS_ERRLIST.
6061
46ab74b1
PE
60622002-01-30 Phil Edwards <pme@gcc.gnu.org>
6063
6064 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6065 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6066 cp_demangle_type.
6067 * testsuite/demangle-expected: New gnu-v3 test.
6068
e64d0626
MV
60692002-01-22 Momchil Velikov <velco@fadata.bg>
6070
6071 * configure.in (variable detection): Use arrays of unspecified
6072 size instead of plain integers.
6073
9ce3f7e5
DD
60742002-01-18 DJ Delorie <dj@redhat.com>
6075
6076 * Makefile.in (TESTLIB): New. This library is for future
6077 testsuites.
6078 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6079 break down by letter.
6080 (REQUIRED_OFILES): List long-to-compile files first.
6081 (maint-deps): New, target for updating dependencies.
6082 (dependencies): Update.
6083 * maint-tool: Add dependency-generating option.
6084 * configure.in: Check for _doprnt even if we're not providing it.
6085 * configure: Regenerate.
6086
6087 * _doprnt.c: Modifications to allow compiling on any platform.
6088 * copysign.c: Likewise.
6089 * putenv.c: Likewise.
6090 * setenv.c: Likewise.
6091 * vsprintf.c: Likewise.
6092
0e83ceb1
DR
60932002-01-15 Douglas B Rupp <rupp@gnat.com>
6094
6095 * mkstemps.c (mkstemps): On VMS, open temp file with option
6096 that causes it to be deleted when closed.
6097
adddf5bf
KG
60982002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6099
5e65297b
KG
6100 * cp-demangle.c (long_options): Const-ify.
6101 * cplus-dem.c (long_options): Likewise.
6102
adddf5bf
KG
6103 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6104 strstr instead.
6105
a4219437
IR
61062001-12-31 Ira Ruben <ira@apple.com>
6107
6108 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6109 * configure: Regenerated.
af328d8d
DR
6110
61112001-12-24 Douglas B. Rupp <rupp@gnat.com>
6112
6113 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6114 * configure: Regenerated.
a4219437 6115
63de15a4
CR
61162001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6117
6118 PR other/2719
6119 * cplus-dem.c (consume_count): Treat negative count as an error.
6120 * testsuite/demangle-expected: Added testcase.
6121
ee262b6f
DR
6122Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6123
6124 * configure.in: Hardcode that vfork works on VMS host.
6125 * configure: Regenerated.
6126
d06ba3c7
RH
61272001-12-06 Richard Henderson <rth@redhat.com>
6128
6129 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6130 (cplus_demangle): Support no_demangling.
6131
e490616e
ZW
61322001-11-27 Zack Weinberg <zack@codesourcery.com>
6133
6134 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6135 in libiberty context. Fix typo in leading comment.
6136 * configure.in: Fix various AC_DEFINEs so autoheader works.
6137 If any of vprintf, vsprintf, vfprintf is missing from libc,
6138 then AC_REPLACE_FUNCS(_doprnt).
6139
97e620cf 61402001-11-26 DJ Delorie <dj@redhat.com>
e490616e 6141 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
6142
6143 * Makefile.in (stamp-h): Depend on Makefile for proper
6144 serialization.
6145 (*-subdir): Depend on config.h for proper serialization.
6146
c3bb7df0
DD
61472001-11-26 DJ Delorie <dj@redhat.com>
6148
6149 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6150 * configure: Regenerate.
6151 * config.h: Add HAVE_ALLOCA_H.
6152
23850d35
KG
61532001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6154
2c47b56b
KG
6155 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6156 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6157 is available.
23850d35 6158
7ddfb651
JL
6159Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6160
d3982b71
JL
6161 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6162 * configure.in (HAVE_UINTPTR_T): Test for system defining
6163 uintptr_t and define HAVE_UINTPTR_T appropriately.
6164 * regex.c (uintptr_t): Do not provide a definition if the
6165 system provided one.
6166
7ddfb651
JL
6167 * regex.c (PREFIX): Provide an alternate definition for
6168 non-ANSI/ISO compilers.
6169 (ARG_PREFIX): Likewise.
6170
2e683037
JM
61712001-11-12 Jim Meyering <meyering@lucent.com>
6172
6173 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6174 this code would end up calling gettext even in packages built
6175 with --disable-nls.
6176 * getopt.c (_): Likewise.
6177 * regex.c (_): Likewise.
6178
f749bd83
AM
61792001-11-03 Alan Modra <amodra@bigpond.net.au>
6180
6181 * configure.in: Cope with missing makeinfo.
55a10d7c 6182 * configure: Regenerate.
f749bd83 6183
26ad2982
KG
61842001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6185
e5969ba6
KG
6186 * hex.c (hex_init): Provide empty stub.
6187
26ad2982
KG
6188 * hex.c (hex_init): Delete.
6189 (_hex_value): Const-ify and initialize at compile-time.
6190
afb649d5
L
61912001-10-19 H.J. Lu <hjl@gnu.org>
6192
6193 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6194 necessary.
6195
5bed56d9
DD
61962001-10-17 DJ Delorie <dj@redhat.com>
6197
6198 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6199 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 6200 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
6201 Improve manual formatting.
6202 * functions.texi: Regenerate.
6203
aac04c15
DD
62042001-10-15 DJ Delorie <dj@redhat.com>
6205
6206 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6207 (maint-undoc): New.
6208 maint-tool: Add "undoc" tool.
6209 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6210 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6211 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6212 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6213 documentation.
6214 * fnmatch.txh: New.
6215 * functions.texi: Regenerate.
fae8182a 6216
0e4e9e8f
JM
62172001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6218
6219 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6220 * strtod.c: Use "ISO C" instead of "ANSI C".
6221 * functions.texi: Regenerate.
6222
7f8fa05d
JM
62232001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6224
6225 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6226 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6227 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6228 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6229 spelling. Give names to function arguments in documentation. Use
6230 (void) prototypes in documentation.
6231 * functions.texi: Regenerate.
6232
0be6abca
KG
62332001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6234
6235 * argv.c (buildargv, tests, main): Const-ify.
6236 * cp-demangle.c (operator_code): Likewise.
6237 * cplus-dem.c (optable, libiberty_demanglers,
6238 cplus_demangle_set_style, cplus_demangle_name_to_style,
6239 print_demangler_list): Likewise.
6240 * hashtab.c (higher_prime_number): Likewise.
6241 * strcasecmp.c (charmap): Likewise.
6242 * strerror.c (error_info, strerror, main): Likewise.
6243 * strncasecmp.c (charmap): Likewise.
6244 * strsignal.c (signal_info): Likewise.
6245
0e30ffc5
DD
62462001-09-29 DJ Delorie <dj@redhat.com>
6247
6248 * configure: Regenerate.
6249
576fb787
KG
62502001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6251
6252 * concat.c: Include stdlib.h.
6253
e922f978
EZ
62542001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6255
6256 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6257 @dircategory and @direntry directives. Add @finalout.
6258 (many nodes): Lose the next,prev,up pointers on the @nide line.
6259 (Using, Supplemental Functions, Replacement Functions): Fix
6260 markup.
6261 (Functions): Move around, to allow makeinfo to build the manual
6262 without next,prev,up pointers in thye node lines.
6263 (Licenses): Fix typos.
6264
6265 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6266 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6267 * functions.texi: Regenerate.
6268
6269 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6270 line.
6271
ae9092da
DD
62722001-09-27 DJ Delorie <dj@redhat.com>
6273
6274 * configure.in: Don't use in-tree texinfo, because libiberty must
6275 be built before it. Check for makeinfo version 4 or higher.
6276 * functions.texi: Regenerate.
fae8182a 6277
aaa5f039
DD
62782001-09-20 DJ Delorie <dj@redhat.com>
6279 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 6280
aaa5f039
DD
6281 * configure.in (MAKEINFO, PERL): Detect these.
6282 (--enable-maintainer-mode): Add.
6283 * configure: Regenerate.
6284 * Makefile.in (MAKEINFO, PERL): Define.
6285 (libiberty.info, libiberty.dvi, libiberty.html): New.
6286 (CFILES): Add bsearch.c.
6287 (CONFIGURED_OFILES): New, list of objects configure might add.
6288 (maint-missing, maint-buildall): New, for maintainers only.
6289 (clean, mostlyclean): Add info/dvi/html files.
6290 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6291 * gather-docs: New, for maintainers.
6292 * maint-tool: New, for maintainers.
6293 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6294 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6295 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6296 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6297 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6298 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6299 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6300 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6301 documentation.
fae8182a 6302
c1766881
KG
63032001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6304
6305 * concat.c (reconcat): Fix for traditional C.
6306
ad43d46f
KG
63072001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6308
6309 * concat.c (reconcat): New function.
6310
c1d49704
KG
63112001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6312
c793eea7
KG
6313 * concat.c (vconcat_length, vconcat_copy, concat_length,
6314 concat_copy, concat_copy2): New functions.
6315 (concat): Use vconcat_length/vconcat_copy.
6316
c1d49704
KG
6317 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6318 Define.
6319
7a98d9b2
KG
63202001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6321
6322 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6323 VA_FIXEDARG & VA_CLOSE.
fae8182a 6324
7a98d9b2
KG
6325 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6326 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6327 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6328
e2dff3f2
KG
63292001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6330
6331 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6332
d0708dc1
UD
63332001-08-23 Ulrich Drepper <drepper@redhat.com>
6334
6335 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6336
63372001-08-23 Ulrich Drepper <drepper@redhat.com>
6338
6339 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6340 instead of mbrtowc.
6341 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6342 wcslen, and __wcscoll instead of wcscoll.
6343
ffb9435b
MK
63442001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6345
de78f58b
AJ
6346 * fibheap.c (fibheap_init, fibnode_init): Remove.
6347 (fibheap_new, fibnode_new): Use xcalloc to allocate and
6348 initialize memory.
6349 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 6350
f379eac3
RH
63512001-08-21 Richard Henderson <rth@redhat.com>
6352
6353 * Makefile.in (fibheap.o): Depend on config.h.
6354 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
6355 functions for inlining.
6356
b1c45ae4
CF
6357Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
6358
6359 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6360 hosting on cygwin.
6361 * configure: Regenerate.
6362
0310e5ac
AC
63632001-08-20 Andrew Cagney <ac131313@redhat.com>
6364
6365 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6366 HARRIS_FLOAT_FORMAT.
6367 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6368 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6369 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6370 (floatformat_m88110_harris_ext): New float formats.
6371
8c23e0a4
DB
63722001-08-20 Daniel Berlin <dan@cgsoftware.com>
6373
6374 * fibheap.c: New file. Fibonacci heap.
6375
6376 * Makefile.in (CFILES): Add fibheap.c.
6377 (REQUIRED_OFILES): Add fibheap.o.
6378 (fibheap.o): Add dependencies for fibheap.o.
6379
91625004
CF
63802001-08-17 Christopher Faylor <cgf@cygnus.com>
6381
6382 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6383 * configure: Regenerate.
6384
9e0ba685
RH
63852001-08-16 Richard Henderson <rth@redhat.com>
6386
6387 * hashtab.c (htab_hash_string): New.
6388
d80dedbe
AC
63892001-08-13 Andrew Cagney <ac131313@redhat.com>
6390
6391 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6392 name.
6393
ccea0d85
IH
63942001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
6395
6396 * regex.c (wcs_regex_compile): Use appropriate string
6397 to compare with collating element.
6398 Fix the padding for the alignment.
6399
b0e9bc8c 64002001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
6401
6402 * lbasename.c (lbasename): Change function definition to return a
6403 const char pointer.
6404
056400f1
JM
64052001-08-07 Jason Merrill <jason_merrill@redhat.com>
6406
6407 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6408 for".
6409
4e627c41
RH
64102001-08-03 Richard Henderson <rth@redhat.com>
6411
6412 * Makefile.in (concat.o): Depend on config.h.
6413
b6a2f884
AJ
64142001-07-30 Andreas Jaeger <aj@suse.de>
6415
6416 * concat.c: Include "config.h".
6417
c4b9cfe0
AJ
64182001-07-30 Andreas Jaeger <aj@suse.de>
6419
6420 * regex.c: Declare wcs functions only if compiling with
6421 MBS_SUPPORT.
6422 Don't use #elif for traditional C.
6423
64242001-07-23 Ulrich Drepper <drepper@redhat.com>
6425
6426 * regex.c: Revamp memory allocation for WCHAR functions to
6427 not use too much stack.
6428
64292001-07-30 Andreas Jaeger <aj@suse.de>
6430
6431 * regex.c: Declare wcs functions only if compiling with
6432 MBS_SUPPORT.
6433 Don't use #elif for traditional C.
6434
2cf50fd3
DJ
64352001-07-25 Daniel Jacobowitz <drow@mvista.com>
6436
6437 * Makefile.in (regex.o): Add dependency on config.h.
6438
27ffc806
DD
64392001-07-18 Andreas Schwab <schwab@suse.de>
6440
6441 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6442 underscore character.
6443
64442001-07-18 Ulrich Drepper <drepper@redhat.com>
6445
6446 * regex.c: Limit string length printed in debug messages to 100
6447 chars.
6448
64492001-07-18 Andreas Jaeger <aj@suse.de>
6450
6451 * regex.c: Place under LGPL version 2.1.
6452
dd771632
JJ
64532001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6454
6455 * Makefile.in: Add support for regex code.
6456 * regex.c: New file.
6457
29650b2b
MK
64582001-07-05 Mark Klein <mklein@dis.com>
6459
6460 * Makefile.in: Add ffs.c dependency.
6461 * configure.in: Add ffs.c.
6462 * ffs.c: New file.
6463
c8b28221
RH
64642001-06-18 Richard Henderson <rth@redhat.com>
6465
6466 * concat.c: Include <sys/types.h>.
6467
473c2d0b
LR
64682001-06-11 Loren J. Rittle <ljrittle@acm.org>
6469
a4c03da2 6470 bootstrap/3106
473c2d0b
LR
6471 * strerror.c (sys_nerr): Hide the OS header version.
6472 * strsignal.c (sys_nsig): Likewise.
6473
0bdcca68
RH
64742001-06-10 Richard Henderson <rth@redhat.com>
6475
6476 * concat.c: Include string.h. Fix int vs size_t usage.
6477 Simplify the iteration loops. Use memcpy.
6478
6de133d3
MK
64792001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6480
6481 * partition.c: Fix misspelling of `implementation'.
6482
8a153288
TS
64832001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6484
6485 * md5.c (md5_init_ctx): Declare constants as unsigned.
6486 (md5_process_block): Likewise.
6487
641b2721
ZW
64882001-05-07 Zack Weinberg <zackw@stanford.edu>
6489
6490 * cp-demangle.c (demangle_v3_with_details,
6491 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
6492 function definition.
6493 * ternary.c: Use K+R style function definitions. Use PTR, not
6494 void *. Make arguments constant where possible.
6495
5cdba4ff
MM
64962001-05-07 Mark Mitchell <mark@codesourcery.com>
6497
6498 * splay-tree.h (splay_tree_max): New function.
6499 (splay_tree_min): Likewise.
6500
9dab060e
DB
65012001-04-15 Daniel Berlin <dan@cgsoftware.com>
6502
6503 * ternary.c: New file - Ternary search tree implementation.
6504
6505 * Makefile.in: Add ternary.o, and ternary.c dependencies.
6506
d02af173
ZW
65072001-04-03 Zack Weinberg <zackw@stanford.edu>
6508
6509 * make-temp-file.c (try): Inline.
6510
94b68558
RH
65112001-02-28 Richard Henderson <rth@redhat.com>
6512
6513 * Makefile.in (make-temp-file.o): Depend on config.h.
6514
27f66c0b
KG
65152001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6516
6517 * memchr.c (memchr): Adjust condition to avoid infinite loop.
6518
f1a0345c
JJ
65192001-03-23 Jakub Jelinek <jakub@redhat.com>
6520
6521 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
6522 `_' not followed by a digit is invalid.
6523
a519fba6
JB
65242001-03-22 Jim Blandy <jimb@redhat.com>
6525
6526 * cp-demangle.c (string_list_delete): Use dyn_string_delete
6527 instead of free, to free the contents as well as the string
6528 structure.
6529
49ee944b
ZW
65302001-03-21 Zack Weinberg <zackw@stanford.edu>
6531
6532 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
6533 Don't default P_tmpdir to anything. Try /var/tmp before
6534 /usr/tmp.
6535
33437dc7
ZW
65362001-03-20 Zack Weinberg <zackw@stanford.edu>
6537
6538 * choose-temp.c: Split off make_temp_file, and the code
6539 duplicated between it and choose_temp_base, into...
6540 * make-temp-file.c: ... here; new file.
6541
6542 * Makefile.in (CFILES): Add make-temp-file.c.
6543 (REQUIRED_OFILES): Add make-temp-file.o.
6544
7dce2eff
JB
65452001-03-20 Jim Blandy <jimb@redhat.com>
6546
6547 * cp-demangle.c (struct demangling_def): New fields:
6548 is_constructor and is_destructor.
6549 (demangling_new): Initialize them.
6550 (demangle_ctor_dtor_name): Set them, if we detect a constructor
6551 or destructor.
6552 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
6553 is_gnu_v3_mangled_dtor): New functions.
6554
e03a61f1
JM
65552001-03-20 Jason Merrill <jason@redhat.com>
6556
6557 * cplus-dem.c (main): Skip initial $.
6558
8860ddab
MM
65592001-03-15 Michael Meissner <meissner@redhat.com>
6560
6561 * hashtab.c (higher_prime_number): Silence warning that 4294967291
6562 might be a signed integer under pre-ISO C systems.
6563
2b757d51
NB
65642001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
6565 John David Anglin <dave@hiauly1.hia.nrc.ca>
6566
969ac969
JJ
6567 * lbasename.c: New file.
6568 * Makefile.in: Update for lbasename.
2b757d51 6569
1f50aafb
ZW
65702001-03-06 Zack Weinberg <zackw@stanford.edu>
6571
6572 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
6573 * configure.in: Replace all alloca logic with a simple use of
6574 the above new macro.
6575 * config.table: Kill *-*-beos* entry.
6576 * config/mh-beos: Delete.
6577 * configure, config.in: Regenerate.
6578
6579 * Makefile.in (ALLOCA, HFILES): Kill.
6580 (REQUIRED_OFILES): Add alloca.o.
6581 (alloca.o): Depend on libiberty.h.
6582 (argv.o): Don't depend on alloca-conf.h.
6583 * alloca-conf.h: Delete.
6584 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
6585 blocks. Provide the C alloca unconditionally. Use PTR where
6586 appropriate. Make i00afunc static.
6587 * argv.c: Don't include alloca-conf.h.
6588
d9fd5aae
JDA
65892001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
6590
6591 * cplus-dem.c (main): Cast enum style to int.
6592
4031ed65
LR
65932001-02-16 Loren J. Rittle <ljrittle@acm.org>
6594
6595 * cplus-dem.c (main): Initialize style.
6596
2ca46e8a
PE
65972001-02-02 Phil Edwards <pme@sources.redhat.com>
6598
6599 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
6600
3b60dd8e
BM
66012001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
6602
6603 Add support for Java demangling under the v3 ABI:
6604 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
6605 (struct demangling_def): Add `style' field.
6606 (demangling_new): New parameter `style'. Set it in demangling_t.
6607 (demangle_prefix): Use NAMESPACE_SEPARATOR.
6608 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
6609 (cp_demangle): New parameter `style'. Pass it to demangling_new().
6610 (main): Call cp_demangle with extra parameter.
6611 (java_demangle_v3): New function.
6612 (java_builtin_type_names): New. Table of primitive type names used
6613 for Java demangling.
6614 (demangle_builtin_type): Look up in java_builtin_type_names if doing
6615 Java output.
1f50aafb 6616 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
6617 demangling.
6618 (long_options): Remove obsolete `java' option.
6619 (main): Remove explicit handling of `java' option. Instead, pass style
6620 parameter in cplus_demangle flags as gdb does.
6621 * testsuite/demangle.expected: Add some Java test cases.
6622
584932e9
DD
66232000-12-29 DJ Delorie <dj@redhat.com>
6624
6625 * fnmatch.c: Make the note about the origins of this file more
6626 accurate, at least until we can sync with glibc.
6627 * getopt.c: Ditto.
6628 * getopt1.c: Ditto.
6629 * md5.c: Ditto.
6630 * obstack.c: Ditto.
6631
dac45916
MS
66322000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6633
6634 * bsearch.c: New file.
6635 * configure.in (funcs): Add bsearch.
6636 (AC_CHECK_FUNCS): Likewise.
6637 * configure, config.in: Regenerate.
6638
a8e4a997
MS
66392000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6640
6641 * safe-ctype.c: #include "ansidecl.h".
6642 * strtod.c: Likewise.
6643
75444da7
MS
66442000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6645
6646 * strtoul.c: Include safe-ctype.h, not ctype.h.
6647
f6bbde28
ZW
66482000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
6649
6650 * safe-ctype.c: New file.
6651 * Makefile.in (CFILES): Add safe-ctype.c.
6652 (REQUIRED_OFILES): Add safe-ctype.o.
6653
6654 * argv.c: Define ISBLANK and use it, not isspace.
6655 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
6656 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
6657 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
6658 before calling TOLOWER(c)/TOUPPER(c).
6659
6c1ce62b 66602000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
6661
6662 * Makefile.in (distclean): When cleaning, remove testsuite.
6663
b5d1497d
JM
66642000-12-05 Jason Merrill <jason@redhat.com>
6665
6666 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
6667 name before allocating the dyn_string.
6668
c6e13630
JM
66692000-12-04 Jason Merrill <jason@redhat.com>
6670
6671 * cp-demangle.c: s/new_abi/v3/.
6672 * cplus-dem.c: Likewise.
6673 (current_demangling_style): Now auto_demangling.
6674 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 6675 (main): Use standard symbol chars for auto_demangling.
c6e13630 6676
a4c9b97e
MM
66772000-11-26 Mark Mitchell <mark@codesourcery.com>
6678
6679 * hashtab.c (higher_prime_number): Use a table, rather than a
6680 seive, to find the next prime.
6681
3b3bd9a7
L
66822000-11-22 H.J. Lu <hjl@gnu.org>
6683
6684 * cplus-dem.c (main): Handle gnat_demangling.
6685
d1209685
ZW
66862000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
6687
6688 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
6689 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
6690 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
6691 argument form of AC_DEFINE in dummy definitions block. Use
6692 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
6693 in dummy block. Preload cache variables instead of bypassing
6694 tests, where possible.
6695 * acconfig.h: Removed.
6696
6697 * xmalloc.c (xmalloc_failed): New function, does error
6698 reporting on failed allocation.
6699 (xmalloc, xcalloc, xrealloc): Use it.
6700
cf183ac2
HPN
67012000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
6702
6703 * cplus-dem.c (cplus_demangle): Fix formatting.
6704 (grow_vect): Ditto.
6705 (ada_demangle): Ditto.
6706 (internal_cplus_demangle): Ditto.
6707 (mop_up): Ditto.
6708
67092000-11-21 H.J. Lu <hjl@gnu.org>
6710
6711 * cplus-dem.c (main): Handle java_demangling.
6712
8bcc782c
KG
67132000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6714
6715 * cplus-dem.c (grow_vect): Prototype.
6716 (ada_demangle): Cast the arg of ctype macros to unsigned char.
6717
29120f44
HPN
67182000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
6719
6720 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
6721 parameter `option'.
6722
0437a5a8
KB
67232000-11-15 Kenneth Block <kenneth.block@compaq.com>
6724
9e038f71 6725 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
6726 be used in GCC.
6727
eab0c1ab 67282000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 6729
29120f44 6730 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
6731 list.
6732
d50d20ec
HPN
67332000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
6734
6735 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
6736 xcalloc depending on htab->return_allocation_failure. Return zero
6737 if calloc fails.
d50d20ec
HPN
6738 (htab_create): Update comment to cover memory allocation.
6739 (htab_try_create): New.
6740 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 6741 Update comment to cover this.
d50d20ec 6742
35e9340f
HPN
67432000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
6744
6745 * hashtab.c: Change void * to PTR where necessary.
6746 (htab_create, htab_expand): Correct formatting of comment before
6747 function.
6748
ea343d1a 67492000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
6750
6751 * cp-demangle.c (string_list_def): Add caret_position and comments.
6752 (result_caret_pos): New macro.
6753 (result_append_string): Rename to...
6754 (result_add_string): ... this, and insert at caret position.
d1209685 6755 Rename throughout.
0870bfd6
AS
6756 (result_append): Rename to...
6757 (result_add): ... this, and insert at caret position. Rename
d1209685 6758 throughout.
0870bfd6
AS
6759 (result_append_char): Rename to...
6760 (result_add_char): ... this, and insert at caret position. Rename
d1209685 6761 throughout.
0870bfd6
AS
6762 (result_append_space): Remove.
6763 (string_list_new): Initialize caret position.
6764 (result_add_separated_char): Use caret position.
6765 (result_get_caret): New funtion.
6766 (result_set_caret): Likewise.
6767 (result_shift_caret): Likewise.
6768 (result_previous_char_is_space): Likewise.
6769 (substitution_start): Use caret position.
6770 (substitution_add): Likewise.
6771 (demangling_new): Initialize caret position.
6772 (demangle_encoding): Use caret position.
d1209685 6773 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
6774 (demangle_type_ptr): Use switch statement. Handle pointers to
6775 arrays. Don't use result_append_space. Use caret position.
6776 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
6777 call to demangle_array_type.
6778 (demangle_array_type): Add parameter to handle pointers to arrays.
6779
f15b9af9
MM
67802000-10-01 Mark Mitchell <mark@codesourcery.com>
6781
6782 * splay-tree.c (splay_tree_insert): Fix formatting.
6783
8f17b5c5
MM
67842000-09-16 Mark Mitchell <mark@codesourcery.com>
6785
6786 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
6787
4eaa189a
MS
67882000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6789
6790 * splay-tree.c: #include <stdio.h>.
6791
29791078
HPN
67922000-09-14 Hans-Peter Nilsson <hp@axis.com>
6793
6794 * testsuite/demangle-expected: Add two tests for anonymous
6795 namespaces.
6796 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
6797
2c9f4db7
MM
67982000-09-10 Mark Mitchell <mark@codesourcery.com>
6799
6800 * splay-tree.c (splay_tree_predecessor): New function.
6801 (splay_tree_successor): Likewise.
6802
bb22da4b
HPN
68032000-09-10 Hans-Peter Nilsson <hp@axis.com>
6804
6805 * testsuite/demangle-expected: Add four tests for type_info
6806 mangling.
bb22da4b
HPN
6807 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
6808 for a non-template non-qualified type_info function or node.
6809
759e8187
AS
68102000-09-08 Alex Samuel <samuel@codesourcery.com>
6811
6812 * cp-demangle.c: Fix copyright banner.
6813
2ecd81ef
MS
68142000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6815
6816 * md5.c: #include "ansidecl.h".
6817
d93998ec
AS
68182000-09-06 Alex Samuel <samuel@codesourcery.com>
6819
6820 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
6821 (demangle_type): Handle substitution candidates correctly in the
6822 face of special substitutions.
6823
1056d228
AS
68242000-09-05 Alex Samuel <samuel@codesourcery.com>
6825
6826 * cp-demangle.c (demangle_encoding): Rename variable.
6827 (demangle_name): Rename parameter. Handle return type
6828 suppression.
6829 (demangle_nested_name): Rename parameter.
6830 (demangle_prefix): Likewise. Change return type suppression.
6831 (demangle_unqualified_name): Add parameter. Flag constructors and
6832 conversion operators.
6833 (demangle_special_name): Fix comment.
6834 (demangle_type): Rename variable.
6835 (demangle_bare_function_type): Check for missing return type and
d1209685 6836 parameter.
1056d228
AS
6837 (demangle_class_enum_type): Rename parameter.
6838 (demangle_discriminator): Fix misspelling in comment.
6839
2f31ed7e
DD
68402000-08-31 DJ Delorie <dj@redhat.com>
6841
6842 * configure.in (Cygwin): special case cygwin only when we're
6843 building cygwin, not when we're hosting cygwin.
6844
02bcb9c6
AS
68452000-09-04 Alex Samuel <samuel@codesourcery.com>
6846
6847 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
6848 <expression>.
6849
aee749cf
AS
68502000-09-04 Alex Samuel <samuel@codesourcery.com>
6851
6852 * cp-demangle.c (demangle_type_ptr): Increment position past
6853 pointer and reference characters.
6854
92a16bbe
AS
68552000-09-04 Alex Samuel <samuel@codesourcery.com>
6856
6857 * cp-demangle.c (demangle_nv_offset): New function.
6858 (demangle_v_offset): Likewise.
6859 (demangle_call_offset): Likewise.
6860 (demangle_special_name): Update thunk demangling to comply with
6861 ABI changes.
d1209685 6862
31e0ab1f
AS
68632000-09-03 Alex Samuel <samuel@codesourcery.com>
6864
6865 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
6866 (substitution_def): Remove template_parm_number.
6867 (NOT_TEMPLATE_PARM): Remove.
6868 (result_insert_string): New macro.
6869 (result_insert): Likewise.
6870 (result_insert_char): Likewise.
6871 (substitution_add): Remove last parameter. Don't store template
d1209685 6872 parm number.
31e0ab1f
AS
6873 (BFT_NO_RETURN_TYPE): Define as NULL.
6874 (demangle_encoding): Adjust call to demangle_bare_function_type.
6875 (demangle_name): Adjust substitution. Adjust call to
d1209685 6876 substitution_add.
31e0ab1f
AS
6877 (demangle_prefix): Adjust call to substitution_add.
6878 (demangle_identifier): Handle anonymous namespaces.
6879 (demangle_operator_name): Change demangling of vendor-extended
6880 operator to match ABI changes.
6881 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 6882 substitutions here.
31e0ab1f
AS
6883 (demangle_type): Adjust calls to demangle_template_param,
6884 substitution_add, and demangle_type_ptr. Fix substitution of
6885 templated types.
6886 (demangle_function_type): Change parameter to a pointer.
6887 (demangle_bare_function_type): Likewise. Adjust insertion point.
6888 (demangle_template_param): Remove last parameter.
6889 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 6890 demangle_template_param.
31e0ab1f
AS
6891 (is_mangled_char): Accept `$' and `.'.
6892 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
6893 * dyn-string.c (dyn_string_insert_char): New function.
6894
ccbc3eb7
HPN
68952000-08-31 Hans-Peter Nilsson <hp@axis.com>
6896
6897 * testsuite/demangle-expected: Add nine tests for
6898 underscore-after-number followed by five tests for name-signature
6899 delimiter.
6900
53dce582
RH
69012000-08-28 Richard Henderson <rth@cygnus.com>
6902
6903 * Makefile.in (md5.o): Depend on config.h.
6904
881c6935
JM
69052000-08-28 Jason Merrill <jason@redhat.com>
6906
6907 * Makefile.in (REQUIRED_OFILES): Add md5.o.
6908 (CFILES): Add md5.c.
6909 * md5.c: New file.
6910
a440fd19
AS
69112000-08-27 Alex Samuel <samuel@codesourcery.com>
6912
6913 * cp-demangle.c (demangle_name): Initialize template_p in local
6914 name case. Don't re-add substitutions as candidates.
6915 (demangle_nested_name): Use <unqualified-name>.
6916 (demangle_prefix): Likewise. Don't add template names as
6917 substitution candidates twice, or re-add a substitution or the
6918 last prefix component.
6919 (demangle_local_name): Adjust output format.
6920
d01ce591
AS
69212000-08-25 Alex Samuel <samuel@codesourcery.com>
6922
6923 * cp-demangle.c (result_add_separated_char): Change parameter to
6924 int.
6925 (substitution_add): Don't check for duplicates. Check if
6926 previously allocated size is zero.
6927 (demangle_name): Remove duplicate check for std substitution.
6928 Clear template flag appropriately.
6929 (demangle_prefix): Remove argument to demangle_substitution.
6930 Don't check that template flag is already set.
6931 (demangle_operator_name): Add pt operator.
6932 (demangle_type): Don't treat r as built-in type. Remove argument
6933 to demangle_substitution. Fix substitution candidate mechanics.
6934 Handle <template-template-parm>s. Improve comments.
d1209685 6935 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
6936 (demangle_substitution): Remove parameter.
6937 (print_usage): Remove extra fprintf option.
6938
2f59c8eb
GM
69392000-08-24 Greg McGary <greg@mcgary.org>
6940
969ac969 6941 * random.c (end_ptr): Revert previous change.
2f59c8eb 6942
2f26c11d
GM
69432000-08-24 Greg McGary <greg@mcgary.org>
6944
969ac969 6945 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2f26c11d 6946 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
969ac969 6947 * random.c (end_ptr): Likewise.
2f26c11d 6948
e282c9c9
AS
69492000-08-23 Alex Samuel <samuel@codesourcery.com>
6950
6951 * cp-demangle.c (result_close_template_list): Remove function.
6952 (result_add_separated_char): New function.
6953 (result_open_template_list): New macro.
6954 (result_close_template_list): Likewise.
6955 (demangle_prefix): Don't set template_p if the
6956 prefix ends with a ctor name.
6957 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
6958 (demangle_type): Check for template args after substitution.
6959 (demangle_template_args): Use result_open_template_list.
d1209685 6960
c9b6494a
ZW
69612000-08-02 Zack Weinberg <zack@wolery.cumb.org>
6962
6963 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
6964
d1209685 69652000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
6966
6967 * config/mh-openedition.h: Added -DLE370 definition.
6968
0aab2795
ME
69692000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
6970
6971 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
6972 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
6973 Cast program to 'char *' in errmsg_arg assignment.
6974 (PWAIT_ERROR): Define.
6975 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
6976 to DJGPP's WIF* macros.
6977
c2f275e4
RB
69782000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
6979 Jeff Law <law@cygnus.com>
6980
73aa9564
RB
6981 * getcwd.c: Include string.h, stdlib.h for prototypes
6982
c2f275e4 6983 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
6984 * rename.c: Include config.h, unistd.h
6985 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 6986
ccbc3eb7
HPN
69872000-07-24 Hans-Peter Nilsson <hp@axis.com>
6988
6989 * cplus-dem.c (work_stuff_copy_to_from): New.
6990 (delete_non_B_K_work_stuff): New.
6991 (delete_work_stuff): New.
6992 (mop_up): Break out work_stuff partly destruction to
6993 delete_non_B_K_work_stuff.
6994 (iterate_demangle_function): New.
6995 (demangle_prefix): Call iterate_demangle_function instead of
6996 demangle_function_name. Leave handling of name-signature
6997 __-delimiters to iterate_demangle_function.
6998 (demangle_integral_value): Strip an optional
6999 following underscore cautiously. Handle negative numbers.
7000
3388651c
DB
70012000-07-24 Daniel Berlin <dberlin@redhat.com>
7002
d1209685 7003 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
7004 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7005
0fac482e
AS
70062000-07-21 Alex Samuel <samuel@codesourcery.com>
7007
7008 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7009 allocating ctor mangling.
7010 (demangle_array_type): Handle empty and non-constant array length.
7011
8502a100 70122000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
7013 Jeff Law <law@cygnus.com>
7014
c6451ce1
MS
7015 * configure.in (AC_CHECK_HEADERS): Add time.h.
7016 (AC_HEADER_TIME): Add check.
7017 * configure, config.in: Regenerate.
7018 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7019
cd447360
MS
7020 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7021 * configure, config.in: Regenerate.
7022 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7023 * strtol.c, strtoul.c: #include "config.h". Portably #include
7024 <limits.h> and/or <sys/param.h>.
7025 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 7026
3b58c099
MS
7027 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7028 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7029 * configure, config.in: Regenerate.
7030 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7031
8502a100
MS
7032 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7033
da0c7743
MS
70342000-07-21 Mike Stump <mrs@wrs.com>
7035
7036 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 7037 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 7038
838f8562
KG
70392000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7040
7041 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7042
7043 * setenv.c (setenv): Initialize variable `ep'.
7044
7045 * sigsetmask.c (abort): Prototype.
7046
7047 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7048 __STDC__ for stdarg.h include.
7049 (int_vasprintf): Prototype.
7050 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7051 definition. Cast `global_total_width' in comparison.
7052 (main): Prototype. Return a value.
7053
7054 * vfork.c (fork): Prototype.
7055
7056 * xexit.c: Include config.h.
7057
e9958132
JM
70582000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7059
7060 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7061 and print it with %u.
7062
39a6492f
HPN
70632000-07-17 Hans-Peter Nilsson <hp@axis.com>
7064
7065 * testsuite/regress-demangle (failed test): Show result and
7066 expected output.
7067
6d0be369
AH
70682000-07-07 Andrew Haley <aph@cygnus.com>
7069
7070 * cplus-dem.c (main): fflush() after emitting last char before
7071 waiting for input.
7072
bece74bd
AS
70732000-06-28 Alex Samuel <samuel@codesourcery.com>
7074
7075 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7076 (demangle_name): Handle <substitution> followed by
7077 <unqualified-template-name>.
7078 (demangle_type): Follow special substitutions with
7079 <class-enum-type>
7080 (demangle_subtitution): Set template_p for special substitutions.
7081 (main): Fix typos.
d1209685 7082
229b8ec7
AS
70832000-06-27 Alex Samuel <samuel@codesourcery.com>
7084
7085 * cp-demangle.c (demangle_special_name): Swap base and derived
7086 class when demangling construction vtables.
7087
051664b0
AS
70882000-06-21 Alex Samuel <samuel@codesourcery.com>
7089
7090 * cp-demangle.c: Don't include ctype.h.
7091 (IS_DIGIT): New macro.
7092 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7093 instead of isdigit and isalpanum.
7094 (demangling_def): Make name and next const pointers.
7095 (STATUS_ALLOCATION_FAILED): New status code.
7096 (dyn_string_append_space): Handle failure in
7097 dyn_string_append_char.
7098 (int_to_dyn_string): Likewise. Change return value to status_t.
7099 (string_list_new): Handle failure of dyn_string_init.
7100 (result_close_template_list): Change return type to status_t.
7101 Handle failure in dyn_string_append.
7102 (result_push): Change return value to status_t. Handle failure in
7103 string_list_new. Handle failure of result_push throughout.
7104 (substitution_add): Change return value to status_t. Handle
7105 dyn_string failures. Handle failure of substitution_add
7106 throughout.
7107 (template_arg_list_new): Return NULL on allocation failure.
7108 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7109 Handle error result throughout.
7110 (result_append): Likewise.
7111 (result_append_char): Likewise.
7112 (result_append_space): Likewise.
7113 (demangling_new): Make argument a const pointer. Handle
7114 allocation failures.
7115 (demangle_template_args): Handle failure in template_arg_list_new
7116 and result_close_template_list.
7117 (demangle_discriminator): Return if int_to_dyn_string fails.
7118 (cp_demangle): Likewise.
7119 (cp_demangle_type): New function.
7120 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7121 memory allocation failure.
7122 (main): Likewise.
7123 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7124 IN_LIBGCC2.
7125 (dyn_string_init): Change return value to int. Handle
7126 RETURN_ON_ALLOCATION_FAILURE case.
7127 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7128 (dyn_string_release): Delete the dyn_string.
7129 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7130 (dyn_string_copy): Change return type to int.
7131 (dyn_string_copy_cstr): Likewise.
7132 (dyn_string_prepend): Likewise.
7133 (dyn_string_prepend_cstr): Likewise.
7134 (dyn_string_insert): Likewise.
7135 (dyn_string_insert_cstr): Likewise.
7136 (dyn_string_append): Likewise.
7137 (dyn_string_append_cstr): Likewise.
7138 (dyn_string_append_char): Likewise.
7139 (dyn_string_substring): Likewise.
d1209685 7140
fe06b696
ZW
71412000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7142
7143 * cp-demangle.c (demangle_operator_name): Add spaces before
7144 names beginning with a letter: delete, delete[], new, new[],
7145 sizeof.
7146 (demangle_special_name): Handle TF <type> and TJ <type>.
7147
6223e158
PDM
7148Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7149
7150 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7151
48f3e29b
PDM
7152Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7153
7154 * cp-demangle.c (stdio.h): File included unconditionaly.
7155 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7156 * dyn-string.c (stdio.h): File included.
7157 * partition.c (partition_print): No `&' needed to take the address of
7158 a function.
7159
69197e7e
KG
71602000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7161
7162 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 7163
69197e7e
KG
7164 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7165
7166 * cp-demangle.c (demangle_char): Change parameter from char to int.
7167 (demangle_expression, demangle_expr_primary): Remove extra
7168 semi-colon in prototype.
7169
7170 * dyn-string.c (dyn_string_append_char): Change parameter from
7171 char to int.
7172
7173 * memcmp.c (memcmp): Constify.
7174
7175 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7176 __extension__.
7177
7178 * partition.c (elem_compare): Prototype. Don't cast away
7179 const-ness.
7180
7181 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 7182
7eb23b1f
KG
71832000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7184
7185 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7186
7187 * cp-demangle.c: Include demangle.h.
7188 (template_arg_list_new): DeANSIfy.
7189 (cp_demangle): Make static and add prototype.
7190 (operator_code, operators): Constify.
7191 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7192
3faa108c
AS
71932000-06-05 Alex Samuel <samuel@codesourcery.com>
7194
7195 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7196 unsigned char.
7197 (demangle_unqualified_name): Likewise.
7198 (demangle_number_literally): Likewise.
7199 (demangle_type): Likewise.
7200 (demangle_substitution): Likewise.
7201 (is_mangled_char): Likewise, for isalnum.
7202
69afa80d
AS
72032000-06-04 Alex Samuel <samuel@codesourcery.com>
7204
7205 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7206 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7207 (cp-demangle.o): New dependency.
7208 (dyn-string.o): Likewise.
7209
7210 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7211
7212 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7213 demangler.
7214 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7215 demangling mode.
7216 (gnu_new_abi_symbol_characters): New function.
7217 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7218 file.
7219 * cp-demangle.c: New file.
d1209685 7220
0b72c3df
AC
7221Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7222
7223 * floatformat.c: Add name to each floatformat field.
7224
270cea06
JL
7225Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7226
7227 * Makefile.in (objalloc.o): Depend on config.h
7228
d11ec6f0
ZW
72292000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7230
7231 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7232 if HAVE_STRING_H.
7233 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7234 * objalloc.c: Include config.h. Include stdlib.h and don't
7235 declare malloc or free if HAVE_STDLIB_H.
7236 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7237 else declare malloc without prototype. Include string.h if
7238 HAVE_STRING_H, else declare memset without prototype. Don't
7239 include stddef.h.
7240
f8e2da56
MS
72412000-05-23 Mike Stump <mrs@wrs.com>
7242
7243 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 7244 -j3.
f8e2da56 7245
650f3068
DA
72462000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7247
7248 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7249
1d2da2e1
HB
72502000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7251
d1209685 7252 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
7253 probably zero, also eliminate a warning on alpha.
7254
47668d0a
DE
72552000-05-15 David Edelsohn <edelsohn@gnu.org>
7256
c7a79a32 7257 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
7258 on $(enable_shared).
7259
36348eab
JJ
72602000-05-10 Jakub Jelinek <jakub@redhat.com>
7261
7262 * config.table: Use mh-sparcpic for sparc*-*-*.
7263
209bbe34
NC
72642000-05-08 Nick Clifton <nickc@cygnus.com>
7265
7266 * Makefile.in (CFILES): Add strncmp.c.
7267 (NEEDED): Add strncmp.
7268
a85a47fb
KG
72692000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7270
7271 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7272 Cast the arguments to `islower' to `unsigned char'.
7273 (print_demangler_list): Prototype.
7274
4aef973c
PDM
7275Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7276
7277 * sort.c (UCHAR_MAX): Provide fallback definition.
7278
3b94497c
AO
72792000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7280
7281 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7282 SUBDIRS.
7283
24eaa47a
KB
72842000-04-28 Kenneth Block <block@zk3.dec.com>
7285 Jason Merrill <jason@casey.cygnus.com>
7286
d1209685
ZW
7287 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7288 (cplus_demangle_set_style): New function for setting style.
7289 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 7290
a9266bfa
KG
72912000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7292
7293 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7294
7295 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7296 (libiberty_AC_FUNC_STRNCMP): Invoke.
7297
7298 * strncmp.c: New file.
7299
8e02c4d0
JH
7300Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7301
7302 * hashtab.c (htab_expand): Add prototype.
7303 (find_empty_slot_for_expand): Likewise.
7304
4feeaae3
KG
73052000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7306
7307 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7308 match prototype.
7309 (htab_expand): Cast the return value of xcalloc.
7310
18a94a2f
MM
73112000-04-24 Mark Mitchell <mark@codesourcery.com>
7312
7313 * hashtab.c (hash_pointer): New function.
7314 (eq_pointer): Likewise.
7315 (htab_hash_pointer): New variable.
7316 (htab_eq_pointer): Likewise.
7317
eeb0656f
MM
73182000-04-23 Mark Mitchell <mark@codesourcery.com>
7319
b51024fc
MM
7320 * sort.c (sort_pointers): Fix endianness bugs.
7321
eeb0656f
MM
7322 * sort.c: New file.
7323 * Makefile.in (CFILES): Add sort.c
7324 (REQUIRED_OFILES): Add sort.o.
7325 (sort.o): New target.
7326
7277f72d
MS
73272000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7328
7329 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7330 4.3BSD systems.
7331
e38992e8
RK
7332Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7333
7334 * hashtab.c: Various minor cleanups.
7335 (htab_find_slot_with_hash): INSERT is now enum insert_option.
7336 (htab_find_slot): Likewise.
7337
498e1ab1
DP
73382000-04-16 Dave Pitts <dpitts@cozx.com>
7339
7340 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 7341
dc17cc7b
RH
73422000-04-05 Richard Henderson <rth@cygnus.com>
7343
7344 * splay-tree.c (splay_tree_remove): New.
7345
b13eb66b
MM
73462000-03-30 Mark Mitchell <mark@codesourcery.com>
7347
7348 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7349 codes.
7350 (htab_find_with_hash): Likewise.
7351 (htab_find_slot_with_hash): Likewise.
d1209685 7352
0194e877
ZW
73532000-03-29 Zack Weinberg <zack@wolery.cumb.org>
7354
7355 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7356 unless it will be used. Rearrange loop for better
7357 optimization.
7358 (higher_prime_number): Add static prototype.
7359
abc61fd4
JL
7360Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7361
7362 * Makefile.in (partition.o): Depend on config.h
7363
8c5d513f
BS
73642000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
7365
7366 * hashtab.c (find_empty_slot_for_expand): New function.
7367 (htab_expand): Use it instead of htab_find_slot.
7368 (htab_find_with_hash): Renamed from htab_find; now accepts extra
7369 argument HASH.
7370 (htab_find_slot_with_hash): Likewise for htab_find_slot.
7371 (htab_find): New wrapper function.
7372 (htab_find_slot): Likewise.
7373 (htab_traverse): Pass slot, not entry, to called function.
7374
d9d4fb43
AS
73752000-03-09 Alex Samuel <samuel@codesourcery.com>
7376
7377 * Makefile.in (CFILES): Add partition.c.
7378 (REQUIRED_OFILES): Add partition.o.
7379 (partition.o): New rule.
7380 * partition.c: New file.
d1209685 7381
5dc9cffd
ZW
73822000-03-09 Zack Weinberg <zack@wolery.cumb.org>
7383
7384 * hashtab.c (htab_create): Set del_f.
7385 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7386 Use it.
7387
5194cf08
ZW
73882000-03-08 Zack Weinberg <zack@wolery.cumb.org>
7389
7390 * hashtab.c: Remove debugging variables (all_searches,
7391 all_collisions, all_expansions). Delete
7392 all_hash_table_collisions.
7393 (create_hash_table, delete_hash_table, empty_hash_table,
7394 find_hash_table_entry, remove_element_from_hash_table_entry,
7395 clear_hash_table_slot, traverse_hash_table, hash_table_size,
7396 hash_table_elements_number, hash_table_collisions): Rename to:
7397 htab_create, htab_delete, htab_empty, htab_find_slot,
7398 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7399 htab_elements, htab_collisions.
7400 (htab_find): New function, handles common case where you don't
7401 plan to add or delete an entry.
7402 (htab_expand): Don't create a whole new table, just a new
7403 entry vector.
7404 (htab_find_slot): Simplify logic.
7405
5ad5a984
ILT
74061999-08-03 Ian Lance Taylor <ian@zembu.com>
7407
7408 * floatformat.c: Add casts to avoid signed/unsigned warnings.
7409 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7410
7411 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7412 $(TARGETLIB)n so it works on MSDOS.
7413 (install_to_tooldir): Likewise.
7414
74151999-07-21 Ian Lance Taylor <ian@zembu.com>
7416
7417 From Mark Elbrecht:
7418 * makefile.dos: Remove; obsolete.
7419 * configure.bat: Remove; obsolete.
7420
74211999-07-11 Ian Lance Taylor <ian@zembu.com>
7422
7423 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7424 warning.
7425
aeecce42
MK
74262000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7427
7428 * pexecute.c: Conditionally include string.h.
5194cf08 7429 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 7430
1eaf7d9c
KG
74312000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7432
7433 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7434 we're using gcc.
7435
7436 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7437
0fadedb2
GK
74381999-12-27 Geoff Keating <geoffk@cygnus.com>
7439
7440 * vasprintf.c (int_vasprintf): Don't re-read the format character
7441 as this mishandles strings like '%%s'.
7442
08230f26
MM
74431999-12-05 Mark Mitchell <mark@codesourcery.com>
7444
7445 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
7446 rather than struct splay_tree_node.
7447 (splay_tree_insert): Use struct splay_tree_s rather than struct
7448 splay_tree.
7449
6de9b8ff
PDM
7450Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7451
7452 * hashtab.c (sys/types.h): File included.
7453
f3636679
JM
74541999-11-22 Jason Merrill <jason@casey.cygnus.com>
7455
7456 * strtoul.c, strtol.c, random.c: Remove advertising clause from
7457 BSD license, pursuant with
7458
7459 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
7460
36dd3a44
JL
7461Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
7462
7463 * hashtab.c: Include stdio.h.
7464
6e300472
JL
7465Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
7466
7467 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
7468
df548dfc
PDM
7469Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
7470
7471 * xstrdup (sys/types.h): Include this file.
7472
2c375143
NS
74731999-10-28 Nathan Sidwell <nathan@acm.org>
7474
7475 * Makefile.in (SUBDIRS): New macro.
7476 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
7477 avoid multiple subdirectory cleaning.
7478 (*-subdir): Use SUBDIRS.
7479
a82cecda
JK
74801999-10-25 Jim Kingdon <http://developer.redhat.com/>
7481
7482 * cplus-dem.c: Move declarations of standard_symbol_characters and
7483 hp_symbol_characters inside #ifdef MAIN to avoid compiler
7484 warnings.
7485
ed38f5d5
ZW
74861999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
7487
7488 * hashtab.c (find_hash_table_entry): When returning a
7489 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
7490 (clear_hash_table_slot): New function which deletes an entry
7491 by its position in the table, not its value.
7492 (traverse_hash_table): New function which calls a hook
7493 function for every live entry in the table.
7494
b60fe4a7
MM
74951999-10-19 Mark Mitchell <mark@codesourcery.com>
7496
7497 * cplus-dem.c (INTBUF_SIZE): New macro.
7498 (string_append_template_idx): New function.
7499 (demangle_expression): Likewise.
7500 (demangle_integral_value): Use it.
7501 (demangle_real_value): New function, split out from ...
7502 (demangle_template_value_parm): ... here. Use
7503 string_append_template_idx. Use demangle_real_value.
7504 (demangle_template): Use string_append_template_idx.
7505 (demangle_qualified): Use consume_count_with_underscores.
7506 (get_count): Tweak formatting.
7507 (do_type): Use string_append_template_idx.
5194cf08 7508
3da5522a
KG
75091999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7510
7511 * calloc.c: Add a public domain notice.
7512
d7d36ea8
PDM
7513Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
7514
7515 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
7516
a2f945c6
VM
7517Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
7518
7519 * Makefile.in (CFILES): Add hashtab.c
7520 (REQUIRED_OFILES): Add hashtab.o
7521 (hashtab.o): Add dependencies.
7522 * hashtab.c: New file
7523
7f22ec2e
MK
7524Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
7525
7526 * basename.c (DIR_SEPARATOR): New macro.
7527 (DIR_SEPARATOR_2): Likewise.
7528 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
7529 (IS_DIR_SEPARATOR): Likewise.
7530 (main): Handle MSDOS style pathname.
7531
7c56a6ce
MM
75321999-10-11 Mark Mitchell <mark@codesourcery.com>
7533
7534 * cplus-dem.c (do_type): Handle pointer to member types whose
7535 enclosing classes have namespace scope.
7536
cd32188b
ME
7537Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
7538
7539 * config.table: Provide a backup shell for executing move-if-change.
7540
fc232f7a
MM
75411999-10-02 Mark Mitchell <mark@codesourcery.com>
7542
7543 * xmalloc.c (xmalloc): Fix spelling error.
7544 (xcalloc, xrealloc): Likewise.
7545
2a138827
KG
75461999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7547
7548 * cplus-dem.c (fancy_abort, demangle_integral_value,
7549 demangle_arm_hp_template, recursively_demangle,
7550 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
7551 (program_name, program_version, fatal): Constify a char*.
7552 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
7553 (main): Call return, not exit.
7554
5a657fc3
KG
75551999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7556
7557 * choose-temp.c: Remove obsolete comment about gcc.
7558 (make_temp_file): Constify a char*.
7559
33c5ddcd
KG
7560Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7561
7562 * xmemdup.c: Include sys/types.h.
7563
b10647f1
JG
75641999-09-07 Jeff Garzik <jgarzik@pobox.com>
7565
7566 * xmemdup.c: New xmemdup function.
7567 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
7568
3dd6c3af
LV
7569Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
7570
5194cf08 7571 * config.table: Add openedition target.
3dd6c3af
LV
7572 * config/mh-openedition: New file.
7573
19e28e2a
ME
7574Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
7575
7576 * pexecute.c (pexecute): Fill in temp_base when needed.
7577
4dfeccf9
RH
75781999-08-31 Richard Henderson <rth@cygnus.com>
7579
7580 * getpwd.c: Check HAVE_GETCWD before defining it away.
7581
4ac3cb83
KG
75821999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7583
7584 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
7585 (REQUIRED_OFILES): Add getpwd.o.
7586 (getpwd.o): Add target.
7587
7588 * configure.in (AC_PREREQ): Bump to 2.13.
7589 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
7590
7591 * getpwd.c: New file, moved here from gcc.
7592
e797ff70
KG
75931999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7594
7595 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
7596 comparing against a signed quantity.
7597 (arm_special): Likewise.
7598 (demangle_fund_type): Likewise.
7599 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 7600 ATTRIBUTE_UNUSED.
e797ff70
KG
7601 (main): Constify variable `valid_symbols'.
7602
55247fce
PDM
7603Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
7604
7605 * strtoul.c (strtoul): Add parentheses around && within ||.
7606
76632dd0
DJ
7607Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
7608
7609 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
7610 libdir, libsubdir and tooldir.
7611
d080bbfa
MM
76121999-08-01 Mark Mitchell <mark@codesourcery.com>
7613
7614 * splay-tree.c (splay_tree_insert): Return the new node.
7615
a81c752a
RH
76161999-07-14 Richard Henderson <rth@cygnus.com>
7617
5194cf08 7618 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
7619 prototyping directly.
7620 * choose-temp.c: Conditionally include string.h.
7621
8f1824d9
JM
76221999-07-12 Jason Merrill <jason@yorick.cygnus.com>
7623
7624 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
7625
652374d3
ILT
76261999-07-11 Ian Lance Taylor <ian@zembu.com>
7627
7628 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7629 warning.
7630
a4494286
JM
76311999-07-07 Jason Merrill <jason@yorick.cygnus.com>
7632
7633 * Makefile.in (needed-list): Only include stuff we actually need
7634 for libstdc++.
7635
90e72e20
AS
76361999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7637
7638 * configure.in (checkfuncs): Add gettimeofday.
7639 * config.in, configure: Regenerated.
7640
b569200e
MK
7641Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
7642
7643 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
7644 the test fails.
7645 * configure: Regenerate.
7646
73919448
MS
76471999-06-10 Mike Stump <mrs@wrs.com>
7648
7649 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
7650 parallel builds.
7651
fee9125c
KG
76521999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7653
7654 * putenv.c: Include ansidecl.h to define `const'.
7655 * setenv.c: Likewise.
7656
71cce721
MN
7657Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
7658
a7c9637f
JL
7659 * Makefile.in (CFILES): Add putenv.c and setenv.c.
7660 * configure.in (funcs): Add putenv and setenv.
7661 (AC_CHECK_FUNCS): Check for putenv and setenv.
7662 * configure: Rebuilt.
7663 * putenv.c setenv.c: New files.
7664
71cce721
MN
7665 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
7666 bytes of space using malloc.
7667
53504016
SG
7668Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
7669
7670 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
7671 the *mangled pointer beyond the end of the string. Clean up code to
7672 match prevailing coding style.
7673
34842539
MH
76741999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
7675
7676 * tmpnam.c (L_tmpnam): Fix typo.
7677
3a08531d
ME
7678Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
7679
7680 * cplus-dem.c (standard_symbol_characters): Renamed from
7681 standard_symbol_alphabet. No longer modify TABLE.
7682 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
7683 modify TABLE.
7684 (main): Corresponding changes. Use strchr to determine if a
7685 character is valid.
7686
8db9d08b
JB
76871999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
7688
7689 * cplus-dem.c (main): Use table lookup to distinguish identifier
7690 characters from non-identifier characters.
7691 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
7692
6a071f4a
FF
7693Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
7694
7695 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
7696 * getruntime.c: Only attempt to include sys/resource.h and
7697 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
7698 are defined.
7699
7dd88617
DT
7700Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
7701
7702 * configure.in (alloca detection): Handle alloca directly for interix.
7703 * configure: Rebuilt.
7704
7a1528bc
MK
7705Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
7706
7707 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
7708
76409268
JB
77091999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
7710
7711 Fix from Dale Hawkins:
5194cf08 7712 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
7713 reallocated properly if we use it again.
7714
7715 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
7716 stricter about syntax. Always null-terminate string.
7717
acbbd80a
MK
7718Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
7719
7720 * configure.in (checkfuncs): Check for sbrk.
7721 * config.in: Rebuilt.
7722 * configure: Likewise.
7723 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
7724
92523551
JB
77251999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
7726
7727 Fix from Marcus Daniels:
7728 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
7729 identifier looking for another underscore.
7730
36eb4217
MK
7731Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
7732
7733 * pexecute.c: Change all references to __UWIN__ to _UWIN.
7734 * xmalloc.c: Likewise.
7735 (xcalloc): UWIN has sbrk.
7736 (xrealloc): Fix guard macro.
7737
2c45d1a0
RH
77381999-04-11 Richard Henderson <rth@cygnus.com>
7739
7740 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
7741 or <alloca.h>.
7742 * clock.c (GNU_HZ): New definition.
7743 (clock): Use it.
7744 * getruntime.c: Likewise.
7745
7746 * config.table: Use mh-beos.
7747 * config/mh-beos: New file.
7748
391cdef0
MM
77491999-04-11 Mark Mitchell <mark@codesourcery.com>
7750
7751 * cplus-dem.c (demangle_template_value_parm): Handle
7752 pointers-to-members.
7753 (do_type): Handle template parameters as qualifiers.
7754
9d229989
JB
77551999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
7756
7757 * cplus-dem.c: Attempt to handle overflows in counts with some
7758 semblance of grace.
7759 (consume_count): Detect overflows. Return -1 to indicate errors,
7760 instead of zero.
7761 (demangle_template_value_parm, demangle_template): Handle change
7762 to consume_count's return convention.
7763
7c72138a
TT
77641999-04-05 Tom Tromey <tromey@cygnus.com>
7765
7766 * testsuite/regress-demangle: New file.
7767 * testsuite/demangle-expected: New file.
7768
7769 * Makefile.in (all, check, installcheck, info, install-info,
7770 clean-info, dvi, install, etags, tags, mostlyclean, clean,
7771 distclean, maintainer-clean, realclean): Depend on corresponding
7772 `-subdir' target.
7773 (all-subdir check-subdir installcheck-subdir info-subdir
7774 install-info-subdir clean-info-subdir dvi-subdir
7775 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
7776 distclean-subdir maintainer-clean-subdir): New target.
7777 * testsuite/Makefile.in: New file.
7778 * configure: Rebuilt.
7779 * configure.in: Create testsuite/Makefile.
7780
ae7f7270
MM
77811999-04-02 Mark Mitchell <mark@codesourcery.com>
7782
7783 * splay-tree.h (splay_tree_compare_pointers): Define.
7784
30f72379
MM
77851999-03-30 Mark Mitchell <mark@codesourcery.com>
7786
7787 * splay-tree.c (splay_tree_compare_ints): Define.
7788
4cc48683
TT
77891999-03-30 Tom Tromey <tromey@cygnus.com>
7790
7791 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
7792 don't advance input pointer.
7793 (demangle_class_name): If consume_count didn't find a count, do
7794 nothing. Don't bother with `strlen' sanity check; consume_count
7795 does it for us.
7796
3510075c
JL
77971999-03-16 Stan Shebs <shebs@andros.cygnus.com>
7798
7799 From Art Haas <ahaas@neosoft.com>:
7800 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
7801 when doing arm or hp style.
7802 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 7803
89f602a7
MK
7804Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
7805
7806 * pexecute.c (__CYGWIN32__): Rename to
7807 (__CYGWIN__): this.
7808 * xmalloc.c: Likewise.
7809
7810 Changes to support i386-pc-uwin.
7811 * configure.in (*-*-uwin*): Workaround for vfork bug.
7812 * configure: Regenerate.
7813 * pexecute.c (pexecute): Be like standard Unix.
7814 (pwait): Likewise.
7815 * xmalloc.c (first_break): Define.
7816 (xmalloc_set_program_name): Use.
7817 (xmalloc): Use.
7818
9346c824
FS
7819Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7820
7821 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
7822
3510075c
JL
7823Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
7824
7825 * config.table: Check cygwin*, not cygwin32*.
7826
8ec65f13
DB
7827Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
7828
7829 * Makefile.in: Change mkstemp -> mkstemps.
7830
687361c8
ME
7831Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
7832
7833 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
7834 * configure.in (funcs): Check for and conditionally add mkstemps to
7835 the list of functions libiberty will provide.
7836 * configure: Rebuilt.
5194cf08 7837
b207e09c
MK
7838Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
7839
5194cf08 7840 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
7841 platforms that don't have HZ.
7842 * getruntime.c (HZ): Likewise.
7843
16b4c15e
RH
7844Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
7845
7846 * Makefile.in (xstrdup.o): Depend on config.h.
7847
38beb75c
UD
7848Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
7849
7850 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
7851 freeing it.
7852
7e4311a3
KG
7853Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7854
7855 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
7856
3510075c
JL
7857Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
7858
7859 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
7860 splay-tree.o.
7861
78621999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
7863
7864 * configure.in: Require autoconf 2.12.1 or higher.
7865
fb9939b8
MM
78661998-12-30 Michael Meissner <meissner@cygnus.com>
7867
7868 * random.c (NULL): Don't redefine NULL if it is already defined.
7869
087aa398
KG
7870Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7871
7872 * argv.c (buildargv): Cast the result of alloca in assignment.
7873
7874 * choose-temp.c: Include stdlib.h.
38beb75c 7875
087aa398 7876 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
7877 (snarf_numeric_literal): Constify first parameter.
7878 (code_for_qualifier): Avoid a gcc extension, make the parameter an
7879 int, not a char.
087aa398
KG
7880 (demangle_qualifier): Likewise.
7881 (demangle_signature): Cast the argument of a ctype function to
7882 unsigned char.
7883 (arm_pt): Add parens around assignment used as truth value.
7884 (demangle_arm_hp_template): Constify variable `args'.
7885 (do_hpacc_template_const_value): Cast the argument of a ctype
7886 function to unsigned char.
7887 (do_hpacc_template_literal): Remove unused variable `i'.
7888 (snarf_numeric_literal): Constify parameter `args'.
7889 Cast the argument of a ctype function to unsigned char.
7890
7891 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 7892 avoid ambiguous `else'.
38beb75c 7893
087aa398 7894 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
7895 `cstart' and `cend' to unsigned char. Cast the argument of macro
7896 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
7897
7898 * objalloc.c (free): Add prototype.
7899
21f2174d
HPN
7900Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
7901
7902 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
7903
3510075c
JL
7904Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
7905
7906 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 7907 doesn't exist.
3510075c 7908 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 7909
e8fc8222
AM
7910Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
7911
7912 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
7913 bumping the pointer we read from. Also prepend these codes,
7914 as we do in other places.
7915
3510075c
JL
79161998-12-18 Nick Clifton <nickc@cygnus.com>
7917
7918 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
7919 'const char *' in order to match its usage when calling siblings.
7920 (snarf_numeric_literal): Make first arg 'const char **' in order
7921 to match usage.
11a0bb74 7922
f4f30aa1
JL
7923Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7924
11a0bb74
KG
7925 * choose-temp.c: Don't check IN_GCC anymore.
7926
7927 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
7928 * memchr.c (memchr): Likewise.
7929 * memcpy.c (memcpy): Likewise.
7930 * memmove.c (memmove): Likewise.
38beb75c 7931
11a0bb74
KG
7932 * mkstemp.c: Don't check IN_GCC anymore.
7933 * pexecute.c: Likewise.
7934 * splay-tree.c: Likewise.
38beb75c 7935
11a0bb74
KG
7936 * strchr.c (strchr): Use `const', not `CONST'.
7937 * strrchr.c (strrchr): Likewise.
7938 * strtol.c (strtol): Likewise.
7939 * strtoul.c (strtoul): Likewise.
7940
70d5ccef
DT
7941Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
7942 Elena Zannoni <ezannoni@cygnus.com>
7943 Stan Shebs <shebs@cygnus.com>
7944 Edith Epstein <eepstein@cygnus.com>
7945 Andres MacLeod <amacleod@cygnus.com>
7946 Satish Pai <pai@apollo.hp.com>
7947
7948 * HP aCC demangling support.
7949 * cplus-dem.c
7950 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
7951 demangling correctly when -edg specified; set the demangling style
7952 when user specifies 'edg'. Set strip_underscore to
7953 prepends_underscore, if not HPUXHPPA. Set
7954 current_demangling_style to hp_demangling if HPUXHPPA. Set
7955 current demangling style correctly if the switch is hp. Read
7956 label correctly also in the HP style case.
70d5ccef 7957 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 7958 function.
70d5ccef 7959 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 7960 style for this case is the same as ARM.
70d5ccef
DT
7961 (demangle_args): handle EDG_DEMANGLING style; support HP style.
7962 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
7963 demangle_arm_pt.); check and set value of temp_start field in
7964 multiple places. Also, when ceching for end of template args,
7965 check to see if at end of static member of template class.
70d5ccef 7966 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 7967 include template args in string defining class.
70d5ccef
DT
7968 (demangle_class_name): use demangel_arm_hp_template.
7969 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
7970 HP_DEMANGLING and currently point at an 'X' in the mangled name.
7971 Handle EDG_DEMANGLING style. Handle constructor and destructor
7972 ops for HP style.
70d5ccef 7973 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
7974 styles. global destructor and constructor for HP style are same
7975 as for ARM style. Same for local variables.
70d5ccef
DT
7976 (demangle_qualified): handle EDG_DEMANGLING style.
7977 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
7978 cases '1' - '9' : initialize the temp_start field to -1 and handle
7979 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
7980 and AUTO_DEMANGLING styles. If expecting a function and managed
7981 to demangle the funct args, then handle the LUCID_DEMANGLING,
7982 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
7983 class name after "Lnnn_ in HP style case. HP style too needs to
7984 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 7985 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 7986 value param for HP/aCC.
70d5ccef 7987 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 7988 literal parameter for HP aCC.
70d5ccef
DT
7989 (recursively_demangle): new function
7990 (snarf_numeric_literal): new function.
7991 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 7992 to message.
70d5ccef 7993
8d525fa8
CF
7994Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
7995
7996 * pexecute.c: Remove obsolete ifdefed cygwin code.
7997
9b1a92d8
KG
7998Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7999
8000 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8001 * cplus-dem.c: Likewise. Conform to libiberty.h.
8002 * pexecute.c: Likewise.
8003 * splay-tree.c: Likewise.
8004
c85c3232
MS
80051998-11-25 Mike Stump <mrs@wrs.com>
8006
8007 * Makefile.in (splay-tree.o): Add config.h dependency.
8008
35a6cd99
KG
8009Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8010
8011 * configure.in: Use AC_PREREQ(2.12.1).
8012
6e6e34b7
BK
80131998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8014
5194cf08 8015 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 8016
59b67c11
JL
8017Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8018
8019 * mpw.c (mpw_access): Add missing parens.
8020
a6458d1d
KG
8021Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8022
8023 * configure.in: Call AC_HEADER_SYS_WAIT.
8024
8025 * pexecute.c: Include sys/wait.h when !IN_GCC.
8026
3510075c
JL
8027Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8028
8029 * pexecute.c: revert back to checking old Cygwin
8030 preprocessor symbol until some time has passed.
8031
8032Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8033
8034 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8035 since it will now support similar constructs.
8036
a9acf741
KG
8037Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8038
8039 * configure.in: Check for calloc.
8040
8041 * calloc.c: New file.
8042
8043 * xmalloc.c (xcalloc): New function.
8044
a49fb37a
AM
8045Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8046
8047 *cplus-dem.c (demangle_prefix): Use the last "__"
8048 in the mangled name when looking for the signature. This allows
8049 template names to begin with "__".
8050
0e714131
MM
80511998-11-08 Mark Mitchell <mark@markmitchell.com>
8052
ec2288ff
MM
8053 * cplus-dem.c (type_kind_t): Add tk_reference.
8054 (demangle_template_value_parm): Handle it.
8055 (do_type): Use it for references, instead of tk_pointer.
8056
0e714131
MM
8057 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8058 not internal_cplus_demangle.
8059
2931b6d4
KG
8060Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8061
8062 * choose-temp.c: Don't include gansidecl.h.
8063 * mkstemp.c: Likewise.
8064 * pexecute.c: Likewise.
8065
dd8f3ed5
GN
8066Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8067
5194cf08
ZW
8068 * configure.in: detect cygwin* instead of cygwin32*
8069 * configure: regenerate
dd8f3ed5 8070
c5f7c445
KG
8071Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8072
8073 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
8074 whether to include config.h. Possibly include unistd.h in the
8075 !IN_GCC case. Define VFORK_STRING as a printable function call
8076 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8077 defined, include vfork.h. If VMS is defined, define vfork()
8078 appropriately. Remove vfork check on USG, we're using autoconf.
8079 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8080 locally what string to use.
c5f7c445 8081
ad3ef78e
MM
80821998-10-26 Mark Mitchell <mark@markmitchell.com>
8083
8084 * splay-tree.c: Tweak include directives to make sure declarations of
8085 xmalloc and free are available.
8086
224301c1
MM
80871998-10-25 Mark Mitchell <mark@markmitchell.com>
8088
8089 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8090 anonymous namespaces.
38beb75c 8091
d9db46fd
MM
80921998-10-23 Mark Mitchell <mark@markmitchell.com>
8093
8094 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8095 with type_quals.
8096 (TYPE_UNQUALIFIED): New macro.
8097 (TYPE_QUAL_CONST): Likewise.
8098 (TYPE_QUAL_VOLATILE): Likewise.
8099 (TYPE_QUAL_RESTRICT): Likewise.
8100 (code_for_qualifier): New function.
8101 (qualifier_string): Likewise.
8102 (demangle_qualifier): Likewise.
8103 (internal_cplus_demangle): Use them.
8104 (demangle_signature): Likewise.
8105 (demangle_template_value_parm): Likewise.
8106 (do_type): Likewise.
8107 (demangle_fund_type)): Likewise.
224301c1 8108
b056ad1c
KG
8109Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8110
8111 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8112 to match prototype.
8113
ed87f9c8
MM
81141998-10-21 Mark Mitchell <mark@markmitchell.com>
8115
8116 * splay-tree.c: New file.
8117 * Makefile.in (CFILES): Add it.
8118 (REQUIRED_OFILES): Likewise.
8119 (splay-tree.o): Add dependencies.
8120
e0c13971
AS
8121Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8122
8123 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8124 range of 'K' index.
8125
91e0f659
KG
8126Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8127
8128 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8129
8130 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8131 `unsigned char'.
8132 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8133 comparing against one.
8134 (cplus_mangle_opname): Likewise.
8135 (demangle_integral_value): Cast argument of ctype macro to
8136 `unsigned char'.
8137 (demangle_template_value_parm): Likewise.
8138 (demangle_template): Initialize variable `bindex'. Cast the
8139 result of `strlen' to (int) when comparing against one. Remove
8140 unused variable `start_of_value_parm'.
8141 (demangle_class_name): Cast the result of `strlen' to (int) when
8142 comparing against one.
8143 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8144 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8145 when comparing against one.
8146 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8147 (get_count): Likewise.
8148 (do_type): Likewise. Cast the result of `strlen' to (int) when
8149 comparing against one.
8150 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8151 (demangle_function_name): Cast the result of `strlen' to (int)
8152 when comparing against one.
8153
8154 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8155 comparing against one.
8156
73aeb2ff
JL
8157Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8158
5194cf08
ZW
8159 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8160 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8161 * config.in, configure: Rebuilt.
ae76f1be 8162
73aeb2ff
JL
8163 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8164 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8165 * config.in, configure: Rebuilt.
8166
dd8f3ed5
GN
8167Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8168
5194cf08 8169 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 8170
f77d8413
MT
8171Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8172
8173 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8174
ca6b370d
JL
8175Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8176
8177 * Merge egcs & devo libiberty.
8178
719bb4e3 81791998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
ab4856b1
ML
8180
8181 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8182
96e88994
KG
8183Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8184
8185 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
c4b9cfe0
AJ
8186 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8187 IN_GCC.
96e88994
KG
8188
8189 * vasprintf.c: Include stdarg.h/varargs.h first.
8190
8191 * vprintf.c: Likewise.
8192
3f3726a3
JL
8193Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8194
8195 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8196 is the canonical copy. Define ISSPACE if !IN_GCC.
7520c31b 8197 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
f45da49c 8198 * getopt1.c, obstack.c: Similarly.
16ba4214 8199 * Makefile.in: Build mkstemp.o
3f3726a3 8200
ca6b370d
JL
8201Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8202
8203 * configure.in: Include asprintf in list of functions known not
8204 to be in newlib.
8205 * configure: Rebuild.
8206
28235a5c
MK
8207Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8208
8209 * cplus-dem.c (work_stuff): Add dllimported.
8210 (demangled_prefix): Mark symbols imported from PE DLL.
8211 (internal_cplus_demangled): Handle.
8212
5210f3d0
JM
82131998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8214
8215 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8216 stay failed.
8217
a7825625
KG
8218Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8219
8220 * cplus-dem.c: Include config.h if it exists. Also, only
8221 prototype malloc/realloc if we can't get stdlib.h.
8222
ca6b370d
JL
8223Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8224
8225 * configure.in: Switch back to checking --with-target-subdir when
8226 deciding whether to check for newlib, undoing part of July 15
8227 change.
8228 * configure: Rebuild.
8229
8230Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8231
8232 * cplus-dem.c (type_kind_t): New type.
8233 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8234 on this paramter, rather than demangling the type again.
8235 (demangle_integral_value): Pass tk_integral.
8236 (demangle_template_: Pass the value returned from do_type.
8237 (do_type): Return a type_kind_t. Pass tk_integral to
8238 demangle_template_value_parm for array bounds.
8239 (demangle_fund_type): Likewise.
8240
8241 Also incorporate from GCC version:
8242
8243 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8244
8245 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8246
8247Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8248
8249 * cplus-dem.c (demangle_nested_args): Make function definition
8250 static to match the prototype.
8251
4d17a06f
MM
8252Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8253
8254 * cplus-dem.c (type_kind_t): New type.
8255 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8256 on this paramter, rather than demangling the type again.
8257 (demangle_integral_value): Pass tk_integral.
8258 (demangle_template_: Pass the value returned from do_type.
8259 (do_type): Return a type_kind_t. Pass tk_integral to
8260 demangle_template_value_parm for array bounds.
8261 (demangle_fund_type): Likewise.
8262
8263 Also incorporate from GCC version:
8264
8265 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8266
8267 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8268
ca6b370d
JL
8269Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8270
8271 * Makefile.in (ALLOCA): New variable.
8272 ($(TARGETLIB)): Add $(ALLOCA) to library.
8273 (needed-list): Add $(ALLOCA).
8274 ($(ALLOCA)): Depend upon stamp-picdir.
8275
d94f5c58
KG
8276Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8277
8278 * cplus-dem.c (demangle_nested_args): Make function definition
8279 static to match the prototype.
8280
ca6b370d
JL
8281Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8282
8283 * configure.in: Check --with-cross-host rather than
8284 --with-target-subdir when deciding whether build uses a cross
8285 compiler, and when deciding where to install the library.
8286 * configure: Rebuild.
8287
8288Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8289
8290 * cplus-dem.c (demangle_nested_args): Return a value.
9923cc56 8291
ca6b370d
JL
8292Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8293
8294 * cplus-dem.c (string): Move definition before work_stuff.
8a2a7ea2
MM
8295 (work_stuff): Add volatile_type, forgetting_types,
8296 previous_argument, and nrepeats fields.
8297 (SCOPE_STRING): New macro.
8298 (demangle_template): Add `remember' parameter. Add comment.
8299 Register the `B' code type here, if remembering. Tidy. Fix crash
8300 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8301 (demangle_nested_args): New function.
8302 (internal_cplus_demangle): Handle volatile-qualified member
38beb75c 8303 functions.
8a2a7ea2
MM
8304 (mop_up): Delete the previous_argument string if present.
8305 (demangle_signature): Tidy. Handle volatile-qualified member
8306 functions. Handle back-references using the `B' code. Use extra
8307 parameter to demangle_template and SCOPE_STRING where appropriate.
8308 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
38beb75c 8309 code.
8a2a7ea2
MM
8310 (demangle_class): Use SCOPE_STRING.
8311 (gnu_special): Pass additional argument to demangle_template.
8312 Use SCOPE_STRING.
8313 (demangle_qualified): Save qualified types for later
8314 back-references. Handle constructors and destructors for template
8315 types correctly.
8316 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8317 demangle_template. Use demangled_nested_args. Don't remember
8318 qualified types here; that's now done in demangle_qualified.
8319 Similarly for templates.
8320 (do_arg): Improve commment. Handle 'n' repeat code.
8321 (remember_type): Check forgetting_types.
8322 (demangle_args): Deal with 'n' repeat codes. Tidy.
38beb75c 8323
ca6b370d
JL
8324Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8325
8326 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8327 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8328
8329Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8330
8331 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8332 From Chris Faylor <cgf@cygnus.com>.
8333
8334Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8335
8336 * obstack.c: Update to latest FSF version.
8337
8338Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
8339
8340 * Makefile.in: Add a dependency on stamp-picdir for the
8341 objects, so that we can do a parallel build.
9923cc56 8342
6391b50a
MK
8343Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8344
8345 * configure.in (checkfuncs): Add missing "'".
8346
ca6b370d 8347Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
10c62dce 8348
ca6b370d
JL
8349 * obstack.c (_obstack_memory_used): Elide this function if we're
8350 on a system with GNU libc.
10c62dce 8351
ca6b370d 8352Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
75f6bf44 8353
ca6b370d 8354 * Makefile.in (distclean): Remove config.log.
75f6bf44 8355
ca6b370d 8356Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7b195f77 8357
ca6b370d
JL
8358 * Makefile.in (distclean): Don't remove alloca-conf.h.
8359
8360Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8361
8362 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7b195f77 8363
1cc75298
MM
83641998-05-21 Mark Mitchell <mmitchell@usa.net>
8365
8366 * cplus-dem.c (do_type): Handle volatile qualification.
38beb75c 8367
39d65850
MH
83681998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
8369
8370 * configure.in: Check for unistd.h as well.
8371 * configure: Rebuild.
8372 * config.in: Rebuild.
8373 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8374 is defined in unistd.h. Reformat conditional block for easier reading.
8375
8376 * config.table (shared): Default to no if ${enable_shared}
8377 is unset or empty; this logic is used by the toplevel
8378 configure scripts, too.
8379
c2953795
JL
8380Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
8381
8382 * config.table: Add line to set enable_shared in the Makefile
8383 as needed.
8384
d6f4ec51
KG
8385Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8386
3affd5f0
JL
8387 * cplus-dem.c (squangle_mop_up): Change return type to void.
8388 (internal_cplus_demangle): Remove unused parameter `options'.
8389 All callers changed.
8390 (cplus_demangle_opname): Remove function wide variable `int i' and
8391 replace with `size_t i' at each location where it is used.
8392 (cplus_mangle_opname): change type of `i' from int to size_t.
8393
8394Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
8395
8396 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
8397 than sparc or sun.
8398 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8399
8400Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
8401
8402 * configure.in: Set libiberty_topdir correctly when srcdir is
8403 "." and with_target_subdir is not set.
8404 * configure: Rebuild.
8405
8406Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8407
8408 * configure.in: Add *-*-mingw32* case.
8409 * configure: Rebuild.
8410
8411Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
8412
8413 * config.table: Never use a PIC file for *-*-cygwin32*.
8414
8415 * Makefile.in (config.status): Depend upon config.table.
8416
8417 * configure.in: On a cygwin32 host, always compile random, and
8418 don't test for sys_siglist, strsignal, or psignal.
8419 * configure: Rebuild.
8420
8421 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8422 * getcwd.c: Likewise.
8423 * getpagesize.c: Likewise.
8424 * getruntime.c: Likewise.
8425
8426Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
8427
8428 Use autoconf tests rather than the old dummy.c test:
8429 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8430 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
8431 most functions. Add special cases to handle newlib and VxWorks.
8432 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
8433 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
8434 CONFIG_FILES is set; set ac_file before calling it.
8435 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8436 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8437 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8438 (i[3456]-*-mingw32*): Remove.
8439 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
8440 (LIBOBJS): New variable.
8441 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
8442 (all): Depend upon needed-list. Don't check RULE1.
8443 (@target_makefile_frag@): Remove.
8444 (COMPILE.c): Include @DEFS@.
8445 (HFILES): Add alloca-conf.h.
8446 (REQUIRED_OFILES): Remove basename.o.
8447 ($(TARGETLIB)): New target.
8448 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
8449 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
8450 (needed-list, config.h): Rewrite.
8451 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
8452 (.always.): Remove.
8453 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
8454 (stamp-h): New target.
8455 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
8456 (basename.o): Don't depend upon config.h.
8457 (getruntime.o): Depend upon config.h.
8458 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
8459 NEED_on_exit.
8460 * basename.c: Don't include config.h. Don't check NEED_basename.
8461 * clock.c: Include config.h.
8462 * getcwd.c: Likewise.
8463 * getpagesize.c: Likewise.
8464 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
8465 HAVE_TIMES.
8466 * strerror.c: Change uses of NEED_sys_errlist to
8467 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
8468 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
8469 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
8470 HAVE_PSIGNAL.
8471 * acconfig.h: New file.
8472 * dummy.c: Remove.
8473 * functions.def: Remove.
8474 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
8475 * config/mh-windows (HDEFINES): Remove.
8476 * config/mh-cygwin32: Remove.
8477 * config/mh-go32: Remove.
8478 * config/mh-irix4: Remove.
8479 * config/mh-riscix: Remove.
8480 * config/mh-sysv4: Remove.
8481 * config/mt-mingw32: Remove.
8482 * config/mt-vxworks5: Remove.
8483 * config.in: New file, generated using autoheader.
8484 * configure: Rebuild.
8485
8486Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
8487
8488 * configure.in: Rewrite to use autoconf.
8489 * configure: Generate using autoconf.
8490 * config/mh-a68bsd: Remove.
8491 * config/mh-apollo68: Remove.
8492 * config/mh-hpbsd: Remove.
8493 * config/mh-ncr3000: Remove.
8494 * config/mh-sysv: Remove.
8495 * config/mh-aix (RANLIB, INSTALL): Don't define.
8496 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
8497 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
8498 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
8499 * config.table: Change config_shell to CONFIG_SHELL, and use
8500 libiberty_topdir to find move-if-change.
c4b9cfe0 8501 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
3affd5f0
JL
8502 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
8503 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
8504 * Makefile.in (srcdir): Set to @srcdir@.
8505 (VPATH): Likewise.
8506 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
8507 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
8508 (CC, CFLAGS, RANLIB)): Likewise.
8509 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
8510 (target_makefile_frag, host_makefile_frag): Add substitutions.
8511 (INSTALL_DEST): Set to @INSTALL_DEST@.
8512 (Makefile): Depend upon config.status. Don't depend upon
8513 $(host_makefile_frag) or $(target_makefile_frag).
8514 (config.status): New target.
8515
8516Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
8517
8518 * config/mt-sunos4: Remove. Should be handled by --with-headers
8519 and --with-libraries options at top level.
8520 * config.table: Never use mt-sunos4.
8521
8522 * alloca-conf.h: New file, combining alloca-norm.h and
8523 alloca-botch.h.
8524 * alloca-norm.h: Remove.
8525 * alloca-botch.h: Remove.
8526 * configure.in: Set shell variables files and links to empty.
8527 * config.table: Don't set shell variable files.
8528 * configure.bat: Don't create alloca-conf.h.
8529 * makefile.vms: Likewise.
8530 * mpw-config.in: Likewise.
8531 * vmsbuild.com: Likewise.
8532
8533Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
8534
8535 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
8536 target depending upon config.h.
8537 (alloca.o): Add target depending upon config.h
8538 (basename.o, choose-temp.o, fnmatch.o): Likewise.
8539 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
8540 (strsignal.o, xstrerror.o): Likewise.
d6f4ec51 8541
63586755
PS
8542Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8543
8544 * cplus-dem.c (cplus_demangle_opname): Initialize work.
8545
07623417
AM
8546Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8547
8548 * cplus-dem.c (demangle_qualified): Replace missing else.
8549
7bf40741
AS
8550Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8551
8552 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
8553 length in the name of a virtual table.
8554
5e5199e8
AM
8555Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8556
8557 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
8558 (cplus_demangle_opname): Call mop_up_squangle.
38beb75c 8559 (cplus_demangle): Initialize squangle info, then call
5e5199e8 8560 internal_cplus_demangle. (Most code moved there as well)
38beb75c 8561 (internal_cplus_demangle): New function, performs most of what use
5e5199e8
AM
8562 to be done in cplus_demangle, but is only called with this file.
8563 (squangle_mop_up): New function to clean up B and K code data.
8564 (mop_up): set pointers to NULL after freeing.
38beb75c 8565 (demangle_signature, demangle_template, demangle_class): Add
5e5199e8
AM
8566 switch elements to handle K and B codes.
8567 (demangle_prefix, gnu_special, demangle_qualified): Add
8568 code to handle K and B codes.
8569 (do_type, demangle_fund_type): Handle B and K codes.
8570 (remember_Ktype): New function to store K info.
8571 (register_Btype, remember_Btype): New functions for B codes.
8572 (forget_B_and_K_types): New function to destroy B and K info.
8573
3affd5f0 8574Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9ee02b5c 8575
3affd5f0 8576 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
f9c85454 8577
0a9e7530
MH
8578Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
8579
8580 * config.table: Make locating frag files failsafe even for the
8581 special case if configuring and building in srcdir.
8582
b9fb3c42
ILT
8583Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
8584
8585 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
8586
3affd5f0
JL
8587Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
8588
8589 * choose-temp.c: Sync with copy in gcc.
8590
b134508b
ILT
8591Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
8592
8593 * getopt.c: Update to latest FSF version.
8594 * getopt1.c: Likewise.
8595
5890bc92
JL
8596Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
8597
8598 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
8599 strings that are not actually lengths.
8600
f5c3ae66
MH
8601Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
8602
8603 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
8604 (.c.o): Check value of enable_shared, not PICFLAG.
8605 (stamp-picdir): Dito.
8606
3affd5f0
JL
8607Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
8608
5194cf08
ZW
8609 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
8610 since it gets built automatically
3affd5f0 8611
c00f2b9d
MS
8612Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
8613
8614 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
8615 the currently shipping OS.
8616
76a8b46e
JL
8617Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
8618
8619 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
8620 Add fnmatch.o and objalloc.o; remove vasprintf.o.
8621 [config.h]: Define NEED_strsignal.
8622
8623Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
8624
8625 * functions.def: Correct argument types for strerror and
8626 strsignal. Reported by Alex Gutman <agutman@emc.com>.
8627
5890bc92
JL
8628Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
8629
8630 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
8631 values.
8632
3affd5f0 8633Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
1ce26fc4 8634 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
77aff459 8635
1ce26fc4
JL
8636 Add mingw32 support.
8637 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
8638 (pwait): New function for mingw32.
77aff459 8639
1ce26fc4
JL
8640 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
8641 * config/mt-mingw32: New file.
8642 * xmalloc.c (first_break): Not used for mingw32.
8643 (xmalloc_set_program_name): Don't use sbrk on mingw32.
8644 (xmalloc): Likewise.
8645 (xrealloc): Likewise.
77aff459 8646
1ce26fc4 8647Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
84f79fea
JL
8648
8649 * choose-temp.c: Sync with gcc version.
8650
1ce26fc4
JL
8651Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
8652
8653 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
8654 to all filenames in libdir and tooldir.
8655 (distclean): Do MULTICLEAN before deleting Makefile.
8656 (stamp-needed, stamp-config): Add MULTISRCTOP to
8657 pathname for move-if-change.
8658
e7757d69
JL
8659Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
8660
8661 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
8662
8b715b2a
JL
8663Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
8664
8665 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
5890bc92 8666 was already defined previously.
8b715b2a
JL
8667
8668Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
8669
8670 * Makefile.in (INSTALL): Use ../install-sh, not install.
8671
0c23b0b2
JG
8672Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
8673
8674 * Makefile.in (CFILES): Add pexecute.c.
8675
a6e74b83
ILT
8676Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
8677
8678 * asprintf.c: Consistently use either stdarg or varargs.
8679
19ddc834
JM
8680Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
8681
8682 * cplus-dem.c (demangle_signature): Don't look for return types on
8683 constructors. Handle member template constructors.
8684
8685Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
8686
8687 * README: Fix configuration instructions.
8688
8689Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
8690
8691 * pexecute.c: Update to current version from /gd/gnu/lib:
8692
8693 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
8694
5194cf08 8695 * pexecute.c: Use spawn if __CYGWIN32__.
19ddc834
JM
8696
8697 1997-08-08 Paul Eggert <eggert@twinsun.com>
8698
5194cf08 8699 * pexecute.c: Include "config.h" first, as per autoconf manual.
19ddc834
JM
8700
8701 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
8702
5194cf08
ZW
8703 * pexecute.c (fix_argv): New function.
8704 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
8705 Add underscore to cwait function call.
19ddc834 8706
a3a5b5b7
MM
8707Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
8708
5194cf08
ZW
8709 * cplus-dem.c (demangle_template): Add new parameter. Handle new
8710 template-function mangling.
8711 (consume_count_with_underscores): New function.
8712 (demangle_signature): Handle new name-mangling scheme.
a3a5b5b7 8713
19ddc834
JM
8714Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
8715
8716 * asprintf.c: stdarg.h when ALMOST_STDC
8717 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
c4b9cfe0 8718 strncasecmp.o.
19ddc834
JM
8719
8720Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
8721
8722 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
8723
8724 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
8725
8726 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
8727
8728Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
8729
8730 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
8731
19ddc834
JM
8732Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
8733
8734 * asprintf.c (asprintf): New file.
8735 * Makefile.in (CFILES): Add asprintf.c
8736 * functions.def: Ditto.
8737
19ddc834
JM
8738Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
8739
8740 * argv.c (dupargv): New function, duplicate an argument vector.
8741
6599da04
JM
8742Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
8743
8744 * config/mh-cygwin32: also build random.o
8745
8746Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
8747
8748 * cplus-dem.c: Add 'extern' to prepends_underscore.
8749
3510075c
JL
8750Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
8751
8752 * cplus-dem.c: Various changes to produce Java output when passed
8753 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
8754 (main): Support --java and -j flags to set DMGL_JAVA.
8755
6599da04
JM
8756Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
8757
8758 * config/mh-go32 (CC, AR, RANLIB): Don't define.
8759
8760Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
8761
8762 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
8763 (pexecute.o): New target.
8764
8765 * Makefile.in (stamp-needed): New target, replacing needed-list.
8766 (needed-list): Just depend upon stamp-needed.
8767 (stamp-config): New target, replacing config.h.
8768 (config.h): Just depend upon stamp-config.
8769 (mostlyclean): Remove stamp-*.
8770
8771Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
8772
8773 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
8774 INSTALL_DATA for multilibbed installs
8775
8776Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
8777
8778 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
8779
8780 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
8781
8782 * choose-temp.c (try): Insist that temp dir be searchable.
8783
8784 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
8785
8786 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
8787 for current directory.
8788
8789 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
8790
8791 * pexecute.c: Remove special cases for cygwin32.
8792 (pwait): Remove local definition of `pid'.
8793
8794 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
8795
8796 * pexecute.c (vfork): Supply new definition for VMS.
8797 (pwait): Use waitpid instead of wait for VMS.
8798
8799Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
8800
8801 * cplus-dem.c (do_type): Handle `J'.
8802 (demangle_fund_type): Print "complex" for it.
8803
8804Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
8805
8806 * configure.in: Don't turn on multilib here.
8807
8808Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
8809
38beb75c 8810 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
6599da04
JM
8811 elided; needed by gdb and not present in libc.
8812
8813Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
8814
8815 * Makefile.in (clean): Remove tmpmulti.out.
8816
8817Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
8818
38beb75c 8819 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
6599da04
JM
8820 Add new floatformat, mainly for ARM doubles.
8821
8822Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
8823
8824 * config.table: Use ${config_shell} with ${moveifchange}. From
8825 Thomas Graichen <graichen@rzpd.de>.
8826
8827Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
8828
8829 * configure.in: Enable multilibing by default.
8830 Update multilib template to read config-ml.in.
8831
8832Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
8833
8834 * makefile.vms: Add objalloc.
8835
8836Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
8837
8838 * cplus-dem.c (demangle_it): Add prototype declaration.
8839 (usage, fatal): Likewise.
8840
8841 * xexit.c (_xexit_cleanup): Add prototype.
8842
8843 * strerror.c (init_error_tables): Declare.
8844
8845Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
8846
8847 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
8848 * strsignal.c: Only define strsignal if NEED_strsignal.
8849 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
8850 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
8851 to xneeded-list.
8852 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
8853 (EXTRA_OFILES): Define to vasprintf.o.
8854 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
8855 (EXTRA_OFILES): Add vasprintf.o.
8856 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
8857 (vxneeded-list): Add vasprintf.o.
8858
8859Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
8860
8861 * objalloc.c: Include <stdio.h>.
8862
8863Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
8864
8865 * objalloc.c: New file.
8866 * Makefile.in (CFILES): Add objalloc.c
8867 (REQUIRED_OFILES): Add objalloc.o.
8868 (objalloc.o): New target.
8869
8870Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
8871
8872 * obstack.c: Update to current FSF version.
8873
8874Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
8875
38beb75c 8876 * cplus-dem.c: Add prototypes for all static functions.
6599da04
JM
8877 (mystrstr): Make static. Make arguments and result const.
8878 (cplus_match): Remove; not used.
8879
8880Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
8881
8882 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
8883 __t* symbols.
8884
8885Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
8886
8887 * spaces.c: Declare malloc and free properly.
8888 * strsignal.c (init_signal_tables): Add prototype.
8889 * xatexit.c (_xexit_cleanup): Add parameter declarations.
8890
8891Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
8892
8893 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
8894 also required because of xmalloc.o.
8895
8896Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
8897
8898 * strsignal.c: Unconditionally redefine sys_siglist around the
8899 inclusion of the system header files.
8900
8901Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
8902
8903 * makefile.vms: Remove 8 bit characters. Update to latest
8904 gcc release.
8905
8906Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
8907
8908 * strsignal.c: Use NEED_sys_siglist instead of
8909 LOSING_SYS_SIGLIST.
8910 * config.table: Don't use mh-lynxos.
8911 * config/mh-lynxos: Remove.
8912
8913Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
8914
8915 * cplus-dem.c: Fix indenting; make identical to the copy
8916 in GCC.
8917 (do_type, case 'M'): Check for a template as well as a class.
8918
8919Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
8920
8921 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
8922 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
8923 libiberty is incorrect, as well.
8924
8925Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8926
8927 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
8928 alloca takes a size_t argument, not just unsigned.
8929
8930Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
8931
8932 * cplus-dem.c: Note that this file also lives in GCC.
8933
8934Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
8935
8936 * alloca.c: Remove include of libiberty.h for hpux.
8937 * argv.c: Replace defs from libiberty.h.
8938 * spaces.c: Put back externs from removed from libiberty.h.
8939 * vasprintf.c: Remove include of libiberty.h for hpux.
8940
8941Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
8942
8943 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
8944
8945Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
8946
38beb75c
UD
8947 * cplus-dem.c: Revert last two commits due to conflicts with
8948 hpux system headers.
6599da04
JM
8949
8950Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
8951
8952 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
38beb75c 8953 Revert last commit due to conflicts with hpux system headers.
6599da04
JM
8954
8955Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
8956
8957 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
8958 libiberty.h when compiled with a standard compiler.
8959
8960Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
8961
38beb75c 8962 * alloca.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
8963 Don't redefine NULL.
8964 * argv.c: Move prototypes to libiberty.h.
38beb75c 8965 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
8966 Don't redefine NULL.
8967 Use casts to eliminate compiler warnings.
38beb75c 8968 * spaces.c: Remove prototypes for malloc and free which are
6599da04
JM
8969 already in libibrty.h.
8970 * strcasecmp.c: Use casts to eliminate compiler warnings.
38beb75c 8971 * vasprintf.c: Include libiberty.h for definition of malloc.
6599da04
JM
8972 Don't redefine NULL.
8973 * vprintf.c: Include stdarg.h if __STDC__.
8974
8975Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
8976
8977 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
8978
8979Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
8980
8981 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
8982 upward components correctly.
8983
8984Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
8985
8986 * config.table, config/mh-windows: Add support for building under
8987 MSVC (the Microsoft build environment).
8988
8989Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
8990
8991 * fnmatch.c: Undef const if not __STDC__.
8992
8993Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
8994
8995 * fnmatch.c: New file.
8996 * Makefile.in (CFILES): Add fnmatch.c.
8997 (REQUIRED_OFILES): Add fnmatch.o.
8998 (fnmatch.o): New target.
8999
9000Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9001
9002 * cplus-dem.c (demangle_template): Fix handling of address args.
9003 (gnu_special): Handle type_info stuff.
9004
9005Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9006
9007 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9008 (mpwify_filename): Handle "::/" case.
9009
9010Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9011
9012 * config/mh-cygwin32: new file (need -DNEED_basename and
9013 -DNEED_sys_siglist for native NT rebuilding)
9014 * config.table (*-*-cygwin32): new entry
9015 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9016
9017Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9018
9019 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9020
9021Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9022
9023 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9024 messed with arguments that included a '/', add escape chars
9025 to double quotes, remove const decl from arg that Mac
9026 compilers don't seem to like.
9027
9028Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9029
9030 * pexecute.c: Update test for win32 (&& ! cygwin32).
9031 * choose-temp.c: fix WIN32 preprocessor defines
9032
9033Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9034
9035 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9036 to editing of default makefile rule.
9037
9038Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9039
9040 * alloca-norm.h: Include <malloc.h> if _WIN32.
9041 * argv.c: Include non-prototyped decls for malloc and string
9042 functions if ! _WIN32 or if __GNUC__.
9043
9044Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9045
9046 * config.h-vms: New file.
9047 * makefile.vms: Use it.
9048
9049Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9050
9051 * getopt.c (_getopt_internal): If argc is 0, just return (before
9052 we reference *argv and segfault).
9053
9054Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9055
9056 * Makefile.in (distclean): Add multilib.out.
9057
9058Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9059
9060 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9061 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9062
9063Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9064
9065 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9066
9067 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9068
9069 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9070
9071 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9072 (do_ofiles): Allow nonexistent source file in pass 3.
9073 (chk_deffunc): New routine.
9074
9075Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9076
9077 * pexecute.c (PEXECUTE_VERBOSE): Define.
9078 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9079
9080Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9081
9082 * Makefile.in (docdir): Removed.
9083
9084Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9085
9086 * Makefile.in (oldincludedir): Removed.
9087
9088Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9089
5194cf08 9090 * Makefile.in (datadir): Set to $(prefix)/share.
6599da04
JM
9091
9092Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9093
9094 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9095 checking for errors from do_type.
9096
9097Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9098
9099 * makefile.vms: New file.
9100 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9101 than declaring malloc, realloc, and sbrk.
9102
9103Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9104
9105 * pexecute.c: New file.
9106
9107Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9108
9109 * xmalloc.c: Declare sbrk.
9110
9111Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9112
9113 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9114 declaration.
9115
9116Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9117
9118 * xstrerror.c: Include <stdio.h>.
9119
9120Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9121
9122 * Makefile.in (CFILES): Add atexit.c.
9123
9124Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9125
9126 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9127
9128Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9129
9130 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9131 #include <stdio.h>
9132 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9133
9134Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9135
5194cf08 9136 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6599da04
JM
9137 Reverts Feb 8, 1995 change.
9138
9139Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9140
9141 * choose-temp.c: New file.
9142 * Makefile.in (CFILES): Add choose-temp.c.
9143 (REQUIRED_OFILES): Add choose-temp.o.
9144
9145Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9146
9147 * floatformat.c (floatformat_to_double): Don't bias exponent when
9148 handling zero's, denorms or NaNs.
9149
9150Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9151
9152 * floatformat.c (floatformat_to_double): Fix bugs with handling
9153 numbers with fractions < 32 bits.
9154
9155Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9156
9157 * config.table: Permit --enable-shared to specify a list of
9158 directories.
9159
9160Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9161
9162 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9163 arguments.
9164
9165Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9166
9167 * configure.in: If srcdir is `.' and with_target_subdir is not
9168 `.', then set MULTISRCTOP before calling config-ml.in.
9169
9170Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9171
9172 * mpw.c (mpw_open): Add debugging output option.
9173
9174Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9175
9176 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9177
9178Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9179
9180 * mpw.c (mpwify_filename): Change 6 to 5 in
9181 strncmp (unixname, "/tmp/", 5).
38beb75c 9182
6599da04
JM
9183Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9184
9185 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9186 handle 0 as a pointer value parameter.
9187
9188Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9189
9190 * Makefile.in (all): Depend upon required-list.
9191 (required-list): New target.
9192 (clean): Remove required-list.
9193
9194Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9195
9196 * win32.c: Deleted.
9197 * config.table (i386-*-win32): Deleted.
9198 * config/mh-i386win32: Deleted.
9199
9200Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9201
9202 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9203 const char *.
9204 (cplus_mangle_opname): Change return type and opname parameter to
9205 const char *. Don't cast return value.
9206
9207Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9208
9209 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9210 definition.
9211
9212Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9213
9214 * obstack.c: Update copyright to 1996.
9215 (_obstack_memory_used): Define new function. Called via
9216 obstack_memory_used macro.
9217
9218Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9219
9220 * xstrdup.c: New file.
9221 * Makefile.in (CFILES): Add xstrdup.c.
9222 (REQUIRED_OFILES): Add xstrdup.o.
9223 (xstrdup.o): New target.
9224
9225Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9226
9227 * atexit.c: New stub to provide atexit on systems that have
9228 on_exit, like SunOS 4.1.x systems.
9229 * functions.def (on_exit, atexit): Ditto.
9230
9231Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9232
9233 * mpw.c (mpw_abort): Remove decl.
9234 (mpw_access): Move debugging printf.
9235
9236Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9237
9238 * config.table: Consistently use ${host} rather than ${xhost} or
9239 ${target}.
9240 * configure.in: Don't bother to set ${xhost} before calling
9241 config.table.
9242
9243Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9244
9245 * Makefile.in (.c.o): Use test instead of the left bracket, to
9246 avoid problems with some versions of make.
9247
9248Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9249
9250 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9251
9252Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9253
9254 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9255 which was set to just alloca.o, which is now automatically marked
9256 as needed by the autoconfiguration process.
9257
9258Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9259
9260 * config.table: Check ${with_cross_host} rather than comparing
9261 ${host} and ${target}.
9262
9263Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9264
9265 * configure.in: If with_target_subdir is empty, set xhost to
9266 ${host} rather than ${target} before calling config.table.
9267
9268Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9269
9270 * Makefile.in (MULTITOP): Deleted.
9271 (MULTISRCTOP, MULTIBUILDTOP): New.
9272 (FLAGS_TO_PASS): Delete INCDIR.
9273 (INCDIR): Add $(MULTISRCTOP).
9274 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9275 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9276 instead of cfg-ml-pos.in.
9277 (cross-compile check): Change to test for with_target_subdir.
9278 (EXTRA_LINKS): Delete.
9279
9280Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9281
9282 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9283 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9284 functions that are supplied by Metrowerks libraries.
9285 (fstat): Clean up descriptor->pointer conversion code.
9286 (InstallConsole, etc): Empty definitions, for when linking
9287 with SIOUX.
9288
9289Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9290
9291 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9292 (.c.o): Stylistic change.
9293
9294Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9295
9296 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9297 phdm@info.ucl.ac.be (Philippe De Muyter).
9298
9299Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9300
9301 * configure.in: Correct sed call.
9302
9303Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9304
9305 * configure.in: Clean up / simplify for native.
9306
9307 * configure.in: Merge in stuff from ../xiberty/configure.in.
9308 * Makefile.in (CC): Add definition (so it can be overrridden
9309 by ../configure).
9310
9311Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9312
9313 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9314 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9315 (link): Remove useless definition with error return.
9316 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9317 Use UnsignedWide type for microsecond counts.
9318
9319Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9320
9321 * memcmp.c (memcmp): Argument types are const void *, not void
9322 *const.
9323
9324 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9325 sys/types.h.
9326 * strcasecmp.c (strcasecmp): Ditto.
9327
9328Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9329
9330 * Makefile.in (BISON): Remove macro.
9331
9332Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
9333
9334 * Makefile.in (HFILES): Add default empty definition.
9335 * mpw-config.in (config.h): Only update if changed.
9336 * mpw-make.in: Remove.
9337 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9338 * mpw.c: Remove semi-clone of strerror code.
9339 (sys_nerr, sys_errlist): Define here.
9340 (Microseconds): Only define as A-line trap if m68k Mac.
9341
9342Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9343
9344 * Makefile.in (maintainer-clean): New synonym for distclean.
9345
9346Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
9347
9348 * config.table: For host, generalize rs6000-ibm-aix*
9349 to *-ibm-aix* so we also include powerpc.
9350
9351Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9352
9353 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
9354
9355 * xstrerror.c: New file.
9356 * Makefile.in, vmsbuild.com: Compile it.
9357
9358Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9359
9360 * config.table (i386-*-win32): New.
9361
9362Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
9363
9364 * Makefile.in (MULTITOP): New variable.
9365 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9366 (all): Add multilib support.
9367 (install_to_tooldir, *clean): Likewise.
9368
9369Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9370
9371 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9372
9373Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
9374
9375 * vmsbuild.com: create "new-lib.olb", build libiberty under that
9376 name, and then make it become "liberty.olb" when done, so that an
9377 incomplete build attempt never leaves behind something which looks
9378 like a complete library.
9379
9380Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
9381
9382 * config/mh-i386pe: New file for PE hosts.
9383 * config.table: Understand PE hosts.
9384
9385Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9386
9387 * cplus-dem.c: Update from gcc.
9388
9389 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
5194cf08 9390 <stddef.h>.
6599da04
JM
9391 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9392
9393Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9394
9395 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9396 * mpw.c: Only test DebugPI once whenever printing debug info.
9397 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9398 also fix to not write on input filename buffer.
9399 (mpw_access): Use stat() instead of open(), works for directories
9400 as well as files.
9401
9402Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9403
9404 * Makefile.in: Massage broken shells that require 'else true'.
9405
9406Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
9407
9408 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9409 Declare __builtin_alloca in the sparc case, as argv.c did.
9410 * argv.c: Replace inline version of alloca-norm.h at start of file with
9411 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
9412 because alloca-norm.h needs to declare alloca as "PTR".
9413
9414Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9415
9416 * win32.c: New file.
9417
9418Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9419
9420 * dummy.c: #include "alloca-conf.h".
9421
9422Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9423
9424 * Makefile.in (mostlyclean): Remove stamp-picdir.
9425 (clean): Don't.
9426
9427Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9428
9429 * config.table (frags): Use toplevel pic frags.
9430
9431 * Makefile.in (PICFLAG): New macro.
9432 (all): Depend on stamp-picdir.
9433 (needed-list): Ditto.
9434 (.c.o): Also build pic object.
9435 (stamp-picdir): New rule.
9436 (mostlyclean): Remove pic.
9437 (clean): Remove stamp-picdir.
9438
9439Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9440
9441 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9442
9443Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
9444
9445 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
9446 to libio-style copyright.
9447 * getpagesize.c: Remove FSF copyright.
9448
9449Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9450
9451 Added improved VMS support from Pat Rankin:
9452
9453 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
9454
9455 * vmsbuild.com: new file.
9456
9457 * getpagesize.c (getpagesize): implement for VMS;
9458 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
9459 support for EVMSERR.
9460
9461Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9462
9463 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
9464
9465 * floatformat.c (floatformat_arm_ext): Define.
9466
9467Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
9468
9469 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
9470 strerror.c, strsignal.c: Remove FSF copyright.
9471 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
9472
9473Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
9474
9475 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
9476 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
9477 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
9478 * strchr.c, strrchr.c: Add cast to suppress const warning.
9479
9480Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9481
9482 * cplus-dem.c: Use const instead of CONST. Don't include
5194cf08 9483 ansidecl.h directly.
6599da04
JM
9484
9485Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9486
9487 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
5194cf08 9488 xrealloc.
6599da04 9489 (-DMAIN): Don't rely on an externally-defined version number;
5194cf08
ZW
9490 instead, require the version number to be defined as a
9491 preprocessor macro. Handle the RS/6000 leading dot. Define
9492 xmalloc, xrealloc and fatal. Don't strip a leading underscore
9493 if we couldn't demangle the word.
6599da04
JM
9494
9495Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
9496
9497 (Old mpw.c change descriptions retained for informational value.)
9498 * mpw.c (warning_threshold): Default to .4 sec.
9499 (overflow_count, current_progress): New globals.
9500 (warn_if_spin_delay): Include current progress type,
9501 such as program name, in message.
9502 (mpw_start_progress): Set current_progress variable from arg.
9503 (mpw_end_progress): Report spin delays by power-of-two-size
9504 buckets instead of constant-size buckets.
9505
9506 * mpw.c: Clean up formatting, types, returns, etc.
9507 (ENOSYS): Define.
9508 (mpw_fread, mpw_fwrite): Define.
9509 (sleep): Define correctly.
9510
9511 * mpw.c: New code to implement cursor spinning support.
9512 (umask): New function.
9513 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
9514
9515 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
9516 basenames for MPW and MPW/Unix filenames.
9517 (mpw_special_init): New function, calls Macsbug if desired.
9518
9519 * mpw.c: Add GPL notice.
9520 (mpwify_filename): Add more transformations.
9521 (mpw_fopen): Call mpwify_filename on file names.
9522 (rename): Remove.
9523 (chdir, getcwd): Add simple definitions.
9524
9525 * mpw.c: Random cleanups, remove unused code bits.
9526 Added copy of strerror.c for gcc's use.
9527 (stat, fstat, _stat): New versions based on Guido van Rossum code.
9528
9529 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
9530
9531 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
9532 (fork, vfork, etc): Print error messages if called.
9533 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
9534 rename, chown): Define.
9535
9536 * mpw-config.in: New file, MPW version of configure.in.
9537 * mpw-make.in: New file, MPW version of Makefile.in.
9538 * mpw.c: New file, MPW compatibility routines.
9539
9540Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
9541
9542 * basename.c: Include config.h before checking for NEED_basename.
9543
9544Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9545
9546 * functions.def: Add DEFFUNC for basename.
9547
9548 * basename.c: Only define basename if NEED_basename.
9549
9550Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9551
9552 * config.table: Fix --enable-shared logic for native builds.
9553
9554Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9555
9556 * cplus-dem.c (demangle_template): Demangle bool literals properly.
9557
9558Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
9559
9560 * strtol.c strtoul.c: Replace these with less buggy versions from
9561 NetBSD. (strtoul in particular couldn't handle base 16.)
9562
9563Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
9564
9565 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
9566
9567 * clock.c: If NO_SYS_PARAM_H is defined, don't include
9568 <sys/param.h>.
9569 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
9570
9571Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
9572
9573 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
9574 a number; ANSI appears to permit any expression, including a
9575 function call.
9576
9577 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
9578 xiberty.
9579 * config/mt-vxworks5: New file.
9580
9581Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
9582
9583 * basename.c (basename): Change argument to be const.
9584
9585Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9586
9587 * Makefile.in (lneeded-list): Don't worry about xmalloc.
9588
9589Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
9590
9591 * Makefile.in (distclean): Delete xhost-mkfrag.
9592
9593Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9594
9595 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9596
9597Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
9598
9599 * hex.c: New file.
9600 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
9601 (hex.o): Add dependencies.
9602
9603 * cplus-dem.c (demangle_prefix): For GNU style constructor and
9604 destructor names, try demangling the remainder of the string.
9605
9606Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
9607
9608 * vasprintf.c (int_vasprintf): New static function.
9609 (vasprintf): Use int_vasprintf. Removes assumption that va_list
9610 is assignment compatible.
9611
9612Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9613
9614 * Makefile.in (LIBCFLAGS): New variable.
9615 (FLAGS_TO_PASS): Pass it.
9616 (.c.o): Use it.
9617
9618Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
9619
9620 * getopt.c, getopt1.c: Do compile these functions under Linux,
9621 since many native versions are based on glibc but are buggy.
9622
9623Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
9624
9625 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
9626 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
9627
9628Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
9629
9630 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
9631 * functions.def: Remove vasprintf.
9632
9633Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9634
9635 * xmalloc.c (first_break): New static variable.
9636 (xmalloc_set_program_name): Record sbrk (0) in first_break.
9637 (xmalloc): If memory allocation fails, try to report how much
9638 memory was allocated by the program up to this point.
9639 (xrealloc): Likewise.
9640
9641Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
9642
9643 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
9644 when linking dummy.
9645 * config.table: Add host RISCiX Makefile frag.
9646 * config/mh-riscix: New file.
9647
9648Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9649
9650 * Makefile.in (FLAGS_TO_PASS): Define.
9651 ($(RULE1)): Use $(FLAGS_TO_PASS).
9652
9653Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9654
9655 * vasprintf.c: Include <string.h>.
9656 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
9657 * xatexit.c: Declare malloc.
9658
9659Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
9660
9661 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
9662 one below).
9663
9664Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
9665
9666 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5194cf08 9667 the type index is greater than 9.
6599da04
JM
9668
9669Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
9670
9671 * cplus-dem.c (demangle_qualified): accept optional '_' between
9672 qualified name. This is baecause the template name may end with
9673 numeric and can mixed up with the length of next qualified name.
9674
9675Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
9676
9677 * config/mt-sunos4: Use our standard location for cross-includes
9678 and cross-libs when the target is also a "host" environment (ie no
9679 newlib; includes and such don't belong to us). This is specific
9680 to the Cygnus Support environment.
9681
38beb75c 9682Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6599da04 9683
38beb75c 9684 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
6599da04
JM
9685 xxx<ch=81>.
9686
9687Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
9688
9689 * cplus-dem.c (main): flush stdout to make pipe work.
9690
9691Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
9692
9693 * config.table (*-*-cxux7*): Recognize.
9694 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
9695 Harris-specific float format.
9696 * config/mh-cxux7: New file.
9697
9698Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9699
9700 * cplus-dem.c (demangle_template): Make sure that the result of
9701 consume_count doesn't index beyond the end of the string.
9702
9703Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9704
9705 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
9706 earlier. Improve test for new vtable mangling. Change output back
9707 to `virtual table'.
9708
9709Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
9710
9711 * obstack.c: Always compile this code, even if using the GNU
9712 library. Avoids problems with relatively recent binary
9713 incompatibility.
9714
9715Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9716
9717 * cplus-dem.c: Include libiberty.h.
9718 (xmalloc, xrealloc, free): Don't declare.
9719 (strstr): Don't declare parameters.
9720 (xmalloc, xrealloc): Don't define.
9721 (long_options): Add no-strip-underscores.
9722 (main): Call xmalloc_set_program_name. Pass n in short options to
9723 getopt_long. Handle option 'n' to not strip underscores.
9724 (usage): Mention -n and --no-strip-underscores.
9725
9726Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
9727
9728 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5194cf08 9729 space.
6599da04
JM
9730 (gnu_special): Demangle template and qualified names in a vtable name.
9731
9732Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
9733
9734 From gas-2.3 and binutils-2.4 net releases:
9735
9736 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
9737
9738 * makefile.dos: [new] Makefile for dos/go32
9739 * configure.bat: update for latest files
9740 * msdos.c: remove some functions now in libc.a
9741
9742Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
9743
9744 * cplus-dem.c (gnu_special): Recognize thunks, as well as
9745 the new naming style for vtables (when -fvtable-thunks).
9746
9747Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9748
9749 * Makefile.in (XTRAFLAGS): Don't define.
9750 (.c.o, dummy.o): Don't use XTRAFLAGS.
9751 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
9752
9753Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
9754
9755 * vasprintf.c: New file.
9756 * Makefile.in, functions.def: Add it.
9757
9758Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
9759
9760 * cplus-dem.c (demangle_fund_type): Grok bool.
9761
9762Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
9763
38beb75c 9764 * config.table: Add go32
6599da04
JM
9765 * config/mh-go32: New template.
9766
9767Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
9768
9769 * config.table, config/mt-sunos4: config for when sun4 is cross target.
9770
9771Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9772
5194cf08
ZW
9773 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
9774 Declare strlen to return int. Don't include stddef.h.
6599da04
JM
9775
9776Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
9777
5194cf08
ZW
9778 * getopt.c: Delete use of IN_GCC to control whether
9779 stddef.h or gstddef.h is included.
6599da04
JM
9780
9781Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
9782
9783 * cplus-dem.c (demangle_signature): Fix a bug in template function
9784 type numbering.
9785
9786Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
9787
9788 * cplus-dem.c (demangle_signature): Fix template function with arm
9789 style argument type number, Tn.
9790
9791Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
9792
9793 * cplus-dem.c (optable): Add new[] and delete[].
9794
9795Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
9796
9797 * argv.c (buildargv): Don't produce empty argument just because
9798 there is trailing whitespace.
9799
9800Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
9801
9802 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
9803 Handle 'p' same as 'P'.
9804 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
9805
9806Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9807
9808 * floatformat.c (get_field, put_field): Fix off by one error in
9809 little endian case.
9810
9811Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
9812
9813 * floatformat.c (floatformat_from_double): Pass unsigned char *,
9814 not char *, to put_field.
9815
9816Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
9817
9818 * memmove.c: Re-wrote; placed in public domain.
9819
9820Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
9821
9822 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
9823 __Q* as a constructor.
9824
9825Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
9826
9827 * ieee-float.c: Removed; no longer used.
9828 * Makefile.in: Changed accordingly.
9829
9830Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9831
9832 * floatformat.c (get_field): Removed unused local variable i.
9833 (put_field): Removed unused local variable i.
9834
9835Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
9836
9837 * floatformat.c: New file, intended to replace ieee-float.c.
9838 * Makefile.in: Change accordingly.
9839
9840Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
9841
9842 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
38beb75c
UD
9843 (_getopt_initialize): New function, broken out of _getopt_internal.
9844 (_getopt_internal):
6599da04
JM
9845 If long_only and the ARGV-element has the form "-f", where f is
9846 a valid short option, don't consider it an abbreviated form of
9847 a long option that starts with f. Otherwise there would be no
9848 way to give the -f short option.
9849
9850Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9851
5194cf08
ZW
9852 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
9853 Test just __STDC__, not emacs.
6599da04
JM
9854
9855Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
9856
5194cf08
ZW
9857 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
9858 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
6599da04
JM
9859
9860Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
9861
5194cf08 9862 * getopt.c (_NO_PROTO): Define before config.h is included.
6599da04
JM
9863
9864Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9865
5194cf08 9866 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
6599da04
JM
9867 <config.h> only under these, else "config.h".
9868
9869Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
9870
5194cf08
ZW
9871 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
9872 <config.h> instead of "config.h".
6599da04
JM
9873
9874Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
9875
9876 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
9877 whether to use prototypes or not.
9878 * strerror.c (const): Never undefine; let ansidecl.h handle it.
9879 * strsignal.c (const): Likewise.
9880
9881Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9882
9883 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
9884 Merging common and initialized variables need not be supported by
9885 ANSI C compilers.
9886 (xatexit): Initialize _xexit_cleanup if not already set.
9887 * xexit.c: Comment fix.
9888
9889Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9890
9891 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
9892 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
9893 assuming that realloc works correctly.
9894
9895Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9896
9897 * concat.c, ieee-float.c: Replace inclusion of <string.h>
9898 with explicit function declarations, as recommended by Ian Taylor.
9899
9900Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
9901
9902 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
9903 (malloc, realloc): Declare.
9904
9905Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9906
9907 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
9908 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
9909 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
9910 * xmalloc.c: Likewise.
9911 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
9912 macros, not <varargs.h> macros.
9913 * spaces.c (spaces): Make return type const. Don't crash if
9914 malloc returns NULL.
9915 * strerror.c (struct error_info): Make name and msg fields const.
9916 (error_names): Make const.
9917 (strerrno): Make const.
9918 (strtoerrno): Make argument const.
9919 * strsignal.c (struct signal_info): Make name and msg fields
9920 const.
9921 (signal_names, sys_siglist): Make const.
9922 (strsignal, strsigno): Make const.
9923 (strtosigno): Make argument const.
9924 * xatexit.c: Declare parameter types.
9925 * xmalloc.c (name): Make const.
9926 (xmalloc_set_program_name): Make argument const.
9927 * Makefile.in (INCDIR): Define.
9928 (.c.o): Use $(INCDIR).
9929 (dummy.o): Likewise.
9930 (argv.o, basename.o): New targets; depend on libiberty.h.
9931 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
9932 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
9933 (xmalloc.o): Likewise.
9934 (cplus-dem.o): New target; depend on demangle.h.
9935 (getopt.o, getopt1.o): New targets; depend on getopt.h.
9936 (ieee-float.o): New target; depend on ieee-float.h.
9937 (obstack.o): New target; depend on obstack.h.
9938
9939Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
9940
9941 Handle obstack_chunk_alloc returning NULL. This allows
9942 obstacks to be used by libraries, without forcing them
9943 to call exit or longjmp.
9944 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
9945 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
9946 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
9947
9948Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9949
9950 * concat.c, ieee-float.c: Include <string.h>.
9951
9952Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
9953
9954 * xmalloc.c (xmalloc_set_program_name): New function.
9955 (xmalloc, xrealloc): Include the name in the error message, if set.
9956
9957 * Replace atexit.c with xatexit.c.
9958 * Makefile.in (CFILES), functions.def: Change references.
9959
9960Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
9961
9962 * getruntime.c (get_run_time): Use getrusage or times if
9963 HAVE_GETRUSAGE or HAVE_TIMES are defined.
9964
9965Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
9966
9967 * atexit.c: New file.
9968 * Makefile.in (CFILES), functions.def: Add it.
9969 * xexit.c: New file.
9970 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
9971 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
9972 Change request for 0 bytes into request for 1 byte.
9973
9974Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9975
9976 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
9977 unsigned long, to avoid warnings.
9978
9979Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
9980
9981 * dummy.c: Don't include time.h ever; always define clock_t as
9982 "unsigned long". Until gcc/fixincludes ensures that clock_t
9983 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
9984 exist, clock_t probably doesn't either.
9985
9986Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
9987
9988 * clock.c, getruntime.c: New files.
9989 * Makefile.in: Add to file lists.
9990 * functions.def (clock): Add to list.
9991 * dummy.c (time.h): Add if __STDC__.
9992 (clock_t): #define as "unsigned long" if not __STDC__.
9993
9994Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9995
9996 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
9997 Edler).
9998
9999Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10000
10001 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10002 linking.
10003
10004Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10005
10006 * cplus-dem.c (demangle_arm_pt): New function. Common code
10007 for ARM template demangling.
10008 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10009 * cplus-dem.c (demangle_prefix): Likewise.
10010
10011Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10012
10013 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10014
10015Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10016
10017 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10018 * strerror.c, strsignal.c: As a small space optimization, don't
10019 include messages when they aren't actually used.
10020
10021 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10022 * cplus-dem.c (demangle_prefix, demangle_function_name,
10023 cplus_demangle_opname): Fixes for systems where cplus_marker
10024 is something other than '$'.
10025
10026Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10027
10028 * waitpid.c: Simple-minded approcimation to waitpid
10029 using vanilla wait.
10030 * functions.def, Makefile.in: Update accordingly,
10031
10032Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10033
10034 * cplus-dem.c(demangle_template): fix bug template instantiation
10035 with value of user defined type.
10036
10037Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10038
10039 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10040 to support unified search of operator in class.
10041
10042Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10043
10044 gcc -Wall lint:
10045 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10046 "digit = *s" as condition in while loop.
10047
10048Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10049
10050 * Makefile.in: pass SHELL to recursive make
10051
10052Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10053
10054 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10055 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10056
10057Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10058
10059 * config.table: Make *-*-hiux* use mh-hpux.
10060
10061Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10062
10063 * config.table: Add * to end of all OS names.
10064
10065Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10066
10067 * Makefile.in (lneeded-list): ensure that object file names are
10068 not duplicated, as multiple instances of the same object file in
10069 a library causes problems on some machines
10070
10071Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10072
10073 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10074
10075Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10076
10077 * strncasecmp.c: new file, implements strncasecmp
10078 * strcasecmp.c: new file, implement strcasecmp
10079
10080 * Makefile.in (CFILES): list these two new source files
10081
10082 * functions.def: add strcasecmp and strncasecmp entries
10083
10084Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10085
10086 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10087 according to ANSI C.
10088
10089Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10090
10091 * cplus-dem.c: add support of ARM global constructor/destructor,
10092 and 'G' for passing record or union in parameter.
10093
10094Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10095
10096 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10097 should not be in functions.def.
10098
10099Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10100
10101 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10102 not be in functions.def.
10103
10104Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10105
10106 * cplus-dem.c: change globl constructor/destructor to proper name
10107
10108Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10109
10110 * cplus-dem.c: fix bug in constructor/destructor
10111
10112Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10113
10114 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10115
10116Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10117
10118 * cplus-dem.c: Fix demangle_template prototype
10119
10120Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10121
10122 * cplus-dem.c: fix template demangling
10123 * cplus-dem.c: fix const type demangling
10124 * cplus-dem.c: fix constructor/destructor, virtual table,
10125 qualifier, global constructor/destructor demangling
10126
10127Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10128
10129 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10130 keep gcc -Wall happy.
10131
10132Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10133
10134 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10135 patch.
10136
10137Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10138
10139 Patch from Paul Flinders:
10140 * cplus-dem.c (do_type): Deal with arrays.
10141
10142Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10143
10144 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10145 than 9 classes.
10146
10147Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10148
10149 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10150 not initialized" warnings under HP/UX
10151
10152Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10153
10154 * strerror.c: Move include of stdio.h after sys_errlist #define.
10155 Also remove NULL definition (stdio.h always defines NULL, so it
10156 never did anything but clutter up the code).
10157
10158Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10159
10160 * Makefile.in, functions.def: handle xmalloc.c
10161
10162 * xmalloc.c: provide xmalloc and xrealloc functions
10163
10164Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10165
10166 * cplus-dem.c: Fix a comment.
10167
10168Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10169
10170 * getopt1.c: Declare const the way getopt.c does.
10171
10172Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10173
10174 * obstack.c, alloca.c: Update from FSF.
10175 * getopt.c, getopt1.c: Update to current FSF version, which
38beb75c 10176 doesn't use alloca.
6599da04
JM
10177
10178Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10179
10180 * Makefile.in (demangle): Add the target with a message saying
10181 where demangle went.
10182
10183Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10184
10185 * Makefile.in: Remove obsolete `demangle' target.
10186
10187Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10188
10189 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10190 avoid infinite loop on vtbl symbols with disambiguating "junk"
10191 tacked on the end.
10192
10193Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10194
10195 * strsignal.c: work around some systems losing definitions of
10196 sys_siglist
10197
10198 * config/mh-lynxos: this system has a losing definition of
10199 sys_siglist
10200
10201 * config.table: use mh-lynxos for *-*-lynxos
10202
10203Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10204
10205 * config.table: Add support for HPPA BSD hosts.
10206
10207 * config/mh-hpbsd: New file.
10208
10209Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10210
10211 * Makefile.in (TAGS): make work when srcdir != objdir.
10212
10213Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10214
10215 * cplus-dem.c (main): Add long options, including --help and
10216 --version.
10217 (usage): New function from code in main.
10218
10219Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10220
10221 * config.table: New shell scipt, sourced by both ./configure,in
10222 and ../xiberty/configure.in, to avoid maintainance lossages.
10223 * configure.in and ../xiberty/configure.in: Use config.table.
10224
10225 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10226 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10227 * ../xiberty/configure.in: Update from ./configure.in.
10228
10229Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10230
10231 * Makefile.in: remove parentdir support
10232
10233Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10234
10235 * cplus-dem.c (xrealloc): Match definition with prototype.
10236
10237Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10238
10239 * cplus-dem.c (demangle_prefix): Demangle cfront
10240 local variables as an extension to ARM demangling.
10241
10242Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10243
10244 * ieee-float.c: Don't require pointers to double to be aligned.
10245
10246Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10247
5194cf08 10248 (merge changes from dlong@cse.ucsc.edu)
6599da04
JM
10249 * cplus-dem.c (consume_count): Simplify.
10250 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10251 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10252
10253 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10254 full prototypes.
10255 * cplus-dem.c (free): Add prototype.
10256 * cplus-dem.c (optable): Fully bracketize initializer.
10257
10258Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10259
10260 * cplus-dem.c: Whether initial underscores are stripped
10261 depends on the external variable prepends_underscore
10262 (which is generated by the binutils Makefile).
10263
10264Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10265
10266 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10267
10268Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10269
10270 * cplus-dem.c (consume_count): Return zero if arg does not
10271 start with digit, and don't consume any input.
10272
10273Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10274
10275 * Makefile.in (demangle): Use ${srcdir} not $^.
10276
10277 * strtod.c: New file, needed at least for BSD 4.3.
10278
10279Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10280
10281 * strsignal.c (sys_siglist): For ANSI compilations, type is
10282 "const char *const". Also remove conditionalization on __STDC__
10283 since const is defined away for non-ANSI.
10284
10285Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10286
10287 * configure.in: Recognize *-*-hpux.
10288 * config/mh-hpux: New file.
10289
10290Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10291
10292 * tmpnam.c: Added ANSI tmpnam() function.
10293 * functions.def, Makefile.in: Update accordingly.
10294
10295Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10296
10297 * cplus-dem.c (demangle_function_name): Get the demangling of
10298 stop__1A right.
10299
10300Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10301
10302 * cplus-dem.c: Declare strstr return type.
10303
10304Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10305
10306 * strsignal.c: Add some AIX signals.
10307
10308Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10309
10310 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10311
10312Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10313
10314 * Makefile.in: add installcheck & dvi targets
10315
10316Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10317
10318 * ieee-float.c: New file, moved from ../gdb (since it is
10319 needed by ../opcode/m68k-dis.c).
10320
10321Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10322
10323 * cplus-dem.c: Replace all references to cfront with ARM.
10324
10325Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10326
10327 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10328 to be more useful as a filter.
10329
10330Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10331
10332 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10333 destination directory before running $(RANLIB), in case that
10334 program tries to create a file in the current directory as part of
10335 its work.
10336
10337Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
10338
10339 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
10340 because BSD 4.4 lacks one. Isn't this fun?
10341
10342Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
10343
10344 * cplus-dem.c (demangle_signature): Set func_done after
10345 demangling a template.
10346 * cplus-dem.c (demangle_template): Fix several small bugs
10347 in demangling GNU style templates.
10348 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
10349 style constructors.
10350 * cplus-dem.c (gnu_special): Fix for templates in GNU style
10351 static data members.
10352
10353Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
10354
10355 * cplus-dem.c (demangle_signature): Modify to include type
10356 modifiers like static and const in remembered types.
10357
10358Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
10359
10360 * cplus-dem.c (demangled_qualified): Add new parameter that tells
10361 whether to prepend or append the qualifiers.
10362 * cplus-dem.c (string_prepends): Used now, remove #if 0.
10363 * cplus-dem.c (demangle_signature): Call demangle_qualified
10364 with prepending.
29120f44 10365 * cplus-dem.c (gnu_special): Recognize static data members that
6599da04
JM
10366 use qualified names.
10367 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
10368 temporary buffer and the prepend or append them to the result,
10369 as specified by the new "append" flag.
10370 * cplus-dem.c (do_type): Call demangled_qualified with
10371 appending.
10372
10373Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
10374
10375 * strsignal.c (signal_table): Now const.
10376 (init_signal_tables): Variable eip now points to const.
10377
10378 * strerror.c (error_table): Now const.
10379 (init_error_tables): Variable eip now points to const.
10380
10381Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
10382
10383 * memchr.c (memchr): New (ANSI standard) function.
10384 * Makefile.in, functions.def: Added memchr.
10385 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10386
10387Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10388
10389 * getopt.c: remove use of USG around <alloca.h>, which never meant
10390 anything anyway
10391
10392 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10393 of USG and USGr4
10394
10395Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
10396
10397 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10398 it's now a type according to the ANSI X3J16 working paper; output
10399 "wchar_t" for it.
10400 (demangle_template): Accept `w' as an integral type.
10401 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
10402 counterparts malloc and realloc to `char *'.
10403 (main): Exit with a 0 status.
10404 * Makefile.in (demangle): Don't expect the user to define
10405 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
10406 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
10407
10408Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
10409
10410 * Makefile.in (AR_FLAGS): Avoid verbosity.
10411 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
10412 replace USGr4 with HAVE_SYSCONF.
10413 * config/mh-solaris: Remove; mh-sysv4 works now.
10414 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
10415 * configure.in: Simplify host matching table, remove separate
10416 solaris config file.
10417
10418Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10419
10420 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10421
10422Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
10423
10424 * cplus-dem.c (xmalloc, xrealloc): Add decls.
10425 (remember_type): Don't cast xmalloc.
10426 (string_need): Likewise; don't cast xrealloc either.
10427
10428Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
10429
10430 * Makefile.in, functions.defs, rename.c: added simple
10431 implementation of rename, since some binutils programs use it.
10432
10433Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
10434
10435 * strsignal.c: Add appropriate 'const' to sys_siglist
10436 extern declaration (if __STDC__). (Needed for Linux.)
10437 * strsignal.c (strsignal): Add cast to remove const-ness.
10438
10439Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
10440
10441 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
10442 before "'s, diagnosed by BSD 4.4 awk.
10443
10444Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
10445
10446 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
10447 and $(NEEDED_LIST), to give some hooks for xiberty.
10448
10449Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10450
10451 * configure.in: use cpu-vendor-triple instead of nested cases
10452
10453Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10454
10455 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
10456 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
10457 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
10458 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
10459 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
10460 Convert from using GPL to LGPL.
10461
10462Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
10463
10464 * Makefile.in (errors): Leave dummy.o and dummy around so that
10465 we can see how the needed list was generated (it's sometimes wrong).
10466 (mostlyclean): Remove them.
10467
10468Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
10469
10470 * getcwd.c: supply a default if MAXPATHLEN is not defined.
10471
10472 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
10473
10474Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
10475
10476 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
10477 when cross-compiling.
10478
10479Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
10480
10481 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
10482 as a time optimization.
10483
10484 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
10485 be more expensive than simply demangling.
10486
10487 * cplus-dem.c (cplus_match): new function.
10488
10489Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
10490
10491 * cplus-dem.c: #include <stdio.h>, to define NULL.
10492 Define current_demangling_style.
10493
10494Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
10495
10496 * cplus-dem.c: New file, moved from ../gdb.
10497 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
10498 function, to avoid compiling in target-dependency for CPLUS_MARKER.
10499 * cplus-dem.c (cplus_demangle): Allow demangling style option
10500 to be passed as a parameter, but using the global variable
10501 current_demangling_style as a default.
10502 * Makefile.in: Update for cplus-dem.c
10503
10504Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
10505
10506 * obstack.c: Merge in comment changes from FSF version. Now
10507 matches the FSF version exactly.
10508
10509Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
10510
10511 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
10512 least on losing DECstations!); use if-then-else instead.
10513
10514Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
10515
10516 * Makefile.in: always create installation directories.
10517
10518Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10519
f33a23a0 10520 * Makefile.in: clean up definition of CFILES, more comments
6599da04
JM
10521
10522Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
10523
10524 * getopt.c (my_index): Make first arg const to match strchr,
10525 which it sometimes is remapped to.
10526
10527Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
10528
10529 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
10530 * obstack.c (_obstack_begin): Initialize use_extra_arg.
10531 * obstack.c (_obstack_begin_1): New, from FSF version.
10532
10533Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
10534
10535 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
10536 extra_arg.
10537 * obstack.c (_obstack_begin): Remove area_id and flags arguments
10538 (previously added for mmalloc support, interface has changed).
10539 Also convert flags usage to use use_extra_arg and maybe_empty_object.
10540
10541Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
10542
10543 * argv.c: Move expandargv inline and eliminate static variables.
10544 Rewrite to always allocate in powers of two. Fix to return an
10545 argv with a single null string arg if passed a null string.
10546
10547Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
10548
10549 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
10550 "(void)" casts from function calls where the return value is
10551 ignored, in accordance with GNU coding standards.
10552
10553Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
10554
10555 * bcopy.c, strerror.c, strsignal.c: Lint.
10556
10557Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10558
10559 * getopt.c: merge changes from make.
10560
10561Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
10562
10563 * alloca.c: Incorporate fixes from gdb/alloca.c.
10564 FIXME: Eventually move gdb's alloca configuration files here,
10565 and remove gdb/alloca.c and its Makefile.in support.
10566
10567Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
10568
10569 * dummy.c: Define NOTHING to /*nothing*/, change return type
10570 of main to int and return zero.
10571 * functions.def: Supply NOTHING as the fourth arg to macros
10572 that don't have an explicit arg, to satisfy picky preprocessors.
10573
10574Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
10575
10576 * Makefile.in: Clean up *clean rules, as per standards.texi.
10577
10578Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
10579
10580 * getopt.c, getopt1.c: merged largely gratuitous, mostly
10581 whitespace diffs from other prep distributions.
10582
10583Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
10584
10585 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
10586 it is broken on ncr 3000's.
10587
10588Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
10589
10590 * sigsetmask.c: Rewrite. Old one was very confused about its
10591 arguments and result. New one can't do much, but at least knows
10592 what it can't do, and it's good enough for GDB's use.
10593
10594Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
10595
10596 * functions.def: Use proper prototype for strtoul.
10597
10598Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
10599
10600 * Makefile.in: Add random.c.
10601 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
10602 * configure.in: update solaris2 config.
10603
10604Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
10605
10606 * random.c: Add for random() and srandom().
10607 * functions.def: Add random
10608
10609Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
10610
10611 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
10612 using /usr/ucb/install.
10613
10614Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
10615
10616 * strerror.c: Kludge to guard against a conflict with
10617 possible declaration of sys_errlist in errno.h.
10618
10619Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
10620
10621 * configure.in, config/mh-solaris: add solaris2 config support.
10622
10623Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
10624
10625 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
10626 is not defined (should be defined in signal.h, says Posix.).
10627
10628Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
10629
10630 * getopt.c: merged changes from make-3.62.11.
10631
10632Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
10633
10634 * getopt.c: merged changes from bison-1.18.
10635
10636Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
10637
10638 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
10639 since that introduces a circular dependency.
10640 ($(EXTRA_OFILES) are used to build config.h.)
10641
10642 * strtoul.c: Fixes to handle non-decimal bases better.
10643
10644Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
10645
10646 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
10647 * Makefile.dos: Finish MINUS_G eradication.
10648 * Makefile.in (CFILES): Add strsignal.c.
10649 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
10650 * Makefile.in (needed-list): Split creation of errors file to
10651 separate make target.
10652 * Makefile.in (config.h, needed2.awk, errors): New targets.
10653 * Makefile.in (clean): Split to multiple lines, add needed2.awk
10654 and config.h.
10655 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
10656 * functions.def (strerror): Remove from optional list.
10657 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
10658 * functions.def (strerror, psignal): DEFFUNC's
10659 * strerror.c: Rewrite from scratch to use sys_errlist only if
10660 available, add errno_max(), add strerrno(), add strtoerrno(),
10661 add test driver.
10662 * strsignal.c: New file, signal equivalent to strerror.c.
10663 Uses sys_siglist if available, defines signo_max(), strsignal(),
10664 strsigno(), strtosigno(), psignal(), and test driver.
10665
10666Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
10667
10668 * Makefile.in: do not print recursion line.
10669
10670 * Makefile.in: allow CFLAGS to be passed in from command line.
10671 Removed MINUS_G. Default CFLAGS to -g.
10672
10673Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
10674
10675 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
10676 so libg++ users don't have to be inconvenienced by a
10677 libc.a bug (libc.a needs copysign, but doesn't define it!).
10678 * configure.in: Use config/mh-aix.
10679 * strtoul.c: Handle '-' as required by ANSI.
10680 Clean up radix handling.
10681 * strstr.c: Fix buggy algorithm.
10682 * Makefile.in: Change so that ${EXTRA_OFILES} is
10683 appended to needed-list (which is used by libg++).
10684
10685Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
10686
10687 * configure.in: Recognize new ncr3000 config.
10688 * config/mh-ncr3000: New config file.
10689
10690Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
10691
10692 * argv.c, dummy.c: Lint.
10693
10694Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
10695
10696 * config/mh-sysv4: New config file.
10697 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
10698 host_os == sysv4.
10699 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
10700 pagesize.
10701
10702Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
10703
10704 * getopt.c: Lint.
10705
10706Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
10707
10708 * functions.def (alloca): Fix return type and args to avoid
10709 type clash with gcc's builtin alloca.
10710
10711Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
10712
10713 * configure.in, config/mh-irix4: irix4 support.
10714
10715 * Makefile.in, functions.def, alloca.c: added alloca.
10716
10717Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
10718
10719 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
10720
10721Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
10722
10723 * argv.c: Fix various external function definitions to be
10724 correct in an ANSI compilation environment.
10725
10726Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
10727
10728 * obstack.c: Changes to support calling mmalloc functions,
10729 which take an additional argument over malloc functions.
10730
10731Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
10732
10733 * added check target.
10734
10735Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
10736
10737 * argv.c: #include alloca-conf.h (needed by AIX).
10738
10739Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
10740
10741 * Makefile.in, configure.in: removed traces of namesubdir,
10742 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
10743 copyrights to '92, changed some from Cygnus to FSF.
10744
10745Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
10746
10747 * argv.c: Check in Fred's version which fixes problems with
10748 alloca().
10749
10750Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
10751
10752 * makefile.dos: Remove NUL to keep patch from failing.
10753
10754Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
10755
10756 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
10757
10758Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
10759
c4b9cfe0 10760 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
6599da04
JM
10761
10762Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
10763
10764 * argv.c: New file to build and destroy standard argument
10765 vectors from a command string.
10766
10767 * Makefile.in: Add argv.c and argv.o to appropriate macros.
10768
10769Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
10770
10771 * configure.in: Change svr4 references to sysv4.
10772
10773 * rindex.c: Declare return type of externally used function
10774 strrchr().
10775
10776Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
10777
10778 * Makefile.in: Remove "***" in normal output, since Make produces
10779 this on errors, and it's convenient to search for.
10780
10781Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
10782
10783 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
10784 New ANSI functions. The old non-ANSI functions (such as bcopy)
10785 should be avoided.
10786 * bcopy.c: Fix to correctly handle overlapping regions.
10787 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
10788 * functions.def: Add the new functions.
10789 * functions.def: Add 4th parameter to DEF macro,
10790 an ansidecl.h-style prototype.
10791 * dummy.c: Use expanded DEF macro to create a dummy function
10792 call, with correct parameter types. (This avoids some
10793 complaints from gcc about predefined builtins.)
10794
10795 Move the functionality of config/mh-default into Makefile.in.
10796 This avoid duplication, and simplifies things slightly.
10797 * Makefile.in: Tweak so we don't need config/mh-default.
10798 * README: Update.
10799 * configure.in: No longer need config/mh-default.
10800 * config/mh-default: Deleted.
10801 * config/mh-sysv: Remove lines copied from old mh-default.
10802
10803Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
10804
10805 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
10806 'mknod' device numbers.
10807
10808Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
10809
10810 * fdmatch.c, Makefile.in: Add new function that takes two
10811 open file descriptors and returns nonzero if they refer to
10812 the same file, zero otherwise. (used in gdb)
10813
10814Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
10815 From DJ:
10816 * msdos.c: stub functions for dos.
10817 * makefile.dos, configdj.bat: new.
10818 * getopt.c: Don't include alloca-conf.h in a GO32 world.
38beb75c 10819
6599da04
JM
10820
10821Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10822
10823 * Makefile.in: infodir belongs in datadir.
10824
10825Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10826
10827 * Makefile.in: remove spaces following hyphens because bsd make
10828 can't cope. added standards.text support. install using
10829 INSTALL_DATA.
10830
10831 * configure.in: remove commontargets as it is no longer a
10832 recognized hook.
10833
10834Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
10835
10836 * Makefile.in: idestdir and ddestdir go away. Added copyrights
10837 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
10838 and mandir now keyed off datadir by default.
10839
10840Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
10841
10842 * Makefile.in: find-needed.awk does not fit in 14 chars.
10843
10844 * Makefile.in: Suppress error checking when compiling the test
10845 program, because Ultrix make/sh aborts there due to a bug.
10846
10847Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
10848
10849 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
10850 * README: Explained how the auto-configuration works,
10851 and how to add new files and/or configurations.
10852
10853Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
10854
10855 * strtoul.c: Avoid defining ULONG_MAX if already defined;
10856 cast a const char * to char * for pedants.
10857
10858 * getopt.c: Only define "const" after local include files get to,
10859 and only if they haven't defined it.
10860
10861Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
10862
10863 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
10864 emulate it with getwd() if available. This avoids callers having
10865 to find a MAXPATHLEN or PATH_MAX value from somewhere.
10866 * Makefile.in, functions.def: getwd->getcwd.
10867 * configure.in: Use generic case for every system.
10868 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
10869 * config/mh-sysv: Use default handling, just add -DUSG.
10870
10871Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
10872
10873 * Makefile.in, config/mh-default: Re-do make magic
10874 so that for the default ("automatic") mode we only
10875 compile the files we actually need. Do this using
10876 a recursive make: The top-level generates the list
10877 of needed files (loosely, the ones missing in libc),
10878 and then passes that list to the recursive make.
10879 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
10880
10881Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
10882
10883 RS/6000 host support (grumble).
10884
10885 * configure.in: Build alloca-conf.h file from alloca-norm.h
10886 (everything else) or alloca-botch.h (rs/6000).
10887 * Makefile.in: Include . on the include path.
10888 * getopt.c: Use alloca-conf.h.
10889 * alloca-norm.h: How to declare alloca on reasonable machines.
10890 * alloca-botch.h: How to declare alloca on braindead machines.
10891
10892Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
10893
10894 * concat.c : New file, like concat() in gdb but can take a
10895 variable number of arguments rather than fixed at 3 args. For
10896 now, client applications must supply an xmalloc(), which is a
10897 front end function to malloc() that deals with out-of-memory
10898 conditions.
10899
10900 * Makefile.in: Add concat.c and concat.o to appropriate macros.
10901
10902Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
10903
10904 * config/mh-svr4: Add sigsetmask to list of required functions.
10905
10906Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
10907
10908 * vsprintf.c: New file.
10909 * functions.def, Makefile.in: Add vsprintf.
10910
10911Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
10912
10913 * configure.in, config/mh-rs6000: Add rs/6000 host support.
10914 * Makefile.in: Compile with debug info.
10915
10916Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
10917
10918 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
10919 config/mf-default: Added a default configuration mode,
10920 which includes into libiberty.a functions that are "missing" in libc.
10921 * strdup.c, vprintf.c, vfprintf.c: New files.
10922
10923Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
10924
10925 * config/hmake-svr4: New file.
10926
10927 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
10928
10929 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
10930 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
10931 files containing either portable C versions or emulations using
10932 native library calls.
10933
10934 * strerror.c: Add copyright, internal documentation, etc.
10935
10936 * strtol.c: Replace hardwired hex constants with some more
10937 portable macros. Remove illegal (according to gcc) cast.
10938
10939 * strtoul.c: Replace hardwired hex constant with more portable
10940 macro.
10941
10942 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
10943 can override them. Add new source and object file names to CFILES
10944 and OFILES respectively.
10945
10946 * configure.in: Add support for SVR4 makefile fragments.
10947
10948Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
10949
10950 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
10951 over-ridden by config/hmake-*
10952 * configure.in: added m88kcvs to sysv list
10953
10954Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
10955
10956 * Makefile.in: Most hosts need strerror, but one or two don't,
10957 and they override these definitions in the host-dependent makefile
10958 fragment.
10959 * config/hmake-mach: The odd man out on strerror -- it's supplied.
10960 * strerror.c: New file.
10961
10962 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
10963 it and bfd uses it.
10964 * configure.in, Makefile.in, config/hmake-mach: Only configure
10965 strtol & strotoul in on Mach.
10966
10967Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
10968
10969 * obstack.c: Merge with latest FSF version.
10970
10971\f
10972Local Variables:
10973version-control: never
10974End: