]> git.ipfire.org Git - thirdparty/gcc.git/blob - libiberty/ChangeLog
1005bf8a974bdceb64e47fc018b5858165230a1b
[thirdparty/gcc.git] / libiberty / ChangeLog
1 2023-12-01 Jason Merrill <jason@redhat.com>
2
3 * cp-demangle.c (d_make_comp): Handle
4 DEMANGLE_COMPONENT_CONSTRAINTS.
5 (d_count_templates_scopes): Likewise.
6 (d_print_comp_inner): Likewise.
7 (d_maybe_constraints): New.
8 (d_encoding, d_template_args_1): Call it.
9 (d_parmlist): Handle 'Q'.
10 * testsuite/demangle-expected: Add some constraint tests.
11
12 2023-11-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13
14 * configure.ac (GCC_CHECK_ASSEMBLER_HWCAP): Invoke.
15 * configure, aclocal.m4: Regenerate.
16 * Makefile.in (COMPILE.c): Add HWCAP_CFLAGS.
17
18 2023-11-28 Jakub Jelinek <jakub@redhat.com>
19
20 * configure.ac (HAVE_X86_SHA1_HW_SUPPORT): New check.
21 * sha1.c: If HAVE_X86_SHA1_HW_SUPPORT is defined, include x86intrin.h
22 and cpuid.h.
23 (sha1_hw_process_bytes, sha1_hw_process_block,
24 sha1_choose_process_bytes): New functions.
25 * config.in: Regenerated.
26 * configure: Regenerated.
27
28 2023-11-15 Mark Wielaard <mjw@redhat.com>
29
30 * aclocal.m4: Rebuild.
31
32 2023-11-10 Brendan Shanks <bshanks@codeweavers.com>
33
34 * configure.ac (AC_CHECK_HEADERS): Add spawn.h.
35 (checkfuncs): Add posix_spawn, posix_spawnp.
36 (AC_CHECK_FUNCS): Add posix_spawn, posix_spawnp.
37 * aclocal.m4, configure, config.in: Rebuild.
38 * pex-unix.c [HAVE_POSIX_SPAWN] (pex_unix_exec_child): New function.
39
40 2023-08-22 Jason Merrill <jason@redhat.com>
41
42 PR c++/109751
43 * cp-demangle.c (d_make_comp): Handle DEMANGLE_COMPONENT_FRIEND.
44 (d_count_templates_scopes): Likewise.
45 (d_print_comp_inner): Likewise.
46 (d_unqualified_name): Handle member-like friend mangling.
47 * testsuite/demangle-expected: Add test.
48
49 2023-08-07 John Ericson <git@JohnEricson.me>
50
51 * configure: Regenerate.
52
53 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
54
55 * configure: Regenerate.
56
57 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
58
59 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
60 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
61 (configure_deps): Depend on ../config/gcc-plugin.m4.
62 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
63 RANLIB_PLUGIN_OPTION.
64 * aclocal.m4: Regenerated.
65 * configure: Likewise.
66
67 2023-06-15 Marek Polacek <polacek@redhat.com>
68
69 * configure.ac: Also set shared when enable_host_pie.
70 * configure: Regenerate.
71
72 2023-06-13 Nathan Sidwell <nathan@acm.org>
73
74 * cp-demangle.c (d_print_conversion): Remove incorrect
75 template instantiation handling.
76 * testsuite/demangle-expected: Add testcases.
77
78 2023-06-07 Costas Argyris <costas.argyris@gmail.com>
79
80 * argv.c (writeargv): Constant propagate "0" for "status",
81 simplifying the code slightly.
82
83 2023-06-06 Costas Argyris <costas.argyris@gmail.com>
84
85 * argv.c (writeargv): Simplify & remove gotos.
86
87 2023-06-05 Costas Argyris <costas.argyris@gmail.com>
88
89 * pex-win32.c: fix typos.
90
91 2023-06-05 Costas Argyris <costas.argyris@gmail.com>
92
93 * pex-win32.c (win32_spawn): Check command line length
94 and generate a response file if necessary.
95 (spawn_script): Adjust parameters.
96 (pex_win32_exec_child): Ditto.
97
98 2023-06-03 Patrick Palka <ppalka@redhat.com>
99
100 PR c++/70790
101 * cp-demangle.c (cplus_demangle_operators): Add the noexcept
102 operator.
103 (d_print_comp_inner) <case DEMANGLE_COMPONENT_UNARY>: Always
104 print parens around the operand of noexcept too.
105 * testsuite/demangle-expected: Test noexcept operator
106 demangling.
107
108 2023-04-02 Jakub Jelinek <jakub@redhat.com>
109
110 PR other/109306
111 * strstr.c: Revert the 2020-11-13 changes.
112 (strstr): Return s1 if len is 0.
113
114 2023-03-30 Gerald Pfeifer <gerald@pfeifer.com>
115
116 * obstacks.texi (Preparing for Obstacks): Remove a (broken)
117 reference to the Glibc manual.
118
119 2023-03-03 Costas Argyris <costas.argyris@gmail.com>
120
121 * pex-win32.c (win32_spawn): Fix memory leak of cmdline
122 buffer and refactor to have cleanup code appear once
123 for all exit cases.
124
125 2023-02-11 niXman <i.nixman@autistici.org>
126
127 * lrealpath.c (lrealpath): try to resolve symlink and
128 use UNC paths where applicable.
129
130 2023-01-07 LIU Hao <lh_mouse@126.com>
131
132 PR middle-end/108300
133 * make-temp-file.c: Define `WIN32_LEAN_AND_MEAN` before <windows.h>.
134 * pex-win32.c: Likewise.
135
136 2022-11-23 Marek Polacek <polacek@redhat.com>
137
138 Revert:
139 2022-11-23 Marek Polacek <polacek@redhat.com>
140
141 * configure.ac: Also set shared when enable_host_pie.
142 * configure: Regenerate.
143
144 2022-11-23 Marek Polacek <polacek@redhat.com>
145
146 * configure.ac: Also set shared when enable_host_pie.
147 * configure: Regenerate.
148
149 2022-11-15 Nathan Sidwell <nathan@acm.org>
150
151 * cp-demangle.c (struct d_print_info): Rename is_lambda_arg to
152 lambda_tpl_parms. Augment semantics.
153 (d_make_comp): Add checks for new components.
154 (d_template_parm, d_template_head): New.
155 (d_lambda): Add templated lambda support.
156 (d_print_init): Adjust.
157 (d_print_lambda_parm_name): New.
158 (d_print_comp_inner): Support templated lambdas,
159 * testsuite/demangle-expected: Add testcases.
160
161 2022-11-14 Martin Liska <mliska@suse.cz>
162
163 Revert:
164 2022-11-14 Martin Liska <mliska@suse.cz>
165
166 * doc/bsd.rst: New file.
167 * doc/conf.py: New file.
168 * doc/copyright.rst: New file.
169 * doc/extensions.rst: New file.
170 * doc/function-variable-and-macro-listing.rst: New file.
171 * doc/index.rst: New file.
172 * doc/indices-and-tables.rst: New file.
173 * doc/introduction.rst: New file.
174 * doc/lesser-general-public-license-2.1.rst: New file.
175 * doc/overview.rst: New file.
176 * doc/replacement-functions.rst: New file.
177 * doc/supplemental-functions.rst: New file.
178 * doc/using.rst: New file.
179
180 2022-11-14 Martin Liska <mliska@suse.cz>
181
182 Revert:
183 2022-11-14 Martin Liska <mliska@suse.cz>
184
185 * Makefile.in: Support Sphinx based documentation.
186
187 2022-11-14 Martin Liska <mliska@suse.cz>
188
189 Revert:
190 2022-11-14 Martin Liska <mliska@suse.cz>
191
192 * at-file.texi: Removed.
193 * copying-lib.texi: Removed.
194 * functions.texi: Removed.
195 * libiberty.texi: Removed.
196 * obstacks.texi: Removed.
197
198 2022-11-14 Martin Liska <mliska@suse.cz>
199
200 Revert:
201 2022-11-14 Martin Liska <mliska@suse.cz>
202
203 * Makefile.in: Support --with-sphinx-build.
204 * configure.ac: Likewise.
205 * configure: Regenerate.
206
207 2022-11-14 Martin Liska <mliska@suse.cz>
208
209 Revert:
210 2022-11-14 Martin Liska <mliska@suse.cz>
211
212 * doc/bsd.rst:
213 Add trailing newline.
214 * doc/copyright.rst:
215 Add trailing newline.
216 * doc/extensions.rst:
217 Add trailing newline.
218 * doc/function-variable-and-macro-listing.rst:
219 Add trailing newline.
220 * doc/index.rst:
221 Add trailing newline.
222 * doc/indices-and-tables.rst:
223 Add trailing newline.
224 * doc/introduction.rst:
225 Add trailing newline.
226 * doc/lesser-general-public-license-2.1.rst:
227 Add trailing newline.
228 * doc/overview.rst:
229 Add trailing newline.
230 * doc/replacement-functions.rst:
231 Add trailing newline.
232 * doc/supplemental-functions.rst:
233 Add trailing newline.
234 * doc/using.rst:
235 Add trailing newline.
236
237 2022-11-14 Martin Liska <mliska@suse.cz>
238
239 Revert:
240 2022-11-14 Martin Liska <mliska@suse.cz>
241
242 * doc/conf.py: Add newline at last line.
243
244 2022-11-14 Martin Liska <mliska@suse.cz>
245
246 Revert:
247 2022-11-14 Martin Liska <mliska@suse.cz>
248
249 PR other/107620
250 * configure: Regenerate.
251 * configure.ac: Always set sphinx-build.
252
253 2022-11-13 Martin Liska <mliska@suse.cz>
254
255 PR other/107620
256 * configure: Regenerate.
257 * configure.ac: Always set sphinx-build.
258
259 2022-11-10 Martin Liska <mliska@suse.cz>
260
261 * doc/conf.py: Add newline at last line.
262
263 2022-11-09 Martin Liska <mliska@suse.cz>
264
265 * doc/bsd.rst:
266 Add trailing newline.
267 * doc/copyright.rst:
268 Add trailing newline.
269 * doc/extensions.rst:
270 Add trailing newline.
271 * doc/function-variable-and-macro-listing.rst:
272 Add trailing newline.
273 * doc/index.rst:
274 Add trailing newline.
275 * doc/indices-and-tables.rst:
276 Add trailing newline.
277 * doc/introduction.rst:
278 Add trailing newline.
279 * doc/lesser-general-public-license-2.1.rst:
280 Add trailing newline.
281 * doc/overview.rst:
282 Add trailing newline.
283 * doc/replacement-functions.rst:
284 Add trailing newline.
285 * doc/supplemental-functions.rst:
286 Add trailing newline.
287 * doc/using.rst:
288 Add trailing newline.
289
290 2022-11-09 Martin Liska <mliska@suse.cz>
291
292 * Makefile.in: Support --with-sphinx-build.
293 * configure.ac: Likewise.
294 * configure: Regenerate.
295
296 2022-11-09 Martin Liska <mliska@suse.cz>
297
298 * at-file.texi: Removed.
299 * copying-lib.texi: Removed.
300 * functions.texi: Removed.
301 * libiberty.texi: Removed.
302 * obstacks.texi: Removed.
303
304 2022-11-09 Martin Liska <mliska@suse.cz>
305
306 * Makefile.in: Support Sphinx based documentation.
307
308 2022-11-09 Martin Liska <mliska@suse.cz>
309
310 * doc/bsd.rst: New file.
311 * doc/conf.py: New file.
312 * doc/copyright.rst: New file.
313 * doc/extensions.rst: New file.
314 * doc/function-variable-and-macro-listing.rst: New file.
315 * doc/index.rst: New file.
316 * doc/indices-and-tables.rst: New file.
317 * doc/introduction.rst: New file.
318 * doc/lesser-general-public-license-2.1.rst: New file.
319 * doc/overview.rst: New file.
320 * doc/replacement-functions.rst: New file.
321 * doc/supplemental-functions.rst: New file.
322 * doc/using.rst: New file.
323
324 2022-10-18 Florian Weimer <fweimer@redhat.com>
325
326 * acinclude.m4 (ac_cv_func_strncmp_works): Add missing
327 int return type and parameter list to the definition of main.
328 Include <stdlib.h> and <string.h> for prototypes.
329 (ac_cv_c_stack_direction): Add missing
330 int return type and parameter list to the definitions of
331 main, find_stack_direction. Include <stdlib.h> for exit
332 prototype.
333 * configure: Regenerate.
334
335 2022-10-14 Jakub Jelinek <jakub@redhat.com>
336
337 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increment.
338 * cp-demangle.c (cplus_demangle_builtin_types): Add std::bfloat16_t
339 entry.
340 (cplus_demangle_type): Demangle DF16b.
341 * testsuite/demangle-expected (_Z3xxxDF16b): New test.
342
343 2022-10-11 Nathan Sidwell <nathan@acm.org>
344
345 * cp-demangle.c (d_prefix): 'M' components are not
346 (re-)added to the substitution table.
347 * testsuite/demangle-expected: Add tests.
348
349 2022-10-07 Nathan Sidwell <nathan@acm.org>
350
351 * cp-demangle.c (d_print_comp_inner): Allow parameter packs
352 in a lambda signature.
353 * testsuite/demangle-expected: Add tests.
354
355 2022-09-27 Jakub Jelinek <jakub@redhat.com>
356
357 PR c++/106652
358 PR c++/85518
359 * cp-demangle.c (d_dump): Handle
360 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Don't handle
361 DEMANGLE_COMPONENT_FIXED_TYPE.
362 (d_make_extended_builtin_type): New function.
363 (cplus_demangle_builtin_types): Add _Float entry.
364 (cplus_demangle_type): For DF demangle it as _Float<N> or
365 _Float<N>x rather than fixed point which conflicts with it.
366 (d_count_templates_scopes): Handle
367 DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE. Just break; for
368 DEMANGLE_COMPONENT_FIXED_TYPE.
369 (d_find_pack): Handle DEMANGLE_COMPONENT_EXTENDED_BUILTIN_TYPE.
370 Don't handle DEMANGLE_COMPONENT_FIXED_TYPE.
371 (d_print_comp_inner): Likewise.
372 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Bump.
373 * testsuite/demangle-expected: Replace _Z3xxxDFyuVb test
374 with _Z3xxxDF16_DF32_DF64_DF128_CDF16_Vb. Add
375 _Z3xxxDF32xDF64xDF128xCDF32xVb test.
376
377 2022-09-22 Jonathan Wakely <jwakely@redhat.com>
378
379 * README: Replace gcc-bugs email address with Bugzilla URL.
380
381 2022-08-25 Martin Liska <mliska@suse.cz>
382
383 * configure: Regenerate.
384
385 2022-07-22 Martin Liska <mliska@suse.cz>
386
387 PR other/106370
388 * _doprnt.c: Remove continue as last stmt
389 in a loop.
390
391 2022-07-14 Martin Liska <mliska@suse.cz>
392
393 * functions.texi: Replace strtoul with strtoull.
394
395 2022-07-04 Nick Clifton <nickc@redhat.com>
396
397 * rust-demangle.c (demangle_const): Add a missing goto pass_return
398 at the end of the function.
399
400 2022-07-04 Nick Clifton <nickc@redhat.com>
401
402 * rust-demangle.c (demangle_path_maybe_open_generics): Add
403 recursion limit.
404
405 2022-07-01 Nick Clifton <nickc@redhat.com>
406
407 PR demangler/105039
408 * rust-demangle.c (demangle_const): Add recursion limit.
409
410 2022-06-26 Simon Marchi <simon.marchi@efficios.com>
411
412 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
413 * configure: Re-generate.
414
415 2022-05-23 Nathan Sidwell <nathan@acm.org>
416
417 * cp-demangle.c (d_make_comp): Adjust.
418 (d_name, d_prefix): Adjust subst handling. Add module handling.
419 (d_maybe_module_name): New.
420 (d_unqualified_name): Add incoming module parm. Handle it. Adjust all callers.
421 (d_special_name): Add 'GI' support.
422 (d_count_template_scopes): Adjust.
423 (d_print_comp_inner): Print module.
424 * testsuite/demangle-expected: New test cases
425
426 2022-05-18 Nathan Sidwell <nathan@acm.org>
427
428 * cp-demangle.c (d_name): Add SUBSTABLE parameter,
429 push substitution if requested. Adjust unscoped name handling.
430 (d_prefix): Reorder main loop. Adjust all calls.
431 (d_unqualified_name): Add SCOPE parameter, create qualified
432 name here. Adjust all calls.
433 (cplus_demangle_type): Do not handle 'S' here, leave all
434 to d_class_enum_type.
435 (d_class_enum_type): Add SUBSTABLE parameter.
436
437 2022-05-17 Nathan Sidwell <nathan@acm.org>
438
439 * cp-demangle.c (d_make_comp): Adjust.
440 (d_unqualified_name): Add 'DC' support.
441 (d_count_template_scopes): Adjust.
442 (d_print_comp_inner): Add structured binding.
443 * testsuite/demangle-expected: Add testcases.
444
445 2022-05-10 Martin Liska <mliska@suse.cz>
446
447 * regex.c: Restore comments.
448
449 2022-05-10 Martin Liska <mliska@suse.cz>
450 Alan Modra <amodra@gmail.com>
451
452 * hashtab.c (htab_empty): Use void * type instead of void **.
453 (htab_expand): Likewise.
454
455 2022-05-10 Martin Liska <mliska@suse.cz>
456
457 * random.c: Remove 'define PTR'.
458
459 2022-05-10 Martin Liska <mliska@suse.cz>
460
461 * alloca.c (C_alloca): Use void * instead PTR.
462 * calloc.c (malloc): Likewise.
463 (bzero): Likewise.
464 (calloc): Likewise.
465 * hashtab.c (find_empty_slot_for_expand): Likewise.
466 (eq_pointer): Likewise.
467 (htab_create_alloc_ex): Likewise.
468 (htab_create_typed_alloc): Likewise.
469 (htab_set_functions_ex): Likewise.
470 (htab_delete): Likewise.
471 (htab_empty): Likewise.
472 (htab_expand): Likewise.
473 (htab_find_with_hash): Likewise.
474 (htab_find): Likewise.
475 (htab_find_slot_with_hash): Likewise.
476 (htab_find_slot): Likewise.
477 (htab_remove_elt): Likewise.
478 (htab_remove_elt_with_hash): Likewise.
479 (htab_clear_slot): Likewise.
480 (htab_traverse_noresize): Likewise.
481 (htab_traverse): Likewise.
482 (htab_hash_string): Likewise.
483 (iterative_hash): Likewise.
484 (hash_pointer): Likewise.
485 * memchr.c (memchr): Likewise.
486 * memcmp.c (memcmp): Likewise.
487 * memcpy.c (memcpy): Likewise.
488 * memmove.c (memmove): Likewise.
489 * mempcpy.c (memcpy): Likewise.
490 (mempcpy): Likewise.
491 * memset.c (memset): Likewise.
492 * objalloc.c (malloc): Likewise.
493 (free): Likewise.
494 (objalloc_create): Likewise.
495 (_objalloc_alloc): Likewise.
496 (objalloc_free_block): Likewise.
497 * random.c (PTR): Likewise.
498 (void): Likewise.
499 (initstate): Likewise.
500 (setstate): Likewise.
501 * regex.c: Likewise.
502 * spaces.c (malloc): Likewise.
503 (free): Likewise.
504 * stpcpy.c (memcpy): Likewise.
505 * strdup.c (malloc): Likewise.
506 (memcpy): Likewise.
507 * strerror.c (malloc): Likewise.
508 (memset): Likewise.
509 * strndup.c (malloc): Likewise.
510 (memcpy): Likewise.
511 * strsignal.c (malloc): Likewise.
512 (memset): Likewise.
513 * vasprintf.c (malloc): Likewise.
514 * vprintf-support.c: Likewise.
515 * xatexit.c (malloc): Likewise.
516 * xmalloc.c (xmalloc): Likewise.
517 (xcalloc): Likewise.
518 (xrealloc): Likewise.
519 * xmemdup.c (xmemdup): Likewise.
520
521 2022-03-19 Tiezhu Yang <yangtiezhu@loongson.cn>
522
523 * floatformat.c (floatformat_ieee_quad_big): Renamed from
524 floatformat_ia64_quad_big.
525 (floatformat_ieee_quad_little): Similarly.
526
527 2022-02-22 Jakub Jelinek <jakub@redhat.com>
528
529 PR lto/104617
530 * simple-object-elf.c (simple_object_elf_match): Fix up URL
531 in comment.
532 (simple_object_elf_copy_lto_debug_sections): Remap sh_info and
533 sh_link even if they are in the SHN_LORESERVE .. SHN_HIRESERVE
534 range (inclusive).
535
536 2022-02-17 Mark Wielaard <mark@klomp.org>
537
538 * rust-demangle.c (rust_demangle_callback): Ignore everything
539 after '.' char in sym for v0. For legacy symbols search
540 backwards to find the last 'E' before any '.'.
541 * testsuite/rust-demangle-expected: Add new .suffix testcases.
542
543 2022-01-31 Nick Clifton <nickc@redhat.com>
544
545 PR demangler/98886
546 PR demangler/99935
547 * rust-demangle.c (struct rust_demangler): Add a recursion
548 counter.
549 (demangle_path): Increment/decrement the recursion counter upon
550 entry and exit. Fail if the counter exceeds a fixed limit.
551 (demangle_type): Likewise.
552 (rust_demangle_callback): Initialise the recursion counter,
553 disabling if requested by the option flags.
554
555 2022-01-15 Martin Sebor <msebor@redhat.com>
556
557 * regex.c: Suppress -Wuse-after-free.
558
559 2021-12-30 Lancelot SIX <lsix@lancelotsix.com>
560
561 * cp-demangle.c (d_clone_suffix): Support digits in clone tag
562 names.
563 * testsuite/demangle-expected: Check demangling of clone symbols
564 with digits in name.
565
566 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
567
568 Revert:
569 2021-12-16 H.J. Lu <hjl.tools@gmail.com>
570
571 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
572 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
573 (configure_deps): Depend on ../config/gcc-plugin.m4.
574 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
575 RANLIB_PLUGIN_OPTION.
576 * aclocal.m4: Regenerated.
577 * configure: Likewise.
578
579 2021-12-15 H.J. Lu <hjl.tools@gmail.com>
580
581 * Makefile.in (AR): Add @AR_PLUGIN_OPTION@
582 (RANLIB): Add @RANLIB_PLUGIN_OPTION@.
583 (configure_deps): Depend on ../config/gcc-plugin.m4.
584 * configure.ac: AC_SUBST AR_PLUGIN_OPTION and
585 RANLIB_PLUGIN_OPTION.
586 * aclocal.m4: Regenerated.
587 * configure: Likewise.
588
589 2021-11-29 Eric Gallager <egallager@gcc.gnu.org>
590
591 PR other/103021
592 * Makefile.in: Use ETAGS variable in TAGS target.
593 * configure: Regenerate.
594 * configure.ac: Allow ETAGS variable to be overridden.
595
596 2021-11-29 Andrew Pinski <apinski@marvell.com>
597
598 * make-temp-file.c (try_dir): Check to see if the dir
599 is actually a directory.
600
601 2021-10-22 Eric Gallager <egallager@gcc.gnu.org>
602
603 PR other/102663
604 * Makefile.in: Allow dvi-formatted documentation
605 to be installed.
606
607 2021-10-17 Luís Ferreira <contact@lsferreira.net>
608
609 PR d/102618
610 * d-demangle.c (dlang_parse_qualified): Handle anonymous
611 symbols correctly.
612 * testsuite/d-demangle-expected: New tests to cover anonymous
613 symbols.
614
615 2021-10-14 Luís Ferreira <contact@lsferreira.net>
616
617 * testsuite/d-demangle-expected: Add test case for function literals.
618
619 2021-10-14 Luís Ferreira <contact@lsferreira.net>
620
621 * testsuite/d-demangle-expected: Add test cases for simple special
622 mangles.
623
624 2021-10-12 Luís Ferreira <contact@lsferreira.net>
625
626 * d-demangle.c (dlang_parse_qualified): Remove redudant parenthesis
627 around lhs and rhs of assignments.
628
629 2021-10-01 Luís Ferreira <contact@lsferreira.net>
630
631 * testsuite/d-demangle-expected: Add missing format for new test
632
633 2021-09-23 Luís Ferreira <contact@lsferreira.net>
634
635 * d-demangle.c (dlang_Type): Validate MANGLED is nonnull.
636 * testsuite/d-demangle-expected: New test.
637
638 2021-09-23 Luís Ferreira <contact@lsferreira.net>
639
640 * d-demangle.c (dlang_symbol_backref): Ensure strlen of
641 string is less than length computed by dlang_number.
642
643 2021-09-01 Iain Sandoe <iain@sandoe.co.uk>
644
645 * configure: Regenerate.
646 * configure.ac: Do not search for sbrk on Darwin.
647 * xmalloc.c: Do not declare sbrk unless it has been found
648 by configure.
649
650 2021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
651
652 * d-demangle.c (dlang_identifier): Skip over fake parent manglings.
653 * testsuite/d-demangle-expected: Add tests.
654
655 2021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
656
657 * d-demangle.c (dlang_parse_arrayliteral): Add 'info' parameter.
658 (dlang_parse_assocarray): Likewise.
659 (dlang_parse_structlit): Likewise.
660 (dlang_value): Likewise. Handle function literal symbols.
661 (dlang_template_args): Pass 'info' to dlang_value.
662 * testsuite/d-demangle-expected: Add new test.
663
664 2021-08-29 Iain Buclaw <ibuclaw@gdcproject.org>
665
666 * d-demangle.c (dlang_attributes): Handle typeof(*null).
667 (dlang_type): Likewise. Demangle 'n' as typeof(null).
668 * testsuite/d-demangle-expected: Update tests.
669
670 2021-08-23 Iain Sandoe <iain@sandoe.co.uk>
671
672 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
673 Cast the first argument to set_32 as needed.
674
675 2021-08-18 Iain Sandoe <iain@sandoe.co.uk>
676
677 * simple-object-mach-o.c (simple_object_mach_o_write_segment):
678 Arrange to swap the LTO index tables where needed.
679
680 2021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
681
682 * make-temp-file.c (usrtmp): Remove.
683 (choose_tmpdir): Remove use of usrtmp.
684
685 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
686
687 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
688
689 2021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
690 David Faust <david.faust@oracle.com>
691 Jose E. Marchesi <jose.marchesi@oracle.com>
692 Weimin Pan <weimin.pan@oracle.com>
693
694 * simple-object.c (handle_lto_debug_sections): Copy over .ctf
695 sections.
696
697 2021-06-05 John David Anglin <danglin@gcc.gnu.org>
698
699 PR target/100734
700 * configure.ac: Use libiberty snprintf and vsnprintf on
701 hppa*-*-hpux*.
702 * configure: Regenerate.
703
704 2021-05-06 Tom Tromey <tom@tromey.com>
705
706 * hashtab.c (htab_eq_string): New function.
707
708 2021-05-04 Eric Botcazou <ebotcazou@adacore.com>
709
710 * configure.ac: Make test for variables more robust.
711 * configure: Regenerate.
712
713 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
714
715 PR bootstrap/99703
716 * configure: Regenerated.
717
718 2021-04-21 Andreas Schwab <schwab@linux-m68k.org>
719
720 PR demangler/100177
721 * rust-demangle.c (demangle_const_char): Properly print the
722 character value.
723
724 2021-03-31 Patrick Palka <ppalka@redhat.com>
725
726 PR c++/88115
727 * cp-demangle.c (d_dump, d_make_comp, d_expression_1)
728 (d_count_templates_scopes): Handle DEMANGLE_COMPONENT_VENDOR_EXPR.
729 (d_print_comp_inner): Likewise.
730 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Revert r11-4926
731 change.
732 <case DEMANGLE_COMPONENT_UNARY>: Likewise.
733 * testsuite/demangle-expected: Adjust __alignof__ tests.
734
735 2021-03-16 Nick Clifton <nickc@redhat.com>
736
737 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
738
739 2021-02-20 Mike Frysinger <vapier@gentoo.org>
740
741 * Makefile.in (ACLOCAL, ACLOCAL_AMFLAGS, $(srcdir)/aclocal.m4): Define.
742 (configure_deps): Rename to ...
743 (aclocal_deps): ... this. Replace aclocal.m4 with acinclude.m4.
744 ($(srcdir)/configure): Replace $(configure_deps) with
745 $(srcdir)/aclocal.m4.
746 * aclocal.m4: Move libiberty macros to acinclude.m4, then regenerate.
747 * acinclude.m4: New file.
748 * configure: Regenerate.
749
750 2021-02-19 Ayush Mittal <ayush.m@samsung.com>
751
752 * argv.c (expandargv): free allocated buffer if read fails.
753
754 2021-02-01 Martin Sebor <msebor@redhat.com>
755
756 * dyn-string.c (dyn_string_insert_cstr): Use memcpy instead of strncpy
757 to avoid -Wstringop-truncation.
758
759 2021-01-04 Martin Liska <mliska@suse.cz>
760
761 * strverscmp.c: Convert to utf8 from iso8859.
762
763 2020-12-22 Jason Merrill <jason@redhat.com>
764
765 PR c++/67343
766 * cp-demangle.h (struct d_info): Add unresolved_name_state.
767 * cp-demangle.c (d_prefix): Add subst parm.
768 (d_nested_name): Pass it.
769 (d_unresolved_name): Split out from...
770 (d_expression_1): ...here.
771 (d_demangle_callback): Maybe retry with old sr mangling.
772 * testsuite/demangle-expected: Add test.
773
774 2020-12-21 Jason Merrill <jason@redhat.com>
775
776 * cp-demangle.c (d_expression_1): Recognize qualified-id
777 on RHS of dt/pt.
778 * testsuite/demangle-expected: Add test.
779
780 2020-12-21 Jason Merrill <jason@redhat.com>
781
782 * cp-demangle.c (d_unqualified_name): Clear is_expression.
783 * testsuite/demangle-expected: Add tests.
784
785 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
786
787 * configure: Regenerate.
788 * configure.ac: Avoid using sanitizer.
789
790 2020-11-13 Eduard-Mihai Burtescu <eddyb@lyken.rs>
791
792 * rust-demangle.c (struct rust_demangler): Add
793 skipping_printing and bound_lifetime_depth fields.
794 (eat): Add (v0-only).
795 (parse_integer_62): Add (v0-only).
796 (parse_opt_integer_62): Add (v0-only).
797 (parse_disambiguator): Add (v0-only).
798 (struct rust_mangled_ident): Add punycode{,_len} fields.
799 (parse_ident): Support v0 identifiers.
800 (print_str): Respect skipping_printing.
801 (print_uint64): Add (v0-only).
802 (print_uint64_hex): Add (v0-only).
803 (print_ident): Respect skipping_printing,
804 Support v0 identifiers.
805 (print_lifetime_from_index): Add (v0-only).
806 (demangle_binder): Add (v0-only).
807 (demangle_path): Add (v0-only).
808 (demangle_generic_arg): Add (v0-only).
809 (demangle_type): Add (v0-only).
810 (demangle_path_maybe_open_generics): Add (v0-only).
811 (demangle_dyn_trait): Add (v0-only).
812 (demangle_const): Add (v0-only).
813 (demangle_const_uint): Add (v0-only).
814 (basic_type): Add (v0-only).
815 (rust_demangle_callback): Support v0 symbols.
816 * testsuite/rust-demangle-expected: Add v0 testcases.
817
818 2020-11-13 Seija Kijin <doremylover456@gmail.com>
819
820 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
821
822 2020-11-11 Patrick Palka <ppalka@redhat.com>
823
824 PR c++/88115
825 * cp-demangle.c (d_print_comp_inner)
826 <case DEMANGLE_COMPONENT_EXTENDED_OPERATOR>: Don't print the
827 "operator " prefix for __alignof__.
828 <case DEMANGLE_COMPONENT_UNARY>: Always print parens around the
829 operand of __alignof__.
830 * testsuite/demangle-expected: Test demangling for __alignof__.
831
832 2020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
833
834 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
835
836 2020-10-06 Martin Liska <mliska@suse.cz>
837
838 PR lto/97290
839 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
840 Use sh_link of a .symtab_shndx section.
841
842 2020-09-24 Mark Wielaard <mark@klomp.org>
843
844 * dwarfnames.c (get_DW_UT_name): Define using DW_UT_FIRST, DW_UT
845 and DW_UT_END.
846
847 2020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
848
849 * floatformat.c (floatformat_bfloat16_big): New.
850 (floatformat_bfloat16_little): New.
851
852 2020-09-08 Alan Modra <amodra@gmail.com>
853
854 * d-demangle.c: Include limits.h.
855 (ULONG_MAX, UINT_MAX): Provide fall-back definition.
856 (dlang_number): Simplify and correct overflow test. Only
857 write *ret on returning non-NULL. Make "ret" an unsigned long*.
858 Only succeed for result of [0,UINT_MAX].
859 (dlang_decode_backref): Simplify and correct overflow test.
860 Only write *ret on returning non-NULL. Only succeed for
861 result [1,MAX_LONG].
862 (dlang_backref): Remove now unnecessary range check.
863 (dlang_symbol_name_p): Likewise.
864 (string_need): Take a size_t n arg, and use size_t tem.
865 (string_append): Use size_t n.
866 (string_appendn, string_prependn): Take a size_t n arg.
867 (TEMPLATE_LENGTH_UNKNOWN): Define as -1UL.
868 (dlang_lname, dlang_parse_template): Take an unsigned long len
869 arg.
870 (dlang_symbol_backref, dlang_identifier, dlang_parse_integer),
871 (dlang_parse_integer, dlang_parse_string),
872 (dlang_parse_arrayliteral, dlang_parse_assocarray),
873 (dlang_parse_structlit, dlang_parse_tuple),
874 (dlang_template_symbol_param, dlang_template_args): Use
875 unsigned long variables.
876 * testsuite/d-demangle-expected: Add new tests.
877
878 2020-08-26 Iain Buclaw <ibuclaw@gdcproject.org>
879
880 * d-demangle.c (dlang_function_args): Handle 'in' and 'in ref'
881 parameter storage classes.
882 (dlang_type): Remove identifier type.
883 * testsuite/d-demangle-expected: Update tests.
884
885 2020-08-03 Richard Biener <rguenther@suse.de>
886
887 PR lto/96385
888 * simple-object-elf.c
889 (simple_object_elf_copy_lto_debug_sections): Localize global
890 UNDEFs and reuse the prevailing name.
891
892 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
893
894 PR bootstrap/96202
895 * configure: Regenerated.
896
897 2020-07-14 Ian Lance Taylor <iant@golang.org>
898
899 PR demangler/96143
900 * cp-demangle.c (d_lambda): Don't add substitution candidate.
901 * testsuite/demangle-expected: Update a few existing test cases
902 accordingly, and add a new test case.
903
904 2020-07-10 Jason Merrill <jason@redhat.com>
905
906 * cp-demangle.c (cplus_demangle_operators): Add di, dx, dX.
907 (d_expression_1): Handle di and dX.
908 (is_designated_init, d_maybe_print_designated_init): New.
909 (d_print_comp_inner): Use d_maybe_print_designated_init.
910 * testsuite/demangle-expected: Add designator tests.
911
912 2020-06-26 Nick Clifton <nickc@redhat.com>
913
914 * bsearch.c (bsearch): Remove use of register keyword.
915 * bsearch_r.c (bsearch_r): Likewise.
916
917 2020-06-23 Nick Alcock <nick.alcock@oracle.com>
918
919 * bsearch_r.c: New file.
920 * Makefile.in (CFILES): Add bsearch_r.c.
921 (REQUIRED_OFILES): Add bsearch_r.o.
922 * functions.texi: Regenerate.
923
924 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
925
926 PR bootstrap/95413
927 * configure: Regenerated.
928
929 2020-05-15 Iain Buclaw <ibuclaw@gdcproject.org>
930
931 * d-demangle.c (dlang_attributes): Add @live attribute.
932 * testsuite/d-demangle-expected: Add new tests.
933
934 2020-05-14 Rainer Schuetze <r.sagitario@gmx.de>
935 Iain Buclaw <ibuclaw@gdcproject.org>
936
937 * d-demangle.c (enum dlang_symbol_kinds): Remove enum.
938 (struct dlang_info): New struct
939 (dlang_decode_backref): New function.
940 (dlang_backref): New function.
941 (dlang_symbol_backref): New function.
942 (dlang_type_backref): New function.
943 (dlang_symbol_name_p): New function.
944 (dlang_function_type_noreturn): New function.
945 (dlang_function_type): Add 'info' parameter. Decode function type
946 with dlang_function_type_noreturn.
947 (dlang_function_args): Add 'info' parameter.
948 (dlang_type): Add 'info' parameter. Handle back referenced types.
949 (dlang_identifier): Replace 'kind' parameter with 'info'. Handle back
950 referenced symbols. Split off decoding of plain identifiers to...
951 (dlang_lname): ...here.
952 (dlang_parse_mangle): Replace 'kind' parameter with 'info'. Decode
953 function type and return with dlang_type.
954 (dlang_parse_qualified): Replace 'kind' parameter with 'info', add
955 'suffix_modifier' parameter. Decode function type with
956 dlang_function_type_noreturn.
957 (dlang_parse_tuple): Add 'info' parameter.
958 (dlang_template_symbol_param): New function.
959 (dlang_template_args): Add 'info' parameter. Decode symbol parameter
960 with dlang_template_symbol_param. Handle back referenced values, and
961 externally mangled parameters.
962 (dlang_parse_template): Add 'info' parameter.
963 (dlang_demangle_init_info): New function.
964 (dlang_demangle): Initialize and pass 'info' parameter.
965 * testsuite/d-demangle-expected: Add new tests.
966
967 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
968
969 PR bootstrap/94998
970 * configure: Regenerated.
971
972 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR bootstrap/94739
975 * configure: Regenerated.
976
977 2020-04-27 Jakub Jelinek <jakub@redhat.com>
978
979 PR demangler/94797
980 * cp-demangle.c (cplus_demangle_operators): Add ss <=> operator.
981 * testsuite/demangle-expected: Add operator<=> test.
982
983 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
984
985 PR bootstrap/94739
986 * Makefile.in (COMPILE.c): Add @CET_HOST_FLAGS@.
987 (configure_deps): Add $(srcdir)/../config/cet.m4 and
988 $(srcdir)/../config/enable.m4.
989 * aclocal.m4: Include ../config/cet.m4 and ../config/enable.m4.
990 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
991 AC_SUBST(CET_HOST_FLAGS).
992 * configure: Regenerated.
993
994 2020-03-05 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com>
995
996 * simple-object.c (handle_lto_debug_sections): Name
997 ".GCC.command.line" among debug sections to be copied over
998 from lto objects.
999
1000 2020-03-02 Nick Clifton <nickc@redhat.com>
1001
1002 * testsuite/demangle-expected: Update expected demangling of
1003 enable_if pattern.
1004
1005 2020-03-02 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 PR lto/93966
1008 * simple-object.c (handle_lto_debug_sections): Also copy
1009 .note.gnu.property section.
1010
1011 2020-02-12 Sandra Loosemore <sandra@codesourcery.com>
1012
1013 PR libstdc++/79193
1014 PR libstdc++/88999
1015
1016 * configure: Regenerated.
1017
1018 2020-02-05 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * hashtab.c (htab_remove_elt): Make a parameter const.
1021 (htab_remove_elt_with_hash): Likewise.
1022
1023 2020-01-23 Alexandre Oliva <oliva@adacore.com>
1024
1025 * argv.c (writeargv): Output empty args as "".
1026
1027 2020-01-01 Jakub Jelinek <jakub@redhat.com>
1028
1029 Update copyright years.
1030
1031 2019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
1032
1033 * make-relative-prefix.c (split_directories):
1034 Return early on empty 'name'
1035
1036 2019-11-16 Tim Ruehsen <tim.ruehsen@gmx.de>
1037
1038 * cp-demangle.c (d_print_init): Remove const from 4th param.
1039 (cplus_demangle_fill_name): Initialize d->d_counting.
1040 (cplus_demangle_fill_extended_operator): Likewise.
1041 (cplus_demangle_fill_ctor): Likewise.
1042 (cplus_demangle_fill_dtor): Likewise.
1043 (d_make_empty): Likewise.
1044 (d_count_templates_scopes): Remobe const from 3rd param,
1045 Return on dc->d_counting > 1,
1046 Increment dc->d_counting.
1047 * cp-demint.c (cplus_demangle_fill_component): Initialize d->d_counting.
1048 (cplus_demangle_fill_builtin_type): Likewise.
1049 (cplus_demangle_fill_operator): Likewise.
1050
1051 2019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1052
1053 * cplus-dem.c (cplus_demangle): Use rust_demangle directly.
1054 (rust_demangle): Remove.
1055 * rust-demangle.c (is_prefixed_hash): Rename to is_legacy_prefixed_hash.
1056 (parse_lower_hex_nibble): Rename to decode_lower_hex_nibble.
1057 (parse_legacy_escape): Rename to decode_legacy_escape.
1058 (rust_is_mangled): Remove.
1059 (struct rust_demangler): Add.
1060 (peek): Add.
1061 (next): Add.
1062 (struct rust_mangled_ident): Add.
1063 (parse_ident): Add.
1064 (rust_demangle_sym): Remove.
1065 (print_str): Add.
1066 (PRINT): Add.
1067 (print_ident): Add.
1068 (rust_demangle_callback): Add.
1069 (struct str_buf): Add.
1070 (str_buf_reserve): Add.
1071 (str_buf_append): Add.
1072 (str_buf_demangle_callback): Add.
1073 (rust_demangle): Add.
1074 * rust-demangle.h: Remove.
1075
1076 2019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
1077
1078 * testsuite/demangle-expected: Fix test.
1079
1080 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
1081
1082 * cp-demangle.c (d_expr_primary): Handle
1083 nullptr demangling.
1084 * testsuite/demangle-expected: Added test.
1085
1086 2019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
1087
1088 * cp-demangle.c (d_number): Avoid signed int overflow.
1089
1090 2019-10-28 Miguel Saldivar <saldivarcher@gmail.com>
1091
1092 * cp-demangle.c (d_print_mod): Add a space before printing `complex`
1093 and `imaginary`, as opposed to after.
1094 * testsuite/demangle-expected: Adjust test.
1095
1096 2019-10-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1097
1098 * rust-demangle.c (looks_like_rust): Remove.
1099 (rust_is_mangled): Don't check escapes.
1100 (is_prefixed_hash): Allow 0-9a-f permutations.
1101 (rust_demangle_sym): Don't bail on unknown escapes.
1102 * testsuite/rust-demangle-expected: Update 'main::$99$' test.
1103
1104 2019-09-03 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1105
1106 * rust-demangle.c (unescape): Remove.
1107 (parse_lower_hex_nibble): New function.
1108 (parse_legacy_escape): New function.
1109 (is_prefixed_hash): Use parse_lower_hex_nibble.
1110 (looks_like_rust): Use parse_legacy_escape.
1111 (rust_demangle_sym): Use parse_legacy_escape.
1112 * testsuite/rust-demangle-expected: Add 'llv$u6d$' test.
1113
1114 2019-08-27 Martin Liska <mliska@suse.cz>
1115
1116 PR lto/91478
1117 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1118 First find a WEAK HIDDEN symbol in symbol table that will be
1119 preserved. Later, use the symbol name for all removed symbols.
1120
1121 2019-08-12 Martin Liska <mliska@suse.cz>
1122
1123 * Makefile.in: Add filedescriptor.c.
1124 * filedescriptor.c: New file.
1125 * lrealpath.c (is_valid_fd): Remove.
1126
1127 2019-08-08 Martin Liska <mliska@suse.cz>
1128
1129 PR bootstrap/91352
1130 * lrealpath.c (is_valid_fd): New function.
1131
1132 2019-07-24 Martin Liska <mliska@suse.cz>
1133
1134 PR lto/91228
1135 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1136 Find first '\0' starting from gnu_lto + 1.
1137
1138 2019-07-12 Ren Kimura <rkx1209dev@gmail.com>
1139
1140 * simple-object-elf.c (simple_object_elf_match): Check zero value shstrndx.
1141 This fixes a Bug 90924.
1142
1143 2019-07-22 Martin Liska <mliska@suse.cz>
1144
1145 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1146 Do not search for gnu_lto_v1, but search for first '\0'.
1147
1148 2019-07-18 Eduard-Mihai Burtescu <eddyb@lyken.rs>
1149
1150 * cplus-dem.c: Include rust-demangle.h.
1151 * rust-demangle.c: Include rust-demangle.h.
1152 * rust-demangle.h: New file.
1153
1154 2019-05-31 Michael Forney <mforney@mforney.org>
1155
1156 * cp-demangle.c: Don't define CP_DYNAMIC_ARRAYS if __STDC_NO_VLA__
1157 is non-zero.
1158
1159 2019-04-30 Ben L <bobsayshilol@live.co.uk>
1160
1161 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1162 * testsuite/d-demangle-expected: Add testcase.
1163
1164 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1165 * testsuite/d-demangle-expected: Add testcase.
1166
1167 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1168 * testsuite/d-demangle-expected: Add testcase.
1169
1170 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1171 * testsuite/d-demangle-expected: Add testcase.
1172
1173 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1174 * testsuite/d-demangle-expected: Add testcase.
1175
1176 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1177 * testsuite/demangle-expected: Add testcase.
1178
1179 * cp-demangle.c (d_encoding): Guard against NULL return values from
1180 d_right (dc).
1181 * testsuite/demangle-expected: Add testcase.
1182
1183 2019-04-29 Ben L <bobsayshilol@live.co.uk>
1184
1185 * cp-demangle.c (d_expression_1): Don't peek ahead unless the current
1186 char is valid.
1187 * testsuite/demangle-expected: Add testcase.
1188
1189 2019-04-10 Nick Clifton <nickc@redhat.com>
1190
1191 PR 89394
1192 * cp-demangle.c (cplus_demangle_fill_name): Reject negative
1193 lengths.
1194 (d_count_templates_scopes): Replace num_templates and num_scopes
1195 parameters with a struct d_print_info pointer parameter. Adjust
1196 body of the function accordingly. Add recursion counter and check
1197 that the recursion limit is not reached.
1198 (d_print_init): Pass dpi parameter to d_count_templates_scopes.
1199 Reset recursion counter afterwards, unless the recursion limit was
1200 reached.
1201
1202 2019-04-07 Alan Modra <amodra@gmail.com>
1203
1204 * functions.texi: Regenerate.
1205
1206 2019-03-14 Jason Merrill <jason@redhat.com>
1207 Jakub Jelinek <jakub@redhat.com>
1208
1209 * hashtab.c (htab_remove_elt_with_hash): Return if slot is NULL rather
1210 than if *slot is HTAB_EMPTY_ENTRY.
1211
1212 2019-02-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1213
1214 * splay-tree.c (splay_tree_insert): Also release old KEY in case
1215 of insertion of a key equal to an already present key.
1216 (splay_tree_new_typed_alloc): Update comment.
1217
1218 2019-01-22 Nidal Faour <nidal.faour@wdc.com>
1219
1220 PR lto/88422
1221 * simple-object.c (O_BINARY): Define if not already defined.
1222 (simple_object_copy_lto_debug_sections): Create file in binary
1223 mode.
1224
1225 2019-01-21 Tom Tromey <tom@tromey.com>
1226
1227 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1228
1229 2019-01-14 Tom Honermann <tom@honermann.net>
1230
1231 * cp-demangle.c (cplus_demangle_builtin_types)
1232 (cplus_demangle_type): Add name demangling for char8_t (Du).
1233 * cp-demangle.h: Increase D_BUILTIN_TYPE_COUNT to accommodate the
1234 new char8_t type.
1235
1236 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
1237
1238 PR other/16615
1239
1240 * cp-demangle.c: Mechanically replace "can not" with "cannot".
1241 * floatformat.c: Likewise.
1242 * strerror.c: Likewise.
1243
1244 2019-01-01 Jakub Jelinek <jakub@redhat.com>
1245
1246 Update copyright years.
1247
1248 2018-12-22 Jason Merrill <jason@redhat.com>
1249
1250 Remove support for demangling GCC 2.x era mangling schemes.
1251 * cplus-dem.c: Remove cplus_mangle_opname, cplus_demangle_opname,
1252 internal_cplus_demangle, and all subroutines.
1253 (libiberty_demanglers): Remove entries for ancient GNU (pre-3.0),
1254 Lucid, ARM, HP, and EDG demangling styles.
1255 (cplus_demangle): Remove 'work' variable. Don't call
1256 internal_cplus_demangle.
1257
1258 2018-12-07 Nick Clifton <nickc@redhat.com>
1259
1260 PR 87681
1261 PR 87675
1262 PR 87636
1263 PR 87350
1264 PR 87335
1265 * cp-demangle.h (struct d_info): Add recursion_level field.
1266 * cp-demangle.c (d_function_type): Add recursion counter.
1267 If the recursion limit is reached and the check is not disabled,
1268 then return with a failure result.
1269 (cplus_demangle_init_info): Initialise the recursion_level field.
1270 (d_demangle_callback): If the recursion limit is enabled, check
1271 for a mangled string that is so long that there is not enough
1272 stack space for the local arrays.
1273 * cplus-dem.c (struct work): Add recursion_level field.
1274 (squangle_mop_up): Set the numb and numk fields to zero.
1275 (work_stuff_copy_to_from): Handle the case where a btypevec or
1276 ktypevec field is NULL.
1277 (demangle_nested_args): Add recursion counter. If
1278 the recursion limit is not disabled and reached, return with a
1279 failure result.
1280
1281 2018-10-23 Jason Merrill <jason@redhat.com>
1282
1283 Implement P0732R2, class types in non-type template parameters.
1284 * cp-demangle.c (d_dump, d_make_comp, d_count_templates_scopes)
1285 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_TPARM_OBJ.
1286 (d_special_name): Handle TA.
1287 (d_expresion_1): Fix demangling of brace-enclosed initializer list.
1288
1289 2018-10-31 Joseph Myers <joseph@codesourcery.com>
1290
1291 PR bootstrap/82856
1292 Merge from binutils-gdb:
1293 2018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1294
1295 * configure.ac: Remove AC_PREREQ.
1296 * configure: Re-generate.
1297 * config.in: Re-generate.
1298
1299 2018-10-01 Nathan Sidwell <nathan@acm.org>
1300
1301 * configure.ac (checkfuncs): Add pipe2.
1302 * config.in, configure: Rebuilt.
1303 * pex-unix.c (pex_unix_exec_child): Comminicate errors from child
1304 to parent with a pipe, when possible.
1305
1306 2018-08-23 Nathan Sidwell <nathan@acm.org>
1307 Martin Liska <mliska@suse.cz>
1308
1309 PR driver/87056
1310 * pex-unix.c (pex_unix_exec_child): Duplicate bad_fn into local
1311 scopes to avoid potential clobber.
1312
1313 2018-08-20 Nathan Sidwell <nathan@acm.org>
1314
1315 * pex-unix.c (pex_child_error): Delete.
1316 (pex_unix_exec_child): Commonize error paths to single message &
1317 exit.
1318
1319 2018-07-30 Tom Tromey <tom@tromey.com>
1320
1321 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1322
1323 2018-07-26 Martin Liska <mliska@suse.cz>
1324
1325 PR lto/86548
1326 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1327 (make_temp_file): Call make_temp_file_with_prefix with
1328 first argument set to NULL.
1329 (make_temp_file_with_prefix): Support also prefix.
1330
1331 2018-07-19 Eli Zaretskii <eliz@gnu.org>
1332
1333 * simple-object-elf.c (ENOTSUP): If not defined by errno.h, redirect
1334 to ENOSYS.
1335
1336 2018-05-30 Jan Hubicka <hubicka@ucw.cz>
1337
1338 * simple-object.c (handle_lto_debug_sections): Add rename parameter.
1339 (handle_lto_debug_sections_rename): New function.
1340 (handle_lto_debug_sections_norename): New function.
1341 (simple_object_copy_lto_debug_sections): Add rename parameter.
1342
1343 2018-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
1344
1345 * splay-tree.c (splay_tree_compare_strings,
1346 splay_tree_delete_pointers): New utility functions.
1347
1348 2018-05-10 Martin Liska <mliska@suse.cz>
1349
1350 PR bootstrap/64914
1351 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1352
1353 2018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1354
1355 * argv.c (expandargv): Fix memory leak for copied argv.
1356
1357 2018-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1358
1359 PR lto/81968
1360 * simple-object.c (handle_lto_debug_sections): Keep .comment
1361 section.
1362
1363 2018-03-02 David Malcolm <dmalcolm@redhat.com>
1364
1365 * cp-demangle.c: Update URL for g++ V3 ABI.
1366
1367 2018-01-20 Eli Zaretskii <eliz@gnu.org>
1368
1369 * simple-object-xcoff.c (simple_object_xcoff_find_sections): Use
1370 ulong_type to avoid warning about 32-bit shift.
1371
1372 2018-01-11 Richard Biener <rguenther@suse.de>
1373 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1374
1375 PR lto/81968
1376 * simple-object-common.h (struct simple_object_functions):
1377 Change copy_lto_debug_sections callback signature.
1378 * simple-object-elf.c (SHN_HIRESERVE, SHT_SYMTAB_SHNDX,
1379 SHF_INFO_LINK): Add defines.
1380 (simple_object_elf_copy_lto_debug_sections): Instead of
1381 leaving not to be copied sections empty unnamed SHT_NULL
1382 remove them from the target section headers and adjust section
1383 reference everywhere. Handle SHN_XINDEX in the symbol table
1384 processing properly.
1385 * simple-object.c (handle_lto_debug_sections): Change
1386 interface to return a modified string and handle renaming
1387 of relocation sections.
1388
1389 2018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1390
1391 * argv.c (expandargv): Correct check for dynamically
1392 allocated argv.
1393
1394 2018-01-03 Jakub Jelinek <jakub@redhat.com>
1395
1396 Update copyright years.
1397
1398 2017-01-02 Richard Biener <rguenther@suse.de>
1399
1400 PR lto/83452
1401 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1402 Do not use UNDEF locals for removed symbols but instead just
1403 define them in the first prevailing section and with no name.
1404 Use the same gnu_lto_v1 name for all removed globals we promote to
1405 WEAK UNDEFs so hpux can use a stub to provide this symbol. Clear
1406 sh_info and sh_link in removed sections.
1407
1408 2017-10-30 Richard Biener <rguenther@suse.de>
1409
1410 PR lto/82757
1411 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1412 Strip two leading _s from the __gnu_lto_* symbols.
1413
1414 2017-10-24 Alan Modra <amodra@gmail.com>
1415
1416 PR lto/82687
1417 PR lto/82575
1418 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1419 Only make __gnu_lto symbols hidden.
1420
1421 2017-10-20 Alan Modra <amodra@gmail.com>
1422
1423 PR lto/82575
1424 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1425 Make discarded non-local symbols weak and hidden.
1426
1427 2017-10-18 Jakub Jelinek <jakub@redhat.com>
1428
1429 PR lto/82598
1430 * simple-object.c (handle_lto_debug_sections): Copy over also
1431 .note.GNU-stack section with unchanged name.
1432 * simple-object-elf.c (SHF_EXECINSTR): Define.
1433 (simple_object_elf_copy_lto_debug_section): Drop SHF_EXECINSTR bit
1434 on .note.GNU-stack section.
1435
1436 2017-09-25 Nathan Sidwell <nathan@acm.org>
1437
1438 PR demangler/82195
1439 * cp-demangle.c (d_encoding): Strip return type when name is a
1440 LOCAL_NAME.
1441 (d_local_name): Strip return type of enclosing TYPED_NAME.
1442 * testsuite/demangle-expected: Add and adjust tests.
1443
1444 2017-09-21 Nathan Sidwell <nathan@acm.org>
1445
1446 PR demangler/82195
1447 * cp-demangle.c (d_name): Revert addition of 'toplevel' parm.
1448 (has_return_type): Recurse for DEMANGLE_COMPONENT_LOCAL_NAME.
1449 (d_encoding): Revert d_name change. Use is_fnqual_component_type
1450 to strip modifiers that do not belong.
1451 (d_special_name, d_class_enum_type): Revert d_name call change.
1452 (d_expresion_1): Commonize DEMANGLE_COMPONENT_UNARY building.
1453 (d_local_name): Revert parsing of a function type.
1454 (d_print_comp_inner): An inner LOCAL_NAME might contain a
1455 TEMPLATE.
1456 * testsuite/demangle-expected: Add & adjust tests
1457
1458 2017-09-15 Nathan Sidwell <nathan@acm.org>
1459
1460 PR demangler/82195
1461 * cp-demangle.c (d_name): Add 'toplevel' parm. Pass to ...
1462 (d_local_name): ... here. Parse trailing function args on nested
1463 local_name.
1464 (d_encoding, d_special_name, d_class_enum_type): Adjust d_name calls.
1465 * testsuite/demangle-expected: Add tests.
1466
1467 2017-09-15 Richard Biener <rguenther@suse.de>
1468
1469 PR lto/81968
1470 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1471 Iterate marking dependent sections necessary.
1472
1473 2017-09-15 Nathan Sidwell <nathan@acm.org>
1474
1475 * cp-demangle.c (is_fnqual_component_type): Reimplement using
1476 FNQUAL_COMPONENT_CASE.
1477 (d_encoding): Hold bare_function_type in local var.
1478 (d_local_name): Build name in both cases and build result once.
1479 Collapse switch-if to single conditional.
1480 (d_local_name):
1481
1482 * testsuite/demangle-expected: Realign blank lines with tests.
1483
1484 2017-09-12 Jiong Wang <jiong.wang@arm.com>
1485
1486 * dwarfnames.c (DW_CFA_DUP): New define.
1487
1488 2017-09-01 Martin Liska <mliska@suse.cz>
1489
1490 * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
1491 Remove duplicite declaration.
1492
1493 2017-08-31 Richard Biener <rguenther@suse.de>
1494
1495 PR lto/81968
1496 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1497 Keep names of removed global symbols.
1498
1499 2017-08-29 Tony Reix <tony.reix@atos.net>
1500
1501 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1502 Improve .go_export csect handling. Don't make assumptions
1503 on containing section or number of auxiliary entries.
1504
1505 2017-08-28 Richard Biener <rguenther@suse.de>
1506
1507 PR lto/81968
1508 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
1509 Adjust field with for sh_type write, set SHF_EXCLUDE only for
1510 removed sections.
1511
1512 2017-08-22 Richard Biener <rguenther@suse.de>
1513
1514 PR lto/81925
1515 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
1516 type of sh_addralign and sh_entsize and properly write
1517 sh_entsize as Elf_Addr.
1518 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
1519
1520 2017-08-21 Richard Biener <rguenther@suse.de>
1521
1522 * simple-object-common.h (struct simple_object_functions): Add
1523 copy_lto_debug_sections hook.
1524 * simple-object.c: Include fcntl.h.
1525 (handle_lto_debug_sections): New helper function.
1526 (simple_object_copy_lto_debug_sections): New function copying
1527 early LTO debug sections to regular debug sections in a new file.
1528 (simple_object_start_write): Handle NULL segment_name.
1529 * simple-object-coff.c (simple_object_coff_functions): Adjust
1530 for not implemented copy_lto_debug_sections hook.
1531 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
1532 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
1533 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
1534 SHT_GROUP): Add various sectopn header types.
1535 (SHF_EXCLUDE): Add flag.
1536 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
1537 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
1538 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
1539 (STV_DEFAULT): Add symbol visibility.
1540 (SHN_COMMON): Add special section index name.
1541 (struct simple_object_elf_write): New.
1542 (simple_object_elf_start_write): Adjust for new private data.
1543 (simple_object_elf_write_shdr): Pass in values for all fields
1544 we write.
1545 (simple_object_elf_write_to_file): Adjust. Copy from recorded
1546 section headers if requested.
1547 (simple_object_elf_release_write): Release private data.
1548 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
1549 as denoted by PFN and all their dependences, symbols and relocations
1550 to the empty destination file.
1551 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
1552
1553 2017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1554
1555 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
1556
1557 2017-06-07 Tony Reix <tony.reix@atos.net>
1558 Matthieu Sarter <matthieu.sarter.external@atos.net>
1559 David Edelsohn <dje.gcc@gmail.com>
1560
1561 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
1562 Search symbol table for .go_export symbol and apply pfn if found.
1563
1564 2017-05-31 DJ Delorie <dj@redhat.com>
1565
1566 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
1567 * configure: Likewise.
1568 * config.in: Add HACE_DECL_STRNLEN.
1569
1570 2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1571
1572 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
1573 with `initializer for'.
1574 * testsuite/demangle-expected: Update tests.
1575
1576 2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1577
1578 * d-demangle.c (dlang_call_convention_p): Move declaration
1579 before dlang_type.
1580 (dlang_type): Handle function types.
1581 * testsuite/d-demangle-expected: Add tests.
1582
1583 2017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
1584
1585 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
1586 the demangled hexadecimal directly to string.
1587 * testsuite/d-demangle-expected: Add tests.
1588
1589 2017-05-24 Eli Zaretskii <eliz@gnu.org>
1590
1591 * waitpid.c (wait) [__MINGW32__]: Define as a macro
1592 that calls _cwait, so that this function works on MinGW.
1593
1594 2017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1595
1596 * d-demangle.c (dlang_hexdigit): New function.
1597 (ascii2hex): Remove function.
1598 (dlang_parse_string): Update to call dlang_hexdigit.
1599 * testsuite/d-demangle-expected: Add tests.
1600
1601 2017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1602
1603 * d-demangle.c (strtol): Remove declaration.
1604 Updated all callers to use dlang_number.
1605 (dlang_number): New function.
1606 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
1607 * testsuite/d-demangle-expected: Add tests.
1608
1609 2017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
1610
1611 * d-demangle.c (dlang_parse_symbol): Remove function.
1612 (dlang_parse_qualified): New function.
1613 (dlang_parse_mangle): New function.
1614 (dlang_type): Update to call dlang_parse_qualified.
1615 (dlang_identifier): Update to call either dlang_parse_qualified or
1616 dlang_parse_mangle.
1617 (dlang_type_modifier_p): Remove function.
1618 (dlang_call_convention_p): Don't allow type modifiers in mangle.
1619 (dlang_template_args): Update to call dlang_identifier.
1620 (dlang_demangle): Update to call dlang_parse_mangle.
1621 * testsuite/d-demangle-expected: Add tests.
1622
1623 2017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1624
1625 * d-demangle.c (dlang_value): Add comment explaining why cases for
1626 digits are required.
1627 * testsuite/d-demangle-expected: Update integer value tests.
1628
1629 2017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1630
1631 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
1632 * testsuite/d-demangle-expected: Add tests.
1633
1634 2017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1635
1636 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
1637 (dlang_parse_template): Only advance if template symbol prefix is
1638 followed by a digit.
1639 * testsuite/d-demangle-expected: Add tests.
1640
1641 2017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
1642
1643 * d-demangle.c (dlang_attributes): Handle scope attributes.
1644 * testsuite/d-demangle-expected: Add tests.
1645
1646 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
1647
1648 PR demangler/80513
1649 * cp-demangle.c (d_number): Check for overflow.
1650 * cplus-dem.c (consume_count): Fix overflow check.
1651 (gnu_special): Check for underscore after thunk delta.
1652 * testsuite/demangle-expected: Add tests for overflows and invalid
1653 characters in thunks.
1654
1655 2017-04-21 Mark Wielaard <mark@klomp.org>
1656
1657 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
1658 (struct d_print_info): Add recursion field.
1659 (d_print_init): Initialize recursion.
1660 (d_print_comp): Check and update d_print_info recursion depth.
1661
1662 2017-04-21 Mark Wielaard <mark@klomp.org>
1663
1664 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1665 fails.
1666
1667 2017-04-21 Mark Wielaard <mark@klomp.org>
1668
1669 * cp-demangle.h (struct d_info): Remove did_subs field.
1670 * cp-demangle.c (struct d_info_checkpoint): Likewise.
1671 (d_template_param): Don't update did_subs.
1672 (d_substitution): Likewise.
1673 (d_checkpoint): Don't assign did_subs.
1674 (d_backtrack): Likewise.
1675 (cplus_demangle_init_info): Don't initialize did_subs.
1676
1677 2017-03-27 Pedro Alves <palves@redhat.com>
1678
1679 * cp-demint.c (cplus_demangle_fill_component): Handle
1680 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1681
1682 2017-03-12 Mark Wielaard <mark@klomp.org>
1683
1684 * cp-demangle.c (cplus_demangle_fill_name): Initialize
1685 demangle_component d_printing.
1686 (cplus_demangle_fill_extended_operator): Likewise.
1687 (cplus_demangle_fill_ctor): Likewise.
1688 (cplus_demangle_fill_dtor): Likewise.
1689
1690 2017-03-08 Mark Wielaard <mark@klomp.org>
1691
1692 PR demangler/70909
1693 PR demangler/67264
1694 * cp-demangle.c: Fix endless recursion. Pass
1695 struct demangle_component as non const.
1696 (d_make_empty): Initialize variable.
1697 (d_print_comp_inner): Limit recursion.
1698 (d_print_comp): Decrement variable.
1699 * cp-demint.c (cplus_demangle_fill_component): Initialize
1700 variable.
1701 (cplus_demangle_fill_builtin_type): Likewise.
1702 (cplus_demangle_fill_operator): Likewise.
1703 * testsuite/demangle-expected: Add tests.
1704
1705 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1706
1707 PR PR c++/70182
1708 * cp-demangle.c (d_unqualified_name): Handle "on" for
1709 operator names.
1710 * testsuite/demangle-expected: Add tests.
1711
1712 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
1713
1714 PR c++/77489
1715 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
1716 * testsuite/demangle-expected: Add tests for discriminator.
1717
1718 2017-01-04 Jakub Jelinek <jakub@redhat.com>
1719
1720 Update copyright years.
1721
1722 2017-01-04 Alan Modra <amodra@gmail.com>
1723
1724 * Makefile.in (configure_deps): Update.
1725 * configure: Regenerate.
1726
1727 2016-12-13 Jakub Jelinek <jakub@redhat.com>
1728
1729 PR c++/78761
1730 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
1731 * testsuite/demangle-expected: Add test for decltype(auto).
1732
1733 2016-12-12 Nathan Sidwell <nathan@acm.org>
1734
1735 PR c++/78252
1736 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
1737 (d_print_init): Initialize it.
1738 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
1739 is_lambda_arg for auto.
1740 <DEMANGLE_COMPONENT_REFERENCE,
1741 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
1742 is_lambda_arg.
1743 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
1744 printing.
1745 * testsuite/demangle-expected: Add lambda auto mangling cases.
1746
1747 2016-12-06 DJ Delorie <dj@redhat.com>
1748
1749 * argv.c (expandargv): Check for directories passed as @-files.
1750
1751 2016-11-30 David Malcolm <dmalcolm@redhat.com>
1752
1753 PR c/78498
1754 * strndup.c (strlen): Delete decl.
1755 (strnlen): Add decl.
1756 (strndup): Call strnlen rather than strlen.
1757 * xstrndup.c (xstrndup): Likewise.
1758
1759 2016-11-29 Nathan Sidwell <nathan@acm.org>
1760
1761 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1762
1763 2016-11-03 David Tolnay <dtolnay@gmail.com>
1764 Mark Wielaard <mark@klomp.org>
1765
1766 * Makefile.in (CFILES): Add rust-demangle.c.
1767 (REQUIRED_OFILES): Add rust-demangle.o.
1768 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
1769 (cplus_demangle): Handle RUST_DEMANGLING.
1770 (rust_demangle): New function.
1771 * rust-demangle.c: New file.
1772 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
1773 (check-rust-demangle): New rule.
1774 * testsuite/rust-demangle-expected: New file.
1775
1776 2016-11-15 Mark Wielaard <mark@klomp.org>
1777
1778 * cp-demangle.c (d_expression_1): Make sure third expression
1779 exists for ?: and fold expressions.
1780 * testsuite/demangle-expected: Add examples of strings that could
1781 crash the demangler because of missing expression.
1782
1783 2016-11-14 Mark Wielaard <mark@klomp.org>
1784
1785 * cplus-dem.c (demangle_signature): After 'H', template function,
1786 no success and don't advance position if end of string reached.
1787 (demangle_template): After 'z', template name, return zero on
1788 premature end of string.
1789 (gnu_special): Guard strchr against searching for zero characters.
1790 (do_type): If member, only advance mangled string when 'F' found.
1791 * testsuite/demangle-expected: Add examples of strings that could
1792 crash the demangler by reading past end of input.
1793
1794 2016-11-06 Mark Wielaard <mark@klomp.org>
1795
1796 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1797 * configure: Regenerated.
1798
1799 2016-11-07 Jason Merrill <jason@redhat.com>
1800
1801 * cp-demangle.c (is_fnqual_component_type): New.
1802 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
1803 (FNQUAL_COMPONENT_CASE): New.
1804 (d_make_comp, has_return_type, d_print_comp_inner)
1805 (d_print_function_type): Use it.
1806 (next_is_type_qual): New.
1807 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
1808
1809 2016-11-02 Mark Wielaard <mjw@redhat.com>
1810
1811 * cplus-dem.c (demangle_signature): Move fall through comment.
1812 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
1813 * hashtab.c (iterative_hash): Add fall through comments.
1814 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
1815 (byte_re_match_2_internal): Add Fall through comment after jump_n.
1816 Change "Note fall through" to "Fall through".
1817 (common_op_match_null_string_p): Return false after set_number_at
1818 instead of fall through.
1819
1820 2016-11-01 Jason Merrill <jason@redhat.com>
1821
1822 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1823
1824 2016-10-31 Mark Wielaard <mjw@redhat.com>
1825
1826 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
1827 XDELETEVEC demangled when unknown.
1828
1829 2016-09-19 Andrew Stubbs <ams@codesourcery.com>
1830
1831 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
1832 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
1833
1834 2016-09-10 Mark Wielaard <mjw@redhat.com>
1835
1836 * cp-demangle.c (d_substitution): Change struct demangle_component
1837 variable name from c to dc.
1838
1839 2016-08-12 Marek Polacek <polacek@redhat.com>
1840
1841 PR c/7652
1842 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1843
1844 2016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
1845
1846 PR c++/71696
1847 * cplus-dem.c: Prevent infinite recursion when there is a cycle
1848 in the referencing of remembered mangled types.
1849 (work_stuff): New stack to keep track of the remembered mangled
1850 types that are currently being processed.
1851 (push_processed_type): New method to push currently processed
1852 remembered type onto the stack.
1853 (pop_processed_type): New method to pop currently processed
1854 remembered type from the stack.
1855 (work_stuff_copy_to_from): Copy values of new variables.
1856 (delete_non_B_K_work_stuff): Free stack memory.
1857 (demangle_args): Push/Pop currently processed remembered type.
1858 (do_type): Do not demangle a cyclic reference and push/pop
1859 referenced remembered type.
1860
1861 2016-07-29 Aldy Hernandez <aldyh@redhat.com>
1862
1863 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
1864 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
1865
1866 2016-07-15 Jason Merrill <jason@redhat.com>
1867
1868 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
1869 (d_expression_1): Handle them.
1870 (d_maybe_print_fold_expression): New.
1871 (d_print_comp_inner): Use it.
1872 (d_index_template_argument): Handle negative index.
1873
1874 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
1875 (d_print_comp_inner): Handle them.
1876 (d_template_args_1): Split out from d_template_args.
1877 (d_args_length): New.
1878
1879 2016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
1880
1881 PR c++/70926
1882 * cplus-dem.c: Handle large values and overflow when demangling
1883 length variables.
1884 (demangle_template_value_parm): Read only until end of mangled string.
1885 (do_hpacc_template_literal): Likewise.
1886 (do_type): Handle overflow when demangling array indices.
1887
1888 2016-06-12 Brooks Moses <bmoses@google.com>
1889
1890 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
1891 VLAs.
1892
1893 2016-05-31 Alan Modra <amodra@gmail.com>
1894
1895 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1896
1897 2016-05-19 Jakub Jelinek <jakub@redhat.com>
1898
1899 PR c++/70498
1900 * cp-demangle.c (d_expression_1): Formatting fix.
1901
1902 2016-05-18 Artemiy Volkov <artemiyv@acm.org>
1903
1904 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
1905 constant.
1906 (demangle_template_value_parm): Handle tk_rvalue_reference
1907 type kind.
1908 (do_type): Support 'O' type id (rvalue references).
1909
1910 * testsuite/demangle-expected: Add tests.
1911
1912 2016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
1913
1914 PR c++/70498
1915 * cp-demangle.c: Parse numbers as integer instead of long to avoid
1916 overflow after sanity checks. Include <limits.h> if available.
1917 (INT_MAX): Define if necessary.
1918 (d_make_template_param): Takes integer argument instead of long.
1919 (d_make_function_param): Likewise.
1920 (d_append_num): Likewise.
1921 (d_identifier): Likewise.
1922 (d_number): Parse as and return integer.
1923 (d_compact_number): Handle overflow.
1924 (d_source_name): Change variable type to integer for parsed number.
1925 (d_java_resource): Likewise.
1926 (d_special_name): Likewise.
1927 (d_discriminator): Likewise.
1928 (d_unnamed_type): Likewise.
1929 * testsuite/demangle-expected: Add regression test cases.
1930
1931 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1932
1933 * configure: Remove SH5 support.
1934
1935 2016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
1936
1937 PR c++/69687
1938 * cplus-dem.c: Include <limits.h> if available.
1939 (INT_MAX): Define if necessary.
1940 (remember_type, remember_Ktype, register_Btype, string_need):
1941 Abort if we detect cases where we the size of the allocation would
1942 overflow.
1943
1944 PR c++/70492
1945 * cplus-dem.c (gnu_special): Handle case where consume_count returns
1946 -1.
1947
1948 2016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
1949 Marcel Bohme <boehme.marcel@gmail.com>
1950
1951 PR c++/67394
1952 PR c++/70481
1953 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
1954 btypevec/ktypevec.
1955 * testsuite/demangle-expected: Add coverage tests.
1956
1957 2016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1958
1959 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
1960 function calling convention.
1961 (dlang_call_convention_p): Likewise.
1962 (dlang_type): Likewise.
1963 * testsuite/d-demangle-expected: Add coverage tests.
1964
1965 2016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1966
1967 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
1968 only if parameters were seen before the elipsis symbol.
1969 * testsuite/d-demangle-expected: Add coverage test for parameter-less
1970 variadic functions.
1971
1972 2016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
1973
1974 * d-demangle.c (dlang_type): Handle function types only in the context
1975 of seeing a pointer type symbol.
1976 * testsuite/d-demangle-expected: Update function pointer tests.
1977
1978 2016-01-05 Mike Frysinger <vapier@gentoo.org>
1979
1980 * argv.c (dupargv): Change arg to char * const *. Update comment.
1981 (writeargv, countargv): Likewise.
1982 * functions.texi (dupargv, writeargv, countargv): Likewise.
1983
1984 2016-01-05 Mike Frysinger <vapier@gentoo.org>
1985
1986 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
1987
1988 2015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
1989
1990 * crc32.c: In the documentation, don't refer to GDB's
1991 now-nonexistent crc32 implementation. In the table-generation
1992 program embedded within the documentation, change the type of
1993 the induction variables i and j from int to unsigned int, to
1994 avoid undefined behavior.
1995
1996 2015-12-21 Nick Clifton <nickc@redhat.com>
1997
1998 PR 66827
1999 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
2000 shifting.
2001
2002 2015-11-27 Pedro Alves <palves@redhat.com>
2003
2004 PR other/61321
2005 PR other/61233
2006 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
2007 DEMANGLE_COMPONENT_CONVERSION.
2008 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
2009 instead of DEMANGLE_COMPONENT_CAST.
2010 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
2011 component if handling a conversion.
2012 (d_count_templates_scopes, d_print_comp_inner): Handle
2013 DEMANGLE_COMPONENT_CONVERSION.
2014 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
2015 of DEMANGLE_COMPONENT_CAST.
2016 (d_print_cast): Rename as ...
2017 (d_print_conversion): ... this. Adjust comments.
2018 (d_print_cast): Rewrite - simply print the left subcomponent.
2019 * cp-demint.c (cplus_demangle_fill_component): Handle
2020 DEMANGLE_COMPONENT_CONVERSION.
2021
2022 * testsuite/demangle-expected: Add tests.
2023
2024 2015-11-12 Mike Stump <mikestump@comcast.net>
2025
2026 * Makefile.in (etags tags TAGS): Use && instead of ;.
2027
2028 2015-11-09 Alan Modra <amodra@gmail.com>
2029
2030 * configure.ac: Check size of size_t.
2031 * configure: Regenerate.
2032 * config.in: Regenerate.
2033
2034 2015-11-09 Alan Modra <amodra@gmail.com>
2035
2036 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
2037 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
2038 after alloc failure check.
2039
2040 2015-11-09 Alan Modra <amodra@gmail.com>
2041
2042 PR gdb/17133
2043 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
2044 (obstack_exit_failure): Don't use exitfail.h.
2045 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
2046 Provide default. Don't include gettext.h.
2047 (_Noreturn): Define.
2048 * obstacks.texi: Adjust node references to external libc info files.
2049
2050 2015-11-09 Alan Modra <amodra@gmail.com>
2051
2052 PR gdb/17133
2053 * obstack.c: Import current gnulib file.
2054 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
2055
2056 2015-11-06 Joel Brobecker <brobecker@adacore.com>
2057
2058 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
2059 Android hosts.
2060 * configure: Regenerate.
2061
2062 2015-10-28 Jason Merrill <jason@redhat.com>
2063
2064 * Makefile.in (TAGS): Fix for separate build directory.
2065
2066 2015-10-18 Roland McGrath <roland@gnu.org>
2067 Iain Sandoe <iain@codesourcery.com>
2068
2069 PR other/63758
2070 * pex-unix.c: Obtain the environment interface from settings in
2071 environ.h rather than in-line code. Update copyright date.
2072 * setenv.c: Likewise.
2073 * xmalloc.c: Likewise.
2074
2075 2015-09-30 Jason Merrill <jason@redhat.com>
2076
2077 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
2078 (cplus_demangle_type): Let d_cv_qualifiers handle it.
2079 (d_dump, d_make_comp, has_return_type, d_encoding)
2080 (d_count_templates_scopes, d_print_comp_inner)
2081 (d_print_mod_list, d_print_mod, d_print_function_type)
2082 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
2083
2084 2015-08-15 Ian Lance Taylor <iant@google.com>
2085
2086 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
2087 ABI tags.
2088
2089 2015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
2090
2091 * d-demangle.c (dlang_parse_real): Remove call to strtod.
2092 (strtod): Remove declaration.
2093 * testsuite/d-demangle-expected: Update float and complex literal
2094 tests to check correct hexadecimal demangling.
2095
2096 2015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
2097
2098 * cp-demangle.c (d_dump): Fix syntax error.
2099 (d_identifier): Adjust type of len to match d_source_name.
2100 (d_expression_1): Fix out-of-bounds access. Check code variable for
2101 NULL before dereferencing it.
2102 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
2103 (d_print_comp_inner): Add NULL pointer check.
2104 * cp-demangle.h (d_peek_next_char): Define as inline function when
2105 CHECK_DEMANGLER is defined.
2106 (d_advance): Likewise.
2107 * testsuite/demangle-expected: Add new testcases.
2108
2109 2015-07-09 Uros Bizjak <ubizjak@gmail.com>
2110
2111 * getruntime.c (RUSAGE_SELF): Define if not already defined.
2112 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
2113
2114 2015-06-01 Jason Merrill <jason@redhat.com>
2115
2116 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
2117 extended qualifier.
2118
2119 2015-05-22 Yunlian Jiang <yunlian@google.com>
2120
2121 * configure.ac: Add AC_GNU_SOURCE.
2122 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
2123 * configure, config.in: Rebuild.
2124 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
2125
2126 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2127
2128 * d-demangle.c (dlang_symbol_kinds): New enum.
2129 (dlang_parse_symbol): Update signature. Handle an ambiguity between
2130 pascal functions and template value arguments. Only check for a type
2131 if parsing a function, or at the top level. Return failure if the
2132 entire symbol was not successfully demangled.
2133 (dlang_identifier): Update signature. Handle an ambiguity between two
2134 adjacent digits in a mangled symbol string.
2135 (dlang_type): Update call to dlang_parse_symbol.
2136 (dlang_template_args): Likewise.
2137 (dlang_parse_template): Likewise.
2138 (dlang_demangle): Likewise.
2139 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
2140 examples to the unittests.
2141
2142 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2143
2144 * d-demangle.c (dlang_template_args): Skip over specialized template
2145 parameters in mangled symbol.
2146 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
2147 template parameters.
2148
2149 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2150
2151 * d-demangle.c (dlang_type): Handle cent and ucent types.
2152 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
2153
2154 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2155
2156 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
2157 return parameters in the mangled string. Return NULL if have encountered
2158 an unknown attribute.
2159 (dlang_function_args): Handle return parameters in the mangled string.
2160 * testsuite/d-demangle-expected: Add coverage tests for functions with
2161 return parameters and return attributes.
2162
2163 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2164
2165 * d-demangle.c (dlang_identifier): Check encoded length of identifier
2166 to verify strncmp matches entire string.
2167 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
2168
2169 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2170
2171 * d-demangle.c (dlang_type_modifiers): New function.
2172 (dlang_type_modifier_p): New function.
2173 (dlang_call_convention_p): Ignore any kind of type modifier.
2174 (dlang_type): Handle and emit the type modifier after delegate types.
2175 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
2176 * testsuite/d-demangle-expected: Add coverage tests for all valid
2177 usages of function symbols with type modifiers.
2178
2179 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2180
2181 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
2182 end of the symbol, but expected something to read.
2183 (dlang_attributes): Likewise.
2184 (dlang_function_type): Likewise.
2185 (dlang_type): Likewise.
2186 (dlang_identifier): Likewise.
2187 (dlang_value): Likewise.
2188
2189 2015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
2190
2191 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
2192 non-printable characters as hex or escape sequences.
2193 * testsuite/d-demangle-expected: Add test for templates with tabs and
2194 newlines embedded into the signature.
2195
2196 2015-05-08 Joel Brobecker <brobecker@adacore.com>
2197
2198 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
2199 but not HAVE_SYS_TIME_H.
2200
2201 2015-04-22 Eli Zaretskii <eliz@gnu.org>
2202
2203 * setenv.c <environ>: Declare only if not a macro.
2204
2205 2015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
2206
2207 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2208
2209 2015-04-10 Jakub Jelinek <jakub@redhat.com>
2210 Iain Sandoe <iain@codesourcery.com>
2211
2212 PR target/65351
2213 * configure: Regenerate.
2214
2215 2015-04-07 Jakub Jelinek <jakub@redhat.com>
2216 Iain Sandoe <iain@codesourcery.com>
2217
2218 PR target/65351
2219 * configure: Regenerate.
2220
2221 2015-01-19 Eli Zaretskii <eliz@gnu.org>
2222
2223 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2224 macros.
2225
2226 2014-12-24 Uros Bizjak <ubizjak@gmail.com>
2227 Ben Elliston <bje@au.ibm.com>
2228 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2229
2230 * xasprintf.c: New file.
2231 * Makefile.in (CFILES): Add xasprintf.c.
2232 (REQUIRED_OFILES): Add xasprintf.$(objext).
2233 (xasprintf.$(objext)): New target.
2234 * functions.texi: Regenerate.
2235
2236 2014-12-11 Uros Bizjak <ubizjak@gmail.com>
2237 Ben Elliston <bje@au.ibm.com>
2238 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2239
2240 * xvasprintf.c: New file.
2241 * vprintf-support.h: Likewise.
2242 * vprintf-support.c: Likewise.
2243 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
2244 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
2245 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
2246 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
2247 * functions.texi: Regenerate.
2248 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
2249
2250 2014-11-22 John David Anglin <danglin@gcc.gnu.org>
2251
2252 PR other/63694
2253 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
2254 declarations.
2255 * configure: Regenerated.
2256
2257 2014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2258
2259 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2260 unsigned long.
2261
2262 2014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
2263 Manuel López-Ibáñez <manu@gcc.gnu.org>
2264
2265 PR driver/36312
2266 * filename_cmp.c (canonical_filename_eq): New function to check if
2267 file names are the same.
2268 * functions.texi: Updated with documentation for new function.
2269
2270 2014-11-11 David Malcolm <dmalcolm@redhat.com>
2271
2272 * ChangeLog.jit: New.
2273
2274 2014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2275
2276 * sigsetmask.c (_POSIX_SOURCE): Remove.
2277
2278 2014-10-28 Yury Gribov <y.gribov@samsung.com>
2279
2280 * strtoll.c: New file.
2281 * strtoull.c: New file.
2282 * configure.ac: Add long long checks. Add harness for strtoll and
2283 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
2284 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
2285 * config.in: Regenerate.
2286 * configure: Regenerate.
2287 * functions.texi: Regenerate.
2288 * testsuite/Makefile.in (check-strtol): New rule.
2289 (test-strtol): Likewise.
2290 (mostlyclean): Clean up strtol test.
2291 * testsuite/test-strtol.c: New test.
2292
2293 2014-10-15 David Malcolm <dmalcolm@redhat.com>
2294
2295 * choose-temp.c (choose_tmpdir): Remove now-redundant local
2296 copy of prototype.
2297 * functions.texi: Regenerate.
2298 * make-temp-file.c (choose_tmpdir): Convert return type from
2299 char * to const char * - given that this returns a pointer to
2300 a memoized allocation, the caller must not touch it.
2301
2302 2014-10-14 Joel Brobecker <brobecker@adacore.com>
2303
2304 * d-demangle.c: Replace strtold with strtod in global comment.
2305 (strtold): Remove declaration.
2306 (strtod): New declaration.
2307 (dlang_parse_real): Declare value as double instead of long
2308 double. Replace call to strtold by call to strtod.
2309 Update format in call to snprintf.
2310
2311 2014-09-26 Jason Merrill <jason@redhat.com>
2312
2313 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2314
2315 2014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
2316
2317 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
2318 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
2319 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
2320 * pex-win32.c (pex_win32_open_write): Likewise.
2321 * pex-common.c (pex_run_in_environment): Likewise.
2322
2323 2014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
2324
2325 * Makefile.in (CFILES): Add d-demangle.c.
2326 (REQUIRED_OFILES): Add d-demangle.o.
2327 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
2328 (cplus_demangle): Likewise.
2329 * d-demangle.c: New file.
2330 * testsuite/Makefile.in (really-check): Add check-d-demangle.
2331 * testsuite/d-demangle-expected: New file.
2332
2333 2014-09-19 Ian Lance Taylor <iant@google.com>
2334
2335 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
2336 handle objects with more than SHN_LORESERVE sections.
2337 (simple_object_elf_write_shdr): Add sh_link parameter.
2338 (simple_object_elf_write_to_file): Correctly handle objects with
2339 more than SHN_LORESERVE sections.
2340
2341 2014-08-29 Andrew Burgess <aburgess@broadcom.com>
2342
2343 * cp-demangle.c (d_dump): Only access field from s_fixed part of
2344 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
2345 (d_count_templates_scopes): Likewise.
2346
2347 2014-08-13 Gary Benson <gbenson@redhat.com>
2348
2349 * testsuite/demangler-fuzzer.c: New file.
2350 * testsuite/Makefile.in (fuzz-demangler): New rule.
2351 (demangler-fuzzer): Likewise.
2352 (mostlyclean): Clean up demangler fuzzer.
2353
2354 2014-06-11 Andrew Burgess <aburgess@broadcom.com>
2355
2356 * cplus-dem.c (do_type): Call string_delete even if the call to
2357 demangle_template fails.
2358
2359 2014-06-01 Ray Donnelly <mingw.android@gmail.com>
2360
2361 * pex-win32.c (argv_to_cmdline): Don't quote
2362 args unnecessarily
2363
2364 2014-05-28 Pedro Alves <palves@redhat.com>
2365
2366 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
2367 and DEMANGLE_COMPONENT_NUMBER.
2368
2369 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2370
2371 * testsuite/demangle-expected: Fix last commit.
2372
2373 2014-05-14 Andrew Burgess <aburgess@broadcom.com>
2374
2375 * cplus-dmem.c (internal_cplus_demangle): Free any resources
2376 allocated by possible previous call to gnu_special.
2377 (squangle_mop_up): Reset pointers to NULL after calling free.
2378 * testsuite/demangle-expected: New test case.
2379
2380 2014-05-08 Gary Benson <gbenson@redhat.com>
2381
2382 * cp-demangle.c (struct d_component_stack): New structure.
2383 (struct d_print_info): New field component_stack.
2384 (d_print_init): Initialize the above.
2385 (d_print_comp_inner): Renamed from d_print_comp.
2386 Do not restore template stack if it would cause a loop.
2387 (d_print_comp): New function.
2388 * testsuite/demangle-expected: New test cases.
2389
2390 2014-04-17 Jakub Jelinek <jakub@redhat.com>
2391
2392 PR sanitizer/56781
2393 * maint-tool: Also emit rule for noasan/ subdirectory.
2394 * configure.ac (NOASANFLAG): Set and substitute.
2395 * Makefile.in: Regenerated.
2396 (NOASANFLAG): Set.
2397 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
2398 subdir.
2399 (stamp-noasandir): New goal.
2400 * configure: Regenerated.
2401
2402 2014-04-01 Richard Biener <rguenther@suse.de>
2403
2404 * simple-object.c (simple_object_internal_write): Handle
2405 EINTR and short writes.
2406
2407 2014-03-28 Richard Biener <rguenther@suse.de>
2408
2409 * simple-object.c (simple_object_internal_read): Handle
2410 EINTR and short reads.
2411
2412 2014-03-13 Uros Bizjak <ubizjak@gmail.com>
2413
2414 * regex.c (bzero) [!_LIBC]: Define without coma expression.
2415 (regerror): Cast the call to memcpy to (void) to avoid unused
2416 value warnings.
2417
2418 2014-01-28 Thomas Schwinge <thomas@codesourcery.com>
2419
2420 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
2421 to help the compiler.
2422
2423 2014-01-21 Tom Tromey <tromey@redhat.com>
2424
2425 * _doprint.c (checkit): Use stdarg, not VA_* macros.
2426 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
2427 * concat.c (concat_length, concat_copy, concat_copy2, concat)
2428 (reconcat): Use stdarg, not VA_* macros.
2429 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
2430 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
2431 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
2432
2433 2014-01-06 Mike Frysinger <vapier@gentoo.org>
2434
2435 PR other/56780
2436 * configure.ac: Delete target_header_dir assignment.
2437 * configure: Regenerated.
2438
2439 2014-01-06 Gary Benson <gbenson@redhat.com>
2440
2441 * cp-demangle.c (struct d_print_info): New fields
2442 next_saved_scope, copy_templates, next_copy_template and
2443 num_copy_templates.
2444 (d_count_templates): New function.
2445 (d_print_init): New parameter "dc".
2446 Estimate numbers of templates and scopes required.
2447 (d_print_free): Removed function.
2448 (cplus_demangle_print_callback): Allocate stack for
2449 templates and scopes. Removed call to d_print_free.
2450 (d_copy_templates): Removed function.
2451 (d_save_scope): New function.
2452 (d_get_saved_scope): Likewise.
2453 (d_print_comp): Replace state saving/restoring code with
2454 calls to d_save_scope and d_get_saved_scope.
2455
2456 2013-12-23 Bill Maddox <maddox@google.com>
2457
2458 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
2459 Handle unified ctor/dtor.
2460 (d_ctor_dtor_name): Handle unified ctor/dtor.
2461
2462 2013-11-22 Cary Coutant <ccoutant@google.com>
2463
2464 PR other/59195
2465 * cp-demangle.c (struct d_info_checkpoint): New struct.
2466 (struct d_print_info): Add current_template field.
2467 (d_operator_name): Set flag when processing a conversion
2468 operator.
2469 (cplus_demangle_type): When processing <template-args> for
2470 a conversion operator, backtrack if necessary.
2471 (d_expression_1): Renamed from d_expression.
2472 (d_expression): New wrapper around d_expression_1.
2473 (d_checkpoint): New function.
2474 (d_backtrack): New function.
2475 (d_print_init): Initialize current_template.
2476 (d_print_comp): Set current_template.
2477 (d_print_cast): Put current_template in scope for
2478 printing conversion operator name.
2479 (cplus_demangle_init_info): Initialize is_expression and
2480 is_conversion.
2481 * cp-demangle.h (struct d_info): Add is_expression and
2482 is_conversion fields.
2483 * testsuite/demangle-expected: New test cases.
2484
2485 2013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2486
2487 * configure: Regenerate.
2488
2489 2013-11-12 Uros Bizjak <ubizjak@gmail.com>
2490
2491 * cp-demangle.c (d_copy_templates): Cast result of malloc
2492 to (struct d_print_template *).
2493 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
2494
2495 2013-10-29 Marc Glisse <marc.glisse@inria.fr>
2496
2497 PR tree-optimization/58689
2498 * concat.c: Remove note about xmalloc.
2499
2500 2013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2501
2502 * testsuite/test-demangle.c: Include unistd.h.
2503
2504 2013-10-25 Gary Benson <gbenson@redhat.com>
2505
2506 * cp-demangle.c (struct d_saved_scope): New structure.
2507 (struct d_print_info): New fields saved_scopes and
2508 num_saved_scopes.
2509 (d_print_init): Initialize the above.
2510 (d_print_free): New function.
2511 (cplus_demangle_print_callback): Call the above.
2512 (d_copy_templates): New function.
2513 (d_print_comp): New variables saved_templates and
2514 need_template_restore.
2515 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
2516 Capture scope the first time the component is traversed, and use the
2517 captured scope for subsequent traversals.
2518 * testsuite/demangle-expected: Add regression test.
2519
2520 2013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2521
2522 * testsuite/test-expandargv.c: Include unistd.h.
2523
2524 2013-10-15 David Malcolm <dmalcolm@redhat.com>
2525
2526 * configure.ac: If --enable-host-shared, use -fPIC.
2527 * configure: Regenerate.
2528
2529 2013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
2530
2531 * cp-demangle.c (d_name): Demangle local-source-names.
2532 * testsuite/demangle-expected: New test.
2533
2534 2013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
2535
2536 PR bootstrap/58386
2537 Revert:
2538
2539 2013-09-10 Gary Benson <gbenson@redhat.com>
2540
2541 * cp-demangle.c: Include hashtab.h.
2542 (struct d_print_info): New field saved_scopes.
2543 (d_print_init): Initialize the above.
2544 (d_print_free): New function.
2545 (cplus_demangle_print_callback): Call the above.
2546 (struct d_saved_scope): New structure.
2547 (d_store_scope): New function.
2548 (d_free_scope) Likewise.
2549 (d_restore_scope) Likewise.
2550 (d_hash_saved_scope) Likewise.
2551 (d_equal_saved_scope) Likewise.
2552 (d_print_comp): New variable saved_scope.
2553 [DEMANGLE_COMPONENT_REFERENCE,
2554 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2555 time the component is traversed, and use the captured scope for
2556 subsequent traversals.
2557 * testsuite/demangle-expected: Add regression test.
2558
2559 2013-09-10 Gary Benson <gbenson@redhat.com>
2560
2561 * cp-demangle.c: Include hashtab.h.
2562 (struct d_print_info): New field saved_scopes.
2563 (d_print_init): Initialize the above.
2564 (d_print_free): New function.
2565 (cplus_demangle_print_callback): Call the above.
2566 (struct d_saved_scope): New structure.
2567 (d_store_scope): New function.
2568 (d_free_scope) Likewise.
2569 (d_restore_scope) Likewise.
2570 (d_hash_saved_scope) Likewise.
2571 (d_equal_saved_scope) Likewise.
2572 (d_print_comp): New variable saved_scope.
2573 [DEMANGLE_COMPONENT_REFERENCE,
2574 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
2575 time the component is traversed, and use the captured scope for
2576 subsequent traversals.
2577 * testsuite/demangle-expected: Add regression test.
2578
2579 2013-08-20 Alan Modra <amodra@gmail.com>
2580
2581 * floatformat.c (floatformat_ibm_long_double): Rename to..
2582 (floatformat_ibm_long_double_big): ..this.
2583 (floatformat_ibm_long_double_little): New.
2584
2585 2013-07-09 Tristan Gingold <gingold@adacore.com>
2586
2587 * makefile.vms (OBJS): Add dwarfnames.obj
2588
2589 2013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2590
2591 PR other/56780
2592 * configure.ac: Move test for --enable-install-libiberty
2593 outside of the 'with_target_subdir' test so that it actually gets
2594 run. Add output messages to show the test result.
2595 * configure: Regenerate.
2596 * Makefile.in (install_to_libdir): Place the
2597 installation of the libiberty library in the same guard as that
2598 used for the headers to prevent it being installed unless
2599 requested via --enable-install-libiberty.
2600
2601 2013-05-06 David Edelsohn <dje.gcc@gmail.com>
2602 Peter Bergner <bergner@vnet.ibm.com>
2603 Segher Boessenkool <segher@kernel.crashing.org>
2604 Jakub Jelinek <jakub@redhat.com>
2605
2606 * hashtab.c (hash_pointer): Remove conditional and avoid
2607 unexecuted shift equal to wordsize.
2608
2609 2013-04-22 Andi Kleen <ak@linux.intel.com>
2610
2611 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2612
2613 2013-04-03 Jason Merrill <jason@redhat.com>
2614
2615 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2616 (d_pointer_to_member_type): Simplify.
2617
2618 Demangle C++11 ref-qualifier.
2619 * cp-demangle.c (d_ref_qualifier): New.
2620 (d_nested_name, d_function_type): Use it.
2621 (d_parmlist): Don't get confused by a ref-qualifier.
2622 (cplus_demangle_type): Reorder ref-qualifier.
2623 (d_pointer_to_member_type): Likewise.
2624 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
2625 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
2626 (d_make_comp, has_return_type, d_encoding): Likewise.
2627 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
2628 (d_print_function_type, is_ctor_or_dtor): Likewise.
2629
2630 2013-03-27 Kai Tietz <ktietz@redhat.com>
2631
2632 * configure: Regenerated.
2633
2634 2013-03-06 Tobias Burnus <burnus@net-b.de>
2635
2636 * libiberty.texi: Update comment, remove lowersections.
2637 * obstacks.texi: Regenerate.
2638
2639 2013-03-05 Jakub Jelinek <jakub@redhat.com>
2640
2641 PR middle-end/56526
2642 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
2643 wrapper_sect_offset to avoid a warning.
2644
2645 2013-03-01 Andreas Schwab <schwab@linux-m68k.org>
2646
2647 * obstacks.texi (Obstacks): Trim @node to only contain the
2648 node name.
2649 * libiberty.texi (Obstacks): Lower section.
2650
2651 2013-02-14 Jason Merrill <jason@redhat.com>
2652
2653 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
2654 (d_print_comp): Likewise.
2655
2656 2013-02-09 Jakub Jelinek <jakub@redhat.com>
2657
2658 PR other/56245
2659 * regex.c (PTR_INT_TYPE): Define.
2660 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
2661
2662 2013-01-31 Kai Tietz <ktietz@redhat.com>
2663
2664 PR other/54620
2665 * sha1.c (sha1_process_block): Handle case that size_t is
2666 a wider-integer-scalar as a 32-bit unsigned integer.
2667
2668 PR other/53413
2669 * md5.c (md5_process_block): Handle case that size_t is
2670 a wider-integer-scalar a 32-bit unsigned integer.
2671
2672 2013-01-04 Ian Lance Taylor <iant@google.com>
2673
2674 PR other/54800
2675 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
2676 bother to zero out a buffer we are about to set anyhow.
2677
2678 2013-01-01 David Edelsohn <dje.gcc@gmail.com>
2679
2680 * simple-object-xcoff.c: New file.
2681 * Makefile.in: Add it to build machinery.
2682 * simple-object-common.h (simple_object_xcoff_functions): Declare.
2683 * simple-object.c (format_functions): Add
2684 simple_object_xcoff_functions.
2685
2686 2012-11-10 Jason Merrill <jason@redhat.com>
2687
2688 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
2689 (d_name): Not here.
2690
2691 2012-11-09 Jason Merrill <jason@redhat.com>
2692
2693 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
2694 (d_make_comp, d_find_pack, d_print_comp): Likewise.
2695 (d_abi_tags): New.
2696 (d_name): Call it.
2697
2698 2012-10-08 Jason Merrill <jason@redhat.com>
2699
2700 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
2701 (d_make_comp, d_print_comp): Likewise.
2702
2703 2012-09-18 Ian Lance Taylor <iant@google.com>
2704
2705 * strnlen.c: New file.
2706 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
2707 present.
2708 * Makefile.in: Rebuild dependencies.
2709 (CFILES): Add strnlen.c.
2710 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
2711 * configure, config.in, functions.texi: Rebuild.
2712
2713 * maint-tool: Accept .def files in the include directory.
2714
2715 2012-09-18 Florian Weimer <fweimer@redhat.com>
2716
2717 PR other/54411
2718 * objalloc.c (_objalloc_alloc): Add overflow check covering
2719 alignment and CHUNK_HEADER_SIZE addition.
2720
2721 2011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2722
2723 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
2724 xmalloc return.
2725 (buildargv): Likewise. Also replace strdup with xstrdup.
2726 (expandargv): Don't check dupargv return.
2727
2728 2011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2729
2730 PR binutils/14526
2731 * argv.c (buildargv): Replace alloca with xmalloc/free.
2732
2733 2012-08-17 Andreas Schwab <schwab@linux-m68k.org>
2734
2735 * floatformat.c (floatformat_to_double): Correctly handle numbers
2736 between 1 and 2. Simplify handling of denormal number.
2737 (main): Test with 1.1.
2738
2739 2012-07-31 Mike Frysinger <vapier@gentoo.org>
2740
2741 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
2742 to swap_bytes, and then call memcpy to move it to ctx->buffer.
2743
2744 2012-07-26 Kazu Hirata <kazu@codesourcery.com>
2745 Sandra Loosemore <sandra@codesourcery.com>
2746
2747 * pex-win32.c (pex_win32_exec_child): Only close original file
2748 descriptors if child is launched successfully.
2749
2750 2012-07-18 Jason Merrill <jason@redhat.com>
2751
2752 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
2753 (op_is_new_cast): New.
2754 (d_expression, d_print_comp): Check it.
2755
2756 2012-07-13 Doug Evans <dje@google.com>
2757
2758 * filename_cmp.c (filename_hash, filename_eq): New functions.
2759
2760 2012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2761
2762 * copying-lib.texi (Library Copying): Don't use @heading inside
2763 @enumerate.
2764
2765 2012-05-22 Tom Tromey <tromey@redhat.com>
2766
2767 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
2768 * testsuite/demangle-expected: Add regression test.
2769 * cp-demangle.c (d_find_pack): Return NULL for
2770 DEMANGLE_COMPONENT_UNNAMED_TYPE.
2771
2772 2012-04-27 Tom Tromey <tromey@redhat.com>
2773
2774 * dwarfnames.c: New file.
2775 * Makefile.in (CFILES): Add dwarfnames.
2776 (REQUIRED_OFILES): Add dwarfnames.
2777 (./dwarfnames.$(objext)): New target.
2778
2779 2012-04-04 Tristan Gingold <gingold@adacore.com>
2780
2781 * pex-unix.c (to_ptr32): Fix style.
2782
2783 2012-04-02 Tristan Gingold <gingold@adacore.com>
2784
2785 * stack-limit.c: Includes ansidecl.h.
2786 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2787
2788 2012-03-20 Jason Merrill <jason@redhat.com>
2789
2790 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2791
2792 2012-03-07 Jason Merrill <jason@redhat.com>
2793
2794 * cp-demangle.c (cplus_demangle_operators): Add li.
2795 (d_unqualified_name): Handle it specially.
2796
2797 2012-01-26 Jakub Jelinek <jakub@redhat.com>
2798
2799 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
2800 about using preprocessor directives inside of macro arguments.
2801
2802 2012-01-22 Douglas B Rupp <rupp@gnat.com>
2803
2804 * configure: Regenerate.
2805
2806 2012-01-10 Jason Merrill <jason@redhat.com>
2807
2808 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
2809 Omit a trailing space in the operator name.
2810
2811 2012-01-06 Jason Merrill <jason@redhat.com>
2812
2813 PR c++/6057
2814 PR c++/48051
2815 PR c++/50855
2816 PR c++/51322
2817 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
2818 DEMANGLE_COMPONENT_INITIALIZER_LIST.
2819 (d_make_comp): Likewise. Allow null right arg for
2820 DEMANGLE_COMPONENT_TRINARY_ARG2.
2821 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
2822 (d_template_args, d_template_arg): Handle 'J' for argument packs.
2823 (d_exprlist): Add terminator parm.
2824 (d_expression, d_print_comp): Handle initializer lists, nullary
2825 expressions, prefix/suffix operators, and new.
2826 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
2827 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
2828 * testsuite/demangle-expected: Add tests.
2829
2830 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2831 and vector are substitutable.
2832 (cplus_demangle_operators): Sort.
2833
2834 2012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2835
2836 * configure: Regenerate.
2837
2838 2012-01-02 Jakub Jelinek <jakub@redhat.com>
2839
2840 * make-relative-prefix.c (make_relative_prefix_1): Avoid
2841 stack overflow if PATH contains just a single entry and
2842 HOST_EXECUTABLE_SUFFIX needs to be used.
2843
2844 PR driver/48306
2845 * make-relative-prefix.c: Include sys/stat.h.
2846 (make_relative_prefix_1): If access succeeds, check also stat
2847 if nstore is a regular file.
2848
2849 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2850
2851 * configure: Regenerate.
2852
2853 2011-12-20 Tristan Gingold <gingold@adacore.com>
2854
2855 * aclocal.m4: Assume strncmp works in cross case.
2856 * configure: Regenerate
2857
2858 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2859
2860 * configure: Regenerate.
2861
2862 2011-11-07 Richard Henderson <rth@redhat.com>
2863
2864 Merged from transactional-memory.
2865
2866 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
2867 gnu_v3_object_ctor_group.
2868 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
2869 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
2870 and gnu_v3_object_dtor_group.
2871 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
2872 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
2873 (d_make_comp, d_print_comp): Likewise.
2874 (d_special_name): Generate them.
2875
2876 2011-11-04 Jason Merrill <jason@redhat.com>
2877
2878 PR c++/48370
2879 * cp-demangle.c (d_special_name, d_print_comp): Handle a
2880 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
2881
2882 2011-11-02 Doug Evans <dje@google.com>
2883
2884 * Makefile.in (CFILES): Add timeval-utils.c.
2885 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2886 (INSTALLED_HEADERS): Add timeval-utils.h.
2887 (timeval-utils.$(objext)): Add rule.
2888
2889 2011-10-28 Ian Lance Taylor <iant@google.com>
2890
2891 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2892
2893 2011-10-26 Iain Sandoe <iains@gcc.gnu.org>
2894
2895 PR target/48108
2896 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
2897 GNU_WRAPPER_NAMES): New macros.
2898 (simple_object_mach_o_segment): Handle wrapper scheme.
2899 (simple_object_mach_o_write_section_header): Allow the segment name
2900 to be supplied.
2901 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
2902 that the top-level segment name in the load command is empty.
2903 (simple_object_mach_o_write_to_file): Determine the number of
2904 sections during segment output, use that in writing the header.
2905
2906 2011-10-10 Ian Lance Taylor <iant@google.com>
2907
2908 PR c++/48665
2909 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
2910 function type, change them to apply to the "this" parameter.
2911 * testsuite/demangle-expected: Add test case.
2912
2913 2011-09-28 Doug Evans <dje@google.com>
2914
2915 * timeval-utils.c: New file.
2916
2917 * argv.c (countargv): New function.
2918
2919 2011-09-23 Cary Coutant <ccoutant@google.com>
2920
2921 PR 40831
2922 * cp-demangle.c (d_make_comp): Add new component type.
2923 (cplus_demangle_mangled_name): Check for clone suffixes.
2924 (d_parmlist): Don't error out if we see '.'.
2925 (d_clone_suffix): New function.
2926 (d_print_comp): Print info for clone suffixes.
2927 * testsuite/demangle-expected: Add new testcases.
2928
2929 2011-09-23 Ian Lance Taylor <iant@google.com>
2930 Pierre Vittet <piervit@pvittet.com>
2931
2932 * md5.c (md5_process_bytes): Correct handling of unaligned
2933 buffer.
2934
2935 2011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2936
2937 * aclocal.m4: Include ../config/picflag.m4.
2938 * configure.ac (GCC_PICFLAG): Call it.
2939 (enable_shared): Clear PICFLAG unless shared.
2940 * configure: Regenerate.
2941
2942 2011-08-12 Steve Ellcey <sje@cup.hp.com>
2943
2944 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2945
2946 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
2947
2948 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2949
2950 2011-08-01 Jason Merrill <jason@redhat.com>
2951
2952 PR c++/49932
2953 * cp-demangle.c (d_prefix): Handle decltype.
2954 * testsuite/demangle-expected: Test it.
2955
2956 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2957
2958 * testsuite/demangle-expected: Remove an extra line.
2959
2960 2011-07-26 Ian Lance Taylor <iant@google.com>
2961
2962 * cp-demangle.c (d_print_init): Initialize pack_index field.
2963 (d_print_comp): Check for NULL template argument.
2964 * testsuite/demangle-expected: Add test case.
2965
2966 2011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
2967
2968 PR target/49817
2969 * stack-limit.c: Include <stdint.h>.
2970
2971 2011-07-22 Jakub Jelinek <jakub@redhat.com>
2972
2973 PR c++/49756
2974 * stack-limit.c: New file.
2975 * Makefile.in: Regenerate deps.
2976 (CFILES): Add stack-limit.c.
2977 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
2978 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
2979 (AC_CHECK_FUNCS): Likewise.
2980 * configure: Regenerated.
2981 * config.in: Regenerated.
2982
2983 2011-07-04 Jason Merrill <jason@redhat.com>
2984
2985 * cp-demangle.c (d_expression): Handle 'this'.
2986 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
2987
2988 2011-07-01 Joel Brobecker <brobecker@adacore.com>
2989
2990 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
2991 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
2992
2993 2011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2994
2995 PR debug/49408
2996 * cp-demangle.c (d_print_comp): Suppress argument list for function
2997 references by the '&' unary operator. Keep also already processed
2998 variant without the argument list. Suppress argument list types for
2999 function call used in an expression.
3000 * testsuite/demangle-expected: Fix excessive argument list types in
3001 `test for typed function in decltype'. New testcase for no argument
3002 list types printed. 3 new testcases for function references by the
3003 '&' unary operator..
3004
3005 2011-06-20 Jason Merrill <jason@redhat.com>
3006
3007 PR c++/37089
3008 * cp-demangle.c (d_print_comp): Handle reference smashing.
3009 * testsuite/demangle-expected: Test it.
3010
3011 2011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3012
3013 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
3014 Suppress d_print_mod for DMGL_RET_POSTFIX.
3015 * testsuite/demangle-expected: New testcases for --ret-postfix.
3016
3017 2011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3018
3019 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
3020 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
3021 * testsuite/demangle-expected: New testcases for --ret-drop.
3022 * testsuite/test-demangle.c: Document --ret-drop in a comment.
3023 (main): New variable ret_drop, fill it, call cplus_demangle with it.
3024
3025 2011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3026
3027 * cp-demangle.c (struct d_print_info): Remove field options.
3028 (d_print_init): Remove parameter options.
3029 (cplus_demangle_print_callback): Update all the callers.
3030 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
3031 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
3032 Add parameter options, update all the callers.
3033
3034 2011-04-20 Jim Meyering <meyering@redhat.com>
3035
3036 * cp-demint.c (cplus_demangle_v3_components): Remove useless
3037 if-before-free.
3038 * cplus-dem.c (squangle_mop_up): Likewise.
3039 (delete_non_B_K_work_stuff): Likewise.
3040 * pex-common.c (pex_free): Likewise.
3041 * pex-msdos.c (pex_msdos_cleanup): Likewise.
3042 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
3043 (win32_spawn): Likewise.
3044 * regex.c (FREE_VAR, weak_alias): Likewise.
3045 * spaces.c (spaces): Likewise.
3046
3047 2011-04-10 Jim Meyering <meyering@redhat.com>
3048
3049 Avoid memory overrun in a test leading to potential double-free.
3050 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
3051 i.e., do copy the trailing NUL byte.
3052
3053 2011-03-31 Tristan Gingold <gingold@adacore.com>
3054
3055 * makefile.vms (OBJS): Add filename_cmp.obj
3056
3057 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
3058
3059 * filename_cmp.c (filename_ncmp): New function.
3060 * functions.texi: Regenerated.
3061
3062 2011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3063
3064 * splay-tree.c: Escape wrapping newlines in texinfo markup
3065 with '@', to fix function declaration output rendering.
3066 * gather-docs: Relax and improve macro name matching to actually
3067 match all current names and to allow input line wrapping.
3068 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
3069 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
3070 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
3071 pexecute.txh, random.c, setenv.c, setproctitle.c,
3072 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
3073 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
3074 Wrap long texinfo input lines.
3075 * functions.texi: Regenerate.
3076
3077 2011-01-18 Mike Frysinger <vapier@gentoo.org>
3078
3079 * .gitignore: New file.
3080
3081 2010-12-08 Doug Evans <dje@google.com>
3082
3083 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
3084 all callers updated. Rewrite to be non-recursive.
3085
3086 2010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3087
3088 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
3089
3090 2010-11-20 Anthony Green <green@moxielogic.com>
3091
3092 * configure.ac: Turn PR_SET_NAME link test into a test for
3093 sys/prctl.h.
3094 * configure, config.in: Rebuilt.
3095 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
3096 (setproctitle) Test for PR_SET_NAME definition.
3097
3098 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3099
3100 PR other/46202
3101 * Makefile.in (install-strip): New phony target.
3102 (install): Also mark as phony.
3103
3104 2010-11-16 Ian Lance Taylor <iant@google.com>
3105
3106 * simple-object.c (simple_object_attributes_merge): Rename from
3107 simple_object_attributes_compare. Call merge field.
3108 * simple-object-common.h (struct simple_object_functions): Rename
3109 attributes_compare field to attribute_merge.
3110 * simple-object-elf.c (EM_SPARC): Define.
3111 (EM_SPARC32PLUS): Define.
3112 (simple_object_elf_attributes_merge): Renamed from
3113 simple_object_elf_attributes_compare. Permit EM_SPARC and
3114 EM_SPARC32PLUS objects to be merged.
3115 (simple_object_elf_functions): Update function name.
3116 * simple-object-coff.c (simple_object_coff_attributes_merge):
3117 Rename from simple_object_coff_attributes_compare.
3118 (simple_object_coff_functions): Update function name.
3119 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
3120 Renamed from simple_object_mach_o_attributes_compare.
3121 (simple_object_mach_o_functions): Update function name.
3122
3123 2010-11-16 H.J. Lu <hongjiu.lu@intel.com>
3124
3125 PR other/42670
3126 PR binutils/11137
3127 * cp-demangle.c (d_make_demangle_mangled_name): New.
3128 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
3129
3130 * testsuite/demangle-expected: Updated.
3131
3132 2010-11-14 Kai Tietz <kai.tietz@onevision.com>
3133
3134 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
3135 offset.
3136
3137 2010-11-12 Ian Lance Taylor <iant@google.com>
3138
3139 PR other/46332
3140 * cp-demangle.c (d_print_function_type): Don't print parentheses
3141 if there are no modifiers to print.
3142 * testsuite/demangle-expected: Tweak one test case, add another.
3143
3144 2010-11-04 Richard Henderson <rth@redhat.com>
3145
3146 * configure.ac (AC_CHECK_HEADERS): Add process.h.
3147 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
3148 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
3149 * configure, config.in: Rebuild.
3150 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
3151 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
3152
3153 2010-11-02 Ian Lance Taylor <iant@google.com>
3154 Dave Korn <dave.korn.cygwin@gmail.com>
3155 Iain Sandoe <iains@gcc.gnu.org>
3156
3157 * simple-object.c: New file.
3158 * simple-object-common.h: New file.
3159 * simple-object-elf.c: New file.
3160 * simple-object-mach-o.c: New file.
3161 * simple-object-coff.c: New file.
3162 * simple-object.txh: New file.
3163 * configure.ac: Add AC_TYPE_SSIZE_T.
3164 * Makefile.in: Rebuild dependencies.
3165 (CFILES): Add simple-object.c, simple-object-coff,
3166 simple-object-elf.c, and simple-object-mach-o.c.
3167 (REQUIRED_OFILES): Add corresponding object files.
3168 * configure: Rebuild.
3169 * config.in: Rebuild.
3170 * functions.texi: Rebuild.
3171
3172 2010-10-29 Ian Lance Taylor <iant@google.com>
3173
3174 * setproctitle.c: Add space after function name in @deftypefn
3175 comment.
3176 * functions.texi: Rebuild.
3177
3178 2010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3179
3180 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3181 * configure: Regenerate.
3182
3183 2010-10-07 Andi Kleen <ak@linux.intel.com>
3184
3185 * configure: Regenerate.
3186 * configure.ac: Turn PR_SET_NAME check into link check.
3187
3188 2010-10-06 Andi Kleen <ak@linux.intel.com>
3189
3190 * Makefile.in (CFILES): Add setproctitle.
3191 (CONFIGURED_OFILES): Add setproctitle.
3192 (setproctitle): Add rule.
3193 * config.in: Regenerate.
3194 * configure: Regenerate.
3195 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
3196 * setproctitle.c: Add file.
3197 * functions.texi: Regenerate.
3198
3199 2010-09-22 Tristan Gingold <gingold@adacore.com>
3200
3201 * cplus-dem.c (ada_demangle): Add comments.
3202 Handle stream and controlled type operations.
3203 Decoding of some uppercase letters moved before separators.
3204 * testsuite/demangle-expected: Add tests.
3205
3206 2010-09-10 James Lyon <jameslyon0@googlemail.com>
3207
3208 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
3209 * cp-demangle.c (d_find_pack): Add case for
3210 DEMANGLE_COMPONENT_LAMBDA.
3211 * testsuite/demangle-expected: Add regression test.
3212
3213 2010-09-08 Tristan Gingold <gingold@adacore.com>
3214
3215 PR 44001
3216 * maint-tool (missing): Fix pattern for object file.
3217 (deps): Use $(objext) for object extension.
3218 * Makefile.in (objext): New variable.
3219 Replace all occurences of .o with .$(objext)
3220 Regenerate with maint-deps
3221 * configure.ac (pexecute): Set to the basename.
3222 * configure: Regenerate.
3223
3224 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
3225
3226 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
3227 corresponding stream has been opened.
3228 (pex_free): Close pipe file descriptors corresponding to child's
3229 stdout and stderr before waiting.
3230
3231 2010-08-13 Nick Clifton <nickc@redhat.com>
3232
3233 * argv.c (expandargv): Limit the number of times that response
3234 files are opened in order to prevent infinite recursion.
3235
3236 2010-07-21 Pascal Obry <obry@adacore.com>
3237
3238 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3239
3240 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
3241
3242 * floatformat.c (floatformat_ieee_half_big): New variable.
3243 (floatformat_ieee_half_little): Likewise.
3244
3245 2010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
3246
3247 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
3248 Update copyright years.
3249 Move to GFDL 1.3.
3250
3251 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3252
3253 PR other/43838
3254 * cp-demangle.c (struct d_print_info): Add flush_count field.
3255 (d_print_init): Initialize it to 0.
3256 (d_print_flush): Increment it.
3257 (d_print_comp): If needed flush before appending ", ". Only
3258 decrement dpi->len if no flushes happened during the recursive
3259 call.
3260 * testsuite/demangle-expected: Add a test for this.
3261
3262 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3263
3264 * splay-tree.c: Update copyright years.
3265 (splay_tree_new_typed_alloc): New.
3266 (splay_tree_new_with_allocator): Use it.
3267
3268 * hashtab.c: Update copyright years.
3269 (htab_create_typed_alloc): New.
3270 (htab_create_alloc): Use it.
3271
3272 * functions.texi: Regenerate.
3273
3274 2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
3275 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3276
3277 PR bootstrap/42798
3278 * configure.ac: Check for declaration of 'basename(char *)'.
3279 * configure: Regenerate.
3280
3281 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
3282
3283 * testsuite/demangle-expected: Add tests for __int128
3284 and unsigned __int128 types.
3285
3286 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
3287 Jason Merrill <jason@redhat.com>
3288
3289 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
3290 (cplus_demangle_type): Handle nullptr.
3291 * testsuite/demangle-expected: Test it.
3292
3293 2010-04-23 Pedro Alves <pedro@codesourcery.com>
3294
3295 * lbasename.c (lbasename): Split into ...
3296 (unix_lbasename, dos_basename): ... these.
3297 (lbasename): ... and reimplement on top of them.
3298 * Makefile.in (lbasename.o): Add dependency on
3299 $(INCDIR)/filenames.h.
3300
3301 2010-04-07 Jakub Jelinek <jakub@redhat.com>
3302
3303 * regex.c (byte_re_match_2_internal): Avoid set but not used
3304 warning.
3305
3306 2010-03-22 Jason Merrill <jason@redhat.com>
3307
3308 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3309
3310 2010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3311
3312 * Makefile.in (all): Do not use exec.
3313
3314 2010-02-04 Tom Tromey <tromey@redhat.com>
3315
3316 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3317
3318 2010-02-03 Jason Merrill <jason@redhat.com>
3319
3320 * cp-demangle.c (d_expression): Handle dependent operator name.
3321
3322 PR c++/12909
3323 * cp-demangle.c (d_number_component, d_vector_type): New.
3324 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
3325
3326 2010-01-25 Ian Lance Taylor <iant@google.com>
3327
3328 * cp-demangle.c (cplus_demangle_type): Check for invalid type
3329 after "DF".
3330 * testsuite/demangle-expected: Add test.
3331
3332 2010-01-20 Jason Merrill <jason@redhat.com>
3333
3334 PR c++/42338
3335 * cp-demangle.c (d_print_comp): Fix array index printing.
3336
3337 2010-01-11 Tristan Gingold <gingold@adacore.com>
3338
3339 * cplus-dem.c (ada_demangle): Remove prototype.
3340 (grow_vect): Removed.
3341 (ada_demangle): Rewritten.
3342 (cplus_demangle): Fix indentation.
3343 * testsuite/demangle-expected: Add tests for Ada.
3344
3345 2010-01-09 Ian Lance Taylor <iant@google.com>
3346
3347 PR other/42230
3348 * cp-demangle.c (d_demangle): Return dgs.alc on success.
3349
3350 2010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3351
3352 PR target/42316
3353 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
3354 * configure: Regenerate.
3355
3356 2009-12-07 Doug Evans <dje@google.com>
3357
3358 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3359
3360 2009-11-26 Ben Elliston <bje@au.ibm.com>
3361
3362 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3363 * configure: Regenerate.
3364
3365 2009-11-25 Ben Elliston <bje@au.ibm.com>
3366
3367 * functions.texi: Rebuild.
3368
3369 2009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3370 Ben Elliston <bje@au.ibm.com>
3371
3372 * README: Mention changes to Makefile.in and functions.texi.
3373 * gather-docs: Mention 'make stamp-functions' in the header.
3374
3375 2009-11-23 Ben Elliston <bje@au.ibm.com>
3376 Ian Lance Taylor <iant@google.com>
3377
3378 * pex-unix.c (pex_child_error): Improve warning avoidance by
3379 checking the results of write(3) and exiting with -2 if any write
3380 returns a negative value.
3381
3382 2009-11-22 Steve Ward <planet36@gmail.com>
3383
3384 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3385
3386 2009-11-20 Ben Elliston <bje@au.ibm.com>
3387
3388 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
3389 unused result warnings from write(3) calls. Undefine writeerr
3390 after all uses.
3391
3392 2009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3393 Daniel Jacobowitz <dan@codesourcery.com>
3394 Pedro Alves <pedro@codesourcery.com>
3395
3396 * argv.c (consume_whitespace): New function.
3397 (only_whitespace): New function.
3398 (buildargv): Always use ISSPACE by calling consume_whitespace.
3399 (expandargv): Skip empty files. Do not stop at the first empty
3400 argument (calling only_whitespace)..
3401 * testsuite/test-expandargv.c: (test_data): Test empty lines
3402 and empty arguments.
3403 (run_tests): Fix false positives due to shorter arguments.
3404
3405 2009-09-30 Martin Thuresson <martint@google.com>
3406
3407 * regex.c (byte_re_match_2_internal): Split declaration and
3408 assignment to avoid -Wc++-compat warning due to goto.
3409
3410 2009-09-29 Jason Merrill <jason@redhat.com>
3411
3412 * Makefile.in: Enable demangle target.
3413 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
3414 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
3415 (d_parmlist): Factor out from d_bare_function_type.
3416 (d_compact_number): Factor out from d_template_param and d_expression.
3417 (d_append_num): Factor out from d_print_comp.
3418 (d_print_comp, d_print_mod_list): Handle lambdas.
3419 * testsuite/demangle-expected: Add lambda tests.
3420
3421 2009-09-23 Matthew Gingell <gingell@adacore.com>
3422
3423 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3424
3425 2009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3426
3427 * choose-temp.c: Include unistd.h for mingw targets.
3428
3429 2009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3430
3431 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3432
3433 2009-09-15 Tristan Gingold <gingold@adacore.com>
3434
3435 * config.h-vms (intptr_t): Define to compile hashtab.c
3436
3437 2009-09-04 Ozkan Sezer <sezeroz@gmail.com>
3438
3439 PR target/39065
3440 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
3441 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
3442 * config.in: Regenerated.
3443 * configure: Regenerated.
3444
3445 2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
3446
3447 PR target/39065
3448 * configure.ac: Also check for intptr_t.
3449 * config.h.in: Regenerated.
3450 * configure: Regenerated.
3451 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
3452 instead of of long.
3453
3454 2009-09-02 Tristan Gingold <gingold@adacore.com>
3455
3456 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
3457 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
3458 dependencies. Remove unused FORMAT variable.
3459 * configure.com: New file to create build.com DCL script for
3460 Itanium VMS or Alpha VMS.
3461
3462 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3463
3464 * configure.ac (AC_PREREQ): Bump to 2.64.
3465
3466 2009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3467
3468 PR ld/10536
3469 * Makefile.in (install-html-recursive): Removed.
3470
3471 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3472
3473 * config.in: Regenerate.
3474 * configure: Regenerate.
3475
3476 2009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3477
3478 * Makefile.in (AUTOCONF, configure_deps): New variables.
3479 ($(srcdir)/configure): New rule, active only in maintainer mode.
3480
3481 2009-07-29 Douglas B Rupp <rupp@gnat.com>
3482
3483 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3484
3485 2009-07-27 Douglas B Rupp <rupp@gnat.com>
3486
3487 * pex-unix.c (vfork): Remove VMS specific definition (get from header
3488 file instead).
3489 (to_ptr32): New function.
3490 (pex_unix_exec_child): Use it.
3491
3492 2009-07-24 Ian Lance Taylor <iant@google.com>
3493
3494 PR bootstrap/40854
3495 * crc32.c (xcrc32): Rename from crc32.
3496
3497 2009-07-24 Ian Lance Taylor <iant@google.com>
3498
3499 * crc32.c: New file.
3500 * Makefile.in: Rebuild dependencies.
3501 (CFILES): Add crc32.c.
3502 (REQUIRED_OFILES): Add ./crc32.o.
3503 * functions.texi: Rebuild.
3504
3505 2009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3506
3507 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3508 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3509 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
3510 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
3511 (d_demangle_callback): The variable type is now declared as enum.
3512 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
3513
3514 2009-06-21 Jakub Jelinek <jakub@redhat.com>
3515
3516 * hashtab.c (htab_traverse): Don't call htab_expand for
3517 nearly empty hashtabs with sizes 7, 13 or 31.
3518
3519 2009-06-16 Nick Clifton <nickc@redhat.com>
3520
3521 PR 10197
3522 * testsuite/test-demangle.c: Rename getline to get_line to avoid
3523 conflicts with system function of the same name.
3524
3525 2009-05-30 Eli Zaretskii <eliz@gnu.org>
3526
3527 * snprintf.c: Doc fix.
3528
3529 * vsnprintf.c: Doc fix.
3530
3531 2009-05-29 Kai Tietz <kai.tietz@onevision.com>
3532
3533 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
3534
3535 2009-05-29 Michael Matz <matz@suse.de>
3536
3537 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
3538 out when forcing the minimum.
3539 (fibheap_delete_node): Assert that we managed to force the minimum.
3540
3541 2009-05-25 Tristan Gingold <gingold@adacore.com>
3542
3543 * config.h-vms: Rewritten. Define configure macros.
3544 Use DEC-C builtin alloca.
3545
3546 * makefile.vms (OBJS): Update list.
3547 (OPT): New variable.
3548 (CFLAGS): Update compilation flags.
3549 (libiberty.olb): Do not depend on alloca-conf.h anymore.
3550
3551 2009-05-19 Ian Lance Taylor <iant@google.com>
3552 Ben Elliston <bje@au.ibm.com>
3553
3554 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
3555 (cplus_demangle_fill_dtor): Likewise.
3556
3557 2009-05-17 Julian Brown <julian@codesourcery.com>
3558
3559 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
3560 standard handles (stdin, stdout, stderr) in parent.
3561
3562 2009-04-29 Julian Brown <julian@codesourcery.com>
3563
3564 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
3565 (pex_win32_exec_child): Ensure each process has only one handle open
3566 on pipe endpoints. Close standard input after creating child for
3567 symmetry with standard output/standard error.
3568
3569 2009-04-25 Eli Zaretskii <eliz@gnu.org>
3570
3571 * Makefile.in (needed-list): Target removed (not used in GCC
3572 3.0 and later). All references deleted.
3573 (mostlyclean): Remove references to needed.awk and needed2.awk.
3574
3575 2009-04-14 Eli Zaretskii <eliz@gnu.org>
3576
3577 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
3578 existing and required library functions to with_target_subdir
3579 section, so that the native build does detect them at configure
3580 time.
3581 * configure: Regenerated.
3582
3583 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3584
3585 PR target/39397
3586 * pex-common.h (struct pex_obj): Store pid values as pid_t,
3587 not as long (members *children and (*wait))
3588 * pex-common.c (pex_run_in_environment): Likewise.
3589 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
3590 returned pid value.
3591 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
3592 * pex-msdos.c (pex_msdos_wait): Likewise.
3593
3594 2009-04-07 Arnaud Patard <apatard@mandriva.com>
3595
3596 * configure.ac: Fix Linux/MIPS matching rule.
3597 * configure: Regenerate.
3598
3599 2009-03-27 Ian Lance Taylor <iant@google.com>
3600
3601 * memmem.c: New file, from gnulib.
3602 * configure.ac: Add memmem to list of functions provided if they
3603 are not available on the host.
3604 * Makefile.in: Rebuild dependencies.
3605 (CFILES): Add memmem.c.
3606 (CONFIGURED_OFILES): Add memmem.o.
3607 * configure, config.in, functions.texi: Rebuild.
3608
3609 2009-03-23 Jason Merrill <jason@redhat.com>
3610
3611 * cp-demangle.c (d_expression): Handle pack expansion.
3612 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
3613 (d_print_subexpr): Don't wrap function parms in ().
3614 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
3615 not finding a pack.
3616
3617 2009-03-17 Jason Merrill <jason@redhat.com>
3618
3619 * cp-demangle.c (d_make_function_param): new fn.
3620 (cplus_demangle_mangled_name): Work around abi v2 bug.
3621 (d_expr_primary): Likewise.
3622 (cplus_demangle_operators): Add alignof ops.
3623 (d_expression): Handle function parameters and conversions
3624 with other than 1 operand.
3625 (d_print_comp): Handle function parameters. Fix bug with
3626 function used in type of function.
3627 * testsuite/demangle-expected: Update tests.
3628
3629 2009-02-21 Mark Mitchell <mark@codesourcery.com>
3630
3631 * make-temp-file.c (<windows.h>): Include on Windows.
3632 (choose_tmpdir): On Windows, use GetTempPath.
3633
3634 2009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
3635
3636 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
3637 as it no longer shares libiberty object files.
3638 * configure: Regenerated.
3639
3640 2009-01-07 Jason Merrill <jason@redhat.com>
3641
3642 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3643
3644 2009-01-06 Ben Elliston <bje@au.ibm.com>
3645
3646 * cp-demangle.c (cplus_demangle_type): Return NULL if the
3647 character following a 'D' cannot be recognised.
3648
3649 2008-12-18 Jason Merrill <jason@redhat.com>
3650
3651 PR c++/38561
3652 * cp-demangle.c (d_expression, d_print_comp): Revert
3653 cast changes.
3654
3655 2008-12-17 Jason Merrill <jason@redhat.com>
3656
3657 * cp-demangle.c (d_expression): Handle rvalue stubs too.
3658 [DEMANGLE_COMPONENT_CAST]: Update mangling.
3659 (d_print_comp): Avoid extra ", " with empty template argument packs.
3660 Remove handling for obsolete T() mangling.
3661
3662 2008-12-10 Jason Merrill <jason@redhat.com>
3663
3664 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
3665 (d_print_comp, d_dump): Likewise.
3666
3667 2008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3668
3669 * Makefile.in (CPPFLAGS): Define.
3670 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3671
3672 2008-10-15 Paolo Bonzini <bonzini@gnu.org>
3673
3674 PR bootstrap/37137
3675 * Makefile.in (LIBCFLAGS): Remove.
3676 (FLAGS_TO_PASS): Don't mention it.
3677 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3678
3679 2008-10-08 David Edelsohn <edelsohn@gnu.org>
3680
3681 * xstrdup.c: Include <sys/types.h> after "config.h"
3682
3683 2008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 * configure.ac: Call AC_SYS_LARGEFILE.
3686 * config.in: Regenerated.
3687 * configure: Likewise.
3688
3689 2008-10-06 Jason Merrill <jason@redhat.com>
3690
3691 * cp-demangle.c (struct d_print_info): Add pack_index.
3692 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
3693 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
3694 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
3695 (cplus_demangle_builtin_types): Add char16/32_t.
3696 (cplus_demangle_type): Recognize them.
3697 (d_template_args): Handle empty argument packs.
3698 (d_template_arg): Handle argument packs.
3699 (d_expression): Handle dependent name.
3700 (d_index_template_argument): New fn.
3701 (d_lookup_template_argument): New fn.
3702 (d_find_pack, d_pack_length): New fn.
3703 (d_print_subexpr): Split out...
3704 (d_print_comp): ...from here. Use d_*_template_argument.
3705 Handle empty arg lists. Support pack expansions.
3706 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
3707
3708 2008-09-09 Jason Merrill <jason@redhat.com>
3709
3710 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
3711 (d_make_comp): Likewise.
3712 (cplus_demangle_type): Handle decltype and DFP types.
3713 (cplus_demangle_operators): Call operator takes 2 args.
3714 (cplus_demangle_builtin_types): Add DFP types.
3715 (d_exprlist): New fn.
3716 (d_expression): Handle parm placeholders, T() and calls.
3717 (d_print_comp): Handle decltype, T() and calls.
3718 * testsuite/demangle-expected: Test the above.
3719
3720 2008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3721
3722 * pex-win32.c (argv_to_argc): New function.
3723 (spawn_script): Duplicate argv before calling win32_spawn.
3724
3725 2008-07-31 Jakub Jelinek <jakub@redhat.com>
3726
3727 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3728
3729 2008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
3730
3731 * mkstemps.c (mkstemps): If open failed with errno other than
3732 EEXIST, return immediately.
3733 * make-temp-file.c: Include errno.h.
3734 (make_temp_file): If mkstemps failed, print an error message
3735 before aborting.
3736
3737 2008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3738
3739 * maint-tool (deps): Output config.h instead of stamp-h.
3740 * Makefile.in: Rebuild deps.
3741 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3742 Reverts 2007-07-11 change.
3743
3744 2008-06-19 Eric Blake <ebb9@byu.net>
3745
3746 Adjust strsignal to POSIX 200x prototype.
3747 * strsignal.c (strsignal): Remove const.
3748
3749 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3750
3751 * configure: Regenerate.
3752
3753 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3754
3755 * libiberty.texi: Expand TABs, drop indentation outside examples.
3756 * obstacks.texi: Likewise.
3757
3758 2008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3759
3760 * configure.ac: use -fPIC on Linux/MIPS hosts.
3761 * configure: Regenerate.
3762
3763 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3764
3765 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3766
3767 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
3768
3769 PR bootstrap/35457
3770 * aclocal.m4: Add override.m4.
3771 * configure: Regenerate.
3772
3773 2008-03-31 Ian Lance Taylor <iant@google.com>
3774
3775 * cp-demangle.c (d_substitution): Correct overflow check to avoid
3776 -fstrict-overflow optimizations.
3777
3778 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
3779
3780 * configure.ac (frags): Don't set, use frag instead.
3781 (PICFLAG): Set here and substitute.
3782 * Makefile.in (PICFLAG): Substitute from autoconf.
3783 * configure: Regenerate.
3784
3785 2008-03-24 Ian Lance Taylor <iant@google.com>
3786
3787 * sha1.c: New file, from gnulib.
3788 * Makefile.in: Rebuild dependencies.
3789 (CFILES): Add sha1.c.
3790 (REQUIRED_OFILES): Add sha1.o.
3791
3792 2008-03-24 Doug Evans <dje@google.com>
3793
3794 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3795 return from strdup.
3796
3797 2008-03-12 Seongbae Park <seongbae.park@gmail.com>
3798
3799 * cplus-dem.c (malloc, realloc): Use void * instead of char *
3800 as return type.
3801
3802 2008-03-11 Nick Clifton <nickc@redhat.com>
3803
3804 * md5.c (md5_process_bytes): Do not assume that memcpy will
3805 provide a return value.
3806
3807 2008-02-19 Ben Elliston <bje@au.ibm.com>
3808
3809 PR other/12618
3810 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3811
3812 2008-01-26 David Daney <ddaney@avtrex.com>
3813
3814 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3815 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3816 DEMANGLE_COMPONENT_CHARACTER cases.
3817 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
3818 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
3819 (d_make_character): New function.
3820 (d_java_resource): Same.
3821 (d_special_name): Handle "Gr" case.
3822 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
3823 DEMANGLE_COMPONENT_COMPOUND_NAME, and
3824 DEMANGLE_COMPONENT_CHARACTER cases.
3825 * testsuite/demangle-expected: Add test for java resource name
3826 mangling.
3827
3828 2008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
3829
3830 * cplus-dem.c (demangle_function_name): Changed to return value
3831 indicating if a name was correctly demangled.
3832 (iterate_demangle_function): Use demangle_function_name return
3833 value.
3834
3835 2008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3836
3837 PR other/33768
3838 * splay-tree.c (rotate_left): Fix minor typo in comment.
3839 (rotate_right): Likewise.
3840
3841 2007-11-12 Joseph Myers <joseph@codesourcery.com>
3842
3843 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
3844 compiler warnings.
3845 (floatformat_ibm_long_double): Use
3846 floatformat_ibm_long_double_is_valid.
3847
3848 2007-11-07 Joseph Myers <joseph@codesourcery.com>
3849 Daniel Jacobowitz <dan@codesourcery.com>
3850
3851 * floatformat.c (mant_bits_set): New.
3852 (floatformat_to_double): Use it. Note no special handling of
3853 split formats.
3854 (floatformat_from_double): Note no special handing of split
3855 formats.
3856 (floatformat_ibm_long_double_is_valid,
3857 floatformat_ibm_long_double): New.
3858 (floatformat_ieee_single_big, floatformat_ieee_single_little,
3859 floatformat_ieee_double_big, floatformat_ieee_double_little,
3860 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
3861 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
3862 floatformat_m68881_ext, floatformat_i960_ext,
3863 floatformat_m88110_ext, floatformat_m88110_harris_ext,
3864 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
3865 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
3866 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
3867 for addition of split_half field.
3868
3869 2007-09-06 Tom Tromey <tromey@redhat.com>
3870
3871 * pexecute.txh (pex_free): Document process killing.
3872
3873 2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
3874
3875 * cp-demangle.c (d_dump): Handle
3876 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
3877 (d_make_comp): Ditto.
3878 (cplus_demangle_type): Ditto.
3879 (d_print_comp): Ditto.
3880 (d_print_mod): Ditto.
3881 (d_print_function_type): Ditto.
3882
3883 2007-08-24 Kai Tietz <kai.tietz@onevision.com>
3884
3885 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
3886 * pex-djgpp.c: Likewise.
3887 * pex-msdos.c: Likewise.
3888 * pex-unix.c: Likewise.
3889 * pex-win32.c: Likewise.
3890
3891 2007-08-17 Michael Snyder <msnyder@access-company.com>
3892
3893 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3894
3895 2007-08-03 Michael Snyder <msnyder@access-company.com>
3896
3897 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3898 leak.
3899
3900 2007-07-31 Michael Snyder <msnyder@access-company.com>
3901
3902 * cp-demangle.c (d_print_comp): Guard against null.
3903
3904 2007-07-25 Ben Elliston <bje@au.ibm.com>
3905
3906 * Makefile.in (CFILES): Remove ternary.c.
3907 (REQUIRED_OFILES): Remove ./ternary.o.
3908 (INSTALLED_HEADERS): Remove ternary.h.
3909 (ternary.o): Remove.
3910 * ternary.c: Remove.
3911
3912 2007-07-23 DJ Delorie <dj@redhat.com>
3913
3914 * argv.c (writeargv): Fix typo in inline documentation.
3915 * functions.texi: Regenerate.
3916
3917 2007-07-17 DJ Delorie <dj@redhat.com>
3918
3919 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
3920 gettimeofday entry.
3921 * configure: Likewise.
3922
3923 2007-07-11 Alexandre Oliva <aoliva@redhat.com>
3924
3925 * maint-tool (deps): Output stamp-h instead of config.h.
3926 * Makefile.in: Rebuild deps.
3927 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
3928
3929 2007-07-02 Simon Baldwin <simonb@google.com>
3930
3931 * argv.c (writeargv): Removed declaration of unused variable.
3932
3933 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
3934
3935 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
3936 * configure: Regenerate.
3937
3938 2007-06-14 Paolo Bonzini <bonzini@gnu.org>
3939
3940 * aclocal.m4: Include config/warnings.m4.
3941 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
3942 * configure: Regenerate.
3943
3944 2007-06-07 Geoffrey Keating <geoffk@apple.com>
3945
3946 * configure.ac: Non-default multilibs can be cross compilations.
3947 * configure: Regenerate
3948
3949 2007-05-07 Nathan Froyd <froydnj@codesourcery.com>
3950
3951 * argv.c (writeargv): New function.
3952
3953 2007-05-05 Geoffrey Keating <geoffk@apple.com>
3954
3955 * cp-demangle.c (d_name): Detect local-source-name.
3956 (d_prefix): Likewise.
3957 (d_unqualified_name): Implement local-source-name.
3958
3959 2007-05-03 Joel Brobecker <brobecker@adacore.com>
3960
3961 * filename_cmp.c: Replace include of ctype.h by include of
3962 safe-ctype.h.
3963 (filename_cmp): Use TOLOWER instead of tolower for conversions
3964 that are locale-independent.
3965 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
3966
3967 2007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
3968
3969 * argv.c: Use ANSI C declarations.
3970 * make-relative-prefix.c: Likewise.
3971
3972 2007-04-06 Joel Brobecker <brobecker@adacore.com>
3973
3974 * filename_cmp.c (filename_cmp): Improve documentation.
3975
3976 2007-04-02 Andreas Schwab <schwab@suse.de>
3977
3978 * filename_cmp.c: Include "config.h".
3979
3980 2007-03-29 Joel Brobecker <brobecker@adacore.com>
3981
3982 * filename_cmp.c: New file.
3983 * Makefile.in (CFILES): Add filename_cmp.c.
3984 (REQUIRED_OFILES): Add filename_cmp.o
3985 (filename_cmp.o): New rule.
3986 * functions.texi: Regenerate.
3987
3988 2007-03-15 Geoffrey Keating <geoffk@apple.com>
3989
3990 * cp-demangle.c (d_encoding): Exit early on error.
3991 (d_pointer_to_member_type): Exit early if cplus_demangle_type
3992 returns NULL.
3993 (cplus_demangle_type): Likewise.
3994 * testsuite/demangle-expected: New testcase.
3995
3996 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3997
3998 * Makefile.in: Add install-pdf target as copied from
3999 automake v1.10 rules.
4000 * testsuite/Makefile.in: Add dummy install-pdf target.
4001
4002 2007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
4003 Eric Botcazou <ebotcazou@libertysurf.fr>
4004
4005 PR other/16513
4006 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
4007 Install headers in multilib independent location.
4008
4009 2007-02-26 DJ Delorie <dj@redhat.com>
4010
4011 * configure.ac: add djgpp-specific results, so we don't have to
4012 link during a cross compilation.
4013 * configure: Regenerated.
4014
4015 2007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4016
4017 * hex.c: Fix typo.
4018 * choose-temp.c: Likewise.
4019 * functions.texi: Regenerate.
4020
4021 2007-01-31 Vladimir Prus <vladimir@codesourcery.com>
4022
4023 * pex-common.h (struct pex_obj): New fields
4024 stderr_pipe and read_err.
4025 * pex-common.c (pex_init_common): Initialize
4026 stderr_pipe.
4027 (pex_run_in_environment): Add error checking
4028 for PEX_STDERR_TO_PIPE. Create a pipe
4029 for stderr if necessary.
4030 (pex_read_err): New.
4031 (pex_free): Close read_err.
4032 * pexecute.txh: Document changes.
4033 * functions.texi: Regenerated.
4034
4035 2007-01-31 Ben Elliston <bje@au.ibm.com>
4036
4037 * strsignal.c (psignal): Change type of signo to int.
4038 * functions.texi: Regenerate.
4039
4040 2007-01-29 Simon Baldwin <simonb@google.com>
4041
4042 * cp-demangle.h (cplus_demangle_operators): External definition
4043 suppressed if not building for libstdc++.
4044 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
4045 to demangling, provides a malloc-less version of __cxa_demangle.
4046 (cplus_demangle_print_callback): Public callback version of
4047 cplus_demangle_print.
4048 (struct d_growable_string): New growable string structure.
4049 (d_growable_string_init): New function, provides support for
4050 growable strings separate from print info.
4051 (d_growable_string_resize): Likewise.
4052 (d_growable_string_append_buffer): Likewise.
4053 (d_growable_string_callback_adapter):): Likewise.
4054 (d_print_init): New print info initialization function.
4055 (d_print_error): Macro replace by inline function.
4056 (d_print_saw_error): Likewise.
4057 (d_append_char): Likewise.
4058 (d_append_buffer): Likewise.
4059 (d_append_string): New inline function, replaces the
4060 d_append_string_constant macro.
4061 (d_flush_buffer): New function, flushes buffer to callback.
4062 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
4063 for unsupported dynamic arrays replaced by alloca().
4064 (d_demangle): Return string length estimating removed.
4065 (d_dump): Moved error case handling from call site into function.
4066 (d_print_resize): Function removed.
4067 (d_print_append_char): Likewise.
4068 (d_print_append_buffer): Likewise.
4069 (d_print_error): Likewise.
4070 (d_print_comp): Added special case handling for Java arrays.
4071 (java_demangle_v3): Removed string post-processing for Java arrays,
4072 now replaced by special case handling in d_print_comp.
4073 (cplus_demangle_v3_callback): Augmented interface to demangling,
4074 provides a malloc-less version of cplus_demangle_v3.
4075 (java_demangle_v3_callback): Augmented interface to demangling,
4076 provides a malloc-less version of java_demangle_v3.
4077
4078 2007-01-12 Ben Elliston <bje@au.ibm.com>
4079
4080 * pex-unix.c (writeerr): Cast write result to void.
4081
4082 * choose-temp.c (choose_temp_base): Check the result of the call
4083 to mktemp rather than testing the length of the modified string.
4084
4085 2006-12-20 Geoffrey Keating <geoffk@apple.com>
4086
4087 * cp-demangle.h: Add comment explaining what to do to avoid
4088 overrunning string.
4089 (d_check_char): New.
4090 (d_next_char): Don't advance past trailing '\0'.
4091 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
4092 (d_nested_name): Likewise.
4093 (d_special_name): Likewise.
4094 (d_call_offset): Likewise.
4095 (d_function_type): Likewise.
4096 (d_array_type): Likewise.
4097 (d_pointer_to_member_type): Likewise.
4098 (d_template_param): Likewise.
4099 (d_template_args): Likewise.
4100 (d_template_arg): Likewise.
4101 (d_expr_primary): Likewise.
4102 (d_local_name): Likewise.
4103 (d_substitution): Likewise.
4104 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
4105 * testsuite/test-demangle.c: Include sys/mman.h.
4106 (MAP_ANONYMOUS): Define.
4107 (protect_end): New.
4108 (main): Use protect_end.
4109 * testsuite/demangle-expected: Add testcases for overrunning
4110 the end of the string.
4111
4112 2006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
4113 J"orn Rennecke <joern.rennecke@st.com>
4114
4115 PR driver/29931
4116 * make-relative-prefix.c (make_relative_prefix_1): New function,
4117 broken out of make_relative_prefix. Make link resolution dependent
4118 on new parameter.
4119 (make_relative_prefix): Use make_relative_prefix_1.
4120 (make_relative_prefix_ignore_links): New function.
4121
4122 2006-11-08 Vladimir Prus <vladimir@codesourcery.com>
4123
4124 * pex-win32.c (no_suffixes): Remove.
4125 (std_suffixes): Add "" as first element.
4126 (find_executable): Remove detection of already-present
4127 extension. Try all suffixes in std_suffixes.
4128
4129 2006-11-07 Julian Brown <julian@codesourcery.com>
4130
4131 * floatformat.c (get_field): Fix segfault with little-endian word
4132 order on 64-bit hosts.
4133 (put_field): Likewise.
4134 (min): Move definition.
4135
4136 2006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
4137
4138 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
4139 (find_executable): Likewise.
4140 (win32_spawn): Cast alloca return to (char**).
4141 Replace malloc with XNEWVEC.
4142 bcopy.c (bcopy): Add explict casts in assignments.
4143
4144 2006-10-25 Ben Elliston <bje@au.ibm.com>
4145
4146 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
4147
4148 2006-10-10 Brooks Moses <bmoses@stanford.edu>
4149
4150 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
4151 * testsuite/Makefile.in: Added empty "pdf" target.
4152
4153 2006-09-22 Ian Lance Taylor <ian@airs.com>
4154
4155 PR other/29176
4156 * cp-demangle.c (d_substitution): Check for overflow when
4157 computing substitution index.
4158
4159 2006-08-30 Corinna Vinschen <corinna@vinschen.de>
4160
4161 * configure.ac: Add case for Mingw as host.
4162 * configure: Regenerate.
4163
4164 2006-08-27 Ian Lance Taylor <ian@airs.com>
4165
4166 PR driver/27622
4167 * pex-common.h (struct pex_funcs): Add toclose parameter to
4168 exec_child field.
4169 * pex-common.c (pex_run_in_environment): Pass toclose to
4170 exec_child.
4171 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
4172 * pex-unix.c (pex_unix_exec_child): Likewise.
4173 * pex-msdos.c (pex_msdos_exec_child): Likewise.
4174 * pex-win32.c (pex_win32_exec_child): Likewise.
4175
4176 PR other/28797
4177 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
4178 for a qualified member which is not a function.
4179 * testsuite/demangle-expected: Add test case.
4180
4181 2006-07-27 Jan Hubicka <jh@suse.cz>
4182
4183 PR rtl-optimization/28071
4184 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
4185 downsize the hashtable.
4186
4187 2006-07-04 Peter O'Gorman <peter@pogma.com>
4188
4189 * Makefile.in: chmod 644 before ranlib during install.
4190
4191 2006-06-02 Mark Shinwell <shinwell@codesourcery.com>
4192
4193 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4194 to environ.
4195
4196 2006-06-01 Mark Shinwell <shinwell@codesourcery.com>
4197
4198 * pex-common.c: New function pex_run_in_environment.
4199 * pex-common.h: Add environment parameter to exec_child.
4200 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
4201 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
4202 (pex_djgpp_exec_child): Pass environment to child process.
4203 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
4204 (pex_unix_exec_child): Pass environment to child process.
4205 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
4206 New function env_compare for comparing VAR=VALUE pairs.
4207 (win32_spawn): Assemble environment block and pass to CreateProcess.
4208 (spawn_script): Pass environment through to win32_spawn.
4209 (pex_win32_exec_child): Pass environment through to spawn_script and
4210 win32_spawn.
4211 * functions.texi: Regenerate.
4212 * pexecute.txh: Document pex_run_in_environment.
4213
4214 2006-05-28 Mark Shinwell <shinwell@codesourcery.com>
4215
4216 * mkstemps.c: Open temporary files in binary mode.
4217
4218 2006-05-12 Anton Blanchard <anton@samba.org>
4219
4220 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
4221 hold "int%u_t".
4222
4223 2006-04-24 Julian Brown <julian@codesourcery.com>
4224
4225 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4226
4227 2006-03-29 Jim Blandy <jimb@codesourcery.com>
4228
4229 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
4230 (pex_init_common): Initialize obj->input_file.
4231 (pex_run): Close any file opened by pex_input_file.
4232 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4233 * pex-common.h (struct pex_obj): New field input_file.
4234 (struct pex_funcs): New function ptr fdopenw.
4235 * pex-unix.c (pex_unix_fdopenw): New function.
4236 (funcs): List it as our fdopenw function.
4237 * pex-win32.c (pex_win32_fdopenw): New function.
4238 (funcs): List it as our fdopenw function.
4239 * pex-djgpp.c (funcs): Leave fdopenw null.
4240 * pex-msdos (funcs): Same.
4241 * functions.texi: Regenerated.
4242
4243 2006-04-10 Jim Blandy <jimb@codesourcery.com>
4244
4245 * pex-common.c (temp_file): New function, containing guts of
4246 pex-style temporary file name generation.
4247 (pex_run): Use it.
4248
4249 2006-04-06 Carlos O'Donell <carlos@codesourcery.com>
4250
4251 * Makefile.in: Add install-html, install-html-am, and
4252 install-html-recursive targets. Define mkdir_p and
4253 NORMAL_INSTALL.
4254 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4255 * configure: Regenerate.
4256 * testsuite/Makefile.in: Add install-html and html targets.
4257
4258 2006-03-31 Mark Mitchell <mark@codesourcery.com>
4259
4260 * pex-win32.c (<errno.h>): Include.
4261 (fix_argv): Remove.
4262 (argv_to_cmdline): New function.
4263 (std_suffixes): New variable.
4264 (no_suffixes): Likewise.
4265 (find_executable): New function.
4266 (win32_spawn): Likewise.
4267 (spawn_script): Use win32_spawn instead of _spawnv[p].
4268 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
4269 (pex_win32_wait): Likewise.
4270
4271 2006-03-24 Jim Blandy <jimb@codesourcery.com>
4272
4273 * pex-common.c (pex_run): Simplify output name handling.
4274
4275 2006-03-12 Jim Blandy <jimb@red-bean.com>
4276
4277 * pex-common.h (struct pex_obj): Doc fixes.
4278
4279 2006-03-11 Jim Blandy <jimb@red-bean.com>
4280
4281 * functions.texi: Regenerate.
4282
4283 2006-02-21 Ben Elliston <bje@au.ibm.com>
4284
4285 * pexecute.c (pwait): Syntax fix for previous change.
4286
4287 2006-02-17 Uttam Pawar <uttamp@us.ibm.com>
4288
4289 * pexecute.c (pwait): Free vector pointer.
4290 * partition.c (partition_print): Free class_elements pointer.
4291
4292 2006-02-11 Roger Sayle <roger@eyesopen.com>
4293 R. Scott Bailey <scott.bailey@eds.com>
4294 Bill Northcott <w.northcott@unsw.edu.au>
4295
4296 PR bootstrap/16787
4297 * floatformat.c: Include <float.h> where available.
4298 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
4299
4300 2006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4301
4302 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
4303 supported.
4304 * configure: Regenerated.
4305
4306 2006-01-20 Carlos O'Donell <carlos@codesourcery.com>
4307
4308 * testsuite/Makefile.in: Add test-expandargv test.
4309 * testsuite/test-expandargv.c: New test.
4310 * argv.c (expandargv): Check for errors with ferror,
4311 rather than just by looking at return value from fread.
4312
4313 2005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
4314
4315 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
4316 to convert from "from".
4317 (floatformat_to_double): Likewise.
4318 (floatformat_from_double): Use explicit cast to convert from "to".
4319
4320 2005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
4321
4322 PR java/9861
4323 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
4324 and include return type when found.
4325 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
4326 conditional logic to change printing order of return type.when
4327 the DMGL_RET_POSTFIX option is present.
4328 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
4329 call.
4330 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
4331 * testsuite/demangle-expected: Test cases to verify extended encoding.
4332 Updated comment to document --ret-postfix option.
4333
4334 2005-11-06 Richard Guenther <rguenther@suse.de>
4335
4336 * splay-tree.c (rotate_left): New function.
4337 (rotate_right): Likewise.
4338 (splay_tree_splay_helper): Remove.
4339 (splay_tree_splay): Re-implement.
4340
4341 2005-10-31 Mark Kettenis <kettenis@gnu.org>
4342
4343 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4344 New variables.
4345
4346 2005-10-07 Mark Mitchell <mark@codesourcery.com>
4347
4348 * at-file.texi: Fix typo.
4349
4350 2005-10-03 Mark Mitchell <mark@codesourcery.com>
4351
4352 * at-file.texi: New file.
4353
4354 2005-09-27 Mark Mitchell <mark@codesourcery.com>
4355
4356 * argv.c (expandargv): Do not use xmalloc_failed.
4357
4358 2005-09-26 Mark Mitchell <mark@codesourcery.com>
4359
4360 * argv.c (safe-ctype.h): Include it.
4361 (ISBLANK): Remove.
4362 (stdio.h): Include.
4363 (buildargv): Use ISSPACE instead of ISBLANK.
4364 (expandargv): New function.
4365 * Makefile.in: Regenerated.
4366
4367 2005-09-14 Christopher Faylor <cgf@timesys.com>
4368
4369 * pex-win32.c: Include "windows.h".
4370 (backslashify): New function.
4371 (fix_argv): Use backslashify to convert path to windows format.
4372 Allocate one more place in new argv for potential executable from '#!'
4373 parsing.
4374 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
4375 (openkey): Ditto.
4376 (mingw_rootify): Ditto.
4377 (msys_rootify): Ditto.
4378 (spawn_script): New function.
4379 (pex_win32_exec_child): Save translated argv in newargv. Pass to
4380 spawn_script if spawnv* fails.
4381 (main): New function. Conditional on MAIN. Useful for testing.
4382
4383 2005-08-17 Mark Kettenis <kettenis@gnu.org>
4384
4385 * floatformat.c (floatformat_always_valid): Change type of last
4386 argument to `void *'.
4387 (floatformat_i387_ext_is_valid): Likewise.
4388 (floatformat_to_double): Change type of second argument to `const
4389 void *'.
4390 (floatformat_from_double): Change type of last argument to `void
4391 *'.
4392 (floatformat_is_valid): Change type of last argument to `const
4393 void *'.
4394 (ieee_test): Remove redundant casts.
4395
4396 2005-08-17 Kelley Cook <kcook@gcc.gnu.org>
4397
4398 * strverscmp.c: Update FSF address.
4399 * testsuite/Makefile.in: Likewise.
4400 * testsuite/test-demangle.c: Likewise.
4401 * testsuite/test-pexecute.c: Likewise.
4402
4403 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404
4405 * getopt.c: Include ansidecl.h before system headers.
4406
4407 2005-07-22 Ben Elliston <bje@gnu.org>
4408
4409 * getopt.c: Include "ansidecl.h".
4410 (_getopt_initialize): Mark argc and argv parameters as unused.
4411
4412 2005-07-22 Ben Elliston <bje@gnu.org>
4413
4414 * regex.c (regcomp): Change type of `i' from unsigned to int.
4415
4416 2005-07-22 Ben Elliston <bje@gnu.org>
4417
4418 Recover patch lost in the sourceware repository:
4419 2005-07-09 Ben Elliston <bje@au.ibm.com>
4420 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
4421 * memmove.c: Likewise.
4422 * objalloc.c: Likewise.
4423
4424 2005-07-22 Ben Elliston <bje@gnu.org>
4425
4426 * configure.ac: Check for a getopt(3) declaration.
4427 * configure, config.in: Regenerate.
4428
4429 2005-07-15 Ben Elliston <bje@au.ibm.com>
4430
4431 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4432
4433 2005-07-12 Ben Elliston <bje@au.ibm.com>
4434
4435 * floatformat.c (floatformat_to_double): Add a comment about a
4436 potential source of warnings when compiling this file.
4437
4438 2005-07-12 Ben Elliston <bje@au.ibm.com>
4439
4440 * pexecute.c (pexecute): Cast string litrals to char *.
4441 * regex.c (re_comp): Cast a call to gettext() to char *.
4442
4443 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4444
4445 * config.table: Delete file. Move former contents into ...
4446 * configure.ac: ... here and escape any brackets for m4.
4447 * Makefile.in (config.status): Remove dependency on config.table.
4448 * configure: Regenerate.
4449
4450 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4451
4452 * config.in: Regenerate for 6/20 change.
4453
4454 2005-07-03 Steve Ellcey <sje@cup.hp.com>
4455
4456 PR other/13906
4457 * md5.c (md5_process_bytes): Check alignment.
4458
4459 2005-07-01 Ian Lance Taylor <ian@airs.com>
4460
4461 PR other/22268
4462 * cp-demangle.c (d_expr_primary): Don't run off the end of the
4463 string while looking for the end of a literal value.
4464 * testsuite/demangle-expected: Add test case.
4465
4466 2005-06-30 Daniel Berlin <dberlin@dberlin.org>
4467
4468 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
4469 (DELETED_ENTRY): Ditto.
4470
4471 2005-06-20 Geoffrey Keating <geoffk@apple.com>
4472
4473 * strverscmp.c: New.
4474 * Makefile.in (CFILES): Add strverscmp.c.
4475 (CONFIGURED_OFILES): Add strverscmp.o.
4476 (strverscmp.o): New rule.
4477 (stamp-functions): Add $(srcdir) to files in source directory.
4478 * configure.ac (funcs): Add strverscmp.
4479 (AC_CHECK_FUNCS): Add strverscmp.
4480 * configure: Regenerate.
4481 * functions.texi: Regenerate.
4482
4483 2005-05-28 Eli Zaretskii <eliz@gnu.org>
4484
4485 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
4486 * config.in, configure: Regenerate.
4487
4488 2005-05-25 Richard Henderson <rth@redhat.com>
4489
4490 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
4491 (d_make_comp, d_print_comp): Likewise.
4492 (d_special_name): Generate one.
4493 * testsuite/demangle-expected: Add a hidden alias test.
4494
4495 2005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4496
4497 * configure.ac: Check declarations for calloc(), getenv(),
4498 malloc(), realloc() and sbrk().
4499 * config.in: Regenerate.
4500 * configure: Likewise.
4501
4502 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
4503 instead of xmalloc.
4504 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
4505 * concat.c (liiberty_concat_ptr): Surround definition with an
4506 extern "C" block, if __cplusplus.
4507 (concat): Use XNEWVEC instead of xmalloc.
4508 (reconcat): Likewise.
4509 * cp-demangle.c (struct d_print_template): Rename member
4510 "template" to "template_decl". Adjust use throughout the file.
4511 (d_print_resize): Properly cast return value of realloc().
4512 (cplus_demangle_print): Same for malloc().
4513 (d_demangle): Likewise.
4514 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
4515 "typename" to "type_name".
4516 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
4517 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
4518 (demangle_template_value_parm): Likewise.
4519 (demangle_template): Likewise.
4520 (recursively_demangle): Likewise.
4521 (do_hpacc_template_literal): Likewise.
4522 (do_arg): Likewise.
4523 (remember_type): Likewise.
4524 (remember_Ktype): Likewise.
4525 (register_Btype): Likewise.
4526 (string_need): Use XRESIZEVEC instead of xrealloc().
4527 * dyn-string.c (dyn_string_init): Use XNEWVEC.
4528 (dyn_string_new): Use XNEW.
4529 (dyn_string_resize): Use XRESIZEVEC.
4530 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
4531 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
4532 Otherwise include <stdlib.h>.
4533 (exchange): Cast return value of malloc().
4534 * hashtab.c (htab_size): Define as both macro and non-inline
4535 function.
4536 (htab_elements): Likewise.
4537 * getpwd.c (getpwd): Use XNEWVEC.
4538 (htab_create_alloc_ex): Use C90 prototype-style.
4539 * lrealpath.c (lrealpath): Appropriately cast return value of
4540 malloc().
4541 * make-relative-prefix.c (save_string): Likewise.
4542 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
4543 the file.
4544 (choose_tmpdir): Use XNEWVEC.
4545 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
4546 * pex-common.c (pex_init_common): Use XNEW.
4547 (pex_add_remove): Use XRESIZEVEC.
4548 (pex_run): Likewise.
4549 (pex_get_status_and_time): Likewise.
4550 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
4551 * pex-msdos.c (pex_init): Use XNEW.
4552 (pex_msdos_exec_child): Likewise.
4553 (pex_msdos_exec_child): Use XRESIZEVEC.
4554 * pex-unix.c (pex_wait): Use XNEW.
4555 * pex-win32.c (fix_argv): Use XNEWVEC.
4556 * pexecute.c (pwait): Likewise.
4557 * setenv.c (setenv): Properly cast return value of malloc().
4558 * sigsetmask.c (sigsetmask): Rename local variables "old" and
4559 "new" to "old_sig" and "new_sig".
4560 * sort.c (main): Use XNEWVEC.
4561 * spaces.c (spaces): Cast return value of malloc().
4562 * strndup.c (strndup): Likewise.
4563 * ternary.c (ternary_insert): Use XNEW.
4564 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
4565 with an extern "C" block if __cplusplus.
4566 * xstrdup.c (xstrdup): Cast return value of memcpy().
4567 * xstrerror.c (strerror): Enclose declaration in an extern "C"
4568 block if __cplusplus.
4569 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
4570
4571 2005-05-16 Andreas Jaeger <aj@suse.de>
4572
4573 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
4574 that it's only declared if needed.
4575
4576 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
4577 defined.
4578
4579 2005-05-15 Andreas Jaeger <aj@suse.de>
4580
4581 * functions.texi: Regenerated.
4582
4583 2005-05-15 Eli Zaretskii <eliz@gnu.org>
4584
4585 * pexecute.txh: Enclose multi-word data types in @deftypefn in
4586 braces. Minor wording fixes. Use --- for em-dash. Use
4587 @enumerate in enumerated lists.
4588
4589 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4590 braces.
4591
4592 2005-05-11 Eli Zaretskii <eliz@gnu.org>
4593
4594 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
4595 sys/stat.h.
4596 (pex_init): Fix last argument to pex_init_common.
4597 (pex_djgpp_exec_child): Remove leading underscore from _open,
4598 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
4599 which is undeclared, with `executable', which was unused. Remove
4600 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
4601 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
4602
4603 2005-05-11 Paul Brook <paul@codesourcery.com>
4604
4605 * Makefile.in: Regenerate dependencies.
4606
4607 2005-05-10 Nick Clifton <nickc@redhat.com>
4608
4609 * Update the address and phone number of the FSF organization in
4610 the GPL notices in the following files:
4611 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
4612 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
4613 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
4614 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
4615 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
4616 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
4617 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
4618 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
4619 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
4620 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
4621 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
4622 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
4623 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
4624
4625 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4626
4627 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
4628 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
4629 * configure: Regenerate.
4630
4631 2005-05-06 Kelley Cook <kcook@gcc.gnu.org>
4632
4633 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
4634 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
4635 * aclocal.m4: Don't include accross.m4.
4636 * configure, config.in: Regenerate.
4637
4638 2005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4639
4640 * fopen_unlocked.c (unlock_std_streams): New.
4641
4642 * functions.texi: Regenerate.
4643
4644 2005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4645
4646 * fopen_unlocked.c (unlock_stream): New.
4647 Consolidate unlocking code into a helper function.
4648
4649 * functions.texi: Regenerate.
4650
4651 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4652
4653 * asprintf.c: Include config.h.
4654 * basename.c: Likewise.
4655 * fdmatch.c: Likewise.
4656 * hex.c: Likewise.
4657 * lbasename.c: Likewise.
4658 * spaces.c: Likewise.
4659 * xatexit.c:Likewise.
4660 * configure.ac: Do check declarations for basename, ffs, asprintf
4661 and vasprintf for real.
4662 * configure: Regenerate.
4663
4664 2005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4665
4666 * argv.c (dupargv): Allocate space of argv[argc], not
4667 sizeof(char *) of that amount. Cast result to char *.
4668
4669 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4670
4671 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
4672 Replace not with negate.
4673
4674 2005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4675
4676 * configure.ac: Check declarations for basename, ffs, asprintf,
4677 vasprintf.
4678 * configure: Regenerate.
4679 * config.in: Likewise.
4680
4681 2005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4682
4683 * Makefile.in (CFILES): Add fopen_unlocked.c.
4684 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
4685 Regenerate dependencies.
4686
4687 * configure.ac: Check for stdio_ext.h and __fsetlocking.
4688
4689 * fopen_unlocked.c: New file.
4690
4691 * functions.texi, configure, config.in: Regenerate.
4692
4693 2005-04-04 Ian Lance Taylor <ian@airs.com>
4694
4695 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4696 declaration before statement.
4697
4698 2005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4699
4700 * bcmp.c: Fix warnings and implement using memcmp.
4701 * bcopy.c: Fix warnings.
4702 * bzero.c: Fix warnings and implement using memset.
4703
4704 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
4705 -Wstrict-prototypes.
4706 * configure, config.in: Regenerate.
4707
4708 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
4709 warnings and reconcile interfaces with relevant standards.
4710
4711 2005-04-02 Ian Lance Taylor <ian@airs.com>
4712
4713 * cp-demangle.c: Update copyright.
4714
4715 2005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4716
4717 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4718 * functions.texi: Regenerate.
4719
4720 2005-03-28 Ian Lance Taylor <ian@airs.com>
4721
4722 * pex-common.c: New file.
4723 * pex-one.c: New file.
4724 * pexecute.c: New file.
4725 * pex-common.h: Include <stdio.h>.
4726 (struct pex_obj): Define.
4727 (struct pex_funcs): Define.
4728 (pex_init_common): Declare.
4729 * pex-unix.c: Rewrite.
4730 * pex-win32.c: Rewrite.
4731 * pex-djgpp.c: Rewrite.
4732 * pex-msdos.c: Rewrite.
4733 * testsuite/text-pexecute.c: New file.
4734 * pexecute.txh: Rewrite.
4735 * configure.ac: Check for wait3 and wait4. Set CHECK to
4736 really-check rather than check-cplus-dem.
4737 * functions.texi: Rebuild.
4738 * Makefile.in: Rebuild dependencies.
4739 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
4740 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
4741 * testsuite/Makefile.in (really-check): New target.
4742 (check-pexecute, test-pexecute): New targets.
4743 * configure: Rebuild.
4744
4745 2005-03-28 Mark Kettenis <kettenis@gnu.org>
4746
4747 * unlink-if-ordinary.c: Include <sys/types.h>.
4748
4749 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4750
4751 Convert libiberty to use ISO C prototype style 7/n.
4752 * regex.c (PARAMS): Remove definition.
4753 (PREFIX): Unconditionaly define using ISO C ## operator.
4754 (init_syntax_once, extract_number, extract_number_and_incr,
4755 print_fastmap, print_partial_compiled_pattern,
4756 print_compiled_pattern, print_double_string, printchar,
4757 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4758 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
4759 at_begline_loc_p, at_endline_p, group_in_compile_stack,
4760 insert_space, wcs_compile_range, byte_compile_range,
4761 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
4762 re_set_registers, re_search, re_search_2, re_search_3, re_match,
4763 re_match_2, count_mbs_length, wcs_re_match_2_internal,
4764 byte_re_match_2_internal, group_match_null_string_p,
4765 alt_match_null_string_p, common_op_match_null_string_p,
4766 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
4767 regexec, regerror, regfree): Use ISO C prototype style.
4768 * partition.c: (elem_compare): Likewise.
4769 * cp-demangle.c (print_usage): Likewise.
4770
4771 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4772
4773 Convert libiberty to use ISO C prototype style 5/n.
4774 * random.c (srandom, initstate, setstate, random): Use ISO C
4775 prototypes.
4776 * putenv.c (putenv): Likewise.
4777 * physmem.c (physmem_available, physmem_total, main): Likewise.
4778 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
4779 * pex-unix.c (pexecute, pwait): Likewise.
4780 * pex-msdos.c (pexecute, pwait): Likewise.
4781 * pex-djgpp.c (pexecute, pwait): Likewise.
4782 * partition.c (partition_new, partition_delete, partition_union)
4783 (elem_compare, partition_print): Likewise.
4784 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4785 _obstack_allocated_p, _obstack_free, obstack_free,
4786 _obstack_memory_used, print_and_abort, obstack_next_free,
4787 obstack_object_size, obstack_base): Likewise. Remove codes
4788 predicated on !defined(__STDC__).
4789 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
4790 objalloc_free_block): Use ISO C prototypes.
4791 * mkstemps.c (mkstemps): Likewise.
4792 * memset.c (memset): Likewise.
4793 * mempcpy.c (mempcpy): Likewise.
4794 * rename.c (rename): Likewise.
4795 * rindex.c (rindex): Likewise.
4796 * setenv.c (setenv, unsetenv): Likewise.
4797 * sigsetmask.c (sigsetmask): Likewise.
4798 * snprintf.c (snprintf): Likewise.
4799 * sort.c (sort_pointers, xmalloc): Likewise.
4800 * spaces.c (spaces): Likewise.
4801 * splay-tree.c (splay_tree_delete_helper,
4802 splay_tree_splay_helper, splay_tree_splay,
4803 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
4804 splay_tree_new, splay_tree_xmalloc_allocate,
4805 splay_tree_new_with_allocator, splay_tree_delete,
4806 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
4807 splay_tree_max, splay_tree_min, splay_tree_predecessor,
4808 splay_tree_successor, splay_tree_foreach,
4809 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
4810 * stpcpy.c (stpcpy): Likewise.
4811 * stpncpy.c (stpncpy): Likewise.
4812 * strcasecmp.c (strcasecmp): Likewise.
4813 * strchr.c (strchr): Likewise.
4814 * strdup.c (strdup): Likewise.
4815
4816 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4817
4818 Convert libiberty to use ISO C prototype style 6/n.
4819 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
4820 strtoerrno, main): Use ISO C prototype style.
4821 * strncasecmp.c (strncasecmp): Likewise.
4822 * strncmp.c (strncmp): Likewise.
4823 * strndup.c (strndup): Likewise.
4824 * strrchr.c (strrchr): Likewise.
4825 * strsignal.c (init_signal_tables, signo_max, strsignal,
4826 strsigno, strtosigno, psignal, main): Likewise.
4827 * strstr.c (strstr): Likewise.
4828 * strtod.c (strtod, atof): Likewise.
4829 * strtol.c (strtol): Likewise.
4830 * strtoul.c (strtoul): Likewise.
4831 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
4832 ternary_recursivesearch): Likewise.
4833 * tmpnam.c (tmpnam): Likewise.
4834 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
4835 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
4836 * vfork.c (vfork): Likewise.
4837 * vfprintf.c (vfprintf): Likewise.
4838 * vprintf.c (vprintf): Likewise.
4839 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
4840 * vsprintf.c (vsprintf): Likewise.
4841 * waitpid.c (waitpid): Likewise.
4842 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
4843 * xexit.c (xexit): Likewise.
4844 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
4845 xcalloc, xrealloc): Likewise.
4846 * xmemdup.c (xmemdup): Likewise.
4847 * xstrdup.c (xstrdup): Likewise.
4848 * xstrerror.c (xstrerror): Likewise.
4849 * xstrndup.c (xstrndup): Likewise.
4850
4851 2005-03-27 Andreas Jaeger <aj@suse.de>
4852
4853 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4854 flags.
4855 * configure: Regenerated.
4856
4857 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4858
4859 * getopt1.c (getopt_long_only): Fix thinko.
4860
4861 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4862
4863 Convert libiberty to use ISO C prototype style 4/n.
4864 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
4865 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
4866 htab_create_alloc, htab_set_functions_ex, htab_create,
4867 htab_try_create, htab_delete, htab_empty,
4868 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
4869 htab_find, htab_find_slot_with_hash, htab_find_slot,
4870 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
4871 htab_traverse_noresize, htab_traverse, htab_collisions,
4872 htab_hash_string, iterative_hash): Use ISO C prototype.
4873 * hex.c (hex_init): Likewise.
4874 * index.c (index): Likewise.
4875 * insque.c (insque, remque): Likewise.
4876 * lbasename.c (lbasename): Likewise.
4877 * lrealpath.c (lrealpath): Likewise.
4878 * make-relative-prefix.c (save_string, split_directories,
4879 free_split_directories, make_relative_prefix): Likewise.
4880 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
4881 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
4882 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
4883 * memchr.c (memchr): Likewise.
4884 * memcpy.c (memcpy): Likewise.
4885 * memmove.c (memmove): Likewise.
4886 * gettimeofday.c (gettimeofday): Likewise.
4887 * getruntime.c (get_run_time): Likewise.
4888 * getpwd.c (getpwd, getpwd): Likewise.
4889 * getpagesize.c (getpagesize): Likewise.
4890 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
4891 * getopt.c (my_index, exchange, _getopt_initialize,
4892 _getopt_internal, getopt, main): Likewise.
4893 * getcwd.c (getcwd): Likewise.
4894 * fnmatch.c (fnmatch): Likewise.
4895 * floatformat.c (floatformat_always_valid,
4896 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
4897 put_field, floatformat_from_double, floatformat_is_valid,
4898 ieee_test, main): Likewise.
4899 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
4900 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
4901 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
4902 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
4903 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
4904 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
4905 fibheap_link, fibheap_cut, fibheap_cascading_cut,
4906 fibnode_insert_after, fibnode_remove): Likewise.
4907 * ffs.c (ffs): Likewise.
4908 * fdmatch.c (fdmatch): Likewise.
4909 * dyn-string.c (dyn_string_init, dyn_string_new,
4910 dyn_string_delete, dyn_string_release, dyn_string_resize,
4911 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
4912 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
4913 dyn_string_insert_cstr, dyn_string_insert_char,
4914 dyn_string_append, dyn_string_append_cstr,
4915 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
4916 Likewise.
4917
4918 2005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4919
4920 Convert libiberty to use ISO C prototype style 3/n.
4921 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
4922 consume_count_with_underscores, code_for_qualifier,
4923 qualifier_string, demangle_qualifier, cplus_demangle_opname,
4924 cplus_mangle_opname, cplus_demangle_set_style,
4925 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
4926 ada_demangle, internal_cplus_demangle, squangle_mop_up,
4927 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
4928 delete_work_stuff, mop_up, demangle_signature,
4929 demangle_method_args, demangle_template_template_parm,
4930 demangle_expression, demangle_integral_value,
4931 demangle_real_value, demangle_template_value_parm,
4932 demangle_template, arm_pt, demangle_arm_hp_template,
4933 demangle_class_name, demangle_class, iterate_demangle_function,
4934 demangle_prefix, gnu_special, recursively_demangle, arm_special,
4935 demangle_qualified, get_count, do_type, demangle_fund_type,
4936 do_hpacc_template_const_value, do_hpacc_template_literal,
4937 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
4938 register_Btype, remember_Btype, forget_B_and_K_types,
4939 forget_types, demangle_args, demangle_nested_args,
4940 demangle_function_name, string_need, string_delete, string_init,
4941 string_clear, string_empty, string_append, string_appends,
4942 string_appendn, string_prepend, string_prepends, string_prependn,
4943 string_append_template_idx): Use ISO C prootype style.
4944 * cp-demint.c (cplus_demangle_fill_component,
4945 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
4946 cplus_demangle_v3_components): Likewise.
4947
4948 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4949
4950 Convert libiberty to use ISO C prototype style 2/n.
4951 * cp-demangle.h: Remove uses of PARAMS.
4952 * cp-demangle.c: Likewise.
4953 (d_dump, cplus_demangle_fill_name,
4954 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
4955 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
4956 d_make_builtin_type, d_make_operator, d_make_extended_operator,
4957 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
4958 cplus_demangle_mangled_name, has_return_type,
4959 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
4960 d_prefix, d_unqualified_name, d_source_name, d_number,
4961 d_identifier, d_operator_name, d_special_name, d_call_offset,
4962 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
4963 d_function_type, d_bare_function_type, d_class_enum_type,
4964 d_array_type, d_pointer_to_member_type, d_template_param,
4965 d_template_args, d_template_arg, d_expression, d_expr_primary,
4966 d_local_name, d_discriminator, d_add_substitution,
4967 d_substitution, d_print_resize, d_print_append_char,
4968 d_print_append_buffer, d_print_error, cplus_demangle_print,
4969 d_print_comp, d_print_java_identifier, d_print_mod_list,
4970 d_print_mod, d_print_function_type, d_print_array_type,
4971 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
4972 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
4973 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
4974 print_usage, main):
4975
4976 2005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
4977
4978 Convert libiberty to ISO C prototype style 1/n.
4979 * _doprnt.c: Remove conditional #include <varargs.h> on
4980 ANSI_PROTOTYPES as the latter is always assumed.
4981 (_doprnt, checkit, main): Use ISO C prototype.
4982 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
4983 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
4984 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
4985 * atexit.c (atexit): Likewise
4986 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
4987 (asprintf): Use ISO C prototype.
4988 * basename.c (basename): Likewise
4989 * bcmp.c (bcmp): Likewise.
4990 * bcopy.c (bcopy): Likewise.
4991 * bzero.c (bzero): Likewise.
4992 * bsearch.c (bsearch): Likewise. Improve const-correctness.
4993 * choose-temp.c (choose_temp_base): Likewise.
4994 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
4995 (calloc): Use ISO C prototype.
4996 * clock.c (clock): Likewise.
4997 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
4998 (vconcat_length, vconcat_copy, concat_length, concat_copy,
4999 concat_copy2, concat, reconcat, main): Use ISO C prototype.
5000 * copysign.c (copysign): Likewise.
5001
5002 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5003
5004 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
5005 (REQUIRED_OFILES): Add xstrndup.o.
5006 (CONFIGURED_OFILES): Add strndup.o.
5007 Regenerate dependencies.
5008
5009 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
5010
5011 * strndup.c, xstrndup.c: New.
5012
5013 * config.in, configure, functions.texi: Regenerate.
5014
5015 2005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5016
5017 * xmemdup.c, xstrdup.c: Expose the tail call.
5018
5019 2005-03-09 Mark Mitchell <mark@codesourcery.com>
5020
5021 * configure.ac (funcs): Add gettimeofday.
5022 * configure: Regenerated.
5023 * gettimeofday.c: New file.
5024 * Makefile.in (CFILES): Add gettimeofday.
5025 (CONFIGURED_OFILES): Add gettimeofday.o.
5026 (./gettimeofday.o): New rule.
5027
5028 2005-03-09 Ian Lance Taylor <ian@airs.com>
5029
5030 * pex-os2.c: Remove.
5031 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
5032 * Makefile.in (CFILES): Remove pex-os2.c.
5033 (CONFIGURED_OFILES): Remove pex-os2.o.
5034 (pex-os2.o): Remove target.
5035 * configure: Rebuild.
5036
5037 2005-03-07 Ian Lance Taylor <ian@airs.com>
5038
5039 * mpw-config.in: Remove.
5040 * mpw-make.sed: Remove.
5041 * mpw.c: Remove.
5042 * Makefile.in (CFILES): Remove pex-mpw.c.
5043 (CONFIGURED_OFILES): Remove pex-mpw.o.
5044 (mpw.o, pex-mpw.o): Remove targets.
5045 * maint-tool (undoc): Remove reference to mpw.c.
5046
5047 2005-03-06 DJ Delorie <dj@redhat.com>
5048
5049 * configure.ac (target_header_dir): vfork is a stub under djgpp.
5050 * configure: Regenerated.
5051
5052 2005-03-01 Jan Beulich <jbeulich@novell.com>
5053
5054 * Makefile.in (CFILES): Add unlink-if-ordinary.c
5055 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
5056 Add dependencies and rule for unlink-if-ordinary.o.
5057 * unlink-if-ordinary.c: New.
5058
5059 2005-03-01 Ben Elliston <bje@au.ibm.com>
5060
5061 * hashtab.c (htab_find_slot_with_hash): Make function
5062 documentation clearer.
5063
5064 2005-02-13 Jason Merrill <jason@redhat.com>
5065
5066 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
5067 arguments.
5068
5069 2005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
5070
5071 * hex.c (hex_value): Group 'unsigned int' together to get correct
5072 markup.
5073 * functions.texi: Regenerated.
5074
5075 2004-12-27 H.J. Lu <hongjiu.lu@intel.com>
5076
5077 * Makefile.in: Undo to 2004-12-17.
5078 * aclocal.m4: Likewise.
5079 * config.table: Likewise.
5080 * configure.ac: Likewise.
5081 * maint-tool: Likewise.
5082 * configure: Likewise.
5083
5084 2004-12-19 H.J. Lu <hongjiu.lu@intel.com>
5085
5086 PR bootstrap/19072
5087 * Makefile.in (enable_shared): New substitute.
5088 (LTTARGETLIB): New.
5089 (PREFIXTARGETLIB): New.
5090 (LTTESTLIB): New.
5091 (PREFIXTESTLIB): New.
5092 (CCLD): New.
5093 (LINK): New.
5094 ($(TARGETLIB)): Use $(LINK) to create libraries and create
5095 targets by hand.
5096 ($(TESTLIB)): Likewise.
5097 (mostlyclean): Don't remove .libs. Remove the libtool object
5098 directory.
5099
5100 * config.table (enable_shared): Removed.
5101
5102 * configure.ac (enable_static): Set to yes.
5103 (AC_PROG_LIBTOOL): Removed.
5104 (AM_DISABLE_SHARED): Uncommented.
5105 (AM_PROG_LIBTOOL): Likewise.
5106 (LIBOBJS): Add `./' to avoid VPATH.
5107 (LTLIBOBJS): Likewise.
5108 (enable_shared): Substitute.
5109 * configure: Regenerated.
5110
5111 2004-12-18 H.J. Lu <hongjiu.lu@intel.com>
5112
5113 * Makefile.in (top_builddir): Set to `.'.
5114 (OUTPUT_OPTION): Removed.
5115 (LIBTOOL): New.
5116 (LTLIBOBJS): New.
5117 (EXTRA_LTOFILES): New.
5118 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
5119 (all): Remove stamp-picdir.
5120 (LTCOMPILE): New.
5121 (.c.lo): New rule.
5122 (REQUIRED_LTOFILES): New.
5123 (CONFIGURED_LTOFILES): New.
5124 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
5125 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
5126 (stamp-picdir): Completely removed.
5127 (maint-missing): Pass $(REQUIRED_LTOFILES)
5128 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
5129 $(CONFIGURED_OFILES)
5130 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
5131 $(CONFIGURED_LTOFILES).
5132 (mostlyclean): Also remove *.lo .libs.
5133 Run "make maint-deps".
5134
5135 * aclocal.m4: Include ../libtool.m4.
5136
5137 * config.table: Don't check --enable-shared.
5138
5139 * configure.ac (AC_PROG_LIBTOOL): Add.
5140 (AC_PROG_CC_C_O): Removed.
5141 (OUTPUT_OPTION): Removed.
5142 (NO_MINUS_C_MINUS_O): Removed.
5143 (ltpexecute): New substitute.
5144 (LIBOBJS): Cleanup.
5145 * configure: Regenerated.
5146
5147 * maint-tool: Updated for .lo/libtool.
5148
5149 2004-12-11 Ben Elliston <bje@au.ibm.com>
5150
5151 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
5152 * configure: Regenerate.
5153 * config.in: Likewise.
5154
5155 2004-12-07 DJ Delorie <dj@redhat.com>
5156
5157 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
5158 that recursion (and thus large stack space) is not needed.
5159
5160 2004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
5161
5162 * pex-unix.c: Fix the spelling of longjmp.
5163
5164 2004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
5165
5166 PR other/18623
5167 * cp-demangle.c (d_call_offset): Remove useless local variables
5168 offset and virtual_offset.
5169 * cplus-dem.c (ada_demangle): Remove useless local variable
5170 at_start_name.
5171 (demangle_template): Remove useless local variable start.
5172
5173 2004-11-19 Roger Sayle <roger@eyesopen.com>
5174
5175 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
5176 "ansidecl.h" to avoid redeclaration errors with native compilers.
5177 * regex.c: Protect config.h from multiple inclusion.
5178
5179 2004-11-12 Mike Stump <mrs@apple.com>
5180
5181 * Makefile.in (libiberty.html): Fix html generation.
5182
5183 2004-09-08 Adam Nemet <anemet@lnxw.com>
5184
5185 * vasprintf.c: Accept __va_copy in addition to va_copy.
5186
5187 2004-09-03 Paolo Bonzini <bonzini@gnu.org>
5188
5189 * configure: Regenerate.
5190
5191 2004-09-02 Paolo Bonzini <bonzini@gnu.org>
5192
5193 * configure.ac: Do not enable multilibs for build-side libiberty.
5194
5195 2004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
5196
5197 * lrealpath.c (lrealpath): Add _WIN32 support.
5198
5199 2004-06-28 Zack Weinberg <zack@codesourcery.com>
5200
5201 * cp-demangle.h: Declare cplus_demangle_operators,
5202 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
5203 cplus_demangle_type as static if IN_GLIBCPP_V3.
5204
5205 2004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
5206
5207 PR other/16240
5208 * cp-demangle.c (d_expr_primary): Check for a failure return from
5209 cplus_demangle_type.
5210 * testsuite/demangle-expected: Add test case.
5211
5212 2004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
5213
5214 * pex-win32.c (fix_argv): Expand comment.
5215
5216 2004-05-25 Daniel Jacobowitz <drow@false.org>
5217
5218 * Makefile.in: Add .NOEXPORT.
5219
5220 2004-04-29 Douglas B Rupp <rupp@gnat.com>
5221
5222 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5223 copyright.
5224
5225 2004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5226
5227 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5228 * configure: Regenerate.
5229
5230 2004-04-22 Richard Henderson <rth@redhat.com>
5231
5232 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
5233 (CHAR_BIT): Provide default.
5234 (struct prime_ent, prime_tab): New.
5235 (higher_prime_index): Rename from higher_prime_number, return index.
5236 (htab_mod_1): New.
5237 (htab_mod, htab_mod_m2): Use it.
5238 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
5239 (htab_expand): Likewise.
5240 * configure.ac: Check for stdint.h.
5241 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
5242 * config.in, configure: Rebuild.
5243
5244 2004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
5245
5246 * strerror.c: Include config.h, and redefine sys_nerr and
5247 sys_errlist, before including ansidecl.h and libiberty.h.
5248
5249 2004-04-13 Jeff Law <law@redhat.com>
5250
5251 * hashtab.c (htab_remove_elt_with_hash): New function.
5252 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
5253
5254 2004-03-31 Richard Henderson <rth@redhat.com>
5255
5256 * hashtab.c (htab_size): Move to top of file; mark inline.
5257 (htab_elements): Likewise.
5258 (htab_mod, htab_mod_m2): New.
5259 (htab_delete): Refactor htab->size and htab->entries.
5260 (htab_empty): Likewise.
5261 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
5262 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
5263 (htab_clear_slot): Use htab_size, htab_elements.
5264 (htab_traverse_noresize, htab_traverse): Likewise.
5265
5266 2004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5267
5268 * pex-unix.c (pexecute): Use vfork instead of fork, with
5269 appropriate changes to make this safe.
5270 * pex-common.h (STDERR_FILE_NO): Define.
5271
5272 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5273 an 80 column screen. Run maint-deps.
5274
5275 2004-03-09 Kelley Cook <kcook@gcc.gnu.org>
5276
5277 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
5278 * acconfig.h: Delete redundant file.
5279 * config.in: Regenerate.
5280 * configure: Regenerate.
5281
5282 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
5283
5284 * configure: Regenerate for config/accross.m4 correction.
5285
5286 2004-03-07 Andreas Jaeger <aj@suse.de>
5287
5288 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
5289 prototypes.
5290 (main): Initialize style.
5291
5292 2004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5293
5294 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
5295 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
5296 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
5297 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
5298 short types to D_PRINT_DEFAULT. Change other integer types to use
5299 new D_PRINT_* values where appropriate. Change float types to
5300 D_PRINT_FLOAT.
5301 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
5302 values.
5303 * testsuite/demangle-expected: Adjust two test cases.
5304
5305 * cp-demangle.c (d_print_function_type): Print a space before the
5306 parenthesis around the function type in more cases.
5307 * testsuite/demangle-expected: Adjust one test case.
5308
5309 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
5310 parentheses around a cast.
5311 * testsuite/demangle-expected: Adjust two test cases to match new
5312 output.
5313
5314 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5315
5316 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
5317 push more than one of the same CV-qualifier on the top of the
5318 stack.
5319 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
5320 move the CV-qualifiers to apply to the element type instead.
5321 (d_print_array_type): When checking the modifiers, keep looking
5322 past ones which have been printed already.
5323 * testsuite/demangle-expected: Add three test cases.
5324
5325 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5326
5327 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5328 empty string correctly.
5329
5330 * cp-demangle.c (__cxa_demangle): It is not an error if status is
5331 not NULL. It is an error if the mangled name is the same as a
5332 built-in type name.
5333 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
5334 than cplus_demangle_v3.
5335
5336 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5337 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5338
5339 2004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
5340
5341 * regex.c: Include <ansidecl.h>.
5342 (regcomp): Cast i to int.
5343 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
5344
5345 2004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5346
5347 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5348 * configure: Regenerate.
5349
5350 2004-01-22 DJ Delorie <dj@redhat.com>
5351
5352 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
5353 with explicit build rules.
5354 (VPATH): Remove.
5355 (.c.o): Poison.
5356 * configure.ac (pexecute, LIBOBJS): Add ./ .
5357 * maint-tool: Build dependencies with explicit rules.
5358
5359 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5360
5361 * strdup.c (strdup): Constify the argument.
5362
5363 2004-01-14 Loren J. Rittle <ljrittle@acm.org>
5364
5365 * Makefile.in (distclean): Remove config.cache.
5366
5367 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
5368
5369 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
5370 takes two parameters.
5371 * cp-demint.c (cplus_demangle_fill_component): Likewise.
5372
5373 2004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
5374
5375 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
5376 defined, rename some functions which are to become static via
5377 #define.
5378 (CP_STATIC_IF_GLIBCPP_V3): Define.
5379 (struct d_operator_info): Move definition to cp-demangle.h, and
5380 rename to demangle_operator_info. Change all uses.
5381 (enum d_builtin_type_print): Move definition to cp-demangle.h.
5382 (struct d_builtin_type_info): Move definition to cp-demangle.h,
5383 and rename to demangle_builtin_type_info. Change all uses.
5384 (enum d_comp_type): Move definition to include/demangle.h, and
5385 rename to demangle_component_type, and change all enums to start
5386 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
5387 (struct d_comp): Move definition to include/demangle.h, and rename
5388 to demangle_component. Change all uses.
5389 (struct d_info): Move definition to cp-demangle.h.
5390 (cplus_demangle_fill_name): New function.
5391 (cplus_demangle_fill_extended_operator): New function.
5392 (cplus_demangle_fill_ctor): New function.
5393 (cplus_demangle_fill_dtor): New function.
5394 (d_make_empty): Remove type parameter. Change all callers.
5395 (d_make_name): Use cplus_demangle_fill_name.
5396 (d_make_extended_operator): Use
5397 cplus_demangle_fill_extended_operator.
5398 (d_make_ctor): Use cplus_demangle_fill_ctor.
5399 (d_make_dtor): Use cplus_demangle_fill_dtor.
5400 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
5401 non-static by default. Change all callers.
5402 (cplus_demangle_operators): Rename from d_operators. Change all
5403 uses. Make non-static by default. Add sentinel at end of array.
5404 (d_operator_name): Adjust initialization of high for new sentinel
5405 in cplus_demangle_operators.
5406 (cplus_demangle_builtin_types): Rename from d_builtin_types.
5407 Change all uses. Make non-static by default. Change initializer
5408 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
5409 (cplus_demangle_type): Rename from d_type. Make non-static by
5410 default. Change all callers.
5411 (cplus_demangle_init_info): Rename from d_init_info. Make
5412 non-static by default. Change all callers.
5413 * cp-demangle.h: New file.
5414 * cp-demint.c: New file.
5415 * Makefile.in: Rebuild dependencies.
5416 (CFILES): Add cp-demint.c.
5417 (REQUIRED_OFILES): Add cp-demint.o.
5418
5419 2004-01-09 Kelley Cook <kcook@gcc.gnu.org>
5420
5421 * configure.in: Rename file to ...
5422 * configure.ac: ... this.
5423 * Makefile.in: Update a comment for above change.
5424 * README: Likewise.
5425 * config.in: Regenerate.
5426
5427 2004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
5428
5429 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
5430 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
5431 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
5432 demangling template parameters.
5433 * testsuite/test-demangle.c (fail): New static function.
5434 (main): Support new options in input file: --no-params,
5435 --is-v3-ctor, and --is-v3-dtor.
5436 * testsuite/demangle-expected: Add --no-params to most tests, and
5437 add the correct result when parameters are not demangled. Add
5438 some simple tests for V3 constructor/destructor recognition.
5439
5440 2003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5441
5442 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5443
5444 2003-12-22 Daniel Jacobowitz <drow@mvista.com>
5445
5446 PR debug/13272
5447 * Makefile.in (lbasename.o): Depend on filenames.h.
5448 * lbasename.c: Include "filenames.h" instead of defining
5449 its macros locally.
5450
5451 2003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
5452
5453 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
5454 dynamic arrays.
5455 (struct d_operator_info): Add len field.
5456 (struct d_builtin_type_info): Add len and java_len fields.
5457 (struct d_standard_sub_info): Add simple_len, full_len, and
5458 set_last_name_len fields.
5459 (struct d_comp): Add len field to s_string.
5460 (struct d_info): Add send, did_subs, and expansion fields.
5461 (d_append_string_constant): Define.
5462 (d_append_string): Remove. Change all users to use
5463 d_append_string_constant or d_append_buffer instead.
5464 (d_make_sub): Add len parameter. Change all callers.
5465 (d_name): Increase expansion when substituting std::.
5466 (d_unqualified_name): Increase expansion for an operator.
5467 (d_number): Don't use multiplication for negative numbers.
5468 (d_identifier): Make sure there are enough characters in the
5469 string for the specified length. Adjust expansion for an
5470 anonymous namespace.
5471 (d_operators): Initialize len field.
5472 (d_special_name, d_ctor_dtor_name): Increase expansion.
5473 (d_builtin_types): Initialize len and java_len fields.
5474 (d_type): Increase expansion for a builtin type.
5475 (d_cv_qualifiers): Increase expansion for each qualifier.
5476 (d_bare_function_type): Decrease expansion when removing single
5477 void parameter.
5478 (d_template_param): Increment did_subs.
5479 (d_expression): Increase expansion for an operator.
5480 (d_expr_primary): Decrease expansion for a type we will print
5481 specially.
5482 (standard_subs): Initialize new fields.
5483 (d_substitution): Increment did_subs when doing a normal
5484 substitution. Increase expansion for a special substitution.
5485 (d_print): Add estimate parameter. Change all callers.
5486 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
5487 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
5488 (d_print_java_identifier): Rename from d_print_identifier. Handle
5489 only Java case. Change caller.
5490 (d_init_info): Change return type to void. Change all callers.
5491 Initialize send, did_subs, and expansion fields. Do not
5492 initialize comps and subs fields.
5493 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
5494 arrays on stack. Make an estimate of the length of the demangled
5495 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
5496 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
5497 subs arrays on stack.
5498
5499 2003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
5500
5501 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
5502 after the identifier.
5503 * testsuite/demangle-expected: Add test case.
5504
5505 2003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
5506
5507 Fix for PR c++/13447:
5508 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
5509 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
5510 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
5511 D_COMP_QUAL_NAME.
5512 (is_ctor_or_dtor): Likewise.
5513 (d_local_name): Use D_COMP_LOCAL_NAME rather than
5514 D_COMP_QUAL_NAME.
5515 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
5516 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
5517 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
5518 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
5519 * testsuite/demangle-expected: Add two test cases.
5520
5521 * cp-demangle.c (d_print_function_type): Clear the global modifier
5522 list when printing the modifiers, not just when printing the
5523 function parameters.
5524 * testsuite/demangle-expected: Add two test cases.
5525
5526 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5527
5528 * cp-demangle.c (d_print_function_type): Print the function
5529 parameters with no modifiers.
5530 * testsuite/demangle-expected: Add test case.
5531
5532 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
5533 expect that we've read the entire string.
5534 (is_ctor_or_dtor): Don't expect that we've read the entire
5535 string--reverse patch of 2003-11-29.
5536
5537 2003-12-15 Brendan Kehoe <brendan@zen.org>
5538
5539 * Makefile.in (floatformat.o): Add dependency on
5540 config.h to accompany change of 2003-12-03.
5541
5542 2003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5543
5544 Fix handling of constructor/destructor of standard substitution:
5545 * cp-demangle.c (struct d_standard_sub_info): Define.
5546 (d_substitution): Add prefix argument. Change all callers.
5547 Rework handling of standard substitutions to print full name when
5548 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
5549 * testsuite/demangle-expected: Add test case.
5550
5551 Fix handling of negative literal constants:
5552 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
5553 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
5554 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
5555 (d_print_comp): Handle D_COMP_LITERAL_NEG.
5556 * testsuite/demangle-expected: Add test case.
5557
5558 2003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
5559
5560 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
5561 (d_last_char): Define new macro.
5562 (d_make_name): Reject an empty name.
5563 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
5564 (d_substitution, d_print_identifier): Likewise.
5565 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
5566 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
5567 (d_print_mod) Use new d_last_char macro.
5568 (d_print_cast): Use new d_last_char macro.
5569 (is_ctor_or_dtor): Don't leak memory.
5570
5571 Fix handling of member function modifiers:
5572 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
5573 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
5574 (d_dump): Dump new d_comp_type values.
5575 (d_make_comp): Accept new d_comp_type values.
5576 (has_return_type): Only accept _THIS variants of qualifiers.
5577 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
5578 qualifiers.
5579 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
5580 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
5581 qualifiers and printing them at the end, add _THIS qualifiers to
5582 the modifier list.
5583 (d_print_comp) [D_COMP_*_THIS]: New cases.
5584 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
5585 qualifiers.
5586 (d_print_mod_list): Add suffix parameter. Change all callers.
5587 Keep walking the list even if the current modifier has been
5588 printed.
5589 (d_print_mod): Handle new _THIS qualifiers.
5590 (d_print_function_type): Handle new _THIS qualifiers when deciding
5591 whether to print a parenthesis. Put a space before the
5592 parenthesis in some cases. Call d_print_mod_list again at the
5593 end, passing suffix as 1.
5594 (is_ctor_or_dtor): Look for new _THIS qualifiers.
5595 * testsuite/demangle-expected: Add test case.
5596
5597 Fix for PR gcc/13304:
5598 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
5599 before the '<' is itself a '<', insert a space.
5600 (d_print_cast): Likewise.
5601 * testsuite/demangle-expected: Add test case.
5602
5603 Fix for PR gcc/13244:
5604 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
5605 which uses the '>' operator in an extra layer of parens.
5606 * testsuite/demangle-expected: Add test case.
5607
5608 2003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
5609
5610 * floatformat.c: Include "config.h" and <string.h> if available.
5611 (INFINITY, NAN): Define if not defined by <math.h>.
5612 (floatformat_to_double): Handle NaN, infinity, and denormalized
5613 numbers.
5614 (floatformat_from_double): Likewise.
5615 (ieee_test): In debugging code, use little endian rather than big
5616 endian. Correct tests to handle NaN and to check correct sign of
5617 zero. Omit m68k extended test.
5618 (main): Add more debugging cases.
5619
5620 2003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
5621
5622 * cp-demangle.c (d_demangle): Only return success if we consumed
5623 the entire demangled string.
5624 (is_ctor_or_dtor): Likewise.
5625
5626 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
5627 to restore expected result of EDG test case to original expected
5628 result.
5629
5630 2003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
5631
5632 * cp-demangle.c (struct d_print_mod): Add templates field.
5633 (d_make_builtin_type): Check for NULL type.
5634 (d_make_extended_operator): Check for NULL name.
5635 (d_make_ctor, d_make_dtor): Likewise.
5636 (d_mangled_name): Add top_level parameter. Change all callers.
5637 (d_encoding): If DMGL_PARAMS is not set, strip off initial
5638 CV-qualifiers.
5639 (d_type): Check some return values we rely on.
5640 (d_bare_function_type, d_array_type): Likewise.
5641 (d_pointer_to_member_type, d_template_args): Likewise.
5642 (d_add_substitution): Fail if argument is NULL.
5643 (d_print_resize): Check whether buf is NULL.
5644 (d_print_comp): Save current templates list with each modifier.
5645 Don't pass the modifier list down when printing a template.
5646 (d_print_cast): Don't pass the modifier list down when printing a
5647 template.
5648 (d_print_mod_list): Temporarily set templates list while printing
5649 a modifier.
5650 (d_print_mod): Check that buf is not NULL before using it.
5651 (d_print_function_type): Print parens if there is no modifier.
5652 (d_init_info): Permit as many substitutions as there are
5653 characters in the mangled name.
5654 * testsuite/demangle-expected: Add two new test cases.
5655
5656 2003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5657
5658 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5659 d_demangle.
5660
5661 2003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
5662
5663 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
5664 callers.
5665 (print_usage): Display new -p option.
5666 (long_options): Add --no-params.
5667 (main): Accept and handle -p.
5668
5669 2003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
5670
5671 * cp-demangle.c (has_return_type): Skip qualifiers when checking
5672 whether we have a template.
5673 * testsuite/demangle-expected: Add four new tests.
5674
5675 2003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5676
5677 * testsuite/demangle-expected: Minor changes to match output of
5678 new demangler: adjust whitespace in four tests, and change order
5679 of qualifiers in one test.
5680
5681 * cp-demangle.c: Complete rewrite.
5682
5683 2003-11-19 Mark Mitchell <mark@codesourcery.com>
5684
5685 * cp-demangle.c (demangle_type): Correct thinko in substitution
5686 processing.
5687
5688 2003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5689
5690 * cp-demangle.c (demangle_operator_name): Remove space before
5691 "sizeof".
5692 (demangle_type_ptr): Put qualifiers in the right place. Handle
5693 qualifiers in pointer to member specially.
5694 (demangle_type): Handle qualifiers for pointer or reference
5695 specially. Handle function type.
5696 (demangle_local_name): Save and restore caret around demangling of
5697 initial encoding.
5698
5699 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5700 cplus_demangle.
5701
5702 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5703
5704 2003-10-31 Andreas Jaeger <aj@suse.de>
5705
5706 * floatformat.c (floatformat_always_valid): Add unused attribute.
5707
5708 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
5709
5710 Jan Hubicka <jh@suse.cz>
5711 * vasprintf.c (int_vasprintf): Pass va_list by value.
5712 Use va_copy for copying va_list.
5713 (vasprintf): Pass va_list by value.
5714
5715 2003-10-30 Josef Zlomek <zlomekj@suse.cz>
5716
5717 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
5718 instead of increasing n_elements when inserting to deleted slot.
5719
5720 2003-10-20 J. Brobecker <brobecker@gnat.com>
5721
5722 * cplus-dem.c (demangle_template): Register a new Btype only
5723 when needed.
5724 * testsuite/demangle-expected: Add a new test.
5725
5726 2003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5727
5728 * testsuite/demangle-expected: Update the expected output of
5729 _GLOBAL__I__Z2fnv.
5730
5731 2003-10-02 Daniel Jacobowitz <drow@mvista.com>
5732
5733 * strerror.c: Revert last change. Declare static sys_nerr
5734 and sys_errlist using different names.
5735
5736 2003-10-01 Daniel Jacobowitz <drow@mvista.com>
5737
5738 * strerror.c: Don't provide or reference sys_errlist if
5739 strerror is available.
5740
5741 2003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5742
5743 * configure.in: Check if $MAKEINFO is missing.
5744 * configure: Regenerated.
5745
5746 2003-09-24 Daniel Jacobowitz <drow@mvista.com>
5747
5748 * configure.in: Use AC_PROG_CPP_WERROR.
5749 * configure: Regenerated.
5750
5751 2003-09-22 Andrew Cagney <cagney@redhat.com>
5752
5753 * floatformat.c (floatformat_i387_ext_is_valid): New function.
5754 (floatformat_always_valid): New function.
5755 (floatformat_i387_ext): Initialize new "is_valid" field to
5756 "floatformat_i387_ext_is_valid".
5757 (floatformat_ieee_single_little): Initialize "is_valid" field to
5758 floatformat_always_valid.
5759 (floatformat_ieee_double_big): Ditto.
5760 (floatformat_ieee_double_little): Ditto.
5761 (floatformat_ieee_double_little): Ditto.
5762 (floatformat_ieee_double_littlebyte_bigword): Ditto.
5763 (floatformat_i960_ext): Ditto.
5764 (floatformat_m88110_ext): Ditto.
5765 (floatformat_m88110_harris_ext): Ditto.
5766 (floatformat_arm_ext_big): Ditto.
5767 (floatformat_arm_ext_littlebyte_bigword): Ditto.
5768 (floatformat_ia64_spill_big): Ditto.
5769 (floatformat_ia64_spill_little): Ditto.
5770 (floatformat_ia64_quad_big): Ditto.
5771 (floatformat_ia64_quad_little): Ditto.
5772 (floatformat_ia64_quad_little): Ditto.
5773 (floatformat_is_valid): Call "is_valid".
5774
5775 2003-09-15 Andrew Cagney <cagney@redhat.com>
5776
5777 * floatformat.c (get_field): Make "data" constant.
5778 (floatformat_is_valid, floatformat_to_double): Make "from"
5779 constant, fix casts.
5780 (floatformat_from_double): Make "from" constant.
5781
5782 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * floatformat.c (floatformat_is_valid): New function.
5785 (get_field, put_field): Correct comments.
5786
5787 2003-09-06 Josef Zlomek <zlomekj@suse.cz>
5788
5789 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5790 FIBHEAPKEY_T.
5791
5792 2003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5793
5794 PR bootstrap/12100
5795 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5796 * configure: Rebuilt.
5797
5798 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
5799
5800 * aclocal.m4: Include acx.m4 and no-executables.m4.
5801 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
5802 (LIB_AC_PROG_CC): Remove.
5803 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
5804 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
5805 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
5806 performing link tests.
5807 * configure: Regenerated.
5808
5809 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5810
5811 * cp-demangle.c: Clarify what package(s) this is part of.
5812
5813 2003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
5814
5815 * pex-win32.c (pexecute): Mark parameters this_pname and
5816 temp_base as unused. Remove unused variables retries,
5817 sleep_interval. Initialize org_stdin, org_stdout.
5818 (pwait): Mark parameter flags as unused.
5819
5820 2003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
5821
5822 * pex-win32.c (fix_argv): Ensure that the executable pathname
5823 uses Win32 backslashes.
5824 (pexecute): Cast away constness when assigning *errmsg_arg.
5825
5826 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5827
5828 * testsuite/demangle-expected: Add more GNU V3 testcases.
5829
5830 2003-06-22 Zack Weinberg <zack@codesourcery.com>
5831
5832 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
5833 not HC_ASCII and HC_EBCDIC.
5834 Add documentation in form expected by gather-docs.
5835 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
5836 * Makefile.in, functions.texi: Regenerate.
5837
5838 2003-06-21 Zack Weinberg <zack@codesourcery.com>
5839
5840 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
5841 for charset determination.
5842
5843 2003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
5844
5845 * configure.in: Add check for malloc.h needed by
5846 m68k for function free().
5847 * configure: Regenerated.
5848 * config.in: Add HAVE_MALLOC_H.
5849 * hashtab.c: include malloc.h were available for
5850 free().
5851
5852 2003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
5853
5854 PR bootstrap/10974
5855 * physmem.c: Update comment.
5856 * configure.in: Modify test for _system_configuration for older
5857 AIX systems.
5858
5859 * config.in, configure: Regenerated.
5860
5861 2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5862
5863 PR other/10810
5864 * test-demangle.c (getline): Fix fence-post error.
5865
5866 2003-06-03 Nick Clifton <nickc@redhat.com>
5867
5868 * asprintf.c: Change comment to note that -1 is returned upon
5869 error.
5870 * vasprintf.c: Likewise.
5871 (vasprintf): Return -1 upon error.
5872 * functions.texi: Document changes to asprintf and vasprintf.
5873
5874 2003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5875
5876 * config.table: Accept i[345867]86 variant.
5877
5878 2003-05-15 Jim Blandy <jimb@redhat.com>
5879
5880 * hex.c (_hex_value): Make this unsigned.
5881 (hex_value): Update documentation for new return type. hex_value
5882 now expands to an unsigned int expression, to avoid unexpected
5883 sign extension when we store it in a bfd_vma, which is larger than
5884 int on some platforms.
5885 * functions.texi: Regenerated.
5886
5887 2003-05-07 Josef Zlomek <zlomekj@suse.cz>
5888
5889 * splay-tree.c (splay_tree_predecessor): Fix comment.
5890 (splay_tree_successor): Fix comment.
5891
5892 2003-05-07 Jason Merrill <jason@redhat.com>
5893
5894 * hashtab.c (iterative_hash): New fn.
5895 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5896 * aclocal.m4: Include accross.m4.
5897 * configure, config.in: Regenerate.
5898
5899 2003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5900
5901 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
5902 * configure: Regenerate.
5903
5904 2003-05-03 Carlo Wood <carlo@alinoe.com>
5905
5906 * cp-demangle.c: Fix typo in "char_traints" string-literal.
5907
5908 2003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5909
5910 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
5911 (main): Test that we don't write too much data.
5912
5913 2003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5914
5915 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
5916 vsnprintf.
5917 * snprintf.c, vsnprintf.c: New files.
5918 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
5919 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
5920 Regenerate dependencies.
5921
5922 * functions.texi, configure, config.in: Regenerated.
5923
5924 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5925
5926 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
5927 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
5928 and stpncpy.
5929 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
5930 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
5931 Regenerate dependencies.
5932
5933 * functions.texi, configure, config.in: Regenerated.
5934
5935 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5936
5937 * argv.c: Fix comments.
5938 * calloc.c: Don't unnecessarily include "libiberty.h".
5939 (bzero): Add prototype.
5940 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5941 * getcwd.c (getcwd): Use standard definition to avoid conflicts
5942 with system headers.
5943 * hashtab.c (htab_traverse): Delete unused variables.
5944 * rename.c: Include "ansidecl.h".
5945 (rename): Use standard definition to avoid conflicts with system
5946 headers.
5947 * strsignal.c: Rely on ANSI_PROTOTYPES.
5948 * strstr.c: Check GNUC >= 2, not GNUC == 2.
5949 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
5950 * vprintf.c: Include "ansidecl.h" earlier, rely on
5951 ANSI_PROTOTYPES.
5952 * vsprintf.c: Include "ansidecl.h" earlier, rely on
5953 ANSI_PROTOTYPES and possibly include <stdarg.h>.
5954
5955 * Makefile.in: Regenerate dependencies.
5956
5957 2003-04-15 DJ Delorie <dj@redhat.com>
5958
5959 * maint-tool (deps): Scan for headers in $srcdir also.
5960
5961 2003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5962
5963 PR target/10338
5964 PR bootstrap/10198
5965 PR bootstrap/10140
5966 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
5967 __mempcpy.
5968 * regex.c (regerror): Likewise.
5969
5970 2003-04-14 Roger Sayle <roger@eyesopen.com>
5971
5972 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
5973 * memchr.c: Likewise.
5974 * strcasecmp.c: Likewise.
5975 * strncasecmp.c: Likewise.
5976 * strncmp.c: Likewise.
5977 * xatexit.c: Likewise.
5978 * xmalloc.c: Likewise.
5979
5980 * copysign.c: Use traditional function declaration instead of DEFUN.
5981 * sigsetmask.c: Likewise.
5982
5983 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
5984 * memset.c: Likewise.
5985
5986 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
5987 * memmove.c: Likewise.
5988
5989 2003-04-14 Roger Sayle <roger@eyesopen.com>
5990
5991 * strdup.c (strdup): Tweak implementation to use memcpy.
5992
5993 2003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5994
5995 * configure.in (HAVE_UINTPTR_T): Always define.
5996 * configure: Regenerated.
5997
5998 2003-03-23 Alexandre Oliva <aoliva@redhat.com>
5999
6000 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
6001 instead of $$CC alone.
6002 (install_to_tooldir): Use it.
6003
6004 2003-17-03 Jan Hubicka <jh@suse.cz>
6005
6006 * hashtab.c (htab_traverse_noresize): Break out from ...
6007 * hashtab.c (htab_traverse): ... here.
6008
6009 2003-12-03 Jan Hubicka <jh@suse.cz>
6010
6011 * hashtab.c (htab_expand): Fix warning.
6012
6013 * hashtab.c (htab_expand): Compute the size of hashtable based
6014 on the number of elements actually used.
6015 (htab_traverse): Call htab_expand when table is too empty.
6016
6017 2003-03-11 Carlo Wood <carlo@gnu.org>
6018
6019 * cplus-dem.c (demangle_integral_value): Correction to reflect
6020 patch of 2002-01-10 in order to also make negative multi-digits
6021 without leading underscore work.
6022
6023 2003-03-03 Mark Mitchell <mark@codesourcery.com>
6024
6025 * cplus-dem.c: Add license exception to copyright notice.
6026
6027 2003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6028
6029 * physmem.c: Formatting changes from upstream.
6030
6031 2003-02-24 Danny Smith <dannysmith@users.source.forge.net>
6032
6033 * physmem.c (physmem_total): Add _WIN32 support.
6034 (physmem_available): Likewise.
6035
6036 2003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6037
6038 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
6039 GSI_PHYSMEM.
6040 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
6041
6042 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6043
6044 * configure.in: Check for sys/systemcfg.h and
6045 _system_configuration.
6046 * physmem.c: Add support for AIX. Tweek formatting as per
6047 upstream coreutils beta.
6048
6049 2003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6050 Richard Earnshaw <rearnsha@arm.com>
6051 Geoffrey Keating <geoffk@apple.com>
6052
6053 * configure.in: Check for sys/sysctl.h and sysctl.
6054 * physmem.c: Add support for *bsd and darwin.
6055 * Makefile.in: Generate depedency for physmem.o.
6056
6057 2003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6058
6059 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
6060 Tru64 UNIX.
6061 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
6062 Tru64 UNIX.
6063
6064 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
6065 machine/hal_sysinfo.h, sys/table.h.
6066 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
6067 * configure, config.in: Regenerate.
6068
6069 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6070
6071 * configure.in: Check for sys/sysmp.h and sysmp.
6072 * physmem.c: Pull upstream copy, add support for irix6.
6073
6074 * config.in, configure: Regenerated.
6075
6076 2003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6077
6078 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
6079 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
6080 pstat_getdynamic.
6081
6082 2003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6083
6084 * Makefile.in (CFILES): Add physmem.c.
6085 (REQUIRED_OFILES): Add physmem.o.
6086 * configure.in: Check for sys/pstat.h.
6087 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
6088 * physmem.c: New file, copied from textutils.
6089
6090 * config.in, configure: Regenerated.
6091
6092 2003-02-20 Daniel Jacobowitz <drow@mvista.com>
6093
6094 * Makefile.in (CFILES): Add lrealpath.c.
6095 (REQUIRED_OFILES): Add lrealpath.o.
6096 (lrealpath.o): Add rule.
6097 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
6098 * configure.in: Add realpath and canonicalize_file_name to
6099 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
6100 for canonicalize_file_name.
6101 * lrealpath.c: New file.
6102 * make-relative-prefix.c: Update documentation.
6103 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
6104 * config.in: Regenerated.
6105 * configure: Regenerated.
6106 * functions.texi: Regenerated.
6107
6108 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
6109
6110 * cplus_dem.c: Fix typo: intializes -> initializes.
6111
6112 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
6113
6114 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6115 config.status.
6116 * configure: Rebuilt.
6117
6118 2003-02-13 Daniel Jacobowitz <drow@mvista.com>
6119
6120 Fix PR c++/7612.
6121 * cplus-dem.c (demangle_signature): Call string_delete.
6122 Remove extra string_init.
6123 (demangle_arm_hp_template): Call string_delete instead of
6124 string_clear. Add missing string_delete call.
6125 (demangle_qualified): Add missing string_delete call.
6126 (do_type): Remove unused variable btype. Add missing string_delete
6127 call. Call string_delete instead of string_clear.
6128 (demangle_fund_type): Move variable btype inside of the switch
6129 statement. Add missing string_delete call.
6130 (do_arg): Call string_delete instead of string_clear. Remove extra
6131 string_init.
6132 (demangle_nested_args): Free work->previous_argument.
6133
6134 2003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6135
6136 * acconfig.h: New file. Add uintptr_t.
6137 * config.in: Regenerated.
6138
6139 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6140
6141 * libiberty.texi: Update to GFDL 1.2.
6142
6143 2003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6144
6145 * Makefile.in (libiberty_topdir): New subst.
6146 (mkinstalldirs): Redefine in terms of the above.
6147 * configure.in: AC_SUBST it.
6148 * configure: Regenerate.
6149
6150 2003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6151
6152 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
6153 (info-subdir, install-info-subdir, clean-info-subdir)
6154 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
6155 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
6156 Pass $(FLAGS_TO_PASS).
6157
6158 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
6159
6160 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
6161 /`$$CC -print-multi-os-directory`.
6162
6163 2003-01-26 Daniel Jacobowitz <drow@mvista.com>
6164
6165 * hashtab.c (htab_create_alloc_ex): New function.
6166 (hatab_set_functions_ex): New function.
6167 (htab_delete, htab_expand): Support alternate allocation functions.
6168
6169 2003-01-24 Christopher Faylor <cgf@redhat.com>
6170
6171 * configure.in: Remove special pex-cygwin consideration.
6172 * configure: Regenerate.
6173 * pex-cygwin.c: Remove.
6174 * Makefile.in: Remove pex-cygwin.[co] lines.
6175
6176 2003-01-24 Zack Weinberg <zack@codesourcery.com>
6177
6178 * Makefile.in (CFILES): Add pex-*.c.
6179 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
6180 (CONFIGURED_OFILES): Add pex-*.o.
6181 (TEXIFILES): Add pexecute.txh.
6182 (pexecute.o): Delete rule.
6183 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
6184 pex-unix.o, pex-win32.o): New rules.
6185 * configure.in: Change AC_INIT argument to xmalloc.c.
6186 Compute appropriate pexecute implementation and substitute it
6187 as @pexecute@.
6188
6189 * pexecute.c: Split up into...
6190 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
6191 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
6192 new files.
6193
6194 * functions.texi: Regenerate.
6195 * configure: Regenerate.
6196
6197 2003-01-20 Josef Zlomek <zlomekj@suse.cz>
6198
6199 * hashtab.c (htab_expand): Fix allocation of new entries.
6200
6201 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6202
6203 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6204
6205 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6206 mkinstalldirs command.
6207
6208 2002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
6209
6210 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
6211 Define for hosts with HOST_EXECUTABLE_SUFFIX.
6212
6213 2002-11-24 Nick Clifton <nickc@redhat.com>
6214
6215 * make-relative-prefix.c (make_relative_prefix): Ensure return
6216 string is empty before using strcat to construct it.
6217
6218 2002-11-22 Daniel Jacobowitz <drow@mvista.com>
6219
6220 * Makefile.in: Add make-relative-prefix.c.
6221 * make-relative-prefix.c: New file.
6222 * functions.texi: Rebuilt.
6223
6224 2002-11-16 Jakub Jelinek <jakub@redhat.com>
6225
6226 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
6227 used with arguments in traditional C' warnings.
6228
6229 2002-10-16 Jakub Jelinek <jakub@redhat.com>
6230
6231 * config.table: Use mh-s390pic for s390x too.
6232
6233 2002-10-06 Andreas Jaeger <aj@suse.de>
6234
6235 * cplus-dem.c (ada_demangle): Get rid of unneeded
6236 variable and of strict-aliasing warning.
6237 (grow_vect): Use char as first parameter.
6238
6239 2002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6240
6241 * Makefile.in (all): Fix multilib parallel build.
6242
6243 2002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
6244
6245 * cp-demangle.c (demangling_new): Cast 0 to enum.
6246 (demangle_char): Cast return of strdup to char *.
6247 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
6248 (is_gnu_v3_mangled_dtor): Likewise.
6249 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
6250 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
6251 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
6252 * md5.c (md5_process_bytes): Cast results back to const void *.
6253 (md5_process_block): Add cast to const md5_uint32 *.
6254 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
6255 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
6256 unsigned short.
6257 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
6258 to void *.
6259 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
6260
6261 2002-09-19 Nick Clifton <nickc@redhat.com>
6262
6263 * README: Update email addresses for bugs and patches.
6264
6265 2002-09-10 Mike Stump <mrs@apple.com>
6266
6267 * splay-tree.c (splay_tree_successor): Fix comments.
6268
6269 2002-09-11 Zack Weinberg <zack@codesourcery.com>
6270
6271 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
6272 * testsuite/Makefile.in: Adjust for test-demangle.
6273 * testsuite/regress-demangle: Deleted.
6274 * testsuite/test-demangle.c: New file.
6275 * testsuite/demangle-expected: Change \$ to $ throughout, now that
6276 this file is not being read by a shell script.
6277
6278 2002-09-05 Roger Sayle <roger@eyesopen.com>
6279
6280 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6281
6282 2002-08-07 DJ Delorie <dj@redhat.com>
6283
6284 * regex.c (re_error_msgid): Just use a simple array of strings.
6285 (re_compile_pattern): Compensate.
6286 (re_comp): Likewise.
6287 (re_comp): Likewise.
6288 (regerror): Likewise.
6289
6290 2002-07-29 Neil Booth <neil@daikokuya.co.uk>
6291
6292 * cplus-dem.c (PREPEND_BLANK): Remove.
6293
6294 2002-07-10 Jason Merrill <jason@redhat.com>
6295
6296 * cp-demangle.c (demangle_identifier): Support extended Unicode
6297 characters.
6298
6299 2002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6300
6301 * cp-demangle.c (demangle_v3_with_details): Wrap in
6302 !defined IN_GLIBCPP_V3.
6303
6304 2002-07-01 Mark Mitchell <mark@codesourcery.com>
6305
6306 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
6307 Set it for the "st" operator.
6308 (demangle_expression): Handle expressions with types as arguments.
6309
6310 2002-06-30 Douglas Rupp <rupp@gnat.com>
6311
6312 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
6313 * Makefile.in (OUTPUT_OPTION): Use.
6314
6315 2002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6316
6317 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6318 (install_to_tooldir): Likewise.
6319
6320 2002-06-17 Douglas Rupp <rupp@gnat.com>
6321
6322 * lbasename.c: Add 2002 to copyright.
6323 (IS_DIR_SEPARATOR): Remove VMS junk.
6324
6325 2002-06-05 Geoffrey Keating <geoffk@redhat.com>
6326
6327 * hashtab.c (htab_create): New stub function for backward
6328 compatibility.
6329 (htab_try_create): Likewise.
6330
6331 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
6332
6333 * hashtab.c (htab_create): Delete.
6334 (htab_try_create): Delete.
6335 (htab_create_alloc): New.
6336 (htab_delete): Support user-specified memory allocation.
6337 (htab_expand): Likewise.
6338
6339 2002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
6340
6341 * configure.in: Fix typo in the code checking for sys_errlist.
6342 * configure: Regenerated.
6343
6344 2002-05-13 Andreas Schwab <schwab@suse.de>
6345
6346 * config.table: Use mh-x86pic also for x86-64.
6347
6348 2002-05-08 Alexandre Oliva <aoliva@redhat.com>
6349
6350 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
6351 script entry, and set LD to it when configuring multilibs.
6352 * configure: Rebuilt.
6353
6354 2002-05-07 Mark Mitchell <mark@codesourcery.com>
6355
6356 * configure.in (AC_TYPE_PID_T): Use it.
6357 * configure: Regenerated.
6358 * getruntime.c: Include <sys/types.h>.
6359 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
6360
6361 2002-04-09 Richard Henderson <rth@redhat.com>
6362
6363 * hashtab.c (higher_prime_number): Use 7 as minimum.
6364 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
6365 (htab_find_slot_with_hash): Likewise.
6366
6367 2002-04-01 Phil Edwards <pme@gcc.gnu.org>
6368
6369 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
6370 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
6371 not compile if IN_GLIBCPP_V3 defined.
6372 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
6373
6374 2002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6375
6376 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
6377 if it is NULL.
6378
6379 2002-03-27 DJ Delorie <dj@redhat.com>
6380
6381 * hex.c: Add documentation.
6382 (_hex_value): Provide non-ASCII empty table.
6383 (hex_init): Initialize the non-ASCII table.
6384 * functions.texi: Regenerate.
6385
6386 2002-03-27 Mark Mitchell <mark@codesourcery.com>
6387
6388 * dyn-string.c: Add libgcc exception to copyright notice.
6389
6390 2002-03-26 H.J. Lu (hjl@gnu.org)
6391
6392 * config.table: Support --with-build-subdir.
6393 * configure.in: Likewise.
6394 * configure: Rebuild.
6395
6396 2002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6397
6398 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6399 seen.
6400
6401 2002-03-12 Mark Mitchell <mark@codesourcery.com>
6402
6403 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6404 notice.
6405
6406 2002-03-11 Douglas B Rupp <rupp@gnat.com>
6407
6408 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6409
6410 2002-03-06 Jim Blandy <jimb@redhat.com>
6411
6412 * splay-tree.c (splay_tree_xmalloc_allocate,
6413 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
6414 prototyped definitions. Mark `data' arguments as unused.
6415
6416 2002-03-06 Andrew Cagney <ac131313@redhat.com>
6417
6418 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6419
6420 2002-03-04 Phil Edwards <pme@gcc.gnu.org>
6421
6422 * configure.in: Add --enable-install-libiberty option.
6423 * Makefile.in (INSTALLED_HEADERS): New variable.
6424 (install_to_libdir): Possibly also copy headers.
6425 * configure: Regenerated.
6426
6427 2002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6428
6429 * xmalloc.c (xmalloc_fail): Clarify error message further.
6430
6431 2002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6432
6433 * xmalloc.c (xmalloc_fail): Clarify error message.
6434
6435 2002-02-22 Jim Blandy <jimb@redhat.com>
6436
6437 * splay-tree.c (splay_tree_xmalloc_allocate,
6438 splay_tree_xmalloc_deallocate): New functions.
6439 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
6440 above functions and a dummy data pointer.
6441 (splay_tree_new_with_allocator): New function.
6442 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
6443 splay_tree_remove): Use the splay tree's allocation and
6444 deallocation functions.
6445
6446 2002-02-19 Scott Snyder <snyder@fnal.gov>
6447
6448 * testsuite/demangle-expected: Add test case for infinite loop in
6449 demangler.
6450 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
6451 if do_type() doesn't make any progress --- prevents an infinite
6452 loop.
6453
6454 2002-02-18 Carlo Wood <carlo@gnu.org>
6455
6456 PR c++/5390
6457 * cplus-dem.c (demangle_integral_value): Accept multi-digit
6458 numbers that do not start with an underscore; This is needed
6459 for integer template parameters. This doesn't break anything
6460 because multi-digit numbers are never followed by a digit.
6461 * testsuite/demangle-expected: Corrected all mangled test
6462 cases with multi-digit template parameters: g++ 2.95.x does
6463 not generate underscores around these parameters.
6464
6465 2002-02-05 Jason Merrill <jason@redhat.com>
6466
6467 * cplus-dem.c (flags): Add DMGL_VERBOSE
6468 (cplus_demangle_v3_p): Remove.
6469 (demangle_it): Add DMGL_TYPES to passed flags.
6470 * cp-demangle.c (cplus_demangle_v3_all): Remove.
6471 (cplus_demangle_v3_type): Remove.
6472 (cplus_demangle_v3): Add options parm.
6473
6474 2002-02-02 H.J. Lu (hjl@gnu.org)
6475
6476 * cp-demangle.c (cp_demangle_type): Do not protect with
6477 IN_LIBGCC2.
6478 (cplus_demangle_v3_all): New.
6479 (cplus_demangle_v3): Call cplus_demangle_v3_all.
6480 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
6481
6482 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
6483 Initialized to cplus_demangle_v3.
6484 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
6485 of cplus_demangle_v3.
6486 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
6487 command line symbol.
6488
6489 * testsuite/regress-demangle: Pass the mangled name at the
6490 command line.
6491
6492 2002-02-01 H.J. Lu <hjl@gnu.org>
6493
6494 * cp-demangle.c (cp_demangle_type): Call demangling_new with
6495 DMGL_GNU_V3.
6496
6497 2002-01-31 Phil Edwards <pme@gcc.gnu.org>
6498
6499 * cp-demangle.c: Revert yesterday's change.
6500
6501 2002-01-31 Adam Megacz <adam@xwt.org>
6502
6503 * configure.in: Treat mingw the same as cywin
6504 wrt HAVE_SYS_ERRLIST.
6505
6506 2002-01-30 Phil Edwards <pme@gcc.gnu.org>
6507
6508 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
6509 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
6510 cp_demangle_type.
6511 * testsuite/demangle-expected: New gnu-v3 test.
6512
6513 2002-01-22 Momchil Velikov <velco@fadata.bg>
6514
6515 * configure.in (variable detection): Use arrays of unspecified
6516 size instead of plain integers.
6517
6518 2002-01-18 DJ Delorie <dj@redhat.com>
6519
6520 * Makefile.in (TESTLIB): New. This library is for future
6521 testsuites.
6522 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
6523 break down by letter.
6524 (REQUIRED_OFILES): List long-to-compile files first.
6525 (maint-deps): New, target for updating dependencies.
6526 (dependencies): Update.
6527 * maint-tool: Add dependency-generating option.
6528 * configure.in: Check for _doprnt even if we're not providing it.
6529 * configure: Regenerate.
6530
6531 * _doprnt.c: Modifications to allow compiling on any platform.
6532 * copysign.c: Likewise.
6533 * putenv.c: Likewise.
6534 * setenv.c: Likewise.
6535 * vsprintf.c: Likewise.
6536
6537 2002-01-15 Douglas B Rupp <rupp@gnat.com>
6538
6539 * mkstemps.c (mkstemps): On VMS, open temp file with option
6540 that causes it to be deleted when closed.
6541
6542 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6543
6544 * cp-demangle.c (long_options): Const-ify.
6545 * cplus-dem.c (long_options): Likewise.
6546
6547 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6548 strstr instead.
6549
6550 2001-12-31 Ira Ruben <ira@apple.com>
6551
6552 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6553 * configure: Regenerated.
6554
6555 2001-12-24 Douglas B. Rupp <rupp@gnat.com>
6556
6557 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6558 * configure: Regenerated.
6559
6560 2001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
6561
6562 PR other/2719
6563 * cplus-dem.c (consume_count): Treat negative count as an error.
6564 * testsuite/demangle-expected: Added testcase.
6565
6566 Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
6567
6568 * configure.in: Hardcode that vfork works on VMS host.
6569 * configure: Regenerated.
6570
6571 2001-12-06 Richard Henderson <rth@redhat.com>
6572
6573 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
6574 (cplus_demangle): Support no_demangling.
6575
6576 2001-11-27 Zack Weinberg <zack@codesourcery.com>
6577
6578 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
6579 in libiberty context. Fix typo in leading comment.
6580 * configure.in: Fix various AC_DEFINEs so autoheader works.
6581 If any of vprintf, vsprintf, vfprintf is missing from libc,
6582 then AC_REPLACE_FUNCS(_doprnt).
6583
6584 2001-11-26 DJ Delorie <dj@redhat.com>
6585 Daniel Jacobowitz <drow@mvista.com>
6586
6587 * Makefile.in (stamp-h): Depend on Makefile for proper
6588 serialization.
6589 (*-subdir): Depend on config.h for proper serialization.
6590
6591 2001-11-26 DJ Delorie <dj@redhat.com>
6592
6593 * configure.in: Check for alloca.h (for regex.c and putenv.c).
6594 * configure: Regenerate.
6595 * config.h: Add HAVE_ALLOCA_H.
6596
6597 2001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6598
6599 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6600 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6601 is available.
6602
6603 Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6604
6605 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
6606 * configure.in (HAVE_UINTPTR_T): Test for system defining
6607 uintptr_t and define HAVE_UINTPTR_T appropriately.
6608 * regex.c (uintptr_t): Do not provide a definition if the
6609 system provided one.
6610
6611 * regex.c (PREFIX): Provide an alternate definition for
6612 non-ANSI/ISO compilers.
6613 (ARG_PREFIX): Likewise.
6614
6615 2001-11-12 Jim Meyering <meyering@lucent.com>
6616
6617 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
6618 this code would end up calling gettext even in packages built
6619 with --disable-nls.
6620 * getopt.c (_): Likewise.
6621 * regex.c (_): Likewise.
6622
6623 2001-11-03 Alan Modra <amodra@bigpond.net.au>
6624
6625 * configure.in: Cope with missing makeinfo.
6626 * configure: Regenerate.
6627
6628 2001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6629
6630 * hex.c (hex_init): Provide empty stub.
6631
6632 * hex.c (hex_init): Delete.
6633 (_hex_value): Const-ify and initialize at compile-time.
6634
6635 2001-10-19 H.J. Lu <hjl@gnu.org>
6636
6637 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6638 necessary.
6639
6640 2001-10-17 DJ Delorie <dj@redhat.com>
6641
6642 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
6643 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
6644 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
6645 Improve manual formatting.
6646 * functions.texi: Regenerate.
6647
6648 2001-10-15 DJ Delorie <dj@redhat.com>
6649
6650 * Makefile.in (TEXIFILES): Add fnmatch.txh.
6651 (maint-undoc): New.
6652 maint-tool: Add "undoc" tool.
6653 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
6654 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
6655 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
6656 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
6657 documentation.
6658 * fnmatch.txh: New.
6659 * functions.texi: Regenerate.
6660
6661 2001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
6662
6663 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
6664 * strtod.c: Use "ISO C" instead of "ANSI C".
6665 * functions.texi: Regenerate.
6666
6667 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
6668
6669 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
6670 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
6671 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
6672 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
6673 spelling. Give names to function arguments in documentation. Use
6674 (void) prototypes in documentation.
6675 * functions.texi: Regenerate.
6676
6677 2001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6678
6679 * argv.c (buildargv, tests, main): Const-ify.
6680 * cp-demangle.c (operator_code): Likewise.
6681 * cplus-dem.c (optable, libiberty_demanglers,
6682 cplus_demangle_set_style, cplus_demangle_name_to_style,
6683 print_demangler_list): Likewise.
6684 * hashtab.c (higher_prime_number): Likewise.
6685 * strcasecmp.c (charmap): Likewise.
6686 * strerror.c (error_info, strerror, main): Likewise.
6687 * strncasecmp.c (charmap): Likewise.
6688 * strsignal.c (signal_info): Likewise.
6689
6690 2001-09-29 DJ Delorie <dj@redhat.com>
6691
6692 * configure: Regenerate.
6693
6694 2001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6695
6696 * concat.c: Include stdlib.h.
6697
6698 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
6699
6700 * libiberty.texi: (Top level): Add syncodeindex pg. Add
6701 @dircategory and @direntry directives. Add @finalout.
6702 (many nodes): Lose the next,prev,up pointers on the @nide line.
6703 (Using, Supplemental Functions, Replacement Functions): Fix
6704 markup.
6705 (Functions): Move around, to allow makeinfo to build the manual
6706 without next,prev,up pointers in thye node lines.
6707 (Licenses): Fix typos.
6708
6709 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
6710 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
6711 * functions.texi: Regenerate.
6712
6713 * copying-lib.texi: Lose the next,prev,up pointers on the @node
6714 line.
6715
6716 2001-09-27 DJ Delorie <dj@redhat.com>
6717
6718 * configure.in: Don't use in-tree texinfo, because libiberty must
6719 be built before it. Check for makeinfo version 4 or higher.
6720 * functions.texi: Regenerate.
6721
6722 2001-09-20 DJ Delorie <dj@redhat.com>
6723 Phil Edwards <pedwards@disaster.jaj.com>
6724
6725 * configure.in (MAKEINFO, PERL): Detect these.
6726 (--enable-maintainer-mode): Add.
6727 * configure: Regenerate.
6728 * Makefile.in (MAKEINFO, PERL): Define.
6729 (libiberty.info, libiberty.dvi, libiberty.html): New.
6730 (CFILES): Add bsearch.c.
6731 (CONFIGURED_OFILES): New, list of objects configure might add.
6732 (maint-missing, maint-buildall): New, for maintainers only.
6733 (clean, mostlyclean): Add info/dvi/html files.
6734 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
6735 * gather-docs: New, for maintainers.
6736 * maint-tool: New, for maintainers.
6737 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
6738 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
6739 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
6740 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
6741 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
6742 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
6743 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
6744 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
6745 documentation.
6746
6747 2001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6748
6749 * concat.c (reconcat): Fix for traditional C.
6750
6751 2001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6752
6753 * concat.c (reconcat): New function.
6754
6755 2001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6756
6757 * concat.c (vconcat_length, vconcat_copy, concat_length,
6758 concat_copy, concat_copy2): New functions.
6759 (concat): Use vconcat_length/vconcat_copy.
6760
6761 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6762 Define.
6763
6764 2001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6765
6766 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
6767 VA_FIXEDARG & VA_CLOSE.
6768
6769 * vasprintf.c: Check HAVE_STRING_H when including string.h.
6770 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
6771 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
6772
6773 2001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6774
6775 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6776
6777 2001-08-23 Ulrich Drepper <drepper@redhat.com>
6778
6779 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6780
6781 2001-08-23 Ulrich Drepper <drepper@redhat.com>
6782
6783 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
6784 instead of mbrtowc.
6785 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
6786 wcslen, and __wcscoll instead of wcscoll.
6787
6788 2001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6789
6790 * fibheap.c (fibheap_init, fibnode_init): Remove.
6791 (fibheap_new, fibnode_new): Use xcalloc to allocate and
6792 initialize memory.
6793 (fibheap_insert): Remove check for node allocation failure.
6794
6795 2001-08-21 Richard Henderson <rth@redhat.com>
6796
6797 * Makefile.in (fibheap.o): Depend on config.h.
6798 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
6799 functions for inlining.
6800
6801 Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
6802
6803 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
6804 hosting on cygwin.
6805 * configure: Regenerate.
6806
6807 2001-08-20 Andrew Cagney <ac131313@redhat.com>
6808
6809 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
6810 HARRIS_FLOAT_FORMAT.
6811 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
6812 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
6813 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
6814 (floatformat_m88110_harris_ext): New float formats.
6815
6816 2001-08-20 Daniel Berlin <dan@cgsoftware.com>
6817
6818 * fibheap.c: New file. Fibonacci heap.
6819
6820 * Makefile.in (CFILES): Add fibheap.c.
6821 (REQUIRED_OFILES): Add fibheap.o.
6822 (fibheap.o): Add dependencies for fibheap.o.
6823
6824 2001-08-17 Christopher Faylor <cgf@cygnus.com>
6825
6826 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6827 * configure: Regenerate.
6828
6829 2001-08-16 Richard Henderson <rth@redhat.com>
6830
6831 * hashtab.c (htab_hash_string): New.
6832
6833 2001-08-13 Andrew Cagney <ac131313@redhat.com>
6834
6835 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6836 name.
6837
6838 2001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
6839
6840 * regex.c (wcs_regex_compile): Use appropriate string
6841 to compare with collating element.
6842 Fix the padding for the alignment.
6843
6844 2001-08-10 Andrew Cagney <ac131313@redhat.com>
6845
6846 * lbasename.c (lbasename): Change function definition to return a
6847 const char pointer.
6848
6849 2001-08-07 Jason Merrill <jason_merrill@redhat.com>
6850
6851 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6852 for".
6853
6854 2001-08-03 Richard Henderson <rth@redhat.com>
6855
6856 * Makefile.in (concat.o): Depend on config.h.
6857
6858 2001-07-30 Andreas Jaeger <aj@suse.de>
6859
6860 * concat.c: Include "config.h".
6861
6862 2001-07-30 Andreas Jaeger <aj@suse.de>
6863
6864 * regex.c: Declare wcs functions only if compiling with
6865 MBS_SUPPORT.
6866 Don't use #elif for traditional C.
6867
6868 2001-07-23 Ulrich Drepper <drepper@redhat.com>
6869
6870 * regex.c: Revamp memory allocation for WCHAR functions to
6871 not use too much stack.
6872
6873 2001-07-30 Andreas Jaeger <aj@suse.de>
6874
6875 * regex.c: Declare wcs functions only if compiling with
6876 MBS_SUPPORT.
6877 Don't use #elif for traditional C.
6878
6879 2001-07-25 Daniel Jacobowitz <drow@mvista.com>
6880
6881 * Makefile.in (regex.o): Add dependency on config.h.
6882
6883 2001-07-18 Andreas Schwab <schwab@suse.de>
6884
6885 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6886 underscore character.
6887
6888 2001-07-18 Ulrich Drepper <drepper@redhat.com>
6889
6890 * regex.c: Limit string length printed in debug messages to 100
6891 chars.
6892
6893 2001-07-18 Andreas Jaeger <aj@suse.de>
6894
6895 * regex.c: Place under LGPL version 2.1.
6896
6897 2001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6898
6899 * Makefile.in: Add support for regex code.
6900 * regex.c: New file.
6901
6902 2001-07-05 Mark Klein <mklein@dis.com>
6903
6904 * Makefile.in: Add ffs.c dependency.
6905 * configure.in: Add ffs.c.
6906 * ffs.c: New file.
6907
6908 2001-06-18 Richard Henderson <rth@redhat.com>
6909
6910 * concat.c: Include <sys/types.h>.
6911
6912 2001-06-11 Loren J. Rittle <ljrittle@acm.org>
6913
6914 bootstrap/3106
6915 * strerror.c (sys_nerr): Hide the OS header version.
6916 * strsignal.c (sys_nsig): Likewise.
6917
6918 2001-06-10 Richard Henderson <rth@redhat.com>
6919
6920 * concat.c: Include string.h. Fix int vs size_t usage.
6921 Simplify the iteration loops. Use memcpy.
6922
6923 2001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6924
6925 * partition.c: Fix misspelling of `implementation'.
6926
6927 2001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6928
6929 * md5.c (md5_init_ctx): Declare constants as unsigned.
6930 (md5_process_block): Likewise.
6931
6932 2001-05-07 Zack Weinberg <zackw@stanford.edu>
6933
6934 * cp-demangle.c (demangle_v3_with_details,
6935 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
6936 function definition.
6937 * ternary.c: Use K+R style function definitions. Use PTR, not
6938 void *. Make arguments constant where possible.
6939
6940 2001-05-07 Mark Mitchell <mark@codesourcery.com>
6941
6942 * splay-tree.h (splay_tree_max): New function.
6943 (splay_tree_min): Likewise.
6944
6945 2001-04-15 Daniel Berlin <dan@cgsoftware.com>
6946
6947 * ternary.c: New file - Ternary search tree implementation.
6948
6949 * Makefile.in: Add ternary.o, and ternary.c dependencies.
6950
6951 2001-04-03 Zack Weinberg <zackw@stanford.edu>
6952
6953 * make-temp-file.c (try): Inline.
6954
6955 2001-02-28 Richard Henderson <rth@redhat.com>
6956
6957 * Makefile.in (make-temp-file.o): Depend on config.h.
6958
6959 2001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6960
6961 * memchr.c (memchr): Adjust condition to avoid infinite loop.
6962
6963 2001-03-23 Jakub Jelinek <jakub@redhat.com>
6964
6965 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
6966 `_' not followed by a digit is invalid.
6967
6968 2001-03-22 Jim Blandy <jimb@redhat.com>
6969
6970 * cp-demangle.c (string_list_delete): Use dyn_string_delete
6971 instead of free, to free the contents as well as the string
6972 structure.
6973
6974 2001-03-21 Zack Weinberg <zackw@stanford.edu>
6975
6976 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
6977 Don't default P_tmpdir to anything. Try /var/tmp before
6978 /usr/tmp.
6979
6980 2001-03-20 Zack Weinberg <zackw@stanford.edu>
6981
6982 * choose-temp.c: Split off make_temp_file, and the code
6983 duplicated between it and choose_temp_base, into...
6984 * make-temp-file.c: ... here; new file.
6985
6986 * Makefile.in (CFILES): Add make-temp-file.c.
6987 (REQUIRED_OFILES): Add make-temp-file.o.
6988
6989 2001-03-20 Jim Blandy <jimb@redhat.com>
6990
6991 * cp-demangle.c (struct demangling_def): New fields:
6992 is_constructor and is_destructor.
6993 (demangling_new): Initialize them.
6994 (demangle_ctor_dtor_name): Set them, if we detect a constructor
6995 or destructor.
6996 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
6997 is_gnu_v3_mangled_dtor): New functions.
6998
6999 2001-03-20 Jason Merrill <jason@redhat.com>
7000
7001 * cplus-dem.c (main): Skip initial $.
7002
7003 2001-03-15 Michael Meissner <meissner@redhat.com>
7004
7005 * hashtab.c (higher_prime_number): Silence warning that 4294967291
7006 might be a signed integer under pre-ISO C systems.
7007
7008 2001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7009 John David Anglin <dave@hiauly1.hia.nrc.ca>
7010
7011 * lbasename.c: New file.
7012 * Makefile.in: Update for lbasename.
7013
7014 2001-03-06 Zack Weinberg <zackw@stanford.edu>
7015
7016 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
7017 * configure.in: Replace all alloca logic with a simple use of
7018 the above new macro.
7019 * config.table: Kill *-*-beos* entry.
7020 * config/mh-beos: Delete.
7021 * configure, config.in: Regenerate.
7022
7023 * Makefile.in (ALLOCA, HFILES): Kill.
7024 (REQUIRED_OFILES): Add alloca.o.
7025 (alloca.o): Depend on libiberty.h.
7026 (argv.o): Don't depend on alloca-conf.h.
7027 * alloca-conf.h: Delete.
7028 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
7029 blocks. Provide the C alloca unconditionally. Use PTR where
7030 appropriate. Make i00afunc static.
7031 * argv.c: Don't include alloca-conf.h.
7032
7033 2001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7034
7035 * cplus-dem.c (main): Cast enum style to int.
7036
7037 2001-02-16 Loren J. Rittle <ljrittle@acm.org>
7038
7039 * cplus-dem.c (main): Initialize style.
7040
7041 2001-02-02 Phil Edwards <pme@sources.redhat.com>
7042
7043 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
7044
7045 2001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
7046
7047 Add support for Java demangling under the v3 ABI:
7048 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
7049 (struct demangling_def): Add `style' field.
7050 (demangling_new): New parameter `style'. Set it in demangling_t.
7051 (demangle_prefix): Use NAMESPACE_SEPARATOR.
7052 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
7053 (cp_demangle): New parameter `style'. Pass it to demangling_new().
7054 (main): Call cp_demangle with extra parameter.
7055 (java_demangle_v3): New function.
7056 (java_builtin_type_names): New. Table of primitive type names used
7057 for Java demangling.
7058 (demangle_builtin_type): Look up in java_builtin_type_names if doing
7059 Java output.
7060 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
7061 demangling.
7062 (long_options): Remove obsolete `java' option.
7063 (main): Remove explicit handling of `java' option. Instead, pass style
7064 parameter in cplus_demangle flags as gdb does.
7065 * testsuite/demangle.expected: Add some Java test cases.
7066
7067 2000-12-29 DJ Delorie <dj@redhat.com>
7068
7069 * fnmatch.c: Make the note about the origins of this file more
7070 accurate, at least until we can sync with glibc.
7071 * getopt.c: Ditto.
7072 * getopt1.c: Ditto.
7073 * md5.c: Ditto.
7074 * obstack.c: Ditto.
7075
7076 2000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7077
7078 * bsearch.c: New file.
7079 * configure.in (funcs): Add bsearch.
7080 (AC_CHECK_FUNCS): Likewise.
7081 * configure, config.in: Regenerate.
7082
7083 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7084
7085 * safe-ctype.c: #include "ansidecl.h".
7086 * strtod.c: Likewise.
7087
7088 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7089
7090 * strtoul.c: Include safe-ctype.h, not ctype.h.
7091
7092 2000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
7093
7094 * safe-ctype.c: New file.
7095 * Makefile.in (CFILES): Add safe-ctype.c.
7096 (REQUIRED_OFILES): Add safe-ctype.o.
7097
7098 * argv.c: Define ISBLANK and use it, not isspace.
7099 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
7100 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
7101 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
7102 before calling TOLOWER(c)/TOUPPER(c).
7103
7104 2000-12-07 Mike Stump <mrs@wrs.com>
7105
7106 * Makefile.in (distclean): When cleaning, remove testsuite.
7107
7108 2000-12-05 Jason Merrill <jason@redhat.com>
7109
7110 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
7111 name before allocating the dyn_string.
7112
7113 2000-12-04 Jason Merrill <jason@redhat.com>
7114
7115 * cp-demangle.c: s/new_abi/v3/.
7116 * cplus-dem.c: Likewise.
7117 (current_demangling_style): Now auto_demangling.
7118 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
7119 (main): Use standard symbol chars for auto_demangling.
7120
7121 2000-11-26 Mark Mitchell <mark@codesourcery.com>
7122
7123 * hashtab.c (higher_prime_number): Use a table, rather than a
7124 seive, to find the next prime.
7125
7126 2000-11-22 H.J. Lu <hjl@gnu.org>
7127
7128 * cplus-dem.c (main): Handle gnat_demangling.
7129
7130 2000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
7131
7132 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
7133 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
7134 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
7135 argument form of AC_DEFINE in dummy definitions block. Use
7136 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
7137 in dummy block. Preload cache variables instead of bypassing
7138 tests, where possible.
7139 * acconfig.h: Removed.
7140
7141 * xmalloc.c (xmalloc_failed): New function, does error
7142 reporting on failed allocation.
7143 (xmalloc, xcalloc, xrealloc): Use it.
7144
7145 2000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
7146
7147 * cplus-dem.c (cplus_demangle): Fix formatting.
7148 (grow_vect): Ditto.
7149 (ada_demangle): Ditto.
7150 (internal_cplus_demangle): Ditto.
7151 (mop_up): Ditto.
7152
7153 2000-11-21 H.J. Lu <hjl@gnu.org>
7154
7155 * cplus-dem.c (main): Handle java_demangling.
7156
7157 2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7158
7159 * cplus-dem.c (grow_vect): Prototype.
7160 (ada_demangle): Cast the arg of ctype macros to unsigned char.
7161
7162 2000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7163
7164 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7165 parameter `option'.
7166
7167 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
7168
7169 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
7170 be used in GCC.
7171
7172 2000-11-15 Kenneth Block <kenneth.block@compaq.com>
7173
7174 * cplus-dem.c: Add gnat demangler. Add java to demangle style
7175 list.
7176
7177 2000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
7178
7179 * hashtab.c (htab_expand): Change to return int. Use calloc or
7180 xcalloc depending on htab->return_allocation_failure. Return zero
7181 if calloc fails.
7182 (htab_create): Update comment to cover memory allocation.
7183 (htab_try_create): New.
7184 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
7185 Update comment to cover this.
7186
7187 2000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
7188
7189 * hashtab.c: Change void * to PTR where necessary.
7190 (htab_create, htab_expand): Correct formatting of comment before
7191 function.
7192
7193 2000-10-22 Alex Samuel <samuel@codesourcery.com>
7194
7195 * cp-demangle.c (string_list_def): Add caret_position and comments.
7196 (result_caret_pos): New macro.
7197 (result_append_string): Rename to...
7198 (result_add_string): ... this, and insert at caret position.
7199 Rename throughout.
7200 (result_append): Rename to...
7201 (result_add): ... this, and insert at caret position. Rename
7202 throughout.
7203 (result_append_char): Rename to...
7204 (result_add_char): ... this, and insert at caret position. Rename
7205 throughout.
7206 (result_append_space): Remove.
7207 (string_list_new): Initialize caret position.
7208 (result_add_separated_char): Use caret position.
7209 (result_get_caret): New funtion.
7210 (result_set_caret): Likewise.
7211 (result_shift_caret): Likewise.
7212 (result_previous_char_is_space): Likewise.
7213 (substitution_start): Use caret position.
7214 (substitution_add): Likewise.
7215 (demangling_new): Initialize caret position.
7216 (demangle_encoding): Use caret position.
7217 (demanglin_nested_name): Put CV qualifiers after name.
7218 (demangle_type_ptr): Use switch statement. Handle pointers to
7219 arrays. Don't use result_append_space. Use caret position.
7220 (demangle_type): Emit CV qualifiers after underlying type. Adjust
7221 call to demangle_array_type.
7222 (demangle_array_type): Add parameter to handle pointers to arrays.
7223
7224 2000-10-01 Mark Mitchell <mark@codesourcery.com>
7225
7226 * splay-tree.c (splay_tree_insert): Fix formatting.
7227
7228 2000-09-16 Mark Mitchell <mark@codesourcery.com>
7229
7230 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7231
7232 2000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7233
7234 * splay-tree.c: #include <stdio.h>.
7235
7236 2000-09-14 Hans-Peter Nilsson <hp@axis.com>
7237
7238 * testsuite/demangle-expected: Add two tests for anonymous
7239 namespaces.
7240 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
7241
7242 2000-09-10 Mark Mitchell <mark@codesourcery.com>
7243
7244 * splay-tree.c (splay_tree_predecessor): New function.
7245 (splay_tree_successor): Likewise.
7246
7247 2000-09-10 Hans-Peter Nilsson <hp@axis.com>
7248
7249 * testsuite/demangle-expected: Add four tests for type_info
7250 mangling.
7251 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
7252 for a non-template non-qualified type_info function or node.
7253
7254 2000-09-08 Alex Samuel <samuel@codesourcery.com>
7255
7256 * cp-demangle.c: Fix copyright banner.
7257
7258 2000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7259
7260 * md5.c: #include "ansidecl.h".
7261
7262 2000-09-06 Alex Samuel <samuel@codesourcery.com>
7263
7264 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
7265 (demangle_type): Handle substitution candidates correctly in the
7266 face of special substitutions.
7267
7268 2000-09-05 Alex Samuel <samuel@codesourcery.com>
7269
7270 * cp-demangle.c (demangle_encoding): Rename variable.
7271 (demangle_name): Rename parameter. Handle return type
7272 suppression.
7273 (demangle_nested_name): Rename parameter.
7274 (demangle_prefix): Likewise. Change return type suppression.
7275 (demangle_unqualified_name): Add parameter. Flag constructors and
7276 conversion operators.
7277 (demangle_special_name): Fix comment.
7278 (demangle_type): Rename variable.
7279 (demangle_bare_function_type): Check for missing return type and
7280 parameter.
7281 (demangle_class_enum_type): Rename parameter.
7282 (demangle_discriminator): Fix misspelling in comment.
7283
7284 2000-08-31 DJ Delorie <dj@redhat.com>
7285
7286 * configure.in (Cygwin): special case cygwin only when we're
7287 building cygwin, not when we're hosting cygwin.
7288
7289 2000-09-04 Alex Samuel <samuel@codesourcery.com>
7290
7291 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
7292 <expression>.
7293
7294 2000-09-04 Alex Samuel <samuel@codesourcery.com>
7295
7296 * cp-demangle.c (demangle_type_ptr): Increment position past
7297 pointer and reference characters.
7298
7299 2000-09-04 Alex Samuel <samuel@codesourcery.com>
7300
7301 * cp-demangle.c (demangle_nv_offset): New function.
7302 (demangle_v_offset): Likewise.
7303 (demangle_call_offset): Likewise.
7304 (demangle_special_name): Update thunk demangling to comply with
7305 ABI changes.
7306
7307 2000-09-03 Alex Samuel <samuel@codesourcery.com>
7308
7309 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
7310 (substitution_def): Remove template_parm_number.
7311 (NOT_TEMPLATE_PARM): Remove.
7312 (result_insert_string): New macro.
7313 (result_insert): Likewise.
7314 (result_insert_char): Likewise.
7315 (substitution_add): Remove last parameter. Don't store template
7316 parm number.
7317 (BFT_NO_RETURN_TYPE): Define as NULL.
7318 (demangle_encoding): Adjust call to demangle_bare_function_type.
7319 (demangle_name): Adjust substitution. Adjust call to
7320 substitution_add.
7321 (demangle_prefix): Adjust call to substitution_add.
7322 (demangle_identifier): Handle anonymous namespaces.
7323 (demangle_operator_name): Change demangling of vendor-extended
7324 operator to match ABI changes.
7325 (demangle_type_ptr): Change parameters. Make recursive. Handle
7326 substitutions here.
7327 (demangle_type): Adjust calls to demangle_template_param,
7328 substitution_add, and demangle_type_ptr. Fix substitution of
7329 templated types.
7330 (demangle_function_type): Change parameter to a pointer.
7331 (demangle_bare_function_type): Likewise. Adjust insertion point.
7332 (demangle_template_param): Remove last parameter.
7333 (demangle_expr_primary): Remove unused variable. Adjust call to
7334 demangle_template_param.
7335 (is_mangled_char): Accept `$' and `.'.
7336 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
7337 * dyn-string.c (dyn_string_insert_char): New function.
7338
7339 2000-08-31 Hans-Peter Nilsson <hp@axis.com>
7340
7341 * testsuite/demangle-expected: Add nine tests for
7342 underscore-after-number followed by five tests for name-signature
7343 delimiter.
7344
7345 2000-08-28 Richard Henderson <rth@cygnus.com>
7346
7347 * Makefile.in (md5.o): Depend on config.h.
7348
7349 2000-08-28 Jason Merrill <jason@redhat.com>
7350
7351 * Makefile.in (REQUIRED_OFILES): Add md5.o.
7352 (CFILES): Add md5.c.
7353 * md5.c: New file.
7354
7355 2000-08-27 Alex Samuel <samuel@codesourcery.com>
7356
7357 * cp-demangle.c (demangle_name): Initialize template_p in local
7358 name case. Don't re-add substitutions as candidates.
7359 (demangle_nested_name): Use <unqualified-name>.
7360 (demangle_prefix): Likewise. Don't add template names as
7361 substitution candidates twice, or re-add a substitution or the
7362 last prefix component.
7363 (demangle_local_name): Adjust output format.
7364
7365 2000-08-25 Alex Samuel <samuel@codesourcery.com>
7366
7367 * cp-demangle.c (result_add_separated_char): Change parameter to
7368 int.
7369 (substitution_add): Don't check for duplicates. Check if
7370 previously allocated size is zero.
7371 (demangle_name): Remove duplicate check for std substitution.
7372 Clear template flag appropriately.
7373 (demangle_prefix): Remove argument to demangle_substitution.
7374 Don't check that template flag is already set.
7375 (demangle_operator_name): Add pt operator.
7376 (demangle_type): Don't treat r as built-in type. Remove argument
7377 to demangle_substitution. Fix substitution candidate mechanics.
7378 Handle <template-template-parm>s. Improve comments.
7379 (demangle_template_param): Don't handle template arg lists here.
7380 (demangle_substitution): Remove parameter.
7381 (print_usage): Remove extra fprintf option.
7382
7383 2000-08-24 Greg McGary <greg@mcgary.org>
7384
7385 * random.c (end_ptr): Revert previous change.
7386
7387 2000-08-24 Greg McGary <greg@mcgary.org>
7388
7389 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
7390 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
7391 * random.c (end_ptr): Likewise.
7392
7393 2000-08-23 Alex Samuel <samuel@codesourcery.com>
7394
7395 * cp-demangle.c (result_close_template_list): Remove function.
7396 (result_add_separated_char): New function.
7397 (result_open_template_list): New macro.
7398 (result_close_template_list): Likewise.
7399 (demangle_prefix): Don't set template_p if the
7400 prefix ends with a ctor name.
7401 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
7402 (demangle_type): Check for template args after substitution.
7403 (demangle_template_args): Use result_open_template_list.
7404
7405 2000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7406
7407 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7408
7409 2000-07-26 Dave Pitts <dpitts@cozx.com>
7410
7411 * config/mh-openedition.h: Added -DLE370 definition.
7412
7413 2000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
7414
7415 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
7416 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
7417 Cast program to 'char *' in errmsg_arg assignment.
7418 (PWAIT_ERROR): Define.
7419 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
7420 to DJGPP's WIF* macros.
7421
7422 2000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7423 Jeff Law <law@cygnus.com>
7424
7425 * getcwd.c: Include string.h, stdlib.h for prototypes
7426
7427 * Makefile.in (rename.o, waitpid.o): Depend on config.h
7428 * rename.c: Include config.h, unistd.h
7429 * waitpid.c: Include config.h, sys/wait.h
7430
7431 2000-07-24 Hans-Peter Nilsson <hp@axis.com>
7432
7433 * cplus-dem.c (work_stuff_copy_to_from): New.
7434 (delete_non_B_K_work_stuff): New.
7435 (delete_work_stuff): New.
7436 (mop_up): Break out work_stuff partly destruction to
7437 delete_non_B_K_work_stuff.
7438 (iterate_demangle_function): New.
7439 (demangle_prefix): Call iterate_demangle_function instead of
7440 demangle_function_name. Leave handling of name-signature
7441 __-delimiters to iterate_demangle_function.
7442 (demangle_integral_value): Strip an optional
7443 following underscore cautiously. Handle negative numbers.
7444
7445 2000-07-24 Daniel Berlin <dberlin@redhat.com>
7446
7447 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
7448 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7449
7450 2000-07-21 Alex Samuel <samuel@codesourcery.com>
7451
7452 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
7453 allocating ctor mangling.
7454 (demangle_array_type): Handle empty and non-constant array length.
7455
7456 2000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7457 Jeff Law <law@cygnus.com>
7458
7459 * configure.in (AC_CHECK_HEADERS): Add time.h.
7460 (AC_HEADER_TIME): Add check.
7461 * configure, config.in: Regenerate.
7462 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
7463
7464 * configure.in (AC_CHECK_HEADERS): Add limits.h.
7465 * configure, config.in: Regenerate.
7466 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
7467 * strtol.c, strtoul.c: #include "config.h". Portably #include
7468 <limits.h> and/or <sys/param.h>.
7469 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
7470
7471 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
7472 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
7473 * configure, config.in: Regenerate.
7474 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
7475
7476 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7477
7478 2000-07-21 Mike Stump <mrs@wrs.com>
7479
7480 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
7481 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
7482
7483 2000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7484
7485 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
7486
7487 * setenv.c (setenv): Initialize variable `ep'.
7488
7489 * sigsetmask.c (abort): Prototype.
7490
7491 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
7492 __STDC__ for stdarg.h include.
7493 (int_vasprintf): Prototype.
7494 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
7495 definition. Cast `global_total_width' in comparison.
7496 (main): Prototype. Return a value.
7497
7498 * vfork.c (fork): Prototype.
7499
7500 * xexit.c: Include config.h.
7501
7502 2000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
7503
7504 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
7505 and print it with %u.
7506
7507 2000-07-17 Hans-Peter Nilsson <hp@axis.com>
7508
7509 * testsuite/regress-demangle (failed test): Show result and
7510 expected output.
7511
7512 2000-07-07 Andrew Haley <aph@cygnus.com>
7513
7514 * cplus-dem.c (main): fflush() after emitting last char before
7515 waiting for input.
7516
7517 2000-06-28 Alex Samuel <samuel@codesourcery.com>
7518
7519 * cp-demangle.c (demangle_encoding): Accept no substitutions.
7520 (demangle_name): Handle <substitution> followed by
7521 <unqualified-template-name>.
7522 (demangle_type): Follow special substitutions with
7523 <class-enum-type>
7524 (demangle_subtitution): Set template_p for special substitutions.
7525 (main): Fix typos.
7526
7527 2000-06-27 Alex Samuel <samuel@codesourcery.com>
7528
7529 * cp-demangle.c (demangle_special_name): Swap base and derived
7530 class when demangling construction vtables.
7531
7532 2000-06-21 Alex Samuel <samuel@codesourcery.com>
7533
7534 * cp-demangle.c: Don't include ctype.h.
7535 (IS_DIGIT): New macro.
7536 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
7537 instead of isdigit and isalpanum.
7538 (demangling_def): Make name and next const pointers.
7539 (STATUS_ALLOCATION_FAILED): New status code.
7540 (dyn_string_append_space): Handle failure in
7541 dyn_string_append_char.
7542 (int_to_dyn_string): Likewise. Change return value to status_t.
7543 (string_list_new): Handle failure of dyn_string_init.
7544 (result_close_template_list): Change return type to status_t.
7545 Handle failure in dyn_string_append.
7546 (result_push): Change return value to status_t. Handle failure in
7547 string_list_new. Handle failure of result_push throughout.
7548 (substitution_add): Change return value to status_t. Handle
7549 dyn_string failures. Handle failure of substitution_add
7550 throughout.
7551 (template_arg_list_new): Return NULL on allocation failure.
7552 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
7553 Handle error result throughout.
7554 (result_append): Likewise.
7555 (result_append_char): Likewise.
7556 (result_append_space): Likewise.
7557 (demangling_new): Make argument a const pointer. Handle
7558 allocation failures.
7559 (demangle_template_args): Handle failure in template_arg_list_new
7560 and result_close_template_list.
7561 (demangle_discriminator): Return if int_to_dyn_string fails.
7562 (cp_demangle): Likewise.
7563 (cp_demangle_type): New function.
7564 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
7565 memory allocation failure.
7566 (main): Likewise.
7567 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
7568 IN_LIBGCC2.
7569 (dyn_string_init): Change return value to int. Handle
7570 RETURN_ON_ALLOCATION_FAILURE case.
7571 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
7572 (dyn_string_release): Delete the dyn_string.
7573 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
7574 (dyn_string_copy): Change return type to int.
7575 (dyn_string_copy_cstr): Likewise.
7576 (dyn_string_prepend): Likewise.
7577 (dyn_string_prepend_cstr): Likewise.
7578 (dyn_string_insert): Likewise.
7579 (dyn_string_insert_cstr): Likewise.
7580 (dyn_string_append): Likewise.
7581 (dyn_string_append_cstr): Likewise.
7582 (dyn_string_append_char): Likewise.
7583 (dyn_string_substring): Likewise.
7584
7585 2000-06-09 Zack Weinberg <zack@wolery.cumb.org>
7586
7587 * cp-demangle.c (demangle_operator_name): Add spaces before
7588 names beginning with a letter: delete, delete[], new, new[],
7589 sizeof.
7590 (demangle_special_name): Handle TF <type> and TJ <type>.
7591
7592 Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
7593
7594 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
7595
7596 Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
7597
7598 * cp-demangle.c (stdio.h): File included unconditionaly.
7599 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
7600 * dyn-string.c (stdio.h): File included.
7601 * partition.c (partition_print): No `&' needed to take the address of
7602 a function.
7603
7604 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7605
7606 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
7607
7608 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
7609
7610 * cp-demangle.c (demangle_char): Change parameter from char to int.
7611 (demangle_expression, demangle_expr_primary): Remove extra
7612 semi-colon in prototype.
7613
7614 * dyn-string.c (dyn_string_append_char): Change parameter from
7615 char to int.
7616
7617 * memcmp.c (memcmp): Constify.
7618
7619 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
7620 __extension__.
7621
7622 * partition.c (elem_compare): Prototype. Don't cast away
7623 const-ness.
7624
7625 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
7626
7627 2000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7628
7629 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
7630
7631 * cp-demangle.c: Include demangle.h.
7632 (template_arg_list_new): DeANSIfy.
7633 (cp_demangle): Make static and add prototype.
7634 (operator_code, operators): Constify.
7635 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
7636
7637 2000-06-05 Alex Samuel <samuel@codesourcery.com>
7638
7639 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
7640 unsigned char.
7641 (demangle_unqualified_name): Likewise.
7642 (demangle_number_literally): Likewise.
7643 (demangle_type): Likewise.
7644 (demangle_substitution): Likewise.
7645 (is_mangled_char): Likewise, for isalnum.
7646
7647 2000-06-04 Alex Samuel <samuel@codesourcery.com>
7648
7649 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
7650 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
7651 (cp-demangle.o): New dependency.
7652 (dyn-string.o): Likewise.
7653
7654 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
7655
7656 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
7657 demangler.
7658 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
7659 demangling mode.
7660 (gnu_new_abi_symbol_characters): New function.
7661 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
7662 file.
7663 * cp-demangle.c: New file.
7664
7665 Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7666
7667 * floatformat.c: Add name to each floatformat field.
7668
7669 Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7670
7671 * Makefile.in (objalloc.o): Depend on config.h
7672
7673 2000-05-29 Zack Weinberg <zack@wolery.cumb.org>
7674
7675 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
7676 if HAVE_STRING_H.
7677 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
7678 * objalloc.c: Include config.h. Include stdlib.h and don't
7679 declare malloc or free if HAVE_STDLIB_H.
7680 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
7681 else declare malloc without prototype. Include string.h if
7682 HAVE_STRING_H, else declare memset without prototype. Don't
7683 include stddef.h.
7684
7685 2000-05-23 Mike Stump <mrs@wrs.com>
7686
7687 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
7688 -j3.
7689
7690 2000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7691
7692 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7693
7694 2000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7695
7696 * hashtab.c (hash_pointer): Delete low-order bits which are
7697 probably zero, also eliminate a warning on alpha.
7698
7699 2000-05-15 David Edelsohn <edelsohn@gnu.org>
7700
7701 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
7702 on $(enable_shared).
7703
7704 2000-05-10 Jakub Jelinek <jakub@redhat.com>
7705
7706 * config.table: Use mh-sparcpic for sparc*-*-*.
7707
7708 2000-05-08 Nick Clifton <nickc@cygnus.com>
7709
7710 * Makefile.in (CFILES): Add strncmp.c.
7711 (NEEDED): Add strncmp.
7712
7713 2000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7714
7715 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
7716 Cast the arguments to `islower' to `unsigned char'.
7717 (print_demangler_list): Prototype.
7718
7719 Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7720
7721 * sort.c (UCHAR_MAX): Provide fallback definition.
7722
7723 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7724
7725 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7726 SUBDIRS.
7727
7728 2000-04-28 Kenneth Block <block@zk3.dec.com>
7729 Jason Merrill <jason@casey.cygnus.com>
7730
7731 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
7732 (cplus_demangle_set_style): New function for setting style.
7733 (cplus_demangle_name_to_style): New function to translate name.
7734
7735 2000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7736
7737 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
7738
7739 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
7740 (libiberty_AC_FUNC_STRNCMP): Invoke.
7741
7742 * strncmp.c: New file.
7743
7744 Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
7745
7746 * hashtab.c (htab_expand): Add prototype.
7747 (find_empty_slot_for_expand): Likewise.
7748
7749 2000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7750
7751 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
7752 match prototype.
7753 (htab_expand): Cast the return value of xcalloc.
7754
7755 2000-04-24 Mark Mitchell <mark@codesourcery.com>
7756
7757 * hashtab.c (hash_pointer): New function.
7758 (eq_pointer): Likewise.
7759 (htab_hash_pointer): New variable.
7760 (htab_eq_pointer): Likewise.
7761
7762 2000-04-23 Mark Mitchell <mark@codesourcery.com>
7763
7764 * sort.c (sort_pointers): Fix endianness bugs.
7765
7766 * sort.c: New file.
7767 * Makefile.in (CFILES): Add sort.c
7768 (REQUIRED_OFILES): Add sort.o.
7769 (sort.o): New target.
7770
7771 2000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7772
7773 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7774 4.3BSD systems.
7775
7776 Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7777
7778 * hashtab.c: Various minor cleanups.
7779 (htab_find_slot_with_hash): INSERT is now enum insert_option.
7780 (htab_find_slot): Likewise.
7781
7782 2000-04-16 Dave Pitts <dpitts@cozx.com>
7783
7784 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
7785
7786 2000-04-05 Richard Henderson <rth@cygnus.com>
7787
7788 * splay-tree.c (splay_tree_remove): New.
7789
7790 2000-03-30 Mark Mitchell <mark@codesourcery.com>
7791
7792 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
7793 codes.
7794 (htab_find_with_hash): Likewise.
7795 (htab_find_slot_with_hash): Likewise.
7796
7797 2000-03-29 Zack Weinberg <zack@wolery.cumb.org>
7798
7799 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
7800 unless it will be used. Rearrange loop for better
7801 optimization.
7802 (higher_prime_number): Add static prototype.
7803
7804 Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7805
7806 * Makefile.in (partition.o): Depend on config.h
7807
7808 2000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
7809
7810 * hashtab.c (find_empty_slot_for_expand): New function.
7811 (htab_expand): Use it instead of htab_find_slot.
7812 (htab_find_with_hash): Renamed from htab_find; now accepts extra
7813 argument HASH.
7814 (htab_find_slot_with_hash): Likewise for htab_find_slot.
7815 (htab_find): New wrapper function.
7816 (htab_find_slot): Likewise.
7817 (htab_traverse): Pass slot, not entry, to called function.
7818
7819 2000-03-09 Alex Samuel <samuel@codesourcery.com>
7820
7821 * Makefile.in (CFILES): Add partition.c.
7822 (REQUIRED_OFILES): Add partition.o.
7823 (partition.o): New rule.
7824 * partition.c: New file.
7825
7826 2000-03-09 Zack Weinberg <zack@wolery.cumb.org>
7827
7828 * hashtab.c (htab_create): Set del_f.
7829 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
7830 Use it.
7831
7832 2000-03-08 Zack Weinberg <zack@wolery.cumb.org>
7833
7834 * hashtab.c: Remove debugging variables (all_searches,
7835 all_collisions, all_expansions). Delete
7836 all_hash_table_collisions.
7837 (create_hash_table, delete_hash_table, empty_hash_table,
7838 find_hash_table_entry, remove_element_from_hash_table_entry,
7839 clear_hash_table_slot, traverse_hash_table, hash_table_size,
7840 hash_table_elements_number, hash_table_collisions): Rename to:
7841 htab_create, htab_delete, htab_empty, htab_find_slot,
7842 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
7843 htab_elements, htab_collisions.
7844 (htab_find): New function, handles common case where you don't
7845 plan to add or delete an entry.
7846 (htab_expand): Don't create a whole new table, just a new
7847 entry vector.
7848 (htab_find_slot): Simplify logic.
7849
7850 1999-08-03 Ian Lance Taylor <ian@zembu.com>
7851
7852 * floatformat.c: Add casts to avoid signed/unsigned warnings.
7853 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
7854
7855 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
7856 $(TARGETLIB)n so it works on MSDOS.
7857 (install_to_tooldir): Likewise.
7858
7859 1999-07-21 Ian Lance Taylor <ian@zembu.com>
7860
7861 From Mark Elbrecht:
7862 * makefile.dos: Remove; obsolete.
7863 * configure.bat: Remove; obsolete.
7864
7865 1999-07-11 Ian Lance Taylor <ian@zembu.com>
7866
7867 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7868 warning.
7869
7870 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7871
7872 * pexecute.c: Conditionally include string.h.
7873 (fix_argv): Handle embedded whitespace in args for Mingw32.
7874
7875 2000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7876
7877 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
7878 we're using gcc.
7879
7880 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
7881
7882 1999-12-27 Geoff Keating <geoffk@cygnus.com>
7883
7884 * vasprintf.c (int_vasprintf): Don't re-read the format character
7885 as this mishandles strings like '%%s'.
7886
7887 1999-12-05 Mark Mitchell <mark@codesourcery.com>
7888
7889 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
7890 rather than struct splay_tree_node.
7891 (splay_tree_insert): Use struct splay_tree_s rather than struct
7892 splay_tree.
7893
7894 Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7895
7896 * hashtab.c (sys/types.h): File included.
7897
7898 1999-11-22 Jason Merrill <jason@casey.cygnus.com>
7899
7900 * strtoul.c, strtol.c, random.c: Remove advertising clause from
7901 BSD license, pursuant with
7902
7903 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
7904
7905 Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
7906
7907 * hashtab.c: Include stdio.h.
7908
7909 Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
7910
7911 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
7912
7913 Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
7914
7915 * xstrdup (sys/types.h): Include this file.
7916
7917 1999-10-28 Nathan Sidwell <nathan@acm.org>
7918
7919 * Makefile.in (SUBDIRS): New macro.
7920 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
7921 avoid multiple subdirectory cleaning.
7922 (*-subdir): Use SUBDIRS.
7923
7924 1999-10-25 Jim Kingdon <http://developer.redhat.com/>
7925
7926 * cplus-dem.c: Move declarations of standard_symbol_characters and
7927 hp_symbol_characters inside #ifdef MAIN to avoid compiler
7928 warnings.
7929
7930 1999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
7931
7932 * hashtab.c (find_hash_table_entry): When returning a
7933 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
7934 (clear_hash_table_slot): New function which deletes an entry
7935 by its position in the table, not its value.
7936 (traverse_hash_table): New function which calls a hook
7937 function for every live entry in the table.
7938
7939 1999-10-19 Mark Mitchell <mark@codesourcery.com>
7940
7941 * cplus-dem.c (INTBUF_SIZE): New macro.
7942 (string_append_template_idx): New function.
7943 (demangle_expression): Likewise.
7944 (demangle_integral_value): Use it.
7945 (demangle_real_value): New function, split out from ...
7946 (demangle_template_value_parm): ... here. Use
7947 string_append_template_idx. Use demangle_real_value.
7948 (demangle_template): Use string_append_template_idx.
7949 (demangle_qualified): Use consume_count_with_underscores.
7950 (get_count): Tweak formatting.
7951 (do_type): Use string_append_template_idx.
7952
7953 1999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7954
7955 * calloc.c: Add a public domain notice.
7956
7957 Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
7958
7959 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
7960
7961 Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
7962
7963 * Makefile.in (CFILES): Add hashtab.c
7964 (REQUIRED_OFILES): Add hashtab.o
7965 (hashtab.o): Add dependencies.
7966 * hashtab.c: New file
7967
7968 Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
7969
7970 * basename.c (DIR_SEPARATOR): New macro.
7971 (DIR_SEPARATOR_2): Likewise.
7972 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
7973 (IS_DIR_SEPARATOR): Likewise.
7974 (main): Handle MSDOS style pathname.
7975
7976 1999-10-11 Mark Mitchell <mark@codesourcery.com>
7977
7978 * cplus-dem.c (do_type): Handle pointer to member types whose
7979 enclosing classes have namespace scope.
7980
7981 Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
7982
7983 * config.table: Provide a backup shell for executing move-if-change.
7984
7985 1999-10-02 Mark Mitchell <mark@codesourcery.com>
7986
7987 * xmalloc.c (xmalloc): Fix spelling error.
7988 (xcalloc, xrealloc): Likewise.
7989
7990 1999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7991
7992 * cplus-dem.c (fancy_abort, demangle_integral_value,
7993 demangle_arm_hp_template, recursively_demangle,
7994 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
7995 (program_name, program_version, fatal): Constify a char*.
7996 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
7997 (main): Call return, not exit.
7998
7999 1999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8000
8001 * choose-temp.c: Remove obsolete comment about gcc.
8002 (make_temp_file): Constify a char*.
8003
8004 Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8005
8006 * xmemdup.c: Include sys/types.h.
8007
8008 1999-09-07 Jeff Garzik <jgarzik@pobox.com>
8009
8010 * xmemdup.c: New xmemdup function.
8011 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
8012
8013 Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
8014
8015 * config.table: Add openedition target.
8016 * config/mh-openedition: New file.
8017
8018 Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
8019
8020 * pexecute.c (pexecute): Fill in temp_base when needed.
8021
8022 1999-08-31 Richard Henderson <rth@cygnus.com>
8023
8024 * getpwd.c: Check HAVE_GETCWD before defining it away.
8025
8026 1999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8027
8028 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
8029 (REQUIRED_OFILES): Add getpwd.o.
8030 (getpwd.o): Add target.
8031
8032 * configure.in (AC_PREREQ): Bump to 2.13.
8033 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
8034
8035 * getpwd.c: New file, moved here from gcc.
8036
8037 1999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8038
8039 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
8040 comparing against a signed quantity.
8041 (arm_special): Likewise.
8042 (demangle_fund_type): Likewise.
8043 (do_hpacc_template_const_value): Mark parameter `work' with
8044 ATTRIBUTE_UNUSED.
8045 (main): Constify variable `valid_symbols'.
8046
8047 Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
8048
8049 * strtoul.c (strtoul): Add parentheses around && within ||.
8050
8051 Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
8052
8053 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
8054 libdir, libsubdir and tooldir.
8055
8056 1999-08-01 Mark Mitchell <mark@codesourcery.com>
8057
8058 * splay-tree.c (splay_tree_insert): Return the new node.
8059
8060 1999-07-14 Richard Henderson <rth@cygnus.com>
8061
8062 * argv.c: Include stdlib.h and string.h instead of
8063 prototyping directly.
8064 * choose-temp.c: Conditionally include string.h.
8065
8066 1999-07-12 Jason Merrill <jason@yorick.cygnus.com>
8067
8068 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
8069
8070 1999-07-11 Ian Lance Taylor <ian@zembu.com>
8071
8072 * splay-tree.c (splay_tree_insert): Add initialization to avoid
8073 warning.
8074
8075 1999-07-07 Jason Merrill <jason@yorick.cygnus.com>
8076
8077 * Makefile.in (needed-list): Only include stuff we actually need
8078 for libstdc++.
8079
8080 1999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8081
8082 * configure.in (checkfuncs): Add gettimeofday.
8083 * config.in, configure: Regenerated.
8084
8085 Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
8086
8087 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
8088 the test fails.
8089 * configure: Regenerate.
8090
8091 1999-06-10 Mike Stump <mrs@wrs.com>
8092
8093 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
8094 parallel builds.
8095
8096 1999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8097
8098 * putenv.c: Include ansidecl.h to define `const'.
8099 * setenv.c: Likewise.
8100
8101 Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
8102
8103 * Makefile.in (CFILES): Add putenv.c and setenv.c.
8104 * configure.in (funcs): Add putenv and setenv.
8105 (AC_CHECK_FUNCS): Check for putenv and setenv.
8106 * configure: Rebuilt.
8107 * putenv.c setenv.c: New files.
8108
8109 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
8110 bytes of space using malloc.
8111
8112 Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
8113
8114 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
8115 the *mangled pointer beyond the end of the string. Clean up code to
8116 match prevailing coding style.
8117
8118 1999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8119
8120 * tmpnam.c (L_tmpnam): Fix typo.
8121
8122 Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
8123
8124 * cplus-dem.c (standard_symbol_characters): Renamed from
8125 standard_symbol_alphabet. No longer modify TABLE.
8126 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
8127 modify TABLE.
8128 (main): Corresponding changes. Use strchr to determine if a
8129 character is valid.
8130
8131 1999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
8132
8133 * cplus-dem.c (main): Use table lookup to distinguish identifier
8134 characters from non-identifier characters.
8135 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
8136
8137 Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
8138
8139 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
8140 * getruntime.c: Only attempt to include sys/resource.h and
8141 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
8142 are defined.
8143
8144 Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
8145
8146 * configure.in (alloca detection): Handle alloca directly for interix.
8147 * configure: Rebuilt.
8148
8149 Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
8150
8151 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
8152
8153 1999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
8154
8155 Fix from Dale Hawkins:
8156 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
8157 reallocated properly if we use it again.
8158
8159 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
8160 stricter about syntax. Always null-terminate string.
8161
8162 Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
8163
8164 * configure.in (checkfuncs): Check for sbrk.
8165 * config.in: Rebuilt.
8166 * configure: Likewise.
8167 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
8168
8169 1999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
8170
8171 Fix from Marcus Daniels:
8172 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
8173 identifier looking for another underscore.
8174
8175 Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
8176
8177 * pexecute.c: Change all references to __UWIN__ to _UWIN.
8178 * xmalloc.c: Likewise.
8179 (xcalloc): UWIN has sbrk.
8180 (xrealloc): Fix guard macro.
8181
8182 1999-04-11 Richard Henderson <rth@cygnus.com>
8183
8184 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
8185 or <alloca.h>.
8186 * clock.c (GNU_HZ): New definition.
8187 (clock): Use it.
8188 * getruntime.c: Likewise.
8189
8190 * config.table: Use mh-beos.
8191 * config/mh-beos: New file.
8192
8193 1999-04-11 Mark Mitchell <mark@codesourcery.com>
8194
8195 * cplus-dem.c (demangle_template_value_parm): Handle
8196 pointers-to-members.
8197 (do_type): Handle template parameters as qualifiers.
8198
8199 1999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
8200
8201 * cplus-dem.c: Attempt to handle overflows in counts with some
8202 semblance of grace.
8203 (consume_count): Detect overflows. Return -1 to indicate errors,
8204 instead of zero.
8205 (demangle_template_value_parm, demangle_template): Handle change
8206 to consume_count's return convention.
8207
8208 1999-04-05 Tom Tromey <tromey@cygnus.com>
8209
8210 * testsuite/regress-demangle: New file.
8211 * testsuite/demangle-expected: New file.
8212
8213 * Makefile.in (all, check, installcheck, info, install-info,
8214 clean-info, dvi, install, etags, tags, mostlyclean, clean,
8215 distclean, maintainer-clean, realclean): Depend on corresponding
8216 `-subdir' target.
8217 (all-subdir check-subdir installcheck-subdir info-subdir
8218 install-info-subdir clean-info-subdir dvi-subdir
8219 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
8220 distclean-subdir maintainer-clean-subdir): New target.
8221 * testsuite/Makefile.in: New file.
8222 * configure: Rebuilt.
8223 * configure.in: Create testsuite/Makefile.
8224
8225 1999-04-02 Mark Mitchell <mark@codesourcery.com>
8226
8227 * splay-tree.h (splay_tree_compare_pointers): Define.
8228
8229 1999-03-30 Mark Mitchell <mark@codesourcery.com>
8230
8231 * splay-tree.c (splay_tree_compare_ints): Define.
8232
8233 1999-03-30 Tom Tromey <tromey@cygnus.com>
8234
8235 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
8236 don't advance input pointer.
8237 (demangle_class_name): If consume_count didn't find a count, do
8238 nothing. Don't bother with `strlen' sanity check; consume_count
8239 does it for us.
8240
8241 1999-03-16 Stan Shebs <shebs@andros.cygnus.com>
8242
8243 From Art Haas <ahaas@neosoft.com>:
8244 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
8245 when doing arm or hp style.
8246 (demangle_nested_args): Decr forgetting_types field when done.
8247
8248 Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
8249
8250 * pexecute.c (__CYGWIN32__): Rename to
8251 (__CYGWIN__): this.
8252 * xmalloc.c: Likewise.
8253
8254 Changes to support i386-pc-uwin.
8255 * configure.in (*-*-uwin*): Workaround for vfork bug.
8256 * configure: Regenerate.
8257 * pexecute.c (pexecute): Be like standard Unix.
8258 (pwait): Likewise.
8259 * xmalloc.c (first_break): Define.
8260 (xmalloc_set_program_name): Use.
8261 (xmalloc): Use.
8262
8263 Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
8264
8265 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
8266
8267 Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8268
8269 * config.table: Check cygwin*, not cygwin32*.
8270
8271 Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8272
8273 * Makefile.in: Change mkstemp -> mkstemps.
8274
8275 Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
8276
8277 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
8278 * configure.in (funcs): Check for and conditionally add mkstemps to
8279 the list of functions libiberty will provide.
8280 * configure: Rebuilt.
8281
8282 Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8283
8284 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
8285 platforms that don't have HZ.
8286 * getruntime.c (HZ): Likewise.
8287
8288 Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8289
8290 * Makefile.in (xstrdup.o): Depend on config.h.
8291
8292 Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
8293
8294 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
8295 freeing it.
8296
8297 Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8298
8299 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
8300
8301 Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
8302
8303 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
8304 splay-tree.o.
8305
8306 1999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8307
8308 * configure.in: Require autoconf 2.12.1 or higher.
8309
8310 1998-12-30 Michael Meissner <meissner@cygnus.com>
8311
8312 * random.c (NULL): Don't redefine NULL if it is already defined.
8313
8314 Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8315
8316 * argv.c (buildargv): Cast the result of alloca in assignment.
8317
8318 * choose-temp.c: Include stdlib.h.
8319
8320 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8321 (snarf_numeric_literal): Constify first parameter.
8322 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8323 int, not a char.
8324 (demangle_qualifier): Likewise.
8325 (demangle_signature): Cast the argument of a ctype function to
8326 unsigned char.
8327 (arm_pt): Add parens around assignment used as truth value.
8328 (demangle_arm_hp_template): Constify variable `args'.
8329 (do_hpacc_template_const_value): Cast the argument of a ctype
8330 function to unsigned char.
8331 (do_hpacc_template_literal): Remove unused variable `i'.
8332 (snarf_numeric_literal): Constify parameter `args'.
8333 Cast the argument of a ctype function to unsigned char.
8334
8335 * floatformat.c (floatformat_to_double): Add explicit braces to
8336 avoid ambiguous `else'.
8337
8338 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8339 `cstart' and `cend' to unsigned char. Cast the argument of macro
8340 `FOLD', which uses ctype functions, to unsigned char.
8341
8342 * objalloc.c (free): Add prototype.
8343
8344 Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
8345
8346 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
8347
8348 Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8349
8350 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8351 doesn't exist.
8352 (do_hpacc_template_literal): remove unused variable `i'.
8353
8354 Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8355
8356 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
8357 bumping the pointer we read from. Also prepend these codes,
8358 as we do in other places.
8359
8360 1998-12-18 Nick Clifton <nickc@cygnus.com>
8361
8362 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
8363 'const char *' in order to match its usage when calling siblings.
8364 (snarf_numeric_literal): Make first arg 'const char **' in order
8365 to match usage.
8366
8367 Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8368
8369 * choose-temp.c: Don't check IN_GCC anymore.
8370
8371 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
8372 * memchr.c (memchr): Likewise.
8373 * memcpy.c (memcpy): Likewise.
8374 * memmove.c (memmove): Likewise.
8375
8376 * mkstemp.c: Don't check IN_GCC anymore.
8377 * pexecute.c: Likewise.
8378 * splay-tree.c: Likewise.
8379
8380 * strchr.c (strchr): Use `const', not `CONST'.
8381 * strrchr.c (strrchr): Likewise.
8382 * strtol.c (strtol): Likewise.
8383 * strtoul.c (strtoul): Likewise.
8384
8385 Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
8386 Elena Zannoni <ezannoni@cygnus.com>
8387 Stan Shebs <shebs@cygnus.com>
8388 Edith Epstein <eepstein@cygnus.com>
8389 Andres MacLeod <amacleod@cygnus.com>
8390 Satish Pai <pai@apollo.hp.com>
8391
8392 * HP aCC demangling support.
8393 * cplus-dem.c
8394 (main): Remove default to HP style demangling, set to EDG
8395 demangling correctly when -edg specified; set the demangling style
8396 when user specifies 'edg'. Set strip_underscore to
8397 prepends_underscore, if not HPUXHPPA. Set
8398 current_demangling_style to hp_demangling if HPUXHPPA. Set
8399 current demangling style correctly if the switch is hp. Read
8400 label correctly also in the HP style case.
8401 (work_stuff): add temp_start field; add field for volatile member
8402 function.
8403 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8404 style for this case is the same as ARM.
8405 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8406 (demangle_arm_hp_template): new function. (It was
8407 demangle_arm_pt.); check and set value of temp_start field in
8408 multiple places. Also, when ceching for end of template args,
8409 check to see if at end of static member of template class.
8410 (demangle_class): new local variable : save_class_name_end Don't
8411 include template args in string defining class.
8412 (demangle_class_name): use demangel_arm_hp_template.
8413 (demangle_function_name): handle case where demangling style is
8414 HP_DEMANGLING and currently point at an 'X' in the mangled name.
8415 Handle EDG_DEMANGLING style. Handle constructor and destructor
8416 ops for HP style.
8417 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8418 styles. global destructor and constructor for HP style are same
8419 as for ARM style. Same for local variables.
8420 (demangle_qualified): handle EDG_DEMANGLING style.
8421 (demangle_signature): add case for volatile member function. For
8422 cases '1' - '9' : initialize the temp_start field to -1 and handle
8423 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
8424 and AUTO_DEMANGLING styles. If expecting a function and managed
8425 to demangle the funct args, then handle the LUCID_DEMANGLING,
8426 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
8427 class name after "Lnnn_ in HP style case. HP style too needs to
8428 forget types. _nnn is OK for HP style, so don't report failure.
8429 (do_hpacc_template_const_value): new function. Handle template's
8430 value param for HP/aCC.
8431 (do_hpacc_template_literal): new function. Handle a template's
8432 literal parameter for HP aCC.
8433 (recursively_demangle): new function
8434 (snarf_numeric_literal): new function.
8435 (usage): add 'edg' to the list of demangling styles; add hp switch
8436 to message.
8437
8438 Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8439
8440 * pexecute.c: Remove obsolete ifdefed cygwin code.
8441
8442 Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8443
8444 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
8445 * cplus-dem.c: Likewise. Conform to libiberty.h.
8446 * pexecute.c: Likewise.
8447 * splay-tree.c: Likewise.
8448
8449 1998-11-25 Mike Stump <mrs@wrs.com>
8450
8451 * Makefile.in (splay-tree.o): Add config.h dependency.
8452
8453 Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8454
8455 * configure.in: Use AC_PREREQ(2.12.1).
8456
8457 1998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8458
8459 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
8460
8461 Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8462
8463 * mpw.c (mpw_access): Add missing parens.
8464
8465 Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8466
8467 * configure.in: Call AC_HEADER_SYS_WAIT.
8468
8469 * pexecute.c: Include sys/wait.h when !IN_GCC.
8470
8471 Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
8472
8473 * pexecute.c: revert back to checking old Cygwin
8474 preprocessor symbol until some time has passed.
8475
8476 Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
8477
8478 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
8479 since it will now support similar constructs.
8480
8481 Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8482
8483 * configure.in: Check for calloc.
8484
8485 * calloc.c: New file.
8486
8487 * xmalloc.c (xcalloc): New function.
8488
8489 Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
8490
8491 *cplus-dem.c (demangle_prefix): Use the last "__"
8492 in the mangled name when looking for the signature. This allows
8493 template names to begin with "__".
8494
8495 1998-11-08 Mark Mitchell <mark@markmitchell.com>
8496
8497 * cplus-dem.c (type_kind_t): Add tk_reference.
8498 (demangle_template_value_parm): Handle it.
8499 (do_type): Use it for references, instead of tk_pointer.
8500
8501 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8502 not internal_cplus_demangle.
8503
8504 Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8505
8506 * choose-temp.c: Don't include gansidecl.h.
8507 * mkstemp.c: Likewise.
8508 * pexecute.c: Likewise.
8509
8510 Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8511
8512 * configure.in: detect cygwin* instead of cygwin32*
8513 * configure: regenerate
8514
8515 Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8516
8517 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8518 whether to include config.h. Possibly include unistd.h in the
8519 !IN_GCC case. Define VFORK_STRING as a printable function call
8520 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
8521 defined, include vfork.h. If VMS is defined, define vfork()
8522 appropriately. Remove vfork check on USG, we're using autoconf.
8523 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
8524 locally what string to use.
8525
8526 1998-10-26 Mark Mitchell <mark@markmitchell.com>
8527
8528 * splay-tree.c: Tweak include directives to make sure declarations of
8529 xmalloc and free are available.
8530
8531 1998-10-25 Mark Mitchell <mark@markmitchell.com>
8532
8533 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8534 anonymous namespaces.
8535
8536 1998-10-23 Mark Mitchell <mark@markmitchell.com>
8537
8538 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
8539 with type_quals.
8540 (TYPE_UNQUALIFIED): New macro.
8541 (TYPE_QUAL_CONST): Likewise.
8542 (TYPE_QUAL_VOLATILE): Likewise.
8543 (TYPE_QUAL_RESTRICT): Likewise.
8544 (code_for_qualifier): New function.
8545 (qualifier_string): Likewise.
8546 (demangle_qualifier): Likewise.
8547 (internal_cplus_demangle): Use them.
8548 (demangle_signature): Likewise.
8549 (demangle_template_value_parm): Likewise.
8550 (do_type): Likewise.
8551 (demangle_fund_type)): Likewise.
8552
8553 Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8554
8555 * splay-tree.c (splay_tree_foreach_helper): Make definition static
8556 to match prototype.
8557
8558 1998-10-21 Mark Mitchell <mark@markmitchell.com>
8559
8560 * splay-tree.c: New file.
8561 * Makefile.in (CFILES): Add it.
8562 (REQUIRED_OFILES): Likewise.
8563 (splay-tree.o): Add dependencies.
8564
8565 Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8566
8567 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
8568 range of 'K' index.
8569
8570 Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8571
8572 * choose-temp.c: Prototype mkstemps() when IN_GCC.
8573
8574 * cplus-dem.c (consume_count): Cast argument of ctype macro to
8575 `unsigned char'.
8576 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
8577 comparing against one.
8578 (cplus_mangle_opname): Likewise.
8579 (demangle_integral_value): Cast argument of ctype macro to
8580 `unsigned char'.
8581 (demangle_template_value_parm): Likewise.
8582 (demangle_template): Initialize variable `bindex'. Cast the
8583 result of `strlen' to (int) when comparing against one. Remove
8584 unused variable `start_of_value_parm'.
8585 (demangle_class_name): Cast the result of `strlen' to (int) when
8586 comparing against one.
8587 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
8588 (gnu_special): Likewise. Cast the result of `strlen' to (int)
8589 when comparing against one.
8590 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
8591 (get_count): Likewise.
8592 (do_type): Likewise. Cast the result of `strlen' to (int) when
8593 comparing against one.
8594 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
8595 (demangle_function_name): Cast the result of `strlen' to (int)
8596 when comparing against one.
8597
8598 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
8599 comparing against one.
8600
8601 Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8602
8603 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
8604 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
8605 * config.in, configure: Rebuilt.
8606
8607 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
8608 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
8609 * config.in, configure: Rebuilt.
8610
8611 Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8612
8613 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
8614
8615 Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
8616
8617 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
8618
8619 Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8620
8621 * Merge egcs & devo libiberty.
8622
8623 1998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
8624
8625 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8626
8627 Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8628
8629 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
8630 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8631 IN_GCC.
8632
8633 * vasprintf.c: Include stdarg.h/varargs.h first.
8634
8635 * vprintf.c: Likewise.
8636
8637 Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
8638
8639 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
8640 is the canonical copy. Define ISSPACE if !IN_GCC.
8641 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
8642 * getopt1.c, obstack.c: Similarly.
8643 * Makefile.in: Build mkstemp.o
8644
8645 Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
8646
8647 * configure.in: Include asprintf in list of functions known not
8648 to be in newlib.
8649 * configure: Rebuild.
8650
8651 Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
8652
8653 * cplus-dem.c (work_stuff): Add dllimported.
8654 (demangled_prefix): Mark symbols imported from PE DLL.
8655 (internal_cplus_demangled): Handle.
8656
8657 1998-08-17 Jason Merrill <jason@yorick.cygnus.com>
8658
8659 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
8660 stay failed.
8661
8662 Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8663
8664 * cplus-dem.c: Include config.h if it exists. Also, only
8665 prototype malloc/realloc if we can't get stdlib.h.
8666
8667 Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
8668
8669 * configure.in: Switch back to checking --with-target-subdir when
8670 deciding whether to check for newlib, undoing part of July 15
8671 change.
8672 * configure: Rebuild.
8673
8674 Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
8675
8676 * cplus-dem.c (type_kind_t): New type.
8677 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8678 on this paramter, rather than demangling the type again.
8679 (demangle_integral_value): Pass tk_integral.
8680 (demangle_template_: Pass the value returned from do_type.
8681 (do_type): Return a type_kind_t. Pass tk_integral to
8682 demangle_template_value_parm for array bounds.
8683 (demangle_fund_type): Likewise.
8684
8685 Also incorporate from GCC version:
8686
8687 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8688
8689 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8690
8691 Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8692
8693 * cplus-dem.c (demangle_nested_args): Make function definition
8694 static to match the prototype.
8695
8696 Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
8697
8698 * cplus-dem.c (type_kind_t): New type.
8699 (demangle_template_value_parm): Add type_kind_t parameter. Rely
8700 on this paramter, rather than demangling the type again.
8701 (demangle_integral_value): Pass tk_integral.
8702 (demangle_template_: Pass the value returned from do_type.
8703 (do_type): Return a type_kind_t. Pass tk_integral to
8704 demangle_template_value_parm for array bounds.
8705 (demangle_fund_type): Likewise.
8706
8707 Also incorporate from GCC version:
8708
8709 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
8710
8711 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
8712
8713 Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
8714
8715 * Makefile.in (ALLOCA): New variable.
8716 ($(TARGETLIB)): Add $(ALLOCA) to library.
8717 (needed-list): Add $(ALLOCA).
8718 ($(ALLOCA)): Depend upon stamp-picdir.
8719
8720 Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8721
8722 * cplus-dem.c (demangle_nested_args): Make function definition
8723 static to match the prototype.
8724
8725 Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
8726
8727 * configure.in: Check --with-cross-host rather than
8728 --with-target-subdir when deciding whether build uses a cross
8729 compiler, and when deciding where to install the library.
8730 * configure: Rebuild.
8731
8732 Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8733
8734 * cplus-dem.c (demangle_nested_args): Return a value.
8735
8736 Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8737
8738 * cplus-dem.c (string): Move definition before work_stuff.
8739 (work_stuff): Add volatile_type, forgetting_types,
8740 previous_argument, and nrepeats fields.
8741 (SCOPE_STRING): New macro.
8742 (demangle_template): Add `remember' parameter. Add comment.
8743 Register the `B' code type here, if remembering. Tidy. Fix crash
8744 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
8745 (demangle_nested_args): New function.
8746 (internal_cplus_demangle): Handle volatile-qualified member
8747 functions.
8748 (mop_up): Delete the previous_argument string if present.
8749 (demangle_signature): Tidy. Handle volatile-qualified member
8750 functions. Handle back-references using the `B' code. Use extra
8751 parameter to demangle_template and SCOPE_STRING where appropriate.
8752 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
8753 code.
8754 (demangle_class): Use SCOPE_STRING.
8755 (gnu_special): Pass additional argument to demangle_template.
8756 Use SCOPE_STRING.
8757 (demangle_qualified): Save qualified types for later
8758 back-references. Handle constructors and destructors for template
8759 types correctly.
8760 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
8761 demangle_template. Use demangled_nested_args. Don't remember
8762 qualified types here; that's now done in demangle_qualified.
8763 Similarly for templates.
8764 (do_arg): Improve commment. Handle 'n' repeat code.
8765 (remember_type): Check forgetting_types.
8766 (demangle_args): Deal with 'n' repeat codes. Tidy.
8767
8768 Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
8769
8770 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
8771 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
8772
8773 Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
8774
8775 * configure.in (setobjs): Correct quoting error in cygwin32 case.
8776 From Chris Faylor <cgf@cygnus.com>.
8777
8778 Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8779
8780 * obstack.c: Update to latest FSF version.
8781
8782 Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
8783
8784 * Makefile.in: Add a dependency on stamp-picdir for the
8785 objects, so that we can do a parallel build.
8786
8787 Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8788
8789 * configure.in (checkfuncs): Add missing "'".
8790
8791 Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
8792
8793 * obstack.c (_obstack_memory_used): Elide this function if we're
8794 on a system with GNU libc.
8795
8796 Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
8797
8798 * Makefile.in (distclean): Remove config.log.
8799
8800 Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8801
8802 * Makefile.in (distclean): Don't remove alloca-conf.h.
8803
8804 Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8805
8806 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
8807
8808 1998-05-21 Mark Mitchell <mmitchell@usa.net>
8809
8810 * cplus-dem.c (do_type): Handle volatile qualification.
8811
8812 1998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
8813
8814 * configure.in: Check for unistd.h as well.
8815 * configure: Rebuild.
8816 * config.in: Rebuild.
8817 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
8818 is defined in unistd.h. Reformat conditional block for easier reading.
8819
8820 * config.table (shared): Default to no if ${enable_shared}
8821 is unset or empty; this logic is used by the toplevel
8822 configure scripts, too.
8823
8824 Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
8825
8826 * config.table: Add line to set enable_shared in the Makefile
8827 as needed.
8828
8829 Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8830
8831 * cplus-dem.c (squangle_mop_up): Change return type to void.
8832 (internal_cplus_demangle): Remove unused parameter `options'.
8833 All callers changed.
8834 (cplus_demangle_opname): Remove function wide variable `int i' and
8835 replace with `size_t i' at each location where it is used.
8836 (cplus_mangle_opname): change type of `i' from int to size_t.
8837
8838 Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
8839
8840 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
8841 than sparc or sun.
8842 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
8843
8844 Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
8845
8846 * configure.in: Set libiberty_topdir correctly when srcdir is
8847 "." and with_target_subdir is not set.
8848 * configure: Rebuild.
8849
8850 Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8851
8852 * configure.in: Add *-*-mingw32* case.
8853 * configure: Rebuild.
8854
8855 Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
8856
8857 * config.table: Never use a PIC file for *-*-cygwin32*.
8858
8859 * Makefile.in (config.status): Depend upon config.table.
8860
8861 * configure.in: On a cygwin32 host, always compile random, and
8862 don't test for sys_siglist, strsignal, or psignal.
8863 * configure: Rebuild.
8864
8865 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
8866 * getcwd.c: Likewise.
8867 * getpagesize.c: Likewise.
8868 * getruntime.c: Likewise.
8869
8870 Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
8871
8872 Use autoconf tests rather than the old dummy.c test:
8873 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
8874 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
8875 most functions. Add special cases to handle newlib and VxWorks.
8876 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
8877 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
8878 CONFIG_FILES is set; set ac_file before calling it.
8879 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
8880 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
8881 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
8882 (i[3456]-*-mingw32*): Remove.
8883 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
8884 (LIBOBJS): New variable.
8885 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
8886 (all): Depend upon needed-list. Don't check RULE1.
8887 (@target_makefile_frag@): Remove.
8888 (COMPILE.c): Include @DEFS@.
8889 (HFILES): Add alloca-conf.h.
8890 (REQUIRED_OFILES): Remove basename.o.
8891 ($(TARGETLIB)): New target.
8892 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
8893 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
8894 (needed-list, config.h): Rewrite.
8895 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
8896 (.always.): Remove.
8897 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
8898 (stamp-h): New target.
8899 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
8900 (basename.o): Don't depend upon config.h.
8901 (getruntime.o): Depend upon config.h.
8902 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
8903 NEED_on_exit.
8904 * basename.c: Don't include config.h. Don't check NEED_basename.
8905 * clock.c: Include config.h.
8906 * getcwd.c: Likewise.
8907 * getpagesize.c: Likewise.
8908 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
8909 HAVE_TIMES.
8910 * strerror.c: Change uses of NEED_sys_errlist to
8911 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
8912 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
8913 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
8914 HAVE_PSIGNAL.
8915 * acconfig.h: New file.
8916 * dummy.c: Remove.
8917 * functions.def: Remove.
8918 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
8919 * config/mh-windows (HDEFINES): Remove.
8920 * config/mh-cygwin32: Remove.
8921 * config/mh-go32: Remove.
8922 * config/mh-irix4: Remove.
8923 * config/mh-riscix: Remove.
8924 * config/mh-sysv4: Remove.
8925 * config/mt-mingw32: Remove.
8926 * config/mt-vxworks5: Remove.
8927 * config.in: New file, generated using autoheader.
8928 * configure: Rebuild.
8929
8930 Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
8931
8932 * configure.in: Rewrite to use autoconf.
8933 * configure: Generate using autoconf.
8934 * config/mh-a68bsd: Remove.
8935 * config/mh-apollo68: Remove.
8936 * config/mh-hpbsd: Remove.
8937 * config/mh-ncr3000: Remove.
8938 * config/mh-sysv: Remove.
8939 * config/mh-aix (RANLIB, INSTALL): Don't define.
8940 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
8941 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
8942 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
8943 * config.table: Change config_shell to CONFIG_SHELL, and use
8944 libiberty_topdir to find move-if-change.
8945 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
8946 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
8947 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
8948 * Makefile.in (srcdir): Set to @srcdir@.
8949 (VPATH): Likewise.
8950 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
8951 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
8952 (CC, CFLAGS, RANLIB)): Likewise.
8953 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
8954 (target_makefile_frag, host_makefile_frag): Add substitutions.
8955 (INSTALL_DEST): Set to @INSTALL_DEST@.
8956 (Makefile): Depend upon config.status. Don't depend upon
8957 $(host_makefile_frag) or $(target_makefile_frag).
8958 (config.status): New target.
8959
8960 Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
8961
8962 * config/mt-sunos4: Remove. Should be handled by --with-headers
8963 and --with-libraries options at top level.
8964 * config.table: Never use mt-sunos4.
8965
8966 * alloca-conf.h: New file, combining alloca-norm.h and
8967 alloca-botch.h.
8968 * alloca-norm.h: Remove.
8969 * alloca-botch.h: Remove.
8970 * configure.in: Set shell variables files and links to empty.
8971 * config.table: Don't set shell variable files.
8972 * configure.bat: Don't create alloca-conf.h.
8973 * makefile.vms: Likewise.
8974 * mpw-config.in: Likewise.
8975 * vmsbuild.com: Likewise.
8976
8977 Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
8978
8979 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
8980 target depending upon config.h.
8981 (alloca.o): Add target depending upon config.h
8982 (basename.o, choose-temp.o, fnmatch.o): Likewise.
8983 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
8984 (strsignal.o, xstrerror.o): Likewise.
8985
8986 Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8987
8988 * cplus-dem.c (cplus_demangle_opname): Initialize work.
8989
8990 Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8991
8992 * cplus-dem.c (demangle_qualified): Replace missing else.
8993
8994 Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
8995
8996 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
8997 length in the name of a virtual table.
8998
8999 Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
9000
9001 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
9002 (cplus_demangle_opname): Call mop_up_squangle.
9003 (cplus_demangle): Initialize squangle info, then call
9004 internal_cplus_demangle. (Most code moved there as well)
9005 (internal_cplus_demangle): New function, performs most of what use
9006 to be done in cplus_demangle, but is only called with this file.
9007 (squangle_mop_up): New function to clean up B and K code data.
9008 (mop_up): set pointers to NULL after freeing.
9009 (demangle_signature, demangle_template, demangle_class): Add
9010 switch elements to handle K and B codes.
9011 (demangle_prefix, gnu_special, demangle_qualified): Add
9012 code to handle K and B codes.
9013 (do_type, demangle_fund_type): Handle B and K codes.
9014 (remember_Ktype): New function to store K info.
9015 (register_Btype, remember_Btype): New functions for B codes.
9016 (forget_B_and_K_types): New function to destroy B and K info.
9017
9018 Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9019
9020 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
9021
9022 Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
9023
9024 * config.table: Make locating frag files failsafe even for the
9025 special case if configuring and building in srcdir.
9026
9027 Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
9028
9029 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
9030
9031 Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
9032
9033 * choose-temp.c: Sync with copy in gcc.
9034
9035 Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
9036
9037 * getopt.c: Update to latest FSF version.
9038 * getopt1.c: Likewise.
9039
9040 Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
9041
9042 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
9043 strings that are not actually lengths.
9044
9045 Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
9046
9047 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
9048 (.c.o): Check value of enable_shared, not PICFLAG.
9049 (stamp-picdir): Dito.
9050
9051 Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
9052
9053 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
9054 since it gets built automatically
9055
9056 Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
9057
9058 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
9059 the currently shipping OS.
9060
9061 Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
9062
9063 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
9064 Add fnmatch.o and objalloc.o; remove vasprintf.o.
9065 [config.h]: Define NEED_strsignal.
9066
9067 Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
9068
9069 * functions.def: Correct argument types for strerror and
9070 strsignal. Reported by Alex Gutman <agutman@emc.com>.
9071
9072 Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
9073
9074 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
9075 values.
9076
9077 Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
9078 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
9079
9080 Add mingw32 support.
9081 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
9082 (pwait): New function for mingw32.
9083
9084 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
9085 * config/mt-mingw32: New file.
9086 * xmalloc.c (first_break): Not used for mingw32.
9087 (xmalloc_set_program_name): Don't use sbrk on mingw32.
9088 (xmalloc): Likewise.
9089 (xrealloc): Likewise.
9090
9091 Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
9092
9093 * choose-temp.c: Sync with gcc version.
9094
9095 Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
9096
9097 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
9098 to all filenames in libdir and tooldir.
9099 (distclean): Do MULTICLEAN before deleting Makefile.
9100 (stamp-needed, stamp-config): Add MULTISRCTOP to
9101 pathname for move-if-change.
9102
9103 Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
9104
9105 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
9106
9107 Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
9108
9109 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
9110 was already defined previously.
9111
9112 Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
9113
9114 * Makefile.in (INSTALL): Use ../install-sh, not install.
9115
9116 Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
9117
9118 * Makefile.in (CFILES): Add pexecute.c.
9119
9120 Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
9121
9122 * asprintf.c: Consistently use either stdarg or varargs.
9123
9124 Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
9125
9126 * cplus-dem.c (demangle_signature): Don't look for return types on
9127 constructors. Handle member template constructors.
9128
9129 Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
9130
9131 * README: Fix configuration instructions.
9132
9133 Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
9134
9135 * pexecute.c: Update to current version from /gd/gnu/lib:
9136
9137 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
9138
9139 * pexecute.c: Use spawn if __CYGWIN32__.
9140
9141 1997-08-08 Paul Eggert <eggert@twinsun.com>
9142
9143 * pexecute.c: Include "config.h" first, as per autoconf manual.
9144
9145 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
9146
9147 * pexecute.c (fix_argv): New function.
9148 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9149 Add underscore to cwait function call.
9150
9151 Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
9152
9153 * cplus-dem.c (demangle_template): Add new parameter. Handle new
9154 template-function mangling.
9155 (consume_count_with_underscores): New function.
9156 (demangle_signature): Handle new name-mangling scheme.
9157
9158 Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
9159
9160 * asprintf.c: stdarg.h when ALMOST_STDC
9161 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
9162 strncasecmp.o.
9163
9164 Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
9165
9166 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
9167
9168 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
9169
9170 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
9171
9172 Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
9173
9174 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
9175
9176 Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
9177
9178 * asprintf.c (asprintf): New file.
9179 * Makefile.in (CFILES): Add asprintf.c
9180 * functions.def: Ditto.
9181
9182 Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
9183
9184 * argv.c (dupargv): New function, duplicate an argument vector.
9185
9186 Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
9187
9188 * config/mh-cygwin32: also build random.o
9189
9190 Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
9191
9192 * cplus-dem.c: Add 'extern' to prepends_underscore.
9193
9194 Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
9195
9196 * cplus-dem.c: Various changes to produce Java output when passed
9197 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
9198 (main): Support --java and -j flags to set DMGL_JAVA.
9199
9200 Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
9201
9202 * config/mh-go32 (CC, AR, RANLIB): Don't define.
9203
9204 Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
9205
9206 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
9207 (pexecute.o): New target.
9208
9209 * Makefile.in (stamp-needed): New target, replacing needed-list.
9210 (needed-list): Just depend upon stamp-needed.
9211 (stamp-config): New target, replacing config.h.
9212 (config.h): Just depend upon stamp-config.
9213 (mostlyclean): Remove stamp-*.
9214
9215 Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
9216
9217 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
9218 INSTALL_DATA for multilibbed installs
9219
9220 Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
9221
9222 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
9223
9224 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
9225
9226 * choose-temp.c (try): Insist that temp dir be searchable.
9227
9228 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
9229
9230 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
9231 for current directory.
9232
9233 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
9234
9235 * pexecute.c: Remove special cases for cygwin32.
9236 (pwait): Remove local definition of `pid'.
9237
9238 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
9239
9240 * pexecute.c (vfork): Supply new definition for VMS.
9241 (pwait): Use waitpid instead of wait for VMS.
9242
9243 Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9244
9245 * cplus-dem.c (do_type): Handle `J'.
9246 (demangle_fund_type): Print "complex" for it.
9247
9248 Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
9249
9250 * configure.in: Don't turn on multilib here.
9251
9252 Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9253
9254 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
9255 elided; needed by gdb and not present in libc.
9256
9257 Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9258
9259 * Makefile.in (clean): Remove tmpmulti.out.
9260
9261 Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9262
9263 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
9264 Add new floatformat, mainly for ARM doubles.
9265
9266 Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
9267
9268 * config.table: Use ${config_shell} with ${moveifchange}. From
9269 Thomas Graichen <graichen@rzpd.de>.
9270
9271 Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
9272
9273 * configure.in: Enable multilibing by default.
9274 Update multilib template to read config-ml.in.
9275
9276 Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9277
9278 * makefile.vms: Add objalloc.
9279
9280 Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
9281
9282 * cplus-dem.c (demangle_it): Add prototype declaration.
9283 (usage, fatal): Likewise.
9284
9285 * xexit.c (_xexit_cleanup): Add prototype.
9286
9287 * strerror.c (init_error_tables): Declare.
9288
9289 Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
9290
9291 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
9292 * strsignal.c: Only define strsignal if NEED_strsignal.
9293 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
9294 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
9295 to xneeded-list.
9296 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
9297 (EXTRA_OFILES): Define to vasprintf.o.
9298 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
9299 (EXTRA_OFILES): Add vasprintf.o.
9300 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
9301 (vxneeded-list): Add vasprintf.o.
9302
9303 Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9304
9305 * objalloc.c: Include <stdio.h>.
9306
9307 Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
9308
9309 * objalloc.c: New file.
9310 * Makefile.in (CFILES): Add objalloc.c
9311 (REQUIRED_OFILES): Add objalloc.o.
9312 (objalloc.o): New target.
9313
9314 Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9315
9316 * obstack.c: Update to current FSF version.
9317
9318 Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9319
9320 * cplus-dem.c: Add prototypes for all static functions.
9321 (mystrstr): Make static. Make arguments and result const.
9322 (cplus_match): Remove; not used.
9323
9324 Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9325
9326 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
9327 __t* symbols.
9328
9329 Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
9330
9331 * spaces.c: Declare malloc and free properly.
9332 * strsignal.c (init_signal_tables): Add prototype.
9333 * xatexit.c (_xexit_cleanup): Add parameter declarations.
9334
9335 Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
9336
9337 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
9338 also required because of xmalloc.o.
9339
9340 Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
9341
9342 * strsignal.c: Unconditionally redefine sys_siglist around the
9343 inclusion of the system header files.
9344
9345 Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
9346
9347 * makefile.vms: Remove 8 bit characters. Update to latest
9348 gcc release.
9349
9350 Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
9351
9352 * strsignal.c: Use NEED_sys_siglist instead of
9353 LOSING_SYS_SIGLIST.
9354 * config.table: Don't use mh-lynxos.
9355 * config/mh-lynxos: Remove.
9356
9357 Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
9358
9359 * cplus-dem.c: Fix indenting; make identical to the copy
9360 in GCC.
9361 (do_type, case 'M'): Check for a template as well as a class.
9362
9363 Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
9364
9365 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
9366 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
9367 libiberty is incorrect, as well.
9368
9369 Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9370
9371 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
9372 alloca takes a size_t argument, not just unsigned.
9373
9374 Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9375
9376 * cplus-dem.c: Note that this file also lives in GCC.
9377
9378 Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9379
9380 * alloca.c: Remove include of libiberty.h for hpux.
9381 * argv.c: Replace defs from libiberty.h.
9382 * spaces.c: Put back externs from removed from libiberty.h.
9383 * vasprintf.c: Remove include of libiberty.h for hpux.
9384
9385 Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9386
9387 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
9388
9389 Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9390
9391 * cplus-dem.c: Revert last two commits due to conflicts with
9392 hpux system headers.
9393
9394 Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9395
9396 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
9397 Revert last commit due to conflicts with hpux system headers.
9398
9399 Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9400
9401 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
9402 libiberty.h when compiled with a standard compiler.
9403
9404 Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9405
9406 * alloca.c: Include libiberty.h for definition of xmalloc.
9407 Don't redefine NULL.
9408 * argv.c: Move prototypes to libiberty.h.
9409 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
9410 Don't redefine NULL.
9411 Use casts to eliminate compiler warnings.
9412 * spaces.c: Remove prototypes for malloc and free which are
9413 already in libibrty.h.
9414 * strcasecmp.c: Use casts to eliminate compiler warnings.
9415 * vasprintf.c: Include libiberty.h for definition of malloc.
9416 Don't redefine NULL.
9417 * vprintf.c: Include stdarg.h if __STDC__.
9418
9419 Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9420
9421 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9422
9423 Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
9424
9425 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
9426 upward components correctly.
9427
9428 Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
9429
9430 * config.table, config/mh-windows: Add support for building under
9431 MSVC (the Microsoft build environment).
9432
9433 Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9434
9435 * fnmatch.c: Undef const if not __STDC__.
9436
9437 Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
9438
9439 * fnmatch.c: New file.
9440 * Makefile.in (CFILES): Add fnmatch.c.
9441 (REQUIRED_OFILES): Add fnmatch.o.
9442 (fnmatch.o): New target.
9443
9444 Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
9445
9446 * cplus-dem.c (demangle_template): Fix handling of address args.
9447 (gnu_special): Handle type_info stuff.
9448
9449 Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
9450
9451 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
9452 (mpwify_filename): Handle "::/" case.
9453
9454 Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
9455
9456 * config/mh-cygwin32: new file (need -DNEED_basename and
9457 -DNEED_sys_siglist for native NT rebuilding)
9458 * config.table (*-*-cygwin32): new entry
9459 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
9460
9461 Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
9462
9463 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
9464
9465 Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
9466
9467 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
9468 messed with arguments that included a '/', add escape chars
9469 to double quotes, remove const decl from arg that Mac
9470 compilers don't seem to like.
9471
9472 Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
9473
9474 * pexecute.c: Update test for win32 (&& ! cygwin32).
9475 * choose-temp.c: fix WIN32 preprocessor defines
9476
9477 Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
9478
9479 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
9480 to editing of default makefile rule.
9481
9482 Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
9483
9484 * alloca-norm.h: Include <malloc.h> if _WIN32.
9485 * argv.c: Include non-prototyped decls for malloc and string
9486 functions if ! _WIN32 or if __GNUC__.
9487
9488 Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9489
9490 * config.h-vms: New file.
9491 * makefile.vms: Use it.
9492
9493 Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9494
9495 * getopt.c (_getopt_internal): If argc is 0, just return (before
9496 we reference *argv and segfault).
9497
9498 Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9499
9500 * Makefile.in (distclean): Add multilib.out.
9501
9502 Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
9503
9504 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
9505 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
9506
9507 Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
9508
9509 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
9510
9511 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
9512
9513 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
9514
9515 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
9516 (do_ofiles): Allow nonexistent source file in pass 3.
9517 (chk_deffunc): New routine.
9518
9519 Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
9520
9521 * pexecute.c (PEXECUTE_VERBOSE): Define.
9522 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
9523
9524 Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9525
9526 * Makefile.in (docdir): Removed.
9527
9528 Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9529
9530 * Makefile.in (oldincludedir): Removed.
9531
9532 Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9533
9534 * Makefile.in (datadir): Set to $(prefix)/share.
9535
9536 Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
9537
9538 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
9539 checking for errors from do_type.
9540
9541 Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
9542
9543 * makefile.vms: New file.
9544 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
9545 than declaring malloc, realloc, and sbrk.
9546
9547 Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9548
9549 * pexecute.c: New file.
9550
9551 Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9552
9553 * xmalloc.c: Declare sbrk.
9554
9555 Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9556
9557 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
9558 declaration.
9559
9560 Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9561
9562 * xstrerror.c: Include <stdio.h>.
9563
9564 Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9565
9566 * Makefile.in (CFILES): Add atexit.c.
9567
9568 Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
9569
9570 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
9571
9572 Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
9573
9574 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
9575 #include <stdio.h>
9576 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
9577
9578 Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9579
9580 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
9581 Reverts Feb 8, 1995 change.
9582
9583 Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
9584
9585 * choose-temp.c: New file.
9586 * Makefile.in (CFILES): Add choose-temp.c.
9587 (REQUIRED_OFILES): Add choose-temp.o.
9588
9589 Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
9590
9591 * floatformat.c (floatformat_to_double): Don't bias exponent when
9592 handling zero's, denorms or NaNs.
9593
9594 Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
9595
9596 * floatformat.c (floatformat_to_double): Fix bugs with handling
9597 numbers with fractions < 32 bits.
9598
9599 Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
9600
9601 * config.table: Permit --enable-shared to specify a list of
9602 directories.
9603
9604 Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
9605
9606 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
9607 arguments.
9608
9609 Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
9610
9611 * configure.in: If srcdir is `.' and with_target_subdir is not
9612 `.', then set MULTISRCTOP before calling config-ml.in.
9613
9614 Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9615
9616 * mpw.c (mpw_open): Add debugging output option.
9617
9618 Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
9619
9620 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
9621
9622 Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
9623
9624 * mpw.c (mpwify_filename): Change 6 to 5 in
9625 strncmp (unixname, "/tmp/", 5).
9626
9627 Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
9628
9629 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
9630 handle 0 as a pointer value parameter.
9631
9632 Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
9633
9634 * Makefile.in (all): Depend upon required-list.
9635 (required-list): New target.
9636 (clean): Remove required-list.
9637
9638 Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
9639
9640 * win32.c: Deleted.
9641 * config.table (i386-*-win32): Deleted.
9642 * config/mh-i386win32: Deleted.
9643
9644 Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
9645
9646 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
9647 const char *.
9648 (cplus_mangle_opname): Change return type and opname parameter to
9649 const char *. Don't cast return value.
9650
9651 Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
9652
9653 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
9654 definition.
9655
9656 Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
9657
9658 * obstack.c: Update copyright to 1996.
9659 (_obstack_memory_used): Define new function. Called via
9660 obstack_memory_used macro.
9661
9662 Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
9663
9664 * xstrdup.c: New file.
9665 * Makefile.in (CFILES): Add xstrdup.c.
9666 (REQUIRED_OFILES): Add xstrdup.o.
9667 (xstrdup.o): New target.
9668
9669 Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
9670
9671 * atexit.c: New stub to provide atexit on systems that have
9672 on_exit, like SunOS 4.1.x systems.
9673 * functions.def (on_exit, atexit): Ditto.
9674
9675 Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
9676
9677 * mpw.c (mpw_abort): Remove decl.
9678 (mpw_access): Move debugging printf.
9679
9680 Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
9681
9682 * config.table: Consistently use ${host} rather than ${xhost} or
9683 ${target}.
9684 * configure.in: Don't bother to set ${xhost} before calling
9685 config.table.
9686
9687 Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
9688
9689 * Makefile.in (.c.o): Use test instead of the left bracket, to
9690 avoid problems with some versions of make.
9691
9692 Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
9693
9694 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
9695
9696 Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
9697
9698 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
9699 which was set to just alloca.o, which is now automatically marked
9700 as needed by the autoconfiguration process.
9701
9702 Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
9703
9704 * config.table: Check ${with_cross_host} rather than comparing
9705 ${host} and ${target}.
9706
9707 Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
9708
9709 * configure.in: If with_target_subdir is empty, set xhost to
9710 ${host} rather than ${target} before calling config.table.
9711
9712 Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
9713
9714 * Makefile.in (MULTITOP): Deleted.
9715 (MULTISRCTOP, MULTIBUILDTOP): New.
9716 (FLAGS_TO_PASS): Delete INCDIR.
9717 (INCDIR): Add $(MULTISRCTOP).
9718 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
9719 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
9720 instead of cfg-ml-pos.in.
9721 (cross-compile check): Change to test for with_target_subdir.
9722 (EXTRA_LINKS): Delete.
9723
9724 Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
9725
9726 * mpw-make.sed: Add getpagesize.c.o to needed-list.
9727 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
9728 functions that are supplied by Metrowerks libraries.
9729 (fstat): Clean up descriptor->pointer conversion code.
9730 (InstallConsole, etc): Empty definitions, for when linking
9731 with SIOUX.
9732
9733 Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
9734
9735 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
9736 (.c.o): Stylistic change.
9737
9738 Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
9739
9740 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
9741 phdm@info.ucl.ac.be (Philippe De Muyter).
9742
9743 Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9744
9745 * configure.in: Correct sed call.
9746
9747 Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
9748
9749 * configure.in: Clean up / simplify for native.
9750
9751 * configure.in: Merge in stuff from ../xiberty/configure.in.
9752 * Makefile.in (CC): Add definition (so it can be overrridden
9753 by ../configure).
9754
9755 Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
9756
9757 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
9758 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
9759 (link): Remove useless definition with error return.
9760 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
9761 Use UnsignedWide type for microsecond counts.
9762
9763 Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
9764
9765 * memcmp.c (memcmp): Argument types are const void *, not void
9766 *const.
9767
9768 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
9769 sys/types.h.
9770 * strcasecmp.c (strcasecmp): Ditto.
9771
9772 Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9773
9774 * Makefile.in (BISON): Remove macro.
9775
9776 Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
9777
9778 * Makefile.in (HFILES): Add default empty definition.
9779 * mpw-config.in (config.h): Only update if changed.
9780 * mpw-make.in: Remove.
9781 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
9782 * mpw.c: Remove semi-clone of strerror code.
9783 (sys_nerr, sys_errlist): Define here.
9784 (Microseconds): Only define as A-line trap if m68k Mac.
9785
9786 Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9787
9788 * Makefile.in (maintainer-clean): New synonym for distclean.
9789
9790 Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
9791
9792 * config.table: For host, generalize rs6000-ibm-aix*
9793 to *-ibm-aix* so we also include powerpc.
9794
9795 Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9796
9797 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
9798
9799 * xstrerror.c: New file.
9800 * Makefile.in, vmsbuild.com: Compile it.
9801
9802 Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9803
9804 * config.table (i386-*-win32): New.
9805
9806 Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
9807
9808 * Makefile.in (MULTITOP): New variable.
9809 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
9810 (all): Add multilib support.
9811 (install_to_tooldir, *clean): Likewise.
9812
9813 Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9814
9815 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9816
9817 Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
9818
9819 * vmsbuild.com: create "new-lib.olb", build libiberty under that
9820 name, and then make it become "liberty.olb" when done, so that an
9821 incomplete build attempt never leaves behind something which looks
9822 like a complete library.
9823
9824 Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
9825
9826 * config/mh-i386pe: New file for PE hosts.
9827 * config.table: Understand PE hosts.
9828
9829 Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9830
9831 * cplus-dem.c: Update from gcc.
9832
9833 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
9834 <stddef.h>.
9835 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9836
9837 Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
9838
9839 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
9840 * mpw.c: Only test DebugPI once whenever printing debug info.
9841 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
9842 also fix to not write on input filename buffer.
9843 (mpw_access): Use stat() instead of open(), works for directories
9844 as well as files.
9845
9846 Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9847
9848 * Makefile.in: Massage broken shells that require 'else true'.
9849
9850 Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
9851
9852 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
9853 Declare __builtin_alloca in the sparc case, as argv.c did.
9854 * argv.c: Replace inline version of alloca-norm.h at start of file with
9855 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
9856 because alloca-norm.h needs to declare alloca as "PTR".
9857
9858 Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9859
9860 * win32.c: New file.
9861
9862 Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9863
9864 * dummy.c: #include "alloca-conf.h".
9865
9866 Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9867
9868 * Makefile.in (mostlyclean): Remove stamp-picdir.
9869 (clean): Don't.
9870
9871 Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9872
9873 * config.table (frags): Use toplevel pic frags.
9874
9875 * Makefile.in (PICFLAG): New macro.
9876 (all): Depend on stamp-picdir.
9877 (needed-list): Ditto.
9878 (.c.o): Also build pic object.
9879 (stamp-picdir): New rule.
9880 (mostlyclean): Remove pic.
9881 (clean): Remove stamp-picdir.
9882
9883 Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9884
9885 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9886
9887 Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
9888
9889 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
9890 to libio-style copyright.
9891 * getpagesize.c: Remove FSF copyright.
9892
9893 Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9894
9895 Added improved VMS support from Pat Rankin:
9896
9897 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
9898
9899 * vmsbuild.com: new file.
9900
9901 * getpagesize.c (getpagesize): implement for VMS;
9902 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
9903 support for EVMSERR.
9904
9905 Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
9906
9907 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
9908
9909 * floatformat.c (floatformat_arm_ext): Define.
9910
9911 Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
9912
9913 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
9914 strerror.c, strsignal.c: Remove FSF copyright.
9915 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
9916
9917 Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
9918
9919 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
9920 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
9921 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
9922 * strchr.c, strrchr.c: Add cast to suppress const warning.
9923
9924 Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9925
9926 * cplus-dem.c: Use const instead of CONST. Don't include
9927 ansidecl.h directly.
9928
9929 Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9930
9931 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
9932 xrealloc.
9933 (-DMAIN): Don't rely on an externally-defined version number;
9934 instead, require the version number to be defined as a
9935 preprocessor macro. Handle the RS/6000 leading dot. Define
9936 xmalloc, xrealloc and fatal. Don't strip a leading underscore
9937 if we couldn't demangle the word.
9938
9939 Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
9940
9941 (Old mpw.c change descriptions retained for informational value.)
9942 * mpw.c (warning_threshold): Default to .4 sec.
9943 (overflow_count, current_progress): New globals.
9944 (warn_if_spin_delay): Include current progress type,
9945 such as program name, in message.
9946 (mpw_start_progress): Set current_progress variable from arg.
9947 (mpw_end_progress): Report spin delays by power-of-two-size
9948 buckets instead of constant-size buckets.
9949
9950 * mpw.c: Clean up formatting, types, returns, etc.
9951 (ENOSYS): Define.
9952 (mpw_fread, mpw_fwrite): Define.
9953 (sleep): Define correctly.
9954
9955 * mpw.c: New code to implement cursor spinning support.
9956 (umask): New function.
9957 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
9958
9959 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
9960 basenames for MPW and MPW/Unix filenames.
9961 (mpw_special_init): New function, calls Macsbug if desired.
9962
9963 * mpw.c: Add GPL notice.
9964 (mpwify_filename): Add more transformations.
9965 (mpw_fopen): Call mpwify_filename on file names.
9966 (rename): Remove.
9967 (chdir, getcwd): Add simple definitions.
9968
9969 * mpw.c: Random cleanups, remove unused code bits.
9970 Added copy of strerror.c for gcc's use.
9971 (stat, fstat, _stat): New versions based on Guido van Rossum code.
9972
9973 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
9974
9975 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
9976 (fork, vfork, etc): Print error messages if called.
9977 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
9978 rename, chown): Define.
9979
9980 * mpw-config.in: New file, MPW version of configure.in.
9981 * mpw-make.in: New file, MPW version of Makefile.in.
9982 * mpw.c: New file, MPW compatibility routines.
9983
9984 Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
9985
9986 * basename.c: Include config.h before checking for NEED_basename.
9987
9988 Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9989
9990 * functions.def: Add DEFFUNC for basename.
9991
9992 * basename.c: Only define basename if NEED_basename.
9993
9994 Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9995
9996 * config.table: Fix --enable-shared logic for native builds.
9997
9998 Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9999
10000 * cplus-dem.c (demangle_template): Demangle bool literals properly.
10001
10002 Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
10003
10004 * strtol.c strtoul.c: Replace these with less buggy versions from
10005 NetBSD. (strtoul in particular couldn't handle base 16.)
10006
10007 Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
10008
10009 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
10010
10011 * clock.c: If NO_SYS_PARAM_H is defined, don't include
10012 <sys/param.h>.
10013 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
10014
10015 Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
10016
10017 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
10018 a number; ANSI appears to permit any expression, including a
10019 function call.
10020
10021 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
10022 xiberty.
10023 * config/mt-vxworks5: New file.
10024
10025 Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
10026
10027 * basename.c (basename): Change argument to be const.
10028
10029 Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10030
10031 * Makefile.in (lneeded-list): Don't worry about xmalloc.
10032
10033 Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
10034
10035 * Makefile.in (distclean): Delete xhost-mkfrag.
10036
10037 Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10038
10039 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
10040
10041 Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
10042
10043 * hex.c: New file.
10044 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
10045 (hex.o): Add dependencies.
10046
10047 * cplus-dem.c (demangle_prefix): For GNU style constructor and
10048 destructor names, try demangling the remainder of the string.
10049
10050 Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
10051
10052 * vasprintf.c (int_vasprintf): New static function.
10053 (vasprintf): Use int_vasprintf. Removes assumption that va_list
10054 is assignment compatible.
10055
10056 Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10057
10058 * Makefile.in (LIBCFLAGS): New variable.
10059 (FLAGS_TO_PASS): Pass it.
10060 (.c.o): Use it.
10061
10062 Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
10063
10064 * getopt.c, getopt1.c: Do compile these functions under Linux,
10065 since many native versions are based on glibc but are buggy.
10066
10067 Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
10068
10069 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
10070 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
10071
10072 Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
10073
10074 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
10075 * functions.def: Remove vasprintf.
10076
10077 Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10078
10079 * xmalloc.c (first_break): New static variable.
10080 (xmalloc_set_program_name): Record sbrk (0) in first_break.
10081 (xmalloc): If memory allocation fails, try to report how much
10082 memory was allocated by the program up to this point.
10083 (xrealloc): Likewise.
10084
10085 Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
10086
10087 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
10088 when linking dummy.
10089 * config.table: Add host RISCiX Makefile frag.
10090 * config/mh-riscix: New file.
10091
10092 Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10093
10094 * Makefile.in (FLAGS_TO_PASS): Define.
10095 ($(RULE1)): Use $(FLAGS_TO_PASS).
10096
10097 Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10098
10099 * vasprintf.c: Include <string.h>.
10100 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
10101 * xatexit.c: Declare malloc.
10102
10103 Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10104
10105 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
10106 one below).
10107
10108 Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10109
10110 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
10111 the type index is greater than 9.
10112
10113 Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
10114
10115 * cplus-dem.c (demangle_qualified): accept optional '_' between
10116 qualified name. This is baecause the template name may end with
10117 numeric and can mixed up with the length of next qualified name.
10118
10119 Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
10120
10121 * config/mt-sunos4: Use our standard location for cross-includes
10122 and cross-libs when the target is also a "host" environment (ie no
10123 newlib; includes and such don't belong to us). This is specific
10124 to the Cygnus Support environment.
10125
10126 Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
10127
10128 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
10129 xxx<ch=81>.
10130
10131 Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
10132
10133 * cplus-dem.c (main): flush stdout to make pipe work.
10134
10135 Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10136
10137 * config.table (*-*-cxux7*): Recognize.
10138 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
10139 Harris-specific float format.
10140 * config/mh-cxux7: New file.
10141
10142 Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10143
10144 * cplus-dem.c (demangle_template): Make sure that the result of
10145 consume_count doesn't index beyond the end of the string.
10146
10147 Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10148
10149 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
10150 earlier. Improve test for new vtable mangling. Change output back
10151 to `virtual table'.
10152
10153 Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
10154
10155 * obstack.c: Always compile this code, even if using the GNU
10156 library. Avoids problems with relatively recent binary
10157 incompatibility.
10158
10159 Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10160
10161 * cplus-dem.c: Include libiberty.h.
10162 (xmalloc, xrealloc, free): Don't declare.
10163 (strstr): Don't declare parameters.
10164 (xmalloc, xrealloc): Don't define.
10165 (long_options): Add no-strip-underscores.
10166 (main): Call xmalloc_set_program_name. Pass n in short options to
10167 getopt_long. Handle option 'n' to not strip underscores.
10168 (usage): Mention -n and --no-strip-underscores.
10169
10170 Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
10171
10172 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
10173 space.
10174 (gnu_special): Demangle template and qualified names in a vtable name.
10175
10176 Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10177
10178 From gas-2.3 and binutils-2.4 net releases:
10179
10180 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
10181
10182 * makefile.dos: [new] Makefile for dos/go32
10183 * configure.bat: update for latest files
10184 * msdos.c: remove some functions now in libc.a
10185
10186 Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
10187
10188 * cplus-dem.c (gnu_special): Recognize thunks, as well as
10189 the new naming style for vtables (when -fvtable-thunks).
10190
10191 Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10192
10193 * Makefile.in (XTRAFLAGS): Don't define.
10194 (.c.o, dummy.o): Don't use XTRAFLAGS.
10195 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
10196
10197 Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10198
10199 * vasprintf.c: New file.
10200 * Makefile.in, functions.def: Add it.
10201
10202 Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
10203
10204 * cplus-dem.c (demangle_fund_type): Grok bool.
10205
10206 Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
10207
10208 * config.table: Add go32
10209 * config/mh-go32: New template.
10210
10211 Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
10212
10213 * config.table, config/mt-sunos4: config for when sun4 is cross target.
10214
10215 Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10216
10217 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10218 Declare strlen to return int. Don't include stddef.h.
10219
10220 Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
10221
10222 * getopt.c: Delete use of IN_GCC to control whether
10223 stddef.h or gstddef.h is included.
10224
10225 Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
10226
10227 * cplus-dem.c (demangle_signature): Fix a bug in template function
10228 type numbering.
10229
10230 Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
10231
10232 * cplus-dem.c (demangle_signature): Fix template function with arm
10233 style argument type number, Tn.
10234
10235 Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
10236
10237 * cplus-dem.c (optable): Add new[] and delete[].
10238
10239 Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10240
10241 * argv.c (buildargv): Don't produce empty argument just because
10242 there is trailing whitespace.
10243
10244 Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10245
10246 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
10247 Handle 'p' same as 'P'.
10248 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
10249
10250 Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10251
10252 * floatformat.c (get_field, put_field): Fix off by one error in
10253 little endian case.
10254
10255 Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10256
10257 * floatformat.c (floatformat_from_double): Pass unsigned char *,
10258 not char *, to put_field.
10259
10260 Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10261
10262 * memmove.c: Re-wrote; placed in public domain.
10263
10264 Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
10265
10266 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
10267 __Q* as a constructor.
10268
10269 Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
10270
10271 * ieee-float.c: Removed; no longer used.
10272 * Makefile.in: Changed accordingly.
10273
10274 Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10275
10276 * floatformat.c (get_field): Removed unused local variable i.
10277 (put_field): Removed unused local variable i.
10278
10279 Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
10280
10281 * floatformat.c: New file, intended to replace ieee-float.c.
10282 * Makefile.in: Change accordingly.
10283
10284 Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10285
10286 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
10287 (_getopt_initialize): New function, broken out of _getopt_internal.
10288 (_getopt_internal):
10289 If long_only and the ARGV-element has the form "-f", where f is
10290 a valid short option, don't consider it an abbreviated form of
10291 a long option that starts with f. Otherwise there would be no
10292 way to give the -f short option.
10293
10294 Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10295
10296 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10297 Test just __STDC__, not emacs.
10298
10299 Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10300
10301 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10302 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
10303
10304 Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10305
10306 * getopt.c (_NO_PROTO): Define before config.h is included.
10307
10308 Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10309
10310 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
10311 <config.h> only under these, else "config.h".
10312
10313 Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10314
10315 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10316 <config.h> instead of "config.h".
10317
10318 Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
10319
10320 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
10321 whether to use prototypes or not.
10322 * strerror.c (const): Never undefine; let ansidecl.h handle it.
10323 * strsignal.c (const): Likewise.
10324
10325 Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10326
10327 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
10328 Merging common and initialized variables need not be supported by
10329 ANSI C compilers.
10330 (xatexit): Initialize _xexit_cleanup if not already set.
10331 * xexit.c: Comment fix.
10332
10333 Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10334
10335 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
10336 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
10337 assuming that realloc works correctly.
10338
10339 Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10340
10341 * concat.c, ieee-float.c: Replace inclusion of <string.h>
10342 with explicit function declarations, as recommended by Ian Taylor.
10343
10344 Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
10345
10346 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
10347 (malloc, realloc): Declare.
10348
10349 Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10350
10351 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
10352 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
10353 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
10354 * xmalloc.c: Likewise.
10355 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
10356 macros, not <varargs.h> macros.
10357 * spaces.c (spaces): Make return type const. Don't crash if
10358 malloc returns NULL.
10359 * strerror.c (struct error_info): Make name and msg fields const.
10360 (error_names): Make const.
10361 (strerrno): Make const.
10362 (strtoerrno): Make argument const.
10363 * strsignal.c (struct signal_info): Make name and msg fields
10364 const.
10365 (signal_names, sys_siglist): Make const.
10366 (strsignal, strsigno): Make const.
10367 (strtosigno): Make argument const.
10368 * xatexit.c: Declare parameter types.
10369 * xmalloc.c (name): Make const.
10370 (xmalloc_set_program_name): Make argument const.
10371 * Makefile.in (INCDIR): Define.
10372 (.c.o): Use $(INCDIR).
10373 (dummy.o): Likewise.
10374 (argv.o, basename.o): New targets; depend on libiberty.h.
10375 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
10376 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
10377 (xmalloc.o): Likewise.
10378 (cplus-dem.o): New target; depend on demangle.h.
10379 (getopt.o, getopt1.o): New targets; depend on getopt.h.
10380 (ieee-float.o): New target; depend on ieee-float.h.
10381 (obstack.o): New target; depend on obstack.h.
10382
10383 Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10384
10385 Handle obstack_chunk_alloc returning NULL. This allows
10386 obstacks to be used by libraries, without forcing them
10387 to call exit or longjmp.
10388 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
10389 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
10390 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
10391
10392 Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10393
10394 * concat.c, ieee-float.c: Include <string.h>.
10395
10396 Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10397
10398 * xmalloc.c (xmalloc_set_program_name): New function.
10399 (xmalloc, xrealloc): Include the name in the error message, if set.
10400
10401 * Replace atexit.c with xatexit.c.
10402 * Makefile.in (CFILES), functions.def: Change references.
10403
10404 Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
10405
10406 * getruntime.c (get_run_time): Use getrusage or times if
10407 HAVE_GETRUSAGE or HAVE_TIMES are defined.
10408
10409 Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
10410
10411 * atexit.c: New file.
10412 * Makefile.in (CFILES), functions.def: Add it.
10413 * xexit.c: New file.
10414 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
10415 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
10416 Change request for 0 bytes into request for 1 byte.
10417
10418 Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10419
10420 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
10421 unsigned long, to avoid warnings.
10422
10423 Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
10424
10425 * dummy.c: Don't include time.h ever; always define clock_t as
10426 "unsigned long". Until gcc/fixincludes ensures that clock_t
10427 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
10428 exist, clock_t probably doesn't either.
10429
10430 Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
10431
10432 * clock.c, getruntime.c: New files.
10433 * Makefile.in: Add to file lists.
10434 * functions.def (clock): Add to list.
10435 * dummy.c (time.h): Add if __STDC__.
10436 (clock_t): #define as "unsigned long" if not __STDC__.
10437
10438 Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10439
10440 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
10441 Edler).
10442
10443 Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10444
10445 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
10446 linking.
10447
10448 Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10449
10450 * cplus-dem.c (demangle_arm_pt): New function. Common code
10451 for ARM template demangling.
10452 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
10453 * cplus-dem.c (demangle_prefix): Likewise.
10454
10455 Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
10456
10457 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
10458
10459 Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
10460
10461 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
10462 * strerror.c, strsignal.c: As a small space optimization, don't
10463 include messages when they aren't actually used.
10464
10465 Merge changes from takefive.co.at!joe (Josef Leherbauer)
10466 * cplus-dem.c (demangle_prefix, demangle_function_name,
10467 cplus_demangle_opname): Fixes for systems where cplus_marker
10468 is something other than '$'.
10469
10470 Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
10471
10472 * waitpid.c: Simple-minded approcimation to waitpid
10473 using vanilla wait.
10474 * functions.def, Makefile.in: Update accordingly,
10475
10476 Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
10477
10478 * cplus-dem.c(demangle_template): fix bug template instantiation
10479 with value of user defined type.
10480
10481 Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
10482
10483 * cplus-dem.c(cplus_demangle_opname): add the subject new function
10484 to support unified search of operator in class.
10485
10486 Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10487
10488 gcc -Wall lint:
10489 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
10490 "digit = *s" as condition in while loop.
10491
10492 Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10493
10494 * Makefile.in: pass SHELL to recursive make
10495
10496 Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
10497
10498 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
10499 be (const char*), for ANSI (and gcc w/fixproto) consistency.
10500
10501 Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10502
10503 * config.table: Make *-*-hiux* use mh-hpux.
10504
10505 Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10506
10507 * config.table: Add * to end of all OS names.
10508
10509 Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10510
10511 * Makefile.in (lneeded-list): ensure that object file names are
10512 not duplicated, as multiple instances of the same object file in
10513 a library causes problems on some machines
10514
10515 Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10516
10517 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
10518
10519 Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10520
10521 * strncasecmp.c: new file, implements strncasecmp
10522 * strcasecmp.c: new file, implement strcasecmp
10523
10524 * Makefile.in (CFILES): list these two new source files
10525
10526 * functions.def: add strcasecmp and strncasecmp entries
10527
10528 Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10529
10530 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
10531 according to ANSI C.
10532
10533 Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
10534
10535 * cplus-dem.c: add support of ARM global constructor/destructor,
10536 and 'G' for passing record or union in parameter.
10537
10538 Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10539
10540 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
10541 should not be in functions.def.
10542
10543 Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
10544
10545 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
10546 not be in functions.def.
10547
10548 Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
10549
10550 * cplus-dem.c: change globl constructor/destructor to proper name
10551
10552 Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10553
10554 * cplus-dem.c: fix bug in constructor/destructor
10555
10556 Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
10557
10558 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
10559
10560 Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10561
10562 * cplus-dem.c: Fix demangle_template prototype
10563
10564 Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
10565
10566 * cplus-dem.c: fix template demangling
10567 * cplus-dem.c: fix const type demangling
10568 * cplus-dem.c: fix constructor/destructor, virtual table,
10569 qualifier, global constructor/destructor demangling
10570
10571 Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10572
10573 * strsignal.c, strerror.c: Use fully-bracketed initializer to
10574 keep gcc -Wall happy.
10575
10576 Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
10577
10578 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
10579 patch.
10580
10581 Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10582
10583 Patch from Paul Flinders:
10584 * cplus-dem.c (do_type): Deal with arrays.
10585
10586 Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10587
10588 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
10589 than 9 classes.
10590
10591 Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
10592
10593 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
10594 not initialized" warnings under HP/UX
10595
10596 Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10597
10598 * strerror.c: Move include of stdio.h after sys_errlist #define.
10599 Also remove NULL definition (stdio.h always defines NULL, so it
10600 never did anything but clutter up the code).
10601
10602 Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10603
10604 * Makefile.in, functions.def: handle xmalloc.c
10605
10606 * xmalloc.c: provide xmalloc and xrealloc functions
10607
10608 Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10609
10610 * cplus-dem.c: Fix a comment.
10611
10612 Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10613
10614 * getopt1.c: Declare const the way getopt.c does.
10615
10616 Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10617
10618 * obstack.c, alloca.c: Update from FSF.
10619 * getopt.c, getopt1.c: Update to current FSF version, which
10620 doesn't use alloca.
10621
10622 Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10623
10624 * Makefile.in (demangle): Add the target with a message saying
10625 where demangle went.
10626
10627 Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10628
10629 * Makefile.in: Remove obsolete `demangle' target.
10630
10631 Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
10632
10633 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
10634 avoid infinite loop on vtbl symbols with disambiguating "junk"
10635 tacked on the end.
10636
10637 Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
10638
10639 * strsignal.c: work around some systems losing definitions of
10640 sys_siglist
10641
10642 * config/mh-lynxos: this system has a losing definition of
10643 sys_siglist
10644
10645 * config.table: use mh-lynxos for *-*-lynxos
10646
10647 Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
10648
10649 * config.table: Add support for HPPA BSD hosts.
10650
10651 * config/mh-hpbsd: New file.
10652
10653 Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10654
10655 * Makefile.in (TAGS): make work when srcdir != objdir.
10656
10657 Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10658
10659 * cplus-dem.c (main): Add long options, including --help and
10660 --version.
10661 (usage): New function from code in main.
10662
10663 Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
10664
10665 * config.table: New shell scipt, sourced by both ./configure,in
10666 and ../xiberty/configure.in, to avoid maintainance lossages.
10667 * configure.in and ../xiberty/configure.in: Use config.table.
10668
10669 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
10670 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
10671 * ../xiberty/configure.in: Update from ./configure.in.
10672
10673 Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10674
10675 * Makefile.in: remove parentdir support
10676
10677 Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10678
10679 * cplus-dem.c (xrealloc): Match definition with prototype.
10680
10681 Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10682
10683 * cplus-dem.c (demangle_prefix): Demangle cfront
10684 local variables as an extension to ARM demangling.
10685
10686 Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10687
10688 * ieee-float.c: Don't require pointers to double to be aligned.
10689
10690 Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10691
10692 (merge changes from dlong@cse.ucsc.edu)
10693 * cplus-dem.c (consume_count): Simplify.
10694 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
10695 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
10696
10697 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
10698 full prototypes.
10699 * cplus-dem.c (free): Add prototype.
10700 * cplus-dem.c (optable): Fully bracketize initializer.
10701
10702 Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
10703
10704 * cplus-dem.c: Whether initial underscores are stripped
10705 depends on the external variable prepends_underscore
10706 (which is generated by the binutils Makefile).
10707
10708 Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10709
10710 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
10711
10712 Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
10713
10714 * cplus-dem.c (consume_count): Return zero if arg does not
10715 start with digit, and don't consume any input.
10716
10717 Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
10718
10719 * Makefile.in (demangle): Use ${srcdir} not $^.
10720
10721 * strtod.c: New file, needed at least for BSD 4.3.
10722
10723 Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
10724
10725 * strsignal.c (sys_siglist): For ANSI compilations, type is
10726 "const char *const". Also remove conditionalization on __STDC__
10727 since const is defined away for non-ANSI.
10728
10729 Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
10730
10731 * configure.in: Recognize *-*-hpux.
10732 * config/mh-hpux: New file.
10733
10734 Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
10735
10736 * tmpnam.c: Added ANSI tmpnam() function.
10737 * functions.def, Makefile.in: Update accordingly.
10738
10739 Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
10740
10741 * cplus-dem.c (demangle_function_name): Get the demangling of
10742 stop__1A right.
10743
10744 Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10745
10746 * cplus-dem.c: Declare strstr return type.
10747
10748 Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10749
10750 * strsignal.c: Add some AIX signals.
10751
10752 Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10753
10754 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10755
10756 Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10757
10758 * Makefile.in: add installcheck & dvi targets
10759
10760 Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
10761
10762 * ieee-float.c: New file, moved from ../gdb (since it is
10763 needed by ../opcode/m68k-dis.c).
10764
10765 Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10766
10767 * cplus-dem.c: Replace all references to cfront with ARM.
10768
10769 Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
10770
10771 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
10772 to be more useful as a filter.
10773
10774 Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
10775
10776 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
10777 destination directory before running $(RANLIB), in case that
10778 program tries to create a file in the current directory as part of
10779 its work.
10780
10781 Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
10782
10783 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
10784 because BSD 4.4 lacks one. Isn't this fun?
10785
10786 Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
10787
10788 * cplus-dem.c (demangle_signature): Set func_done after
10789 demangling a template.
10790 * cplus-dem.c (demangle_template): Fix several small bugs
10791 in demangling GNU style templates.
10792 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
10793 style constructors.
10794 * cplus-dem.c (gnu_special): Fix for templates in GNU style
10795 static data members.
10796
10797 Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
10798
10799 * cplus-dem.c (demangle_signature): Modify to include type
10800 modifiers like static and const in remembered types.
10801
10802 Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
10803
10804 * cplus-dem.c (demangled_qualified): Add new parameter that tells
10805 whether to prepend or append the qualifiers.
10806 * cplus-dem.c (string_prepends): Used now, remove #if 0.
10807 * cplus-dem.c (demangle_signature): Call demangle_qualified
10808 with prepending.
10809 * cplus-dem.c (gnu_special): Recognize static data members that
10810 use qualified names.
10811 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
10812 temporary buffer and the prepend or append them to the result,
10813 as specified by the new "append" flag.
10814 * cplus-dem.c (do_type): Call demangled_qualified with
10815 appending.
10816
10817 Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
10818
10819 * strsignal.c (signal_table): Now const.
10820 (init_signal_tables): Variable eip now points to const.
10821
10822 * strerror.c (error_table): Now const.
10823 (init_error_tables): Variable eip now points to const.
10824
10825 Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
10826
10827 * memchr.c (memchr): New (ANSI standard) function.
10828 * Makefile.in, functions.def: Added memchr.
10829 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
10830
10831 Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10832
10833 * getopt.c: remove use of USG around <alloca.h>, which never meant
10834 anything anyway
10835
10836 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
10837 of USG and USGr4
10838
10839 Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
10840
10841 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
10842 it's now a type according to the ANSI X3J16 working paper; output
10843 "wchar_t" for it.
10844 (demangle_template): Accept `w' as an integral type.
10845 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
10846 counterparts malloc and realloc to `char *'.
10847 (main): Exit with a 0 status.
10848 * Makefile.in (demangle): Don't expect the user to define
10849 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
10850 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
10851
10852 Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
10853
10854 * Makefile.in (AR_FLAGS): Avoid verbosity.
10855 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
10856 replace USGr4 with HAVE_SYSCONF.
10857 * config/mh-solaris: Remove; mh-sysv4 works now.
10858 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
10859 * configure.in: Simplify host matching table, remove separate
10860 solaris config file.
10861
10862 Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10863
10864 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10865
10866 Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
10867
10868 * cplus-dem.c (xmalloc, xrealloc): Add decls.
10869 (remember_type): Don't cast xmalloc.
10870 (string_need): Likewise; don't cast xrealloc either.
10871
10872 Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
10873
10874 * Makefile.in, functions.defs, rename.c: added simple
10875 implementation of rename, since some binutils programs use it.
10876
10877 Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
10878
10879 * strsignal.c: Add appropriate 'const' to sys_siglist
10880 extern declaration (if __STDC__). (Needed for Linux.)
10881 * strsignal.c (strsignal): Add cast to remove const-ness.
10882
10883 Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
10884
10885 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
10886 before "'s, diagnosed by BSD 4.4 awk.
10887
10888 Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
10889
10890 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
10891 and $(NEEDED_LIST), to give some hooks for xiberty.
10892
10893 Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10894
10895 * configure.in: use cpu-vendor-triple instead of nested cases
10896
10897 Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
10898
10899 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
10900 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
10901 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
10902 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
10903 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
10904 Convert from using GPL to LGPL.
10905
10906 Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
10907
10908 * Makefile.in (errors): Leave dummy.o and dummy around so that
10909 we can see how the needed list was generated (it's sometimes wrong).
10910 (mostlyclean): Remove them.
10911
10912 Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
10913
10914 * getcwd.c: supply a default if MAXPATHLEN is not defined.
10915
10916 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
10917
10918 Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
10919
10920 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
10921 when cross-compiling.
10922
10923 Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
10924
10925 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
10926 as a time optimization.
10927
10928 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
10929 be more expensive than simply demangling.
10930
10931 * cplus-dem.c (cplus_match): new function.
10932
10933 Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
10934
10935 * cplus-dem.c: #include <stdio.h>, to define NULL.
10936 Define current_demangling_style.
10937
10938 Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
10939
10940 * cplus-dem.c: New file, moved from ../gdb.
10941 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
10942 function, to avoid compiling in target-dependency for CPLUS_MARKER.
10943 * cplus-dem.c (cplus_demangle): Allow demangling style option
10944 to be passed as a parameter, but using the global variable
10945 current_demangling_style as a default.
10946 * Makefile.in: Update for cplus-dem.c
10947
10948 Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
10949
10950 * obstack.c: Merge in comment changes from FSF version. Now
10951 matches the FSF version exactly.
10952
10953 Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
10954
10955 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
10956 least on losing DECstations!); use if-then-else instead.
10957
10958 Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
10959
10960 * Makefile.in: always create installation directories.
10961
10962 Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10963
10964 * Makefile.in: clean up definition of CFILES, more comments
10965
10966 Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
10967
10968 * getopt.c (my_index): Make first arg const to match strchr,
10969 which it sometimes is remapped to.
10970
10971 Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
10972
10973 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
10974 * obstack.c (_obstack_begin): Initialize use_extra_arg.
10975 * obstack.c (_obstack_begin_1): New, from FSF version.
10976
10977 Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
10978
10979 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
10980 extra_arg.
10981 * obstack.c (_obstack_begin): Remove area_id and flags arguments
10982 (previously added for mmalloc support, interface has changed).
10983 Also convert flags usage to use use_extra_arg and maybe_empty_object.
10984
10985 Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
10986
10987 * argv.c: Move expandargv inline and eliminate static variables.
10988 Rewrite to always allocate in powers of two. Fix to return an
10989 argv with a single null string arg if passed a null string.
10990
10991 Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
10992
10993 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
10994 "(void)" casts from function calls where the return value is
10995 ignored, in accordance with GNU coding standards.
10996
10997 Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
10998
10999 * bcopy.c, strerror.c, strsignal.c: Lint.
11000
11001 Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11002
11003 * getopt.c: merge changes from make.
11004
11005 Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
11006
11007 * alloca.c: Incorporate fixes from gdb/alloca.c.
11008 FIXME: Eventually move gdb's alloca configuration files here,
11009 and remove gdb/alloca.c and its Makefile.in support.
11010
11011 Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
11012
11013 * dummy.c: Define NOTHING to /*nothing*/, change return type
11014 of main to int and return zero.
11015 * functions.def: Supply NOTHING as the fourth arg to macros
11016 that don't have an explicit arg, to satisfy picky preprocessors.
11017
11018 Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
11019
11020 * Makefile.in: Clean up *clean rules, as per standards.texi.
11021
11022 Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11023
11024 * getopt.c, getopt1.c: merged largely gratuitous, mostly
11025 whitespace diffs from other prep distributions.
11026
11027 Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
11028
11029 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
11030 it is broken on ncr 3000's.
11031
11032 Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
11033
11034 * sigsetmask.c: Rewrite. Old one was very confused about its
11035 arguments and result. New one can't do much, but at least knows
11036 what it can't do, and it's good enough for GDB's use.
11037
11038 Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
11039
11040 * functions.def: Use proper prototype for strtoul.
11041
11042 Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
11043
11044 * Makefile.in: Add random.c.
11045 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
11046 * configure.in: update solaris2 config.
11047
11048 Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
11049
11050 * random.c: Add for random() and srandom().
11051 * functions.def: Add random
11052
11053 Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
11054
11055 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
11056 using /usr/ucb/install.
11057
11058 Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
11059
11060 * strerror.c: Kludge to guard against a conflict with
11061 possible declaration of sys_errlist in errno.h.
11062
11063 Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
11064
11065 * configure.in, config/mh-solaris: add solaris2 config support.
11066
11067 Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
11068
11069 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
11070 is not defined (should be defined in signal.h, says Posix.).
11071
11072 Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
11073
11074 * getopt.c: merged changes from make-3.62.11.
11075
11076 Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
11077
11078 * getopt.c: merged changes from bison-1.18.
11079
11080 Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
11081
11082 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
11083 since that introduces a circular dependency.
11084 ($(EXTRA_OFILES) are used to build config.h.)
11085
11086 * strtoul.c: Fixes to handle non-decimal bases better.
11087
11088 Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
11089
11090 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
11091 * Makefile.dos: Finish MINUS_G eradication.
11092 * Makefile.in (CFILES): Add strsignal.c.
11093 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
11094 * Makefile.in (needed-list): Split creation of errors file to
11095 separate make target.
11096 * Makefile.in (config.h, needed2.awk, errors): New targets.
11097 * Makefile.in (clean): Split to multiple lines, add needed2.awk
11098 and config.h.
11099 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
11100 * functions.def (strerror): Remove from optional list.
11101 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
11102 * functions.def (strerror, psignal): DEFFUNC's
11103 * strerror.c: Rewrite from scratch to use sys_errlist only if
11104 available, add errno_max(), add strerrno(), add strtoerrno(),
11105 add test driver.
11106 * strsignal.c: New file, signal equivalent to strerror.c.
11107 Uses sys_siglist if available, defines signo_max(), strsignal(),
11108 strsigno(), strtosigno(), psignal(), and test driver.
11109
11110 Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
11111
11112 * Makefile.in: do not print recursion line.
11113
11114 * Makefile.in: allow CFLAGS to be passed in from command line.
11115 Removed MINUS_G. Default CFLAGS to -g.
11116
11117 Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
11118
11119 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
11120 so libg++ users don't have to be inconvenienced by a
11121 libc.a bug (libc.a needs copysign, but doesn't define it!).
11122 * configure.in: Use config/mh-aix.
11123 * strtoul.c: Handle '-' as required by ANSI.
11124 Clean up radix handling.
11125 * strstr.c: Fix buggy algorithm.
11126 * Makefile.in: Change so that ${EXTRA_OFILES} is
11127 appended to needed-list (which is used by libg++).
11128
11129 Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
11130
11131 * configure.in: Recognize new ncr3000 config.
11132 * config/mh-ncr3000: New config file.
11133
11134 Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
11135
11136 * argv.c, dummy.c: Lint.
11137
11138 Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
11139
11140 * config/mh-sysv4: New config file.
11141 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
11142 host_os == sysv4.
11143 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
11144 pagesize.
11145
11146 Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
11147
11148 * getopt.c: Lint.
11149
11150 Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
11151
11152 * functions.def (alloca): Fix return type and args to avoid
11153 type clash with gcc's builtin alloca.
11154
11155 Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
11156
11157 * configure.in, config/mh-irix4: irix4 support.
11158
11159 * Makefile.in, functions.def, alloca.c: added alloca.
11160
11161 Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
11162
11163 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
11164
11165 Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
11166
11167 * argv.c: Fix various external function definitions to be
11168 correct in an ANSI compilation environment.
11169
11170 Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
11171
11172 * obstack.c: Changes to support calling mmalloc functions,
11173 which take an additional argument over malloc functions.
11174
11175 Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
11176
11177 * added check target.
11178
11179 Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
11180
11181 * argv.c: #include alloca-conf.h (needed by AIX).
11182
11183 Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
11184
11185 * Makefile.in, configure.in: removed traces of namesubdir,
11186 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11187 copyrights to '92, changed some from Cygnus to FSF.
11188
11189 Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
11190
11191 * argv.c: Check in Fred's version which fixes problems with
11192 alloca().
11193
11194 Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
11195
11196 * makefile.dos: Remove NUL to keep patch from failing.
11197
11198 Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
11199
11200 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
11201
11202 Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
11203
11204 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
11205
11206 Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
11207
11208 * argv.c: New file to build and destroy standard argument
11209 vectors from a command string.
11210
11211 * Makefile.in: Add argv.c and argv.o to appropriate macros.
11212
11213 Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
11214
11215 * configure.in: Change svr4 references to sysv4.
11216
11217 * rindex.c: Declare return type of externally used function
11218 strrchr().
11219
11220 Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
11221
11222 * Makefile.in: Remove "***" in normal output, since Make produces
11223 this on errors, and it's convenient to search for.
11224
11225 Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
11226
11227 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
11228 New ANSI functions. The old non-ANSI functions (such as bcopy)
11229 should be avoided.
11230 * bcopy.c: Fix to correctly handle overlapping regions.
11231 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
11232 * functions.def: Add the new functions.
11233 * functions.def: Add 4th parameter to DEF macro,
11234 an ansidecl.h-style prototype.
11235 * dummy.c: Use expanded DEF macro to create a dummy function
11236 call, with correct parameter types. (This avoids some
11237 complaints from gcc about predefined builtins.)
11238
11239 Move the functionality of config/mh-default into Makefile.in.
11240 This avoid duplication, and simplifies things slightly.
11241 * Makefile.in: Tweak so we don't need config/mh-default.
11242 * README: Update.
11243 * configure.in: No longer need config/mh-default.
11244 * config/mh-default: Deleted.
11245 * config/mh-sysv: Remove lines copied from old mh-default.
11246
11247 Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
11248
11249 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
11250 'mknod' device numbers.
11251
11252 Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
11253
11254 * fdmatch.c, Makefile.in: Add new function that takes two
11255 open file descriptors and returns nonzero if they refer to
11256 the same file, zero otherwise. (used in gdb)
11257
11258 Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
11259 From DJ:
11260 * msdos.c: stub functions for dos.
11261 * makefile.dos, configdj.bat: new.
11262 * getopt.c: Don't include alloca-conf.h in a GO32 world.
11263
11264
11265 Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11266
11267 * Makefile.in: infodir belongs in datadir.
11268
11269 Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11270
11271 * Makefile.in: remove spaces following hyphens because bsd make
11272 can't cope. added standards.text support. install using
11273 INSTALL_DATA.
11274
11275 * configure.in: remove commontargets as it is no longer a
11276 recognized hook.
11277
11278 Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11279
11280 * Makefile.in: idestdir and ddestdir go away. Added copyrights
11281 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11282 and mandir now keyed off datadir by default.
11283
11284 Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
11285
11286 * Makefile.in: find-needed.awk does not fit in 14 chars.
11287
11288 * Makefile.in: Suppress error checking when compiling the test
11289 program, because Ultrix make/sh aborts there due to a bug.
11290
11291 Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
11292
11293 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
11294 * README: Explained how the auto-configuration works,
11295 and how to add new files and/or configurations.
11296
11297 Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
11298
11299 * strtoul.c: Avoid defining ULONG_MAX if already defined;
11300 cast a const char * to char * for pedants.
11301
11302 * getopt.c: Only define "const" after local include files get to,
11303 and only if they haven't defined it.
11304
11305 Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
11306
11307 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
11308 emulate it with getwd() if available. This avoids callers having
11309 to find a MAXPATHLEN or PATH_MAX value from somewhere.
11310 * Makefile.in, functions.def: getwd->getcwd.
11311 * configure.in: Use generic case for every system.
11312 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
11313 * config/mh-sysv: Use default handling, just add -DUSG.
11314
11315 Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
11316
11317 * Makefile.in, config/mh-default: Re-do make magic
11318 so that for the default ("automatic") mode we only
11319 compile the files we actually need. Do this using
11320 a recursive make: The top-level generates the list
11321 of needed files (loosely, the ones missing in libc),
11322 and then passes that list to the recursive make.
11323 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
11324
11325 Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
11326
11327 RS/6000 host support (grumble).
11328
11329 * configure.in: Build alloca-conf.h file from alloca-norm.h
11330 (everything else) or alloca-botch.h (rs/6000).
11331 * Makefile.in: Include . on the include path.
11332 * getopt.c: Use alloca-conf.h.
11333 * alloca-norm.h: How to declare alloca on reasonable machines.
11334 * alloca-botch.h: How to declare alloca on braindead machines.
11335
11336 Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
11337
11338 * concat.c : New file, like concat() in gdb but can take a
11339 variable number of arguments rather than fixed at 3 args. For
11340 now, client applications must supply an xmalloc(), which is a
11341 front end function to malloc() that deals with out-of-memory
11342 conditions.
11343
11344 * Makefile.in: Add concat.c and concat.o to appropriate macros.
11345
11346 Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
11347
11348 * config/mh-svr4: Add sigsetmask to list of required functions.
11349
11350 Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
11351
11352 * vsprintf.c: New file.
11353 * functions.def, Makefile.in: Add vsprintf.
11354
11355 Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
11356
11357 * configure.in, config/mh-rs6000: Add rs/6000 host support.
11358 * Makefile.in: Compile with debug info.
11359
11360 Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
11361
11362 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
11363 config/mf-default: Added a default configuration mode,
11364 which includes into libiberty.a functions that are "missing" in libc.
11365 * strdup.c, vprintf.c, vfprintf.c: New files.
11366
11367 Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
11368
11369 * config/hmake-svr4: New file.
11370
11371 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
11372
11373 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
11374 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
11375 files containing either portable C versions or emulations using
11376 native library calls.
11377
11378 * strerror.c: Add copyright, internal documentation, etc.
11379
11380 * strtol.c: Replace hardwired hex constants with some more
11381 portable macros. Remove illegal (according to gcc) cast.
11382
11383 * strtoul.c: Replace hardwired hex constant with more portable
11384 macro.
11385
11386 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
11387 can override them. Add new source and object file names to CFILES
11388 and OFILES respectively.
11389
11390 * configure.in: Add support for SVR4 makefile fragments.
11391
11392 Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
11393
11394 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
11395 over-ridden by config/hmake-*
11396 * configure.in: added m88kcvs to sysv list
11397
11398 Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
11399
11400 * Makefile.in: Most hosts need strerror, but one or two don't,
11401 and they override these definitions in the host-dependent makefile
11402 fragment.
11403 * config/hmake-mach: The odd man out on strerror -- it's supplied.
11404 * strerror.c: New file.
11405
11406 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
11407 it and bfd uses it.
11408 * configure.in, Makefile.in, config/hmake-mach: Only configure
11409 strtol & strotoul in on Mach.
11410
11411 Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
11412
11413 * obstack.c: Merge with latest FSF version.
11414
11415 \f
11416 Local Variables:
11417 version-control: never
11418 End: