]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
Introduce strub: machine-independent stack scrubbing
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
2e0f3f97
GA
12023-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
8428bcd7
GA
122023-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
6c85b8a9
GA
182023-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
17cc2e57
GA
282023-11-15 Mark Wielaard <mjw@redhat.com>
29
30 * aclocal.m4: Rebuild.
31
b9fd8399
GA
322023-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
6cd85273
GA
402023-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
4b92dba7
GA
492023-08-07 John Ericson <git@JohnEricson.me>
50
51 * configure: Regenerate.
52
532023-08-07 H.J. Lu <hjl.tools@gmail.com>
54
55 * configure: Regenerate.
56
572023-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
7ff79341
GA
672023-06-15 Marek Polacek <polacek@redhat.com>
68
69 * configure.ac: Also set shared when enable_host_pie.
70 * configure: Regenerate.
71
532fb120
GA
722023-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
8c5b1365
GA
782023-06-07 Costas Argyris <costas.argyris@gmail.com>
79
80 * argv.c (writeargv): Constant propagate "0" for "status",
81 simplifying the code slightly.
82
4f0d4825
GA
832023-06-06 Costas Argyris <costas.argyris@gmail.com>
84
85 * argv.c (writeargv): Simplify & remove gotos.
86
14da7648
GA
872023-06-05 Costas Argyris <costas.argyris@gmail.com>
88
89 * pex-win32.c: fix typos.
90
912023-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
321cee7e
GA
982023-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
5f10c7f2
GA
1082023-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
d20a6a33
GA
1142023-03-30 Gerald Pfeifer <gerald@pfeifer.com>
115
116 * obstacks.texi (Preparing for Obstacks): Remove a (broken)
117 reference to the Glibc manual.
118
2aa6673e
GA
1192023-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
ee117887
GA
1252023-02-11 niXman <i.nixman@autistici.org>
126
127 * lrealpath.c (lrealpath): try to resolve symlink and
128 use UNC paths where applicable.
129
d901bf8a
GA
1302023-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
8761284f
GA
1362022-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
1442022-11-23 Marek Polacek <polacek@redhat.com>
145
146 * configure.ac: Also set shared when enable_host_pie.
147 * configure: Regenerate.
148
cdc34229
GA
1492022-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
83d400bd
GA
1612022-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
1802022-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
1872022-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
1982022-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
2072022-11-14 Martin Liska <mliska@suse.cz>
208
209 Revert:
210 2022-11-14 Martin Liska <mliska@suse.cz>
211
212 * doc/bsd.rst:
3d3b561f 213 Add trailing newline.
83d400bd 214 * doc/copyright.rst:
3d3b561f 215 Add trailing newline.
83d400bd 216 * doc/extensions.rst:
3d3b561f 217 Add trailing newline.
83d400bd 218 * doc/function-variable-and-macro-listing.rst:
3d3b561f 219 Add trailing newline.
83d400bd 220 * doc/index.rst:
3d3b561f 221 Add trailing newline.
83d400bd 222 * doc/indices-and-tables.rst:
3d3b561f 223 Add trailing newline.
83d400bd 224 * doc/introduction.rst:
3d3b561f 225 Add trailing newline.
83d400bd 226 * doc/lesser-general-public-license-2.1.rst:
3d3b561f 227 Add trailing newline.
83d400bd 228 * doc/overview.rst:
3d3b561f 229 Add trailing newline.
83d400bd 230 * doc/replacement-functions.rst:
3d3b561f 231 Add trailing newline.
83d400bd 232 * doc/supplemental-functions.rst:
3d3b561f 233 Add trailing newline.
83d400bd 234 * doc/using.rst:
3d3b561f 235 Add trailing newline.
83d400bd
GA
236
2372022-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
2442022-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
eefbfbc7
GA
2532022-11-13 Martin Liska <mliska@suse.cz>
254
255 PR other/107620
256 * configure: Regenerate.
257 * configure.ac: Always set sphinx-build.
258
f225b813
GA
2592022-11-10 Martin Liska <mliska@suse.cz>
260
261 * doc/conf.py: Add newline at last line.
262
1cdfd0e5
GA
2632022-11-09 Martin Liska <mliska@suse.cz>
264
265 * doc/bsd.rst:
3d3b561f 266 Add trailing newline.
1cdfd0e5 267 * doc/copyright.rst:
3d3b561f 268 Add trailing newline.
1cdfd0e5 269 * doc/extensions.rst:
3d3b561f 270 Add trailing newline.
1cdfd0e5 271 * doc/function-variable-and-macro-listing.rst:
3d3b561f 272 Add trailing newline.
1cdfd0e5 273 * doc/index.rst:
3d3b561f 274 Add trailing newline.
1cdfd0e5 275 * doc/indices-and-tables.rst:
3d3b561f 276 Add trailing newline.
1cdfd0e5 277 * doc/introduction.rst:
3d3b561f 278 Add trailing newline.
1cdfd0e5 279 * doc/lesser-general-public-license-2.1.rst:
3d3b561f 280 Add trailing newline.
1cdfd0e5 281 * doc/overview.rst:
3d3b561f 282 Add trailing newline.
1cdfd0e5 283 * doc/replacement-functions.rst:
3d3b561f 284 Add trailing newline.
1cdfd0e5 285 * doc/supplemental-functions.rst:
3d3b561f 286 Add trailing newline.
1cdfd0e5 287 * doc/using.rst:
3d3b561f 288 Add trailing newline.
1cdfd0e5
GA
289
2902022-11-09 Martin Liska <mliska@suse.cz>
291
292 * Makefile.in: Support --with-sphinx-build.
293 * configure.ac: Likewise.
294 * configure: Regenerate.
295
2962022-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
3042022-11-09 Martin Liska <mliska@suse.cz>
305
306 * Makefile.in: Support Sphinx based documentation.
307
3082022-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
21de009f
GA
3242022-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
baeec7cc
GA
3352022-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
ab332cd7
GA
3432022-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
9ff6c33e
GA
3492022-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
1f16a020
GA
3552022-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
279c6715
GA
3772022-09-22 Jonathan Wakely <jwakely@redhat.com>
378
379 * README: Replace gcc-bugs email address with Bugzilla URL.
380
5d4389dc
GA
3812022-08-25 Martin Liska <mliska@suse.cz>
382
383 * configure: Regenerate.
384
b563a8dd
GA
3852022-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
e0e07bc7
GA
3912022-07-14 Martin Liska <mliska@suse.cz>
392
393 * functions.texi: Replace strtoul with strtoull.
394
8467574d
GA
3952022-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
4002022-07-04 Nick Clifton <nickc@redhat.com>
401
402 * rust-demangle.c (demangle_path_maybe_open_generics): Add
403 recursion limit.
404
ed974488
GA
4052022-07-01 Nick Clifton <nickc@redhat.com>
406
407 PR demangler/105039
408 * rust-demangle.c (demangle_const): Add recursion limit.
409
b2b72757
GA
4102022-06-26 Simon Marchi <simon.marchi@efficios.com>
411
412 * configure.ac: Add AC_CONFIG_MACRO_DIRS call.
413 * configure: Re-generate.
414
168fc8bd
GA
4152022-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
1cda629f
GA
4262022-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
3d9439b1
GA
4372022-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
e8778989
GA
4452022-05-10 Martin Liska <mliska@suse.cz>
446
447 * regex.c: Restore comments.
448
4492022-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
4552022-05-10 Martin Liska <mliska@suse.cz>
456
457 * random.c: Remove 'define PTR'.
458
4592022-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
d7f00da1
GA
5212022-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
2cfb33fc
GA
5272022-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
0bdb0498
GA
5362022-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
1bb52662
GA
5432022-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
9248ee41
GA
5552022-01-15 Martin Sebor <msebor@redhat.com>
556
557 * regex.c: Suppress -Wuse-after-free.
558
84790a9d
GA
5592021-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
774269aa
GA
5662021-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
8a89c39b
GA
5792021-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
87cd82c8
GA
5892021-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
5962021-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
c2bd5d8a
GA
6012021-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
f5b37435
GA
6072021-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
5d5885c9
GA
6152021-10-14 Luís Ferreira <contact@lsferreira.net>
616
617 * testsuite/d-demangle-expected: Add test case for function literals.
618
6192021-10-14 Luís Ferreira <contact@lsferreira.net>
620
621 * testsuite/d-demangle-expected: Add test cases for simple special
622 mangles.
623
52055987
GA
6242021-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
9d116bcc
GA
6292021-10-01 Luís Ferreira <contact@lsferreira.net>
630
631 * testsuite/d-demangle-expected: Add missing format for new test
632
391b23e0
GA
6332021-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
6382021-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
e11c6046
GA
6432021-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
1e77fd4f
GA
6502021-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
6552021-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
6642021-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
38b19c5b
GA
6702021-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
6e529985
GA
6752021-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
25b6bfea
GA
6802021-06-30 Gerald Pfeifer <gerald@pfeifer.com>
681
682 * make-temp-file.c (usrtmp): Remove.
683 (choose_tmpdir): Remove use of usrtmp.
684
c8abc205
GA
6852021-06-28 Indu Bhagat <indu.bhagat@oracle.com>
686
687 * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
688
6892021-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
28c62475
GA
6972021-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
cfe82a0c
GA
7042021-05-06 Tom Tromey <tom@tromey.com>
705
706 * hashtab.c (htab_eq_string): New function.
707
99e8df7a
GA
7082021-05-04 Eric Botcazou <ebotcazou@adacore.com>
709
710 * configure.ac: Make test for variables more robust.
711 * configure: Regenerate.
712
e690396d
GA
7132021-05-03 H.J. Lu <hjl.tools@gmail.com>
714
715 PR bootstrap/99703
716 * configure: Regenerated.
717
c1ef0c92
GA
7182021-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
95d217ab
GA
7242021-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
bc212776
GA
7352021-03-16 Nick Clifton <nickc@redhat.com>
736
737 * sha1.c (sha1_process_bytes): Use memmove in place of memcpy.
738
b2a55caf
GA
7392021-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
50352c6c
GA
7502021-02-19 Ayush Mittal <ayush.m@samsung.com>
751
752 * argv.c (expandargv): free allocated buffer if read fails.
753
f7884fb1
GA
7542021-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
7e73f511
GA
7592021-01-04 Martin Liska <mliska@suse.cz>
760
761 * strverscmp.c: Convert to utf8 from iso8859.
762
077fefbf
GA
7632020-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
1a5e728a
GA
7742020-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
7802020-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
360258da
GA
7852020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
786
787 * configure: Regenerate.
788 * configure.ac: Avoid using sanitizer.
789
77f67db2
GA
7902020-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
8182020-11-13 Seija Kijin <doremylover456@gmail.com>
819
820 * strstr.c (strstr): Make implementation ANSI/POSIX compliant.
821
0f5f9ed5
GA
8222020-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
2bee28dd
GA
8322020-11-09 Christophe Lyon <christophe.lyon@linaro.org>
833
834 * pex-win32.c (pex_win32_exec_child): Initialize orig_err.
835
8e97b905
GA
8362020-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
a2b7397b
GA
8422020-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
31a05046
GA
8472020-09-08 Felix Willgerodt <felix.willgerodt@intel.com>
848
849 * floatformat.c (floatformat_bfloat16_big): New.
850 (floatformat_bfloat16_little): New.
851
8522020-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
57ea0894
GA
8782020-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
6a1ad710
GA
8852020-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
d48cca8f
GA
8922020-07-30 H.J. Lu <hjl.tools@gmail.com>
893
894 PR bootstrap/96202
895 * configure: Regenerated.
896
8ca07a30
GA
8972020-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
86536295
GA
9042020-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
c9c05f73
GA
9122020-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
4543acc8
GA
9172020-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
885ef72f
GA
9242020-05-29 H.J. Lu <hjl.tools@gmail.com>
925
926 PR bootstrap/95413
927 * configure: Regenerated.
928
3a55774f
IB
9292020-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
3f30a274
IB
9342020-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
d17cdc17
L
9672020-05-12 H.J. Lu <hongjiu.lu@intel.com>
968
969 PR bootstrap/94998
970 * configure: Regenerated.
971
eedc73a2
L
9722020-04-28 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR bootstrap/94739
975 * configure: Regenerated.
976
76458c91
JJ
9772020-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
8fc8bf80
L
9832020-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
c9f90a25
RB
9942020-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
3bb6abbf
NC
10002020-03-02 Nick Clifton <nickc@redhat.com>
1001
1002 * testsuite/demangle-expected: Update expected demangling of
1003 enable_if pattern.
1004
57735060
L
10052020-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
02ce382c
SL
10112020-02-12 Sandra Loosemore <sandra@codesourcery.com>
1012
1013 PR libstdc++/79193
1014 PR libstdc++/88999
1015
1016 * configure: Regenerated.
1017
5f44a434
AB
10182020-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
18193e8f
AO
10232020-01-23 Alexandre Oliva <oliva@adacore.com>
1024
1025 * argv.c (writeargv): Output empty args as "".
1026
8d9254fc
JJ
10272020-01-01 Jakub Jelinek <jakub@redhat.com>
1028
1029 Update copyright years.
1030
1cd4fe3d
TR
10312019-12-06 Tim Ruehsen <tim.ruehsen@gmx.de>
1032
1033 * make-relative-prefix.c (split_directories):
1034 Return early on empty 'name'
1035
513e0aa0
JL
10362019-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
10512019-11-16 Eduard-Mihai Burtescu <eddyb@lyken.rs>
32fc3719
EMB
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
f73cb38f
MS
10762019-11-15 Miguel Saldivar <saldivarcher@gmail.com>
1077
1078 * testsuite/demangle-expected: Fix test.
1079
e0c866dd
KK
10802019-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
1c40e119
PP
10862019-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
1087
1088 * cp-demangle.c (d_number): Avoid signed int overflow.
1089
420fb10c
MS
10902019-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
e1cb00db
EMB
10962019-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
42bf58bb
EMB
11042019-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
d23db385
ML
11142019-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
8f88e7f6
ML
11212019-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
0fddb184
ML
11272019-08-08 Martin Liska <mliska@suse.cz>
1128
1129 PR bootstrap/91352
1130 * lrealpath.c (is_valid_fd): New function.
1131
70121844
ML
11322019-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
b1bc0f50
RK
11382019-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
a861990d
ML
11432019-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
979526c9
EMB
11482019-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
2a1c064a
MF
11542019-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
927e42fd
B
11592019-04-30 Ben L <bobsayshilol@live.co.uk>
1160
6c8dbbfe
B
1161 * d-demangle.c (dlang_parse_assocarray): Correctly handle error result.
1162 * testsuite/d-demangle-expected: Add testcase.
1163
f181b8e7
B
1164 * d-demangle.c (dlang_parse_tuple): Correctly handle error result.
1165 * testsuite/d-demangle-expected: Add testcase.
1166
dba20a51
B
1167 * d-demangle.c (dlang_parse_structlit): Correctly handle error result.
1168 * testsuite/d-demangle-expected: Add testcase.
1169
80b1ab15
B
1170 * d-demangle.c (dlang_parse_arrayliteral): Correctly handle error result.
1171 * testsuite/d-demangle-expected: Add testcase.
1172
81adfd10
B
1173 * d-demangle.c (dlang_parse_integer): Fix stack underflow.
1174 * testsuite/d-demangle-expected: Add testcase.
1175
80024f31
B
1176 * cp-demangle (d_print_comp_inner): Guard against a NULL 'typed_name'.
1177 * testsuite/demangle-expected: Add testcase.
1178
927e42fd
B
1179 * cp-demangle.c (d_encoding): Guard against NULL return values from
1180 d_right (dc).
1181 * testsuite/demangle-expected: Add testcase.
1182
956bea2c
B
11832019-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
6fe6bd7c
NC
11892019-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
6d31ef2a
AM
12022019-04-07 Alan Modra <amodra@gmail.com>
1203
1204 * functions.texi: Regenerate.
1205
62de703f
JM
12062019-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
f9f75f8d
PW
12122019-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
4293cd6e
NF
12182019-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
2197ea17
TT
12252019-01-21 Tom Tromey <tom@tromey.com>
1226
1227 * splay-tree.c (splay_tree_remove): Delete the key if necessary.
1228
2d91f79d
TH
12292019-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
adcb167e
SL
12362019-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
a5544970
JJ
12442019-01-01 Jakub Jelinek <jakub@redhat.com>
1245
1246 Update copyright years.
1247
6c8120c5
JM
12482018-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
e96d1d8c
NC
12582018-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
4be5c72c
JM
12812018-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
22e05272
JM
12892018-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
df1346b4
NS
12992018-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
832c74d9
NS
13062018-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
5c12a855
NS
13132018-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
6ef4752b
TT
13192018-07-30 Tom Tromey <tom@tromey.com>
1320
1321 * cplus-dem.c (remember_Btype): Don't call memcpy with LEN==0.
1322
c00c9d03
ML
13232018-07-26 Martin Liska <mliska@suse.cz>
1324
92a285c1 1325 PR lto/86548
c00c9d03
ML
1326 * make-temp-file.c (TEMP_FILE): Remove leading 'cc'.
1327 (make_temp_file): Call make_temp_file_with_prefix with
92a285c1 1328 first argument set to NULL.
c00c9d03
ML
1329 (make_temp_file_with_prefix): Support also prefix.
1330
30ae6662
EZ
13312018-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
7ce4ce10
JH
13362018-05-30 Jan Hubicka <hubicka@ucw.cz>
1337
7ce4ce10
JH
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
b0c31bc6
BE
13432018-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
84ec5aea
ML
13482018-05-10 Martin Liska <mliska@suse.cz>
1349
1350 PR bootstrap/64914
1351 * md5.c: Use strict alignment with UBSAN_BOOTSTRAP.
1352
d6df811e
DG
13532018-04-30 Daniel van Gerpen <daniel@vangerpen.de>
1354
1355 * argv.c (expandargv): Fix memory leak for copied argv.
1356
6888a172
RO
13572018-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
b2353e59
DM
13632018-03-02 David Malcolm <dmalcolm@redhat.com>
1364
1365 * cp-demangle.c: Update URL for g++ V3 ABI.
1366
c6bff8ad
EZ
13672018-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
bf6f2cc7
RB
13722018-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
3ec62f54
DG
13892018-01-10 Daniel van Gerpen <daniel@vangerpen.de>
1390
1391 * argv.c (expandargv): Correct check for dynamically
1392 allocated argv.
1393
85ec4feb
JJ
13942018-01-03 Jakub Jelinek <jakub@redhat.com>
1395
1396 Update copyright years.
1397
c1177db4
RB
13982017-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
bfe6f076
RB
14082017-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
160826fe
AM
14142017-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
ebd208bf
AM
14212017-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
f8049c44
JJ
14272017-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
68aac47f
NS
14362017-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
7cd7dbda
NS
14442017-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
fa0cdfb6
NS
14582017-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
dc4b8c68
RB
14672017-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
9d89efeb
NS
14732017-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.
fa0cdfb6
NS
1480 (d_local_name):
1481
9d89efeb
NS
1482 * testsuite/demangle-expected: Realign blank lines with tests.
1483
ff971abe
JW
14842017-09-12 Jiong Wang <jiong.wang@arm.com>
1485
1486 * dwarfnames.c (DW_CFA_DUP): New define.
1487
39baa1d3
ML
14882017-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
a621861e
RB
14932017-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
62663034
TR
14992017-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
1963f60a
RB
15052017-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
d4c550fd
RB
15122017-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
1ea85365
RB
15202017-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
ef29f5dd
JK
15532017-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
c1d24904
TR
15572017-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
63d9caf9
DD
15642017-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
dc64856f
IB
15702017-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
0e3712f6
IB
15762017-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
1a122a71
IB
15832017-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
1ab4db93
EZ
15892017-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
5398cab9
IB
15942017-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
dbe65f77
IB
16012017-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
5a4dbf7d
IB
16092017-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
dd03444b
IB
16232017-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
98bb7ee2
IB
16292017-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
16342017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
c6f44bae
IB
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
ec89d258
IB
16412017-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
de3b531c
JW
16462017-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
6b086d35
MW
16552017-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
13b6ef76
MW
16622017-04-21 Mark Wielaard <mark@klomp.org>
1663
1664 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
1665 fails.
1666
1240212c
MW
16672017-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
7a312bbd
PA
16772017-03-27 Pedro Alves <palves@redhat.com>
1678
1679 * cp-demint.c (cplus_demangle_fill_component): Handle
1680 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1681
9905ca97
MW
16822017-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
a46586c3
MW
16902017-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
4bbc35f3
MT
17052017-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
f6efea51
MT
17122017-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
2afd3180
JJ
17182017-01-04 Jakub Jelinek <jakub@redhat.com>
1719
1720 Update copyright years.
1721
8f56cb51
AM
17222017-01-04 Alan Modra <amodra@gmail.com>
1723
1724 * Makefile.in (configure_deps): Update.
1725 * configure: Regenerate.
1726
816f4314
JJ
17272016-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
8e09a726
NS
17332016-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
1d2ccddf 17472016-12-06 DJ Delorie <dj@redhat.com>
2207ff5d
DD
1748
1749 * argv.c (expandargv): Check for directories passed as @-files.
1750
e613205c
DM
17512016-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
8684b292
NS
17592016-11-29 Nathan Sidwell <nathan@acm.org>
1760
1761 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
1762
10d48c59
DT
17632016-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
168126e5
MW
17762016-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
0d0bfbf4
MW
17832016-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
3eb89071
MW
17942016-11-06 Mark Wielaard <mark@klomp.org>
1795
1796 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
1797 * configure: Regenerated.
1798
51dc6603
JM
17992016-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
c4ec8585
MW
18092016-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
31f7f784
JM
18202016-11-01 Jason Merrill <jason@redhat.com>
1821
1822 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
1823
a3f3eec0
MW
18242016-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
471a0d47
AS
18292016-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
99e77371
MW
18342016-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
191816a3
MP
18392016-08-12 Marek Polacek <polacek@redhat.com>
1840
1841 PR c/7652
1842 * cp-demangle.c (d_print_mod): Add FALLTHRU.
1843
1841e25c
MB
18442016-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
ac631cbe
AH
18612016-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
34bbc4c5
JM
18662016-07-15 Jason Merrill <jason@redhat.com>
1867
7864eaaf
JM
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
34bbc4c5
JM
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
1841e25c 18792016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
03ef0c6c
MB
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
3f393853
BM
18882016-06-12 Brooks Moses <bmoses@google.com>
1889
1890 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
3d3b561f 1891 VLAs.
3f393853 1892
051154a1
AM
18932016-05-31 Alan Modra <amodra@gmail.com>
1894
1895 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
1896
e1fe3c69
JJ
18972016-05-19 Jakub Jelinek <jakub@redhat.com>
1898
1899 PR c++/70498
1900 * cp-demangle.c (d_expression_1): Formatting fix.
1901
9b27f113
AV
19022016-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
bfbc839a
MB
19122016-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
bc6d9014
OE
19312016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
1932
1933 * configure: Remove SH5 support.
1934
59dad006
MB
19352016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
1936
bdf66f77
MB
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
cb2763b5 1944 PR c++/70492
59dad006
MB
1945 * cplus-dem.c (gnu_special): Handle case where consume_count returns
1946 -1.
1947
916268f1 19482016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
a3fa7535 1949 Marcel Bohme <boehme.marcel@gmail.com>
916268f1 1950
c1c341ab
JL
1951 PR c++/67394
1952 PR c++/70481
916268f1
MM
1953 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
1954 btypevec/ktypevec.
1955 * testsuite/demangle-expected: Add coverage tests.
1956
13617162
IB
19572016-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
acf1f7da
IB
19652016-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
0f4b8b31
IB
19722016-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
66f49f07
MF
19782016-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
ae120683
MF
19842016-01-05 Mike Frysinger <vapier@gentoo.org>
1985
1986 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
1987
f3ce6437
PP
19882015-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
f8e66330
NC
19962015-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
921da198
PA
20022015-11-27 Pedro Alves <palves@redhat.com>
2003
2004 PR other/61321
2005 PR other/61233
921da198
PA
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
633ce971
MS
20242015-11-12 Mike Stump <mikestump@comcast.net>
2025
2026 * Makefile.in (etags tags TAGS): Use && instead of ;.
2027
126e0b6b
AM
20282015-11-09 Alan Modra <amodra@gmail.com>
2029
2030 * configure.ac: Check size of size_t.
2031 * configure: Regenerate.
61c94e79 2032 * config.in: Regenerate.
126e0b6b 2033
a186d523
AM
20342015-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
f0e525fe
AM
20402015-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
c9f265c9
AM
20502015-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
41fdbd54
JB
20562015-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
08585fba
JM
20622015-10-28 Jason Merrill <jason@redhat.com>
2063
2064 * Makefile.in (TAGS): Fix for separate build directory.
2065
efd40fc4
RM
20662015-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
b8fd7909
JM
20752015-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
68bac640
ILT
20842015-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
fd91ffb8
IB
20892015-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
76d96a5a
MM
20962015-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
9b004cd3 21092015-07-09 Uros Bizjak <ubizjak@gmail.com>
62ee3145 2110
9b004cd3
UB
2111 * getruntime.c (RUSAGE_SELF): Define if not already defined.
2112 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
62ee3145 2113
603eaec4
JM
21142015-06-01 Jason Merrill <jason@redhat.com>
2115
2116 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
2117 extended qualifier.
2118
f50f17e6
YJ
21192015-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
7e865541
IB
21262015-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
ed4cdb85
IB
21422015-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
59251a73
IB
21492015-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
7ce4461f
IB
21542015-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
5cc158e9
IB
21632015-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
fa66ced4
IB
21692015-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
76b41cad
IB
21792015-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
eb058b7d
IB
21892015-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
f5e7f590
JB
21962015-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
ffa176b0
EZ
22012015-04-22 Eli Zaretskii <eliz@gnu.org>
2202
2203 * setenv.c <environ>: Declare only if not a macro.
2204
77019397
MO
22052015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
2206
2207 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
2208
cacf1f59
JJ
22092015-04-10 Jakub Jelinek <jakub@redhat.com>
2210 Iain Sandoe <iain@codesourcery.com>
2211
2212 PR target/65351
2213 * configure: Regenerate.
2214
e8a4ed3b
JJ
22152015-04-07 Jakub Jelinek <jakub@redhat.com>
2216 Iain Sandoe <iain@codesourcery.com>
2217
2218 PR target/65351
2219 * configure: Regenerate.
2220
b411ed0c
EZ
22212015-01-19 Eli Zaretskii <eliz@gnu.org>
2222
2223 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
2224 macros.
2225
e8850918
UB
22262014-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
01ca36af 22362014-12-11 Uros Bizjak <ubizjak@gmail.com>
92a285c1
ML
2237 Ben Elliston <bje@au.ibm.com>
2238 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
01ca36af
UB
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
7b5216dd
JDA
22502014-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
43cf21c6
KY
22572014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
2258
2259 * testsuite/test-strtol.c (run_tests): Cast strtol return to
2260 unsigned long.
2261
3d00119c
AB
22622014-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
35485da9
DM
22702014-11-11 David Malcolm <dmalcolm@redhat.com>
2271
2272 * ChangeLog.jit: New.
2273
8c768629
RO
22742014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2275
2276 * sigsetmask.c (_POSIX_SOURCE): Remove.
2277
ea41822a
YG
22782014-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
e39423c0
DM
22932014-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
2a523cfe
JB
23022014-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
00eaaa50
JM
23112014-09-26 Jason Merrill <jason@redhat.com>
2312
2313 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
2314
29ce50b0
MO
23152014-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
43b1b9ed
IB
23232014-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
0f1fbc83
ILT
23332014-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
606f9e78
AB
23412014-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
635f4800
GB
23472014-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
ac8345a5
AB
23542014-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
ad484eca
RD
23592014-06-01 Ray Donnelly <mingw.android@gmail.com>
2360
2361 * pex-win32.c (argv_to_cmdline): Don't quote
2362 args unnecessarily
2363
bc2eed9a
PA
23642014-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
6aa9ea7f
TS
23692014-05-22 Thomas Schwinge <thomas@codesourcery.com>
2370
2371 * testsuite/demangle-expected: Fix last commit.
2372
70c8c2b9
AB
23732014-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
861c3495
GB
23802014-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
4f148bbc
JJ
23902014-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
25336bb6
RB
24022014-04-01 Richard Biener <rguenther@suse.de>
2403
2404 * simple-object.c (simple_object_internal_write): Handle
2405 EINTR and short writes.
2406
2486c24a
RB
24072014-03-28 Richard Biener <rguenther@suse.de>
2408
2409 * simple-object.c (simple_object_internal_read): Handle
2410 EINTR and short reads.
2411
52684bb3
UB
24122014-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
e191f502
TS
24182014-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
d2d21de9
TT
24232014-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
0225cc0f
MF
24332014-01-06 Mike Frysinger <vapier@gentoo.org>
2434
2435 PR other/56780
2436 * configure.ac: Delete target_header_dir assignment.
2437 * configure: Regenerated.
2438
0a15a50e
GB
24392014-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
1f26ac87
JM
24562013-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
85d09f61
CC
24622013-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
66204992
AS
24852013-11-15 Andreas Schwab <schwab@linux-m68k.org>
2486
2487 * configure: Regenerate.
2488
27297d2d
UB
24892013-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
eda14d6a
MG
24952013-10-29 Marc Glisse <marc.glisse@inria.fr>
2496
2497 PR tree-optimization/58689
2498 * concat.c: Remove note about xmalloc.
2499
4962e513
GP
25002013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
2501
2502 * testsuite/test-demangle.c: Include unistd.h.
27297d2d 2503
c24d86bc
GB
25042013-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.
27297d2d
UB
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.
c24d86bc
GB
2518 * testsuite/demangle-expected: Add regression test.
2519
89ac0797
GP
25202013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
2521
2522 * testsuite/test-expandargv.c: Include unistd.h.
2523
459260ec
DM
25242013-10-15 David Malcolm <dmalcolm@redhat.com>
2525
2526 * configure.ac: If --enable-host-shared, use -fPIC.
2527 * configure: Regenerate.
2528
ea0882a0
PP
25292013-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
8b415b27
PC
25342013-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.
0e2cd22d 2557 * testsuite/demangle-expected: Add regression test.
8b415b27 2558
669ea36c
GB
25592013-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.
0e2cd22d 2577 * testsuite/demangle-expected: Add regression test.
669ea36c 2578
a98cbc36
AM
25792013-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
3830d98a
TG
25852013-07-09 Tristan Gingold <gingold@adacore.com>
2586
2587 * makefile.vms (OBJS): Add dwarfnames.obj
2588
8c9fddf4
MB
25892013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
2590
2591 PR other/56780
969ac969 2592 * configure.ac: Move test for --enable-install-libiberty
8c9fddf4
MB
2593 outside of the 'with_target_subdir' test so that it actually gets
2594 run. Add output messages to show the test result.
969ac969
JJ
2595 * configure: Regenerate.
2596 * Makefile.in (install_to_libdir): Place the
8c9fddf4
MB
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
b768e8cf
DE
26012013-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
ecdbd01a 26092013-04-22 Andi Kleen <ak@linux.intel.com>
86210f13
AK
2610
2611 * hashtab.c (hash_pointer): Move to end of file and reimplement.
2612
9eb85f27
JM
26132013-04-03 Jason Merrill <jason@redhat.com>
2614
0861bec8
JM
2615 * cp-demangle.c (cplus_demangle_type): Fix function quals.
2616 (d_pointer_to_member_type): Simplify.
2617
9eb85f27
JM
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
071928d9
KT
26302013-03-27 Kai Tietz <ktietz@redhat.com>
2631
2632 * configure: Regenerated.
2633
34d3a672
TB
26342013-03-06 Tobias Burnus <burnus@net-b.de>
2635
2636 * libiberty.texi: Update comment, remove lowersections.
2637 * obstacks.texi: Regenerate.
2638
233fa360
JJ
26392013-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
40bf31ed
TB
26452013-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
622aac0b
JM
26512013-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
4ab7747c
JJ
26562013-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
b1a2e8c6
KT
26622013-01-31 Kai Tietz <ktietz@redhat.com>
2663
4cfc6e54
KT
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
b7138297 2668 PR other/53413
b1a2e8c6
KT
2669 * md5.c (md5_process_block): Handle case that size_t is
2670 a wider-integer-scalar a 32-bit unsigned integer.
2671
ad8c59a1
ILT
26722013-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
a9b01f00
DE
26782013-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
c61e8502
JM
26862012-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
7dbb85a7
JM
26912012-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
7c424acd
JM
26982012-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
9a9baa52
ILT
27032012-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
ed770de9
FW
27152012-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
fabfa16b
L
27212011-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
55529d36
L
27282011-08-28 H.J. Lu <hongjiu.lu@intel.com>
2729
2730 PR binutils/14526
2731 * argv.c (buildargv): Replace alloca with xmalloc/free.
2732
c9ac76ae
AS
27332012-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
d555a90e
MF
27392012-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
9cd6dd82
KH
27442012-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
aefa74bd
JM
27502012-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
69488641
DE
27562012-07-13 Doug Evans <dje@google.com>
2757
2758 * filename_cmp.c (filename_hash, filename_eq): New functions.
2759
8a8b3779
AS
27602012-06-29 Andreas Schwab <schwab@linux-m68k.org>
2761
2762 * copying-lib.texi (Library Copying): Don't use @heading inside
2763 @enumerate.
2764
d931f693
TT
27652012-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
11ec770e
TT
27722012-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
c1a96977
TG
27792012-04-04 Tristan Gingold <gingold@adacore.com>
2780
2781 * pex-unix.c (to_ptr32): Fix style.
2782
63e1e57a
TG
27832012-04-02 Tristan Gingold <gingold@adacore.com>
2784
2785 * stack-limit.c: Includes ansidecl.h.
2786 (stack_limit_increase): Add ATTRIBUTE_UNUSED
2787
c19267cb
JM
27882012-03-20 Jason Merrill <jason@redhat.com>
2789
2790 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
2791
c93ea196
JM
27922012-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
bfb676c1
JJ
27972012-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
daecebc8
DR
28022012-01-22 Douglas B Rupp <rupp@gnat.com>
2803
2804 * configure: Regenerate.
2805
3abbe458
JM
28062012-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
49f2da1a
JM
28112012-01-06 Jason Merrill <jason@redhat.com>
2812
4b6aaa99
JM
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
49f2da1a
JM
2830 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
2831 and vector are substitutable.
2832 (cplus_demangle_operators): Sort.
2833
925b0ed8
AK
28342012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2835
2836 * configure: Regenerate.
2837
341d3f6e
JJ
28382012-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
4a5e00ca
AS
28492011-12-20 Andreas Schwab <schwab@linux-m68k.org>
2850
2851 * configure: Regenerate.
2852
8c3db96e
TG
28532011-12-20 Tristan Gingold <gingold@adacore.com>
2854
2855 * aclocal.m4: Assume strncmp works in cross case.
2856 * configure: Regenerate
2857
095af58f
AS
28582011-12-19 Andreas Schwab <schwab@linux-m68k.org>
2859
2860 * configure: Regenerate.
2861
0a35513e
AH
28622011-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
b25dd954
JM
28762011-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
4092fb6e
DE
28822011-11-02 Doug Evans <dje@google.com>
2883
9f2f6d5e 2884 * Makefile.in (CFILES): Add timeval-utils.c.
4092fb6e
DE
2885 (REQUIRED_OFILES): Add timeval-utils.$(objext).
2886 (INSTALLED_HEADERS): Add timeval-utils.h.
2887 (timeval-utils.$(objext)): Add rule.
2888
d6b0f0f1
ILT
28892011-10-28 Ian Lance Taylor <iant@google.com>
2890
2891 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
2892
b20577ea
IS
28932011-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
d58818f7
ILT
29062011-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
be50fcea
DE
29132011-09-28 Doug Evans <dje@google.com>
2914
8c850a5a 2915 * timeval-utils.c: New file.
8c850a5a 2916
be50fcea
DE
2917 * argv.c (countargv): New function.
2918
2d2b02c4
CC
29192011-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
d303ec8e 29292011-09-23 Ian Lance Taylor <iant@google.com>
ae0d176c 2930 Pierre Vittet <piervit@pvittet.com>
d303ec8e
ILT
2931
2932 * md5.c (md5_process_bytes): Correct handling of unaligned
2933 buffer.
2934
e3aa9eba
RO
29352011-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
c49b1a29
SE
29422011-08-12 Steve Ellcey <sje@cup.hp.com>
2943
2944 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
2945
bd820218
UB
29462011-08-06 Uros Bizjak <ubizjak@gmail.com>
2947
2948 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
2949
4bbff96e
JM
29502011-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
52bed4d7
L
29562011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2957
2958 * testsuite/demangle-expected: Remove an extra line.
2959
f2e6f32e
ILT
29602011-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
a0a22423
GP
29662011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
2967
2968 PR target/49817
2969 * stack-limit.c: Include <stdint.h>.
2970
d423df48
JJ
29712011-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
a517066d
JM
29832011-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
985b34c7
JB
29882011-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
cb0ad104
JK
29932011-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
dd70e080
JM
30052011-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
5fe8e1e9
JK
30112011-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
f019462c
JK
30172011-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
743a99db
JK
30252011-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
04695783
JM
30342011-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
4b9726d4
JM
30472011-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
178aa0f6
TG
30532011-03-31 Tristan Gingold <gingold@adacore.com>
3054
3055 * makefile.vms (OBJS): Add filename_cmp.obj
3056
94369251
KT
30572011-02-28 Kai Tietz <kai.tietz@onevision.com>
3058
3059 * filename_cmp.c (filename_ncmp): New function.
3060 * functions.texi: Regenerated.
3061
996c0cb0
RW
30622011-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
9e7955b2
MF
30772011-01-18 Mike Frysinger <vapier@gentoo.org>
3078
3079 * .gitignore: New file.
3080
23346f36
DE
30812010-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
4c7d97e6
RO
30862010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3087
3088 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
3089
52ae149d
AG
30902010-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
455c8f48
RW
30982010-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
d82f74d3
ILT
31042010-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
431f321f
L
31232010-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
28d1e73f
KT
31322010-11-14 Kai Tietz <kai.tietz@onevision.com>
3133
3134 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
3135 offset.
3136
759fe240
ILT
31372010-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
3b63ca7e
RH
31442010-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
1cfabf34
ILT
31532010-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
c3735614
ILT
31722010-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
0e0f02ff
RW
31782010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3179
3180 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
3181 * configure: Regenerate.
3182
ecdbd01a 31832010-10-07 Andi Kleen <ak@linux.intel.com>
4e00fad2
AK
3184
3185 * configure: Regenerate.
3186 * configure.ac: Turn PR_SET_NAME check into link check.
3187
ecdbd01a 31882010-10-06 Andi Kleen <ak@linux.intel.com>
6e9bd0f8
AK
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
a69d9775
TG
31992010-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
48255616
JL
32062010-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
16f60fcb
TG
32132010-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
93f36faa
MR
32242010-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
ec760bea
NC
32312010-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
79cf7628
PO
32362010-07-21 Pascal Obry <obry@adacore.com>
3237
3238 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
3239
d414dde9
KW
32402010-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
1e913734
GP
32452010-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
9c4d7e52
JJ
32512010-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
a9429e29
LB
32622010-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
c3f247f4
RW
32742010-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
32812010-05-26 Kai Tietz <kai.tietz@onevision.com>
a6766312
KT
3282
3283 * testsuite/demangle-expected: Add tests for __int128
3284 and unsigned __int128 types.
3285
14c2101d
JM
32862010-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
3009276c
PA
32932010-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
0bb8c134
JJ
33012010-04-07 Jakub Jelinek <jakub@redhat.com>
3302
3303 * regex.c (byte_re_match_2_internal): Avoid set but not used
3304 warning.
3305
ce30e6fd
JM
33062010-03-22 Jason Merrill <jason@redhat.com>
3307
3308 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
3309
ef74edbd
RW
33102010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3311
3312 * Makefile.in (all): Do not use exec.
3313
2480e18f
TT
33142010-02-04 Tom Tromey <tromey@redhat.com>
3315
3316 * testsuite/demangle-expected: Add missing --format=gnu-v3.
3317
abfe01ce
JM
33182010-02-03 Jason Merrill <jason@redhat.com>
3319
f000c6a7
JM
3320 * cp-demangle.c (d_expression): Handle dependent operator name.
3321
abfe01ce
JM
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
79b754d4
ILT
33262010-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
4d43dcde
JM
33322010-01-20 Jason Merrill <jason@redhat.com>
3333
3334 PR c++/42338
3335 * cp-demangle.c (d_print_comp): Fix array index printing.
3336
5b40c067
TG
33372010-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
9b2adcdb
L
33452010-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
ed945ad9
NI
33502010-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
698861dc
DE
33562009-12-07 Doug Evans <dje@google.com>
3357
3358 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
3359
59a8dc25
BE
33602009-11-26 Ben Elliston <bje@au.ibm.com>
3361
3362 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
3363 * configure: Regenerate.
3364
1dd2c57b
BE
33652009-11-25 Ben Elliston <bje@au.ibm.com>
3366
3367 * functions.texi: Rebuild.
3368
f8766c93
MLI
33692009-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
5120dc38
BE
33752009-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
d90a2c59
SW
33822009-11-22 Steve Ward <planet36@gmail.com>
3383
3384 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
3385
c22c44ba
BE
33862009-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
70277b30
DG
33922009-10-08 Daniel Gutson <dgutson@codesourcery.com>
3393 Daniel Jacobowitz <dan@codesourcery.com>
3394 Pedro Alves <pedro@codesourcery.com>
3395
70277b30
DG
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
4578037e
MT
34052009-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
d5f4eddd
JM
34102009-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
31a9bec4 34212009-09-23 Matthew Gingell <gingell@adacore.com>
30b639a8
MG
3422
3423 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
3424
bcf11ab4
OS
34252009-09-22 Ozkan Sezer <sezeroz@gmail.com>
3426
3427 * choose-temp.c: Include unistd.h for mingw targets.
3428
50cb834f
RO
34292009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3430
3431 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
3432
384ed84d
TG
34332009-09-15 Tristan Gingold <gingold@adacore.com>
3434
3435 * config.h-vms (intptr_t): Define to compile hashtab.c
3436
0e497905
OS
34372009-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
2e3dac6f
OS
34452009-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
f071aaca
TG
34542009-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
df58e648
RW
34622009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3463
3464 * configure.ac (AC_PREREQ): Bump to 2.64.
3465
2eba9355
L
34662009-08-23 H.J. Lu <hongjiu.lu@intel.com>
3467
3d3b561f
ML
3468 PR ld/10536
3469 * Makefile.in (install-html-recursive): Removed.
2eba9355 3470
5213506e
RW
34712009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3472
3473 * config.in: Regenerate.
3474 * configure: Regenerate.
3475
6efbd53f
RW
34762009-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
2958f4a2
DR
34812009-07-29 Douglas B Rupp <rupp@gnat.com>
3482
3483 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
3484
b303ef51
DR
34852009-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
330b922f
ILT
34922009-07-24 Ian Lance Taylor <iant@google.com>
3493
3494 PR bootstrap/40854
3495 * crc32.c (xcrc32): Rename from crc32.
3496
b524249c
ILT
34972009-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
23b1a789
JK
35052009-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
a46f975b
JJ
35142009-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
ee07afa0
NC
35192009-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
ec5c6f4a
EZ
35252009-05-30 Eli Zaretskii <eliz@gnu.org>
3526
3527 * snprintf.c: Doc fix.
3528
3529 * vsnprintf.c: Doc fix.
3530
bb870b58
KT
35312009-05-29 Kai Tietz <kai.tietz@onevision.com>
3532
bd820218 3533 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
bb870b58 3534
4cfaf1ec
MM
35352009-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
0d38b677
TG
35412009-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
7859dde7
ILT
35512009-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
965cc3c3
JB
35572009-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
6874160d
JB
35622009-04-29 Julian Brown <julian@codesourcery.com>
3563
bd820218 3564 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
6874160d
JB
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
ae2040df
EZ
35692009-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
01459fb5
EZ
35752009-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.
bd820218 3582
92c3e704
OS
35832009-04-13 Ozkan Sezer <sezeroz@gmail.com>
3584
bd820218
UB
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.
92c3e704 3593
020e3d02
AP
35942009-04-07 Arnaud Patard <apatard@mandriva.com>
3595
969ac969
JJ
3596 * configure.ac: Fix Linux/MIPS matching rule.
3597 * configure: Regenerate.
020e3d02 3598
b524249c 35992009-03-27 Ian Lance Taylor <iant@google.com>
5fbd9447
ILT
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
6afcfe0a
JM
36092009-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
448545cb
JM
36172009-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.
79b754d4 3627 * testsuite/demangle-expected: Update tests.
448545cb 3628
8c9abf1f
MM
36292009-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
04f9f7b5
DK
36342009-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
30471e01
JM
36402009-01-07 Jason Merrill <jason@redhat.com>
3641
3642 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
3643
381009fe
BE
36442009-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
938e76ad
JM
36492008-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
a77f94e2
JM
36552008-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
07523e7c
JM
36622008-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
b36c386c
DJ
36672008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
3668
3669 * Makefile.in (CPPFLAGS): Define.
3670 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
3671
269f1d98
PB
36722008-10-15 Paolo Bonzini <bonzini@gnu.org>
3673
61b74e12 3674 PR bootstrap/37137
269f1d98
PB
3675 * Makefile.in (LIBCFLAGS): Remove.
3676 (FLAGS_TO_PASS): Don't mention it.
3677 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
3678
0c9e8424
DE
36792008-10-08 David Edelsohn <edelsohn@gnu.org>
3680
3681 * xstrdup.c: Include <sys/types.h> after "config.h"
bd820218 3682
d208e2d2
JK
36832008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3684
3685 * configure.ac: Call AC_SYS_LARGEFILE.
3686 * config.in: Regenerated.
3687 * configure: Likewise.
3688
38179091
JM
36892008-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
5a3d7e74
JM
37082008-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
98b45309
AL
37202008-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
60ecfb1b
JJ
37252008-07-31 Jakub Jelinek <jakub@redhat.com>
3726
3727 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
3728
a23eb008
DV
37292008-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
f59a2f55
RW
37372008-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
6819ba36
EB
37442008-06-19 Eric Blake <ebb9@byu.net>
3745
3746 Adjust strsignal to POSIX 200x prototype.
3747 * strsignal.c (strsignal): Remove const.
3748
18c04407
RW
37492008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3750
3751 * configure: Regenerate.
3752
6ccde948
RW
37532008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3754
3755 * libiberty.texi: Expand TABs, drop indentation outside examples.
3756 * obstacks.texi: Likewise.
3757
951b54cc
AJ
37582008-04-21 Aurelien Jarno <aurelien@aurel32.net>
3759
969ac969
JJ
3760 * configure.ac: use -fPIC on Linux/MIPS hosts.
3761 * configure: Regenerate.
951b54cc 3762
b6baa67d
KVH
37632008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
3764
3765 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
3766
deb984e6
PB
37672008-04-18 Paolo Bonzini <bonzini@gnu.org>
3768
3769 PR bootstrap/35457
3770 * aclocal.m4: Add override.m4.
3771 * configure: Regenerate.
3772
eeda7b98
ILT
37732008-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
c91c9c2e
PB
37782008-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
598848e4
ILT
37852008-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
01b11940
DE
37922008-03-24 Doug Evans <dje@google.com>
3793
3794 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
3795 return from strdup.
3796
5a9340fd
SP
37972008-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
73b38fce
NC
38022008-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
5ff3a208
BE
38072008-02-19 Ben Elliston <bje@au.ibm.com>
3808
3809 PR other/12618
3810 * testsuite/Makefile.in (mostlyclean): Remove any core file.
3811
e5df4fb1
DD
38122008-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
62b445b3
TJB
38282008-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
daf6ff4c
MLI
38352008-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
983a6f8d
JM
38412007-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
da59326f
JM
38482007-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
48492bdf
TT
38692007-09-06 Tom Tromey <tromey@redhat.com>
3870
3871 * pexecute.txh (pex_free): Document process killing.
3872
1ab28be5 38732007-08-31 Douglas Gregor <doug.gregor@gmail.com>
6819ba36 3874
1ab28be5 3875 * cp-demangle.c (d_dump): Handle
6819ba36 3876 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1ab28be5
DG
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
1651030c
KT
38832007-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
9c79ad8b
MS
38912007-08-17 Michael Snyder <msnyder@access-company.com>
3892
3893 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
3894
fd83e387
MS
38952007-08-03 Michael Snyder <msnyder@access-company.com>
3896
3897 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
3898 leak.
3899
ac847e32
MS
39002007-07-31 Michael Snyder <msnyder@access-company.com>
3901
3902 * cp-demangle.c (d_print_comp): Guard against null.
3903
f4f29b59
BE
39042007-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
f4e00f44
DD
39122007-07-23 DJ Delorie <dj@redhat.com>
3913
3914 * argv.c (writeargv): Fix typo in inline documentation.
3915 * functions.texi: Regenerate.
3916
6a9131e7
DD
39172007-07-17 DJ Delorie <dj@redhat.com>
3918
3919 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
3920 gettimeofday entry.
3921 * configure: Likewise.
3922
0f3d38b6
AO
39232007-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
38bb3485
SB
39292007-07-02 Simon Baldwin <simonb@google.com>
3930
3931 * argv.c (writeargv): Removed declaration of unused variable.
3932
aa2480c5
PB
39332007-06-14 Paolo Bonzini <bonzini@gnu.org>
3934
3935 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
3936 * configure: Regenerate.
3937
3bbd5a19
PB
39382007-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
abea993f
GK
39442007-06-07 Geoffrey Keating <geoffk@apple.com>
3945
3946 * configure.ac: Non-default multilibs can be cross compilations.
3947 * configure: Regenerate
3948
2091ff66
NF
39492007-05-07 Nathan Froyd <froydnj@codesourcery.com>
3950
3951 * argv.c (writeargv): New function.
3952
a2aa65f0
GK
39532007-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
186c60ab
JB
39592007-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
a3fa7535 39672007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
017133fd
TN
3968
3969 * argv.c: Use ANSI C declarations.
3970 * make-relative-prefix.c: Likewise.
3971
96a94ff4
JB
39722007-04-06 Joel Brobecker <brobecker@adacore.com>
3973
3974 * filename_cmp.c (filename_cmp): Improve documentation.
3975
320fc205
AS
39762007-04-02 Andreas Schwab <schwab@suse.de>
3977
3978 * filename_cmp.c: Include "config.h".
3979
cde515d9
JB
39802007-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
771904f1
GK
39882007-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
267686a7
BM
39962007-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
5f81370d 40022007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
6819ba36 4003 Eric Botcazou <ebotcazou@libertysurf.fr>
5f81370d
PB
4004
4005 PR other/16513
4006 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
4007 Install headers in multilib independent location.
4008
f86b57e4
DD
40092007-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.
6819ba36 4014
15b16eb5
RW
40152007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4016
4017 * hex.c: Fix typo.
4018 * choose-temp.c: Likewise.
4019 * functions.texi: Regenerate.
4020
7cf4c53d
VP
40212007-01-31 Vladimir Prus <vladimir@codesourcery.com>
4022
4023 * pex-common.h (struct pex_obj): New fields
6819ba36 4024 stderr_pipe and read_err.
7cf4c53d
VP
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
ae452ed1
BE
40352007-01-31 Ben Elliston <bje@au.ibm.com>
4036
4037 * strsignal.c (psignal): Change type of signo to int.
4038 * functions.texi: Regenerate.
4039
456cc5cf
SB
40402007-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
7d37bf39
BE
40782007-01-12 Ben Elliston <bje@au.ibm.com>
4079
1a8e58a3
BE
4080 * pex-unix.c (writeerr): Cast write result to void.
4081
4d4f0164
BE
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.
7d37bf39 4084
5165f125
GK
40852006-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
334737af 41122006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
6819ba36 4113 J"orn Rennecke <joern.rennecke@st.com>
334737af
AS
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
e9903c67
VP
41222006-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.
6819ba36 4128
36b82060
JB
41292006-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
7445de0a
DS
41362006-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
97977a91
BE
41442006-10-25 Ben Elliston <bje@au.ibm.com>
4145
4146 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
6819ba36 4147
b5422ad7
BM
41482006-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
53e3e587
ILT
41532006-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
70aec81b
CV
41592006-08-30 Corinna Vinschen <corinna@vinschen.de>
4160
4161 * configure.ac: Add case for Mingw as host.
4162 * configure: Regenerate.
4163
022d4166
ILT
41642006-08-27 Ian Lance Taylor <ian@airs.com>
4165
5317e1c7
ILT
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
022d4166
ILT
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
3050098b
JH
41812006-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
706601d9
PG
41872006-07-04 Peter O'Gorman <peter@pogma.com>
4188
4189 * Makefile.in: chmod 644 before ranlib during install.
4190
239559e7
MS
41912006-06-02 Mark Shinwell <shinwell@codesourcery.com>
4192
4193 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
4194 to environ.
4195
ea60341e
MS
41962006-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
8967e029
MS
42142006-05-28 Mark Shinwell <shinwell@codesourcery.com>
4215
4216 * mkstemps.c: Open temporary files in binary mode.
4217
824bceb0
AB
42182006-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
9fff6432
JB
42232006-04-24 Julian Brown <julian@codesourcery.com>
4224
4225 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
4226
8eff378c
JB
42272006-03-29 Jim Blandy <jimb@codesourcery.com>
4228
f33a23a0 4229 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
4230 (pex_init_common): Initialize obj->input_file.
4231 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
4232 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
4233 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 4234 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
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.
8eff378c 4242
5ea49f9c
JB
42432006-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
cf61af07
CD
42492006-04-06 Carlos O'Donell <carlos@codesourcery.com>
4250
4251 * Makefile.in: Add install-html, install-html-am, and
6819ba36
EB
4252 install-html-recursive targets. Define mkdir_p and
4253 NORMAL_INSTALL.
cf61af07
CD
4254 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
4255 * configure: Regenerate.
4256 * testsuite/Makefile.in: Add install-html and html targets.
4257
bd9e7c5c
MM
42582006-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
58df1c41
JB
42712006-03-24 Jim Blandy <jimb@codesourcery.com>
4272
4273 * pex-common.c (pex_run): Simplify output name handling.
4274
7d898fa2
JB
42752006-03-12 Jim Blandy <jimb@red-bean.com>
4276
4277 * pex-common.h (struct pex_obj): Doc fixes.
4278
ddbbee51
JB
42792006-03-11 Jim Blandy <jimb@red-bean.com>
4280
4281 * functions.texi: Regenerate.
4282
f49712d8
BE
42832006-02-21 Ben Elliston <bje@au.ibm.com>
4284
4285 * pexecute.c (pwait): Syntax fix for previous change.
4286
8f629dc5
UP
42872006-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
12c61ac3
RS
42922006-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
e8f9ec35
GDR
43002006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
4301
4302 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
6819ba36 4303 supported.
e8f9ec35
GDR
4304 * configure: Regenerated.
4305
974c2c56
CD
43062006-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
573b07c7
GDR
43132005-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
92aed1cb
TL
43202005-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.
6819ba36 4333
73a08f87
RG
43342005-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
0432a5de
MK
43412005-10-31 Mark Kettenis <kettenis@gnu.org>
4342
4343 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
4344 New variables.
4345
cb120852
MM
43462005-10-07 Mark Mitchell <mark@codesourcery.com>
4347
4348 * at-file.texi: Fix typo.
4349
36dd6d31
MM
43502005-10-03 Mark Mitchell <mark@codesourcery.com>
4351
4352 * at-file.texi: New file.
4353
affbb54a
MM
43542005-09-27 Mark Mitchell <mark@codesourcery.com>
4355
4356 * argv.c (expandargv): Do not use xmalloc_failed.
4357
97393d0a
MM
43582005-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.
240921b9 4365 * Makefile.in: Regenerated.
97393d0a 4366
0d676b85
CF
43672005-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
e89b6c1c
MK
43832005-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
0cbe2a68
KC
43962005-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
ca1cc111
KG
44032005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404
4405 * getopt.c: Include ansidecl.h before system headers.
4406
f4f94d6b
BE
44072005-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
8cfb7ab7
BE
44122005-07-22 Ben Elliston <bje@gnu.org>
4413
4414 * regex.c (regcomp): Change type of `i' from unsigned to int.
4415
b4db223f
BE
44162005-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
8b82b724
BE
44242005-07-22 Ben Elliston <bje@gnu.org>
4425
4426 * configure.ac: Check for a getopt(3) declaration.
4427 * configure, config.in: Regenerate.
4428
7c22afcb
BE
44292005-07-15 Ben Elliston <bje@au.ibm.com>
4430
4431 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
4432
72f93778
BE
44332005-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
6c5844d2
BE
44382005-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
769b009e
KC
44432005-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
f379ddd1
KC
44502005-07-07 Kelley Cook <kcook@gcc.gnu.org>
4451
4452 * config.in: Regenerate for 6/20 change.
4453
6cbfa10e
SE
44542005-07-03 Steve Ellcey <sje@cup.hp.com>
4455
4456 PR other/13906
4457 * md5.c (md5_process_bytes): Check alignment.
4458
8c7262af
ILT
44592005-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
a3648cfc
DB
44662005-06-30 Daniel Berlin <dberlin@dberlin.org>
4467
4468 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
6819ba36 4469 (DELETED_ENTRY): Ditto.
a3648cfc 4470
83fbfe42
GK
44712005-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
ddcf783b
EZ
44832005-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
15da2806
RH
44882005-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
d7cf8390
GDR
44952005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
4496
4497 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 4498 malloc(), realloc() and sbrk().
d7cf8390
GDR
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
ddcf783b 4510 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
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
ddcf783b 4540 malloc().
d7cf8390
GDR
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
99e4078f
AJ
45712005-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
766643be
AJ
45792005-05-15 Andreas Jaeger <aj@suse.de>
4580
4581 * functions.texi: Regenerated.
4582
2b836651
EZ
45832005-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
d842a495
AJ
4589 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
4590 braces.
4591
5db1c531
EZ
45922005-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
bd7d50f8
PB
46032005-05-11 Paul Brook <paul@codesourcery.com>
4604
4605 * Makefile.in: Regenerate dependencies.
4606
ee58dffd
NC
46072005-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
c1300f45
KC
46252005-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
fbc1bc09
KC
46312005-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
32e82bd8
KG
46382005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4639
4640 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 4641
32e82bd8
KG
4642 * functions.texi: Regenerate.
4643
6feaa084
KG
46442005-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
3c60ae5a
GDR
46512005-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.
2b836651 4660 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
4661 and vasprintf for real.
4662 * configure: Regenerate.
4663
0e0af50b
GDR
46642005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
4665
2b836651 4666 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 4667 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 4668
4cf88ac3
GDR
46692005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
4670
4671 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 4672 Replace not with negate.
4cf88ac3 4673
1ff7682c
GDR
46742005-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
78a7dc90
KG
46812005-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
2f84c996
ILT
46932005-04-04 Ian Lance Taylor <ian@airs.com>
4694
4695 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
4696 declaration before statement.
4697
f9a9ac80
KG
46982005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4699
29138797
KG
4700 * bcmp.c: Fix warnings and implement using memcmp.
4701 * bcopy.c: Fix warnings.
4702 * bzero.c: Fix warnings and implement using memset.
4703
f9a9ac80
KG
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
23ea4f4a
ILT
47112005-04-02 Ian Lance Taylor <ian@airs.com>
4712
4713 * cp-demangle.c: Update copyright.
4714
1e3a2100
JM
47152005-03-31 Joseph S. Myers <joseph@codesourcery.com>
4716
4717 * gettimeofday.c: Add "Supplemental" to @deftypefn.
4718 * functions.texi: Regenerate.
4719
a584cf65
ILT
47202005-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
93764b5b 47452005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 4746
93764b5b
MK
4747 * unlink-if-ordinary.c: Include <sys/types.h>.
4748
93079c81
GDR
47492005-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.
2b836651 4754 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 4755 print_fastmap, print_partial_compiled_pattern,
2b836651 4756 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
4757 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
4758 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
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,
93079c81
GDR
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,
2b836651 4766 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
4767 regexec, regerror, regfree): Use ISO C prototype style.
4768 * partition.c: (elem_compare): Likewise.
4769 * cp-demangle.c (print_usage): Likewise.
4770
885f2199
GDR
47712005-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
2b836651 4775 prototypes.
885f2199
GDR
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.
2b836651 4782 * partition.c (partition_new, partition_delete, partition_union)
885f2199 4783 (elem_compare, partition_print): Likewise.
2b836651
EZ
4784 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
4785 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
4786 _obstack_memory_used, print_and_abort, obstack_next_free,
4787 obstack_object_size, obstack_base): Likewise. Remove codes
4788 predicated on !defined(__STDC__).
2b836651 4789 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
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.
2b836651 4799 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 4800 * spaces.c (spaces): Likewise.
2b836651
EZ
4801 * splay-tree.c (splay_tree_delete_helper,
4802 splay_tree_splay_helper, splay_tree_splay,
885f2199 4803 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 4804 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 4805 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
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,
885f2199
GDR
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
7a17ef5e
GDR
48162005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4817
4818 Convert libiberty to use ISO C prototype style 6/n.
2b836651 4819 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
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.
2b836651 4825 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
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.
2b836651 4831 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
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.
2b836651 4844 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
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
1134b11d
AJ
48512005-03-27 Andreas Jaeger <aj@suse.de>
4852
4853 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
4854 flags.
4855 * configure: Regenerated.
4856
e78410c1
GDR
48572005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4858
4859 * getopt1.c (getopt_long_only): Fix thinko.
4860
6da879de
GDR
48612005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4862
4863 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
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,
6da879de
GDR
4872 htab_hash_string, iterative_hash): Use ISO C prototype.
4873 * hex.c (hex_init): Likewise.
4874 * index.c (index): Likewise.
1134b11d 4875 * insque.c (insque, remque): Likewise.
6da879de
GDR
4876 * lbasename.c (lbasename): Likewise.
4877 * lrealpath.c (lrealpath): Likewise.
1134b11d 4878 * make-relative-prefix.c (save_string, split_directories,
6da879de 4879 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
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,
6da879de
GDR
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.
1134b11d 4891 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
4892 _getopt_internal, getopt, main): Likewise.
4893 * getcwd.c (getcwd): Likewise.
4894 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
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,
6da879de 4898 ieee_test, main): Likewise.
1134b11d
AJ
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,
6da879de
GDR
4906 fibnode_insert_after, fibnode_remove): Likewise.
4907 * ffs.c (ffs): Likewise.
4908 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
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,
6da879de 4915 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 4916 Likewise.
6da879de 4917
500d7701
GDR
49182005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
4919
4920 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
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,
500d7701 4926 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
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,
500d7701
GDR
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,
1134b11d 4945 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
4946 cplus_demangle_v3_components): Likewise.
4947
9486db4f
GDR
49482005-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.
1134b11d
AJ
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,
9486db4f 4973 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 4974 print_usage, main):
9486db4f
GDR
4975
49762005-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.
1134b11d 4984 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
4985 * atexit.c (atexit): Likewise
4986 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 4987 (asprintf): Use ISO C prototype.
9486db4f
GDR
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.
1134b11d 4998 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
4999 concat_copy2, concat, reconcat, main): Use ISO C prototype.
5000 * copysign.c (copysign): Likewise.
5001
17998b22
KG
50022005-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
bb99744f
KG
50152005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5016
5017 * xmemdup.c, xstrdup.c: Expose the tail call.
5018
17049f0b
MM
50192005-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
6af8bd50
ILT
50282005-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
c80d391c
ILT
50372005-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
fe8ee922
DD
50472005-03-06 DJ Delorie <dj@redhat.com>
5048
5049 * configure.ac (target_header_dir): vfork is a stub under djgpp.
5050 * configure: Regenerated.
5051
c363985d
JB
50522005-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
6a88516c
BE
50592005-03-01 Ben Elliston <bje@au.ibm.com>
5060
5061 * hashtab.c (htab_find_slot_with_hash): Make function
5062 documentation clearer.
5063
b8b3c655
JM
50642005-02-13 Jason Merrill <jason@redhat.com>
5065
5066 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
5067 arguments.
5068
e8805990
TS
50692005-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.
1134b11d 5074
24f2cabb
L
50752004-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
3d815594
L
50842004-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
207db768
L
51112004-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
d49d0907
BE
51492004-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
b180d5fb
DD
51552004-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
ecc30353
MK
51602004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
5161
5162 * pex-unix.c: Fix the spelling of longjmp.
5163
0b167d51
ILT
51642004-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
2d59754f
RS
51732004-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
ea27a394
MS
51792004-11-12 Mike Stump <mrs@apple.com>
5180
610784f0
MS
5181 * Makefile.in (libiberty.html): Fix html generation.
5182
626ff3de
AN
51832004-09-08 Adam Nemet <anemet@lnxw.com>
5184
5185 * vasprintf.c: Accept __va_copy in addition to va_copy.
5186
1134b11d 51872004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
5188
5189 * configure: Regenerate.
5190
1134b11d 51912004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
5192
5193 * configure.ac: Do not enable multilibs for build-side libiberty.
5194
1134b11d 51952004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
5196
5197 * lrealpath.c (lrealpath): Add _WIN32 support.
5198
0cf61401
ZW
51992004-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
00a5aa9c
ILT
52052004-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.
5cd29062 5210 * testsuite/demangle-expected: Add test case.
00a5aa9c 5211
b47785f4
DS
52122004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
5213
5214 * pex-win32.c (fix_argv): Expand comment.
5215
54b2f310
DJ
52162004-05-25 Daniel Jacobowitz <drow@false.org>
5217
5218 * Makefile.in: Add .NOEXPORT.
5219
8fd58397
DR
52202004-04-29 Douglas B Rupp <rupp@gnat.com>
5221
5222 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
5223 copyright.
5224
6489430a
MR
52252004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5226
5227 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
5228 * configure: Regenerate.
5229
9bf3c9cc
RH
52302004-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
80790b05
ILT
52442004-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
7f96816a
JL
52492004-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
d9175b87
RH
52542004-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
e8190aa2
ILT
52662004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
5267
fed8129b
ILT
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
e8190aa2
ILT
5272 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
5273 an 80 column screen. Run maint-deps.
5274
a4f74b58
KC
52752004-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
3beb1315
HPN
52822004-03-09 Hans-Peter Nilsson <hp@axis.com>
5283
5284 * configure: Regenerate for config/accross.m4 correction.
5285
688556b9
AJ
52862004-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
80a19ac8
ILT
52922004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
5293
31058ee3
ILT
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
93f20626
ILT
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
dbd6ec2b
ILT
5314 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
5315
80a19ac8
ILT
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
8ad1c80e
ILT
53252004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
5326
e8ed4ac2
ILT
5327 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
5328 empty string correctly.
5329
4a368ffd
ILT
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
8ad1c80e
ILT
5336 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
5337 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
5338
ef2a223f
MK
53392004-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
5254fd7b
ILT
53452004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
5346
5347 * configure.ac: Add m4_pattern_allow(LIBOBJS).
5348 * configure: Regenerate.
5349
398b3deb
DD
53502004-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
4e394293
KH
53592004-01-15 Kazu Hirata <kazu@cs.umass.edu>
5360
5361 * strdup.c (strdup): Constify the argument.
5362
0046e342
LR
53632004-01-14 Loren J. Rittle <ljrittle@acm.org>
5364
5365 * Makefile.in (distclean): Remove config.cache.
5366
d4f3ce5c
DJ
53672004-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
5e777af5
ILT
53732004-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
c31d56ed
KC
54192004-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
e4796f1c
ILT
54272004-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
4d425229
KG
54402003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5441
5442 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
5443
6b309c6e
DJ
54442003-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
2d6c4025
ILT
54512003-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
2307e075
ILT
54992003-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
a91d1af0
ILT
55052003-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
8d686df2
ILT
55262003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
5527
cbc278f4
ILT
5528 * cp-demangle.c (d_print_function_type): Print the function
5529 parameters with no modifiers.
5530 * testsuite/demangle-expected: Add test case.
5531
8d686df2
ILT
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
adf269c7
BK
55372003-12-15 Brendan Kehoe <brendan@zen.org>
5538
969ac969 5539 * Makefile.in (floatformat.o): Add dependency on
adf269c7
BK
5540 config.h to accompany change of 2003-12-03.
5541
374caa50
ILT
55422003-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
a51753e4
ILT
55582003-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
bee6ab3e
ILT
56082003-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
f26deb3d
ILT
56202003-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
81dc098b
ILT
56302003-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
eb459c81
ILT
56562003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
5657
5658 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
5659 d_demangle.
5660
ad07f5e5
ILT
56612003-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
0ba5c8a2
ILT
56692003-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
bd6946d1
ILT
56752003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
5676
9cca376f
ILT
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
bd6946d1
ILT
5681 * cp-demangle.c: Complete rewrite.
5682
6df5a5c7
MM
56832003-11-19 Mark Mitchell <mark@codesourcery.com>
5684
5685 * cp-demangle.c (demangle_type): Correct thinko in substitution
5686 processing.
5687
a9b571f2
ILT
56882003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
5689
820555e6
ILT
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
c4328d32
ILT
5699 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
5700 cplus_demangle.
5701
a9b571f2
ILT
5702 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
5703
ad37274a
AJ
57042003-10-31 Andreas Jaeger <aj@suse.de>
5705
5706 * floatformat.c (floatformat_always_valid): Add unused attribute.
5707
27eb8ab1
JZ
57082003-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
e0432c1c
JZ
57152003-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
08c5b96d
B
57202003-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
968e3f93
L
57262003-10-16 H.J. Lu <hongjiu.lu@intel.com>
5727
5728 * testsuite/demangle-expected: Update the expected output of
5729 _GLOBAL__I__Z2fnv.
5730
bca48dc6
DJ
57312003-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
b9e8f4b3
DJ
57362003-10-01 Daniel Jacobowitz <drow@mvista.com>
5737
5738 * strerror.c: Don't provide or reference sys_errlist if
5739 strerror is available.
5740
c0590bfd
L
57412003-10-01 H.J. Lu <hongjiu.lu@intel.com>
5742
5743 * configure.in: Check if $MAKEINFO is missing.
5744 * configure: Regenerated.
5745
b033df90
DJ
57462003-09-24 Daniel Jacobowitz <drow@mvista.com>
5747
5748 * configure.in: Use AC_PROG_CPP_WERROR.
5749 * configure: Regenerated.
5750
83c07342
AC
57512003-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
c9fbef12
AC
57752003-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
9c8860c3
DJ
57822003-09-15 Daniel Jacobowitz <drow@mvista.com>
5783
5784 * floatformat.c (floatformat_is_valid): New function.
5785 (get_field, put_field): Correct comments.
5786
13f7d3a1
JZ
57872003-09-06 Josef Zlomek <zlomekj@suse.cz>
5788
5789 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
5790 FIBHEAPKEY_T.
5791
03eec143 57922003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
5793
5794 PR bootstrap/12100
5795 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
5796 * configure: Rebuilt.
5797
238235ef
DJ
57982003-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
2b81b2c9
NN
58092003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
5810
0cf61401 5811 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 5812
7b96f3e4
DS
58132003-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
58202003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
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
6f8507b1
L
58262003-06-26 H.J. Lu <hongjiu.lu@intel.com>
5827
5828 * testsuite/demangle-expected: Add more GNU V3 testcases.
5829
21299dbd
ZW
58302003-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
7468e0b5
ZW
58382003-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
cf8e4b78
DH
58432003-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
aa9dc53d 58522003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 5853
aa9dc53d
ACY
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.
7468e0b5 5860
8191fe81
JDA
58612003-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
8d398258
NC
58662003-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
29ad6d3f
KC
58742003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
5875
5876 * config.table: Accept i[345867]86 variant.
5877
49a19cfd
JB
58782003-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
d5d4eae2
JZ
58872003-05-07 Josef Zlomek <zlomekj@suse.cz>
5888
5889 * splay-tree.c (splay_tree_predecessor): Fix comment.
5890 (splay_tree_successor): Fix comment.
5891
5cc5a0d0
JM
58922003-05-07 Jason Merrill <jason@redhat.com>
5893
9d70d418 5894 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
5895 * configure.in: Add AC_C_BIGENDIAN_CROSS.
5896 * aclocal.m4: Include accross.m4.
5897 * configure, config.in: Regenerate.
5898
05c30f22
KG
58992003-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
41fe9404
CW
59042003-05-03 Carlo Wood <carlo@alinoe.com>
5905
5906 * cp-demangle.c: Fix typo in "char_traints" string-literal.
5907
52dd3224
KG
59082003-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
bd3fbc6b
KG
59132003-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
029bcc09
KG
59242003-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
c9ac9147
KG
59352003-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>.
7468e0b5 5954
c9ac9147
KG
5955 * Makefile.in: Regenerate dependencies.
5956
98475c57
DD
59572003-04-15 DJ Delorie <dj@redhat.com>
5958
5959 * maint-tool (deps): Scan for headers in $srcdir also.
5960
55adc7bd
KG
59612003-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
0ae0f1b0
RS
59702003-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
88702c45
RS
59892003-04-14 Roger Sayle <roger@eyesopen.com>
5990
5991 * strdup.c (strdup): Tweak implementation to use memcpy.
5992
39e8d049
KG
59932003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5994
5995 * configure.in (HAVE_UINTPTR_T): Always define.
5996 * configure: Regenerated.
5997
9f2e0608
AO
59982003-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
dbccdc42
JH
60042003-17-03 Jan Hubicka <jh@suse.cz>
6005
6006 * hashtab.c (htab_traverse_noresize): Break out from ...
6007 * hashtab.c (htab_traverse): ... here.
6008
0a8e3de3
JH
60092003-12-03 Jan Hubicka <jh@suse.cz>
6010
cd22e4af
JH
6011 * hashtab.c (htab_expand): Fix warning.
6012
0a8e3de3
JH
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
8fe85775
CW
60172003-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
3bf27822
MM
60232003-03-03 Mark Mitchell <mark@codesourcery.com>
6024
6025 * cplus-dem.c: Add license exception to copyright notice.
6026
434fa0b8
KG
60272003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6028
6029 * physmem.c: Formatting changes from upstream.
6030
ed935c35
DS
60312003-02-24 Danny Smith <dannysmith@users.source.forge.net>
6032
6033 * physmem.c (physmem_total): Add _WIN32 support.
6034 (physmem_available): Likewise.
6035
7f9fc006
RO
60362003-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
d47f75c4
KG
60422003-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
170230b7
KG
60492003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6050 Richard Earnshaw <rearnsha@arm.com>
6051 Geoffrey Keating <geoffk@apple.com>
7468e0b5 6052
170230b7
KG
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
4a06f7f2
RO
60572003-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
64c7e556
KG
60692003-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
e9019af6
KG
60762003-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.
7468e0b5 6081
a354191e
KG
60822003-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
4876b2b4
DJ
60922003-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
e182f0a3 61082003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
6109
6110 * cplus_dem.c: Fix typo: intializes -> initializes.
6111
3343fdd2
AO
61122003-02-20 Alexandre Oliva <aoliva@redhat.com>
6113
6114 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
6115 config.status.
6116 * configure: Rebuilt.
6117
902cf50c
DJ
61182003-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
7ac27e08
KG
61342003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6135
6136 * acconfig.h: New file. Add uintptr_t.
6137 * config.in: Regenerated.
6138
b3a8389d
JM
61392003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
6140
6141 * libiberty.texi: Update to GFDL 1.2.
6142
d8c22ce7
CC
61432003-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
4ce1921a
CC
61502003-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
93239fdb
AO
61582003-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
74828682
DJ
61632003-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
ece0e59f
CF
61692003-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
55d0e5e0
ZW
61762003-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
120cdf68
JZ
61972003-01-20 Josef Zlomek <zlomekj@suse.cz>
6198
6199 * hashtab.c (htab_expand): Fix allocation of new entries.
6200
90e5b39f
CC
62012003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
6202
6203 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
6204
d7082cd7
CC
6205 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
6206 mkinstalldirs command.
6207
eaed9290
DS
62082002-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
ef4e4181
NC
62132002-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
42766f8d
DJ
62182002-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
783080ab
JJ
62242002-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
7da64d7a
JJ
62292002-10-16 Jakub Jelinek <jakub@redhat.com>
6230
6231 * config.table: Use mh-s390pic for s390x too.
6232
de78f58b
AJ
62332002-10-06 Andreas Jaeger <aj@suse.de>
6234
969ac969 6235 * cplus-dem.c (ada_demangle): Get rid of unneeded
de78f58b
AJ
6236 variable and of strict-aliasing warning.
6237 (grow_vect): Use char as first parameter.
6238
6c5d742e
KG
62392002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6240
6241 * Makefile.in (all): Fix multilib parallel build.
6242
f08b7eee
JDA
62432002-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
8d87f295
NC
62612002-09-19 Nick Clifton <nickc@redhat.com>
6262
6263 * README: Update email addresses for bugs and patches.
6264
6eedb9ca
MS
62652002-09-10 Mike Stump <mrs@apple.com>
6266
6267 * splay-tree.c (splay_tree_successor): Fix comments.
6268
3fd9d606
ZW
62692002-09-11 Zack Weinberg <zack@codesourcery.com>
6270
b2196e8f 6271 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
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
70c4e67a
RS
62782002-09-05 Roger Sayle <roger@eyesopen.com>
6279
6280 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
6281
65b91091
DD
62822002-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
437974a9
NB
62902002-07-29 Neil Booth <neil@daikokuya.co.uk>
6291
6292 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 6293
28a34ec1
JM
62942002-07-10 Jason Merrill <jason@redhat.com>
6295
6296 * cp-demangle.c (demangle_identifier): Support extended Unicode
6297 characters.
6298
84326592
KG
62992002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6300
6301 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 6302 !defined IN_GLIBCPP_V3.
84326592 6303
5d69ba1f
MM
63042002-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
7fda878c
DR
63102002-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
112bae77
PB
63152002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
6316
6317 * Makefile.in (install_to_libdir): Add $(DESTDIR).
6318 (install_to_tooldir): Likewise.
6319
53309d5c
DR
63202002-06-17 Douglas Rupp <rupp@gnat.com>
6321
6322 * lbasename.c: Add 2002 to copyright.
6323 (IS_DIR_SEPARATOR): Remove VMS junk.
6324
045b3a49
GK
63252002-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
e2500fed
GK
63312002-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
9f3dbd92
RL
63392002-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
e4723404
AS
63442002-05-13 Andreas Schwab <schwab@suse.de>
6345
6346 * config.table: Use mh-x86pic also for x86-64.
6347
6706f116
AO
63482002-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
deae2ed9
MM
63542002-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
4fc4e478
RH
63612002-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
bd7e6f2d
PE
63672002-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
a8f55e51
BM
63742002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
6375
de78f58b 6376 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
6377 if it is NULL.
6378
96adcacb
DD
63792002-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
2b613c6a
MM
63862002-03-27 Mark Mitchell <mark@codesourcery.com>
6387
6388 * dyn-string.c: Add libgcc exception to copyright notice.
6389
cd862df8
L
63902002-03-26 H.J. Lu (hjl@gnu.org)
6391
6392 * config.table: Support --with-build-subdir.
6393 * configure.in: Likewise.
6394 * configure: Rebuild.
6395
ed300793
SG
63962002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
6397
6398 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
6399 seen.
6400
b3dd43df
MM
64012002-03-12 Mark Mitchell <mark@codesourcery.com>
6402
6403 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
6404 notice.
6405
50c74579
DR
64062002-03-11 Douglas B Rupp <rupp@gnat.com>
6407
6408 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
6409
957978a4
JB
64102002-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
ccc49bed
AC
64162002-03-06 Andrew Cagney <ac131313@redhat.com>
6417
6418 * floatformat.c (floatformat_arm_ext_big): Delete definition.
6419
48d7db63
PE
64202002-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
af18e951
NB
64272002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
6428
6429 * xmalloc.c (xmalloc_fail): Clarify error message further.
6430
d8d7c3c3
NB
64312002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
6432
6433 * xmalloc.c (xmalloc_fail): Clarify error message.
6434
00c2f96f
JB
64352002-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
b1c1a22f
SS
64462002-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
336669e7
CW
64542002-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
c13db5d1
JM
64652002-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
d74697b8
L
64742002-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
3a441e38
L
64922002-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
6d747e63
PE
64972002-01-31 Phil Edwards <pme@gcc.gnu.org>
6498
6499 * cp-demangle.c: Revert yesterday's change.
6500
46af757b
AM
65012002-01-31 Adam Megacz <adam@xwt.org>
6502
969ac969 6503 * configure.in: Treat mingw the same as cywin
46af757b
AM
6504 wrt HAVE_SYS_ERRLIST.
6505
46ab74b1
PE
65062002-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
e64d0626
MV
65132002-01-22 Momchil Velikov <velco@fadata.bg>
6514
6515 * configure.in (variable detection): Use arrays of unspecified
6516 size instead of plain integers.
6517
9ce3f7e5
DD
65182002-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
0e83ceb1
DR
65372002-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
adddf5bf
KG
65422002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6543
5e65297b
KG
6544 * cp-demangle.c (long_options): Const-ify.
6545 * cplus-dem.c (long_options): Likewise.
6546
adddf5bf
KG
6547 * cplus-dem.c (mystrstr): Delete. All callers changed to use
6548 strstr instead.
6549
a4219437
IR
65502001-12-31 Ira Ruben <ira@apple.com>
6551
6552 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
6553 * configure: Regenerated.
af328d8d
DR
6554
65552001-12-24 Douglas B. Rupp <rupp@gnat.com>
6556
6557 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
6558 * configure: Regenerated.
a4219437 6559
63de15a4
CR
65602001-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
ee262b6f
DR
6566Tue 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
d06ba3c7
RH
65712001-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
e490616e
ZW
65762001-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
97e620cf 65842001-11-26 DJ Delorie <dj@redhat.com>
e490616e 6585 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
6586
6587 * Makefile.in (stamp-h): Depend on Makefile for proper
6588 serialization.
6589 (*-subdir): Depend on config.h for proper serialization.
6590
c3bb7df0
DD
65912001-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
23850d35
KG
65972001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6598
2c47b56b
KG
6599 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
6600 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
6601 is available.
23850d35 6602
7ddfb651
JL
6603Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
6604
d3982b71
JL
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
7ddfb651
JL
6611 * regex.c (PREFIX): Provide an alternate definition for
6612 non-ANSI/ISO compilers.
6613 (ARG_PREFIX): Likewise.
6614
2e683037
JM
66152001-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
f749bd83
AM
66232001-11-03 Alan Modra <amodra@bigpond.net.au>
6624
6625 * configure.in: Cope with missing makeinfo.
55a10d7c 6626 * configure: Regenerate.
f749bd83 6627
26ad2982
KG
66282001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6629
e5969ba6
KG
6630 * hex.c (hex_init): Provide empty stub.
6631
26ad2982
KG
6632 * hex.c (hex_init): Delete.
6633 (_hex_value): Const-ify and initialize at compile-time.
6634
afb649d5
L
66352001-10-19 H.J. Lu <hjl@gnu.org>
6636
6637 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
6638 necessary.
6639
5bed56d9
DD
66402001-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,
4dcc42a3 6644 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
6645 Improve manual formatting.
6646 * functions.texi: Regenerate.
6647
aac04c15
DD
66482001-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.
fae8182a 6660
0e4e9e8f
JM
66612001-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
7f8fa05d
JM
66672001-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
0be6abca
KG
66772001-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
0e30ffc5
DD
66902001-09-29 DJ Delorie <dj@redhat.com>
6691
6692 * configure: Regenerate.
6693
576fb787
KG
66942001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6695
6696 * concat.c: Include stdlib.h.
6697
e922f978
EZ
66982001-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
ae9092da
DD
67162001-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.
fae8182a 6721
aaa5f039
DD
67222001-09-20 DJ Delorie <dj@redhat.com>
6723 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 6724
aaa5f039
DD
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.
fae8182a 6746
c1766881
KG
67472001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6748
6749 * concat.c (reconcat): Fix for traditional C.
6750
ad43d46f
KG
67512001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6752
6753 * concat.c (reconcat): New function.
6754
c1d49704
KG
67552001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6756
c793eea7
KG
6757 * concat.c (vconcat_length, vconcat_copy, concat_length,
6758 concat_copy, concat_copy2): New functions.
6759 (concat): Use vconcat_length/vconcat_copy.
6760
c1d49704
KG
6761 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
6762 Define.
6763
7a98d9b2
KG
67642001-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.
fae8182a 6768
7a98d9b2
KG
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
e2dff3f2
KG
67732001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6774
6775 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
6776
d0708dc1
UD
67772001-08-23 Ulrich Drepper <drepper@redhat.com>
6778
6779 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
6780
67812001-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
ffb9435b
MK
67882001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6789
de78f58b
AJ
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.
ffb9435b 6794
f379eac3
RH
67952001-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
b1c45ae4
CF
6801Tue 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
0310e5ac
AC
68072001-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
8c23e0a4
DB
68162001-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
91625004
CF
68242001-08-17 Christopher Faylor <cgf@cygnus.com>
6825
6826 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
6827 * configure: Regenerate.
6828
9e0ba685
RH
68292001-08-16 Richard Henderson <rth@redhat.com>
6830
6831 * hashtab.c (htab_hash_string): New.
6832
d80dedbe
AC
68332001-08-13 Andrew Cagney <ac131313@redhat.com>
6834
6835 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
6836 name.
6837
ccea0d85
IH
68382001-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
b0e9bc8c 68442001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
6845
6846 * lbasename.c (lbasename): Change function definition to return a
6847 const char pointer.
6848
056400f1
JM
68492001-08-07 Jason Merrill <jason_merrill@redhat.com>
6850
6851 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
6852 for".
6853
4e627c41
RH
68542001-08-03 Richard Henderson <rth@redhat.com>
6855
6856 * Makefile.in (concat.o): Depend on config.h.
6857
b6a2f884
AJ
68582001-07-30 Andreas Jaeger <aj@suse.de>
6859
6860 * concat.c: Include "config.h".
6861
c4b9cfe0
AJ
68622001-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
68682001-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
68732001-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
2cf50fd3
DJ
68792001-07-25 Daniel Jacobowitz <drow@mvista.com>
6880
6881 * Makefile.in (regex.o): Add dependency on config.h.
6882
27ffc806
DD
68832001-07-18 Andreas Schwab <schwab@suse.de>
6884
6885 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
6886 underscore character.
6887
68882001-07-18 Ulrich Drepper <drepper@redhat.com>
6889
6890 * regex.c: Limit string length printed in debug messages to 100
6891 chars.
6892
68932001-07-18 Andreas Jaeger <aj@suse.de>
6894
6895 * regex.c: Place under LGPL version 2.1.
6896
dd771632
JJ
68972001-07-10 Jeff Johnston <jjohnstn@redhat.com>
6898
6899 * Makefile.in: Add support for regex code.
6900 * regex.c: New file.
6901
29650b2b
MK
69022001-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
c8b28221
RH
69082001-06-18 Richard Henderson <rth@redhat.com>
6909
6910 * concat.c: Include <sys/types.h>.
6911
473c2d0b
LR
69122001-06-11 Loren J. Rittle <ljrittle@acm.org>
6913
a4c03da2 6914 bootstrap/3106
473c2d0b
LR
6915 * strerror.c (sys_nerr): Hide the OS header version.
6916 * strsignal.c (sys_nsig): Likewise.
6917
0bdcca68
RH
69182001-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
6de133d3
MK
69232001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
6924
6925 * partition.c: Fix misspelling of `implementation'.
6926
8a153288
TS
69272001-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
641b2721
ZW
69322001-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
5cdba4ff
MM
69402001-05-07 Mark Mitchell <mark@codesourcery.com>
6941
6942 * splay-tree.h (splay_tree_max): New function.
6943 (splay_tree_min): Likewise.
6944
9dab060e
DB
69452001-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
d02af173
ZW
69512001-04-03 Zack Weinberg <zackw@stanford.edu>
6952
6953 * make-temp-file.c (try): Inline.
6954
94b68558
RH
69552001-02-28 Richard Henderson <rth@redhat.com>
6956
6957 * Makefile.in (make-temp-file.o): Depend on config.h.
6958
27f66c0b
KG
69592001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6960
6961 * memchr.c (memchr): Adjust condition to avoid infinite loop.
6962
f1a0345c
JJ
69632001-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
a519fba6
JB
69682001-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
49ee944b
ZW
69742001-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
33437dc7
ZW
69802001-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
7dce2eff
JB
69892001-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
e03a61f1
JM
69992001-03-20 Jason Merrill <jason@redhat.com>
7000
7001 * cplus-dem.c (main): Skip initial $.
7002
8860ddab
MM
70032001-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
2b757d51
NB
70082001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
7009 John David Anglin <dave@hiauly1.hia.nrc.ca>
7010
969ac969
JJ
7011 * lbasename.c: New file.
7012 * Makefile.in: Update for lbasename.
2b757d51 7013
1f50aafb
ZW
70142001-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
d9fd5aae
JDA
70332001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
7034
7035 * cplus-dem.c (main): Cast enum style to int.
7036
4031ed65
LR
70372001-02-16 Loren J. Rittle <ljrittle@acm.org>
7038
7039 * cplus-dem.c (main): Initialize style.
7040
2ca46e8a
PE
70412001-02-02 Phil Edwards <pme@sources.redhat.com>
7042
7043 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
7044
3b60dd8e
BM
70452001-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.
1f50aafb 7060 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
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
584932e9
DD
70672000-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
dac45916
MS
70762000-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
a8e4a997
MS
70832000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7084
7085 * safe-ctype.c: #include "ansidecl.h".
7086 * strtod.c: Likewise.
7087
75444da7
MS
70882000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7089
7090 * strtoul.c: Include safe-ctype.h, not ctype.h.
7091
f6bbde28
ZW
70922000-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
6c1ce62b 71042000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
7105
7106 * Makefile.in (distclean): When cleaning, remove testsuite.
7107
b5d1497d
JM
71082000-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
c6e13630
JM
71132000-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.
f6bbde28 7119 (main): Use standard symbol chars for auto_demangling.
c6e13630 7120
a4c9b97e
MM
71212000-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
3b3bd9a7
L
71262000-11-22 H.J. Lu <hjl@gnu.org>
7127
7128 * cplus-dem.c (main): Handle gnat_demangling.
7129
d1209685
ZW
71302000-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
cf183ac2
HPN
71452000-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
71532000-11-21 H.J. Lu <hjl@gnu.org>
7154
7155 * cplus-dem.c (main): Handle java_demangling.
7156
8bcc782c
KG
71572000-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
29120f44
HPN
71622000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
7163
7164 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
7165 parameter `option'.
7166
0437a5a8
KB
71672000-11-15 Kenneth Block <kenneth.block@compaq.com>
7168
9e038f71 7169 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
7170 be used in GCC.
7171
eab0c1ab 71722000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 7173
29120f44 7174 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
7175 list.
7176
d50d20ec
HPN
71772000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
7178
7179 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
7180 xcalloc depending on htab->return_allocation_failure. Return zero
7181 if calloc fails.
d50d20ec
HPN
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.
c4b9cfe0 7185 Update comment to cover this.
d50d20ec 7186
35e9340f
HPN
71872000-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
ea343d1a 71932000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
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.
d1209685 7199 Rename throughout.
0870bfd6
AS
7200 (result_append): Rename to...
7201 (result_add): ... this, and insert at caret position. Rename
d1209685 7202 throughout.
0870bfd6
AS
7203 (result_append_char): Rename to...
7204 (result_add_char): ... this, and insert at caret position. Rename
d1209685 7205 throughout.
0870bfd6
AS
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.
d1209685 7217 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
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
d1209685
ZW
7221 call to demangle_array_type.
7222 (demangle_array_type): Add parameter to handle pointers to arrays.
7223
f15b9af9
MM
72242000-10-01 Mark Mitchell <mark@codesourcery.com>
7225
7226 * splay-tree.c (splay_tree_insert): Fix formatting.
7227
8f17b5c5
MM
72282000-09-16 Mark Mitchell <mark@codesourcery.com>
7229
7230 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
7231
4eaa189a
MS
72322000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7233
7234 * splay-tree.c: #include <stdio.h>.
7235
29791078
HPN
72362000-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
2c9f4db7
MM
72422000-09-10 Mark Mitchell <mark@codesourcery.com>
7243
7244 * splay-tree.c (splay_tree_predecessor): New function.
7245 (splay_tree_successor): Likewise.
7246
bb22da4b
HPN
72472000-09-10 Hans-Peter Nilsson <hp@axis.com>
7248
7249 * testsuite/demangle-expected: Add four tests for type_info
7250 mangling.
bb22da4b
HPN
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
759e8187
AS
72542000-09-08 Alex Samuel <samuel@codesourcery.com>
7255
7256 * cp-demangle.c: Fix copyright banner.
7257
2ecd81ef
MS
72582000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7259
7260 * md5.c: #include "ansidecl.h".
7261
d93998ec
AS
72622000-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
1056d228
AS
72682000-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
d1209685 7280 parameter.
1056d228
AS
7281 (demangle_class_enum_type): Rename parameter.
7282 (demangle_discriminator): Fix misspelling in comment.
7283
2f31ed7e
DD
72842000-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
02bcb9c6
AS
72892000-09-04 Alex Samuel <samuel@codesourcery.com>
7290
7291 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
7292 <expression>.
7293
aee749cf
AS
72942000-09-04 Alex Samuel <samuel@codesourcery.com>
7295
7296 * cp-demangle.c (demangle_type_ptr): Increment position past
7297 pointer and reference characters.
7298
92a16bbe
AS
72992000-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.
d1209685 7306
31e0ab1f
AS
73072000-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
d1209685 7316 parm number.
31e0ab1f
AS
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
d1209685 7320 substitution_add.
31e0ab1f
AS
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
d1209685 7326 substitutions here.
31e0ab1f
AS
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
d1209685 7334 demangle_template_param.
31e0ab1f
AS
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
ccbc3eb7
HPN
73392000-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
53dce582
RH
73452000-08-28 Richard Henderson <rth@cygnus.com>
7346
7347 * Makefile.in (md5.o): Depend on config.h.
7348
881c6935
JM
73492000-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
a440fd19
AS
73552000-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
d01ce591
AS
73652000-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.
d1209685 7379 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
7380 (demangle_substitution): Remove parameter.
7381 (print_usage): Remove extra fprintf option.
7382
2f59c8eb
GM
73832000-08-24 Greg McGary <greg@mcgary.org>
7384
969ac969 7385 * random.c (end_ptr): Revert previous change.
2f59c8eb 7386
2f26c11d
GM
73872000-08-24 Greg McGary <greg@mcgary.org>
7388
969ac969 7389 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
2f26c11d 7390 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
969ac969 7391 * random.c (end_ptr): Likewise.
2f26c11d 7392
e282c9c9
AS
73932000-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.
d1209685 7404
c9b6494a
ZW
74052000-08-02 Zack Weinberg <zack@wolery.cumb.org>
7406
7407 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
7408
d1209685 74092000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
7410
7411 * config/mh-openedition.h: Added -DLE370 definition.
7412
0aab2795
ME
74132000-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
c2f275e4
RB
74222000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
7423 Jeff Law <law@cygnus.com>
7424
73aa9564
RB
7425 * getcwd.c: Include string.h, stdlib.h for prototypes
7426
c2f275e4 7427 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
7428 * rename.c: Include config.h, unistd.h
7429 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 7430
ccbc3eb7
HPN
74312000-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
3388651c
DB
74452000-07-24 Daniel Berlin <dberlin@redhat.com>
7446
d1209685 7447 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
7448 if (AUTO_DEMANGLING || GNU_DEMANGLING)
7449
0fac482e
AS
74502000-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
8502a100 74562000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
7457 Jeff Law <law@cygnus.com>
7458
c6451ce1
MS
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
cd447360
MS
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.
8502a100 7470
3b58c099
MS
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
8502a100
MS
7476 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
7477
da0c7743
MS
74782000-07-21 Mike Stump <mrs@wrs.com>
7479
7480 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 7481 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 7482
838f8562
KG
74832000-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
e9958132
JM
75022000-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
39a6492f
HPN
75072000-07-17 Hans-Peter Nilsson <hp@axis.com>
7508
7509 * testsuite/regress-demangle (failed test): Show result and
7510 expected output.
7511
6d0be369
AH
75122000-07-07 Andrew Haley <aph@cygnus.com>
7513
7514 * cplus-dem.c (main): fflush() after emitting last char before
7515 waiting for input.
7516
bece74bd
AS
75172000-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.
d1209685 7526
229b8ec7
AS
75272000-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
051664b0
AS
75322000-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.
d1209685 7584
fe06b696
ZW
75852000-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
6223e158
PDM
7592Thu 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
48f3e29b
PDM
7596Thu 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
69197e7e
KG
76042000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7605
7606 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 7607
69197e7e
KG
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'.
d1209685 7626
7eb23b1f
KG
76272000-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
3faa108c
AS
76372000-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
69afa80d
AS
76472000-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.
d1209685 7664
0b72c3df
AC
7665Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
7666
7667 * floatformat.c: Add name to each floatformat field.
7668
270cea06
JL
7669Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
7670
7671 * Makefile.in (objalloc.o): Depend on config.h
7672
d11ec6f0
ZW
76732000-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
f8e2da56
MS
76852000-05-23 Mike Stump <mrs@wrs.com>
7686
7687 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 7688 -j3.
f8e2da56 7689
650f3068
DA
76902000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
7691
7692 * xmalloc.c: Include config.h for HAVE_SBRK definition.
7693
1d2da2e1
HB
76942000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
7695
d1209685 7696 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
7697 probably zero, also eliminate a warning on alpha.
7698
47668d0a
DE
76992000-05-15 David Edelsohn <edelsohn@gnu.org>
7700
c7a79a32 7701 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
7702 on $(enable_shared).
7703
36348eab
JJ
77042000-05-10 Jakub Jelinek <jakub@redhat.com>
7705
7706 * config.table: Use mh-sparcpic for sparc*-*-*.
7707
209bbe34
NC
77082000-05-08 Nick Clifton <nickc@cygnus.com>
7709
7710 * Makefile.in (CFILES): Add strncmp.c.
7711 (NEEDED): Add strncmp.
7712
a85a47fb
KG
77132000-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
4aef973c
PDM
7719Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
7720
7721 * sort.c (UCHAR_MAX): Provide fallback definition.
7722
3b94497c
AO
77232000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7724
7725 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
7726 SUBDIRS.
7727
24eaa47a
KB
77282000-04-28 Kenneth Block <block@zk3.dec.com>
7729 Jason Merrill <jason@casey.cygnus.com>
7730
d1209685
ZW
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.
24eaa47a 7734
a9266bfa
KG
77352000-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
8e02c4d0
JH
7744Thu 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
4feeaae3
KG
77492000-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
18a94a2f
MM
77552000-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
eeb0656f
MM
77622000-04-23 Mark Mitchell <mark@codesourcery.com>
7763
b51024fc
MM
7764 * sort.c (sort_pointers): Fix endianness bugs.
7765
eeb0656f
MM
7766 * sort.c: New file.
7767 * Makefile.in (CFILES): Add sort.c
7768 (REQUIRED_OFILES): Add sort.o.
7769 (sort.o): New target.
7770
7277f72d
MS
77712000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7772
7773 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
7774 4.3BSD systems.
7775
e38992e8
RK
7776Tue 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
498e1ab1
DP
77822000-04-16 Dave Pitts <dpitts@cozx.com>
7783
7784 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 7785
dc17cc7b
RH
77862000-04-05 Richard Henderson <rth@cygnus.com>
7787
7788 * splay-tree.c (splay_tree_remove): New.
7789
b13eb66b
MM
77902000-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.
d1209685 7796
0194e877
ZW
77972000-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
abc61fd4
JL
7804Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
7805
7806 * Makefile.in (partition.o): Depend on config.h
7807
8c5d513f
BS
78082000-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
d9d4fb43
AS
78192000-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.
d1209685 7825
5dc9cffd
ZW
78262000-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
5194cf08
ZW
78322000-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
5ad5a984
ILT
78501999-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
78591999-07-21 Ian Lance Taylor <ian@zembu.com>
7860
7861 From Mark Elbrecht:
7862 * makefile.dos: Remove; obsolete.
7863 * configure.bat: Remove; obsolete.
7864
78651999-07-11 Ian Lance Taylor <ian@zembu.com>
7866
7867 * splay-tree.c (splay_tree_insert): Add initialization to avoid
7868 warning.
7869
aeecce42
MK
78702000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
7871
7872 * pexecute.c: Conditionally include string.h.
5194cf08 7873 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 7874
1eaf7d9c
KG
78752000-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
0fadedb2
GK
78821999-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
08230f26
MM
78871999-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
6de9b8ff
PDM
7894Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
7895
7896 * hashtab.c (sys/types.h): File included.
7897
f3636679
JM
78981999-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
3d3b561f 7903 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
f3636679 7904
36dd3a44
JL
7905Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
7906
7907 * hashtab.c: Include stdio.h.
7908
6e300472
JL
7909Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
7910
7911 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
7912
df548dfc
PDM
7913Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
7914
7915 * xstrdup (sys/types.h): Include this file.
7916
2c375143
NS
79171999-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
a82cecda
JK
79241999-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
ed38f5d5
ZW
79301999-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
b60fe4a7
MM
79391999-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.
5194cf08 7952
3da5522a
KG
79531999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7954
7955 * calloc.c: Add a public domain notice.
7956
d7d36ea8
PDM
7957Mon 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
a2f945c6
VM
7961Fri 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
7f22ec2e
MK
7968Wed 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
7c56a6ce
MM
79761999-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
cd32188b
ME
7981Sun 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
fc232f7a
MM
79851999-10-02 Mark Mitchell <mark@codesourcery.com>
7986
7987 * xmalloc.c (xmalloc): Fix spelling error.
7988 (xcalloc, xrealloc): Likewise.
7989
2a138827
KG
79901999-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
5a657fc3
KG
79991999-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
33c5ddcd
KG
8004Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8005
8006 * xmemdup.c: Include sys/types.h.
8007
b10647f1
JG
80081999-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
3dd6c3af
LV
8013Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
8014
5194cf08 8015 * config.table: Add openedition target.
3dd6c3af
LV
8016 * config/mh-openedition: New file.
8017
19e28e2a
ME
8018Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
8019
8020 * pexecute.c (pexecute): Fill in temp_base when needed.
8021
4dfeccf9
RH
80221999-08-31 Richard Henderson <rth@cygnus.com>
8023
8024 * getpwd.c: Check HAVE_GETCWD before defining it away.
8025
4ac3cb83
KG
80261999-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
e797ff70
KG
80371999-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
5194cf08 8044 ATTRIBUTE_UNUSED.
e797ff70
KG
8045 (main): Constify variable `valid_symbols'.
8046
55247fce
PDM
8047Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
8048
8049 * strtoul.c (strtoul): Add parentheses around && within ||.
8050
76632dd0
DJ
8051Fri 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
d080bbfa
MM
80561999-08-01 Mark Mitchell <mark@codesourcery.com>
8057
8058 * splay-tree.c (splay_tree_insert): Return the new node.
8059
a81c752a
RH
80601999-07-14 Richard Henderson <rth@cygnus.com>
8061
5194cf08 8062 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
8063 prototyping directly.
8064 * choose-temp.c: Conditionally include string.h.
8065
8f1824d9
JM
80661999-07-12 Jason Merrill <jason@yorick.cygnus.com>
8067
8068 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
8069
652374d3
ILT
80701999-07-11 Ian Lance Taylor <ian@zembu.com>
8071
8072 * splay-tree.c (splay_tree_insert): Add initialization to avoid
8073 warning.
8074
a4494286
JM
80751999-07-07 Jason Merrill <jason@yorick.cygnus.com>
8076
8077 * Makefile.in (needed-list): Only include stuff we actually need
8078 for libstdc++.
8079
90e72e20
AS
80801999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
8081
8082 * configure.in (checkfuncs): Add gettimeofday.
8083 * config.in, configure: Regenerated.
8084
b569200e
MK
8085Mon 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
73919448
MS
80911999-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
fee9125c
KG
80961999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8097
8098 * putenv.c: Include ansidecl.h to define `const'.
8099 * setenv.c: Likewise.
8100
71cce721
MN
8101Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
8102
a7c9637f
JL
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
71cce721
MN
8109 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
8110 bytes of space using malloc.
8111
53504016
SG
8112Mon 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
34842539
MH
81181999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8119
8120 * tmpnam.c (L_tmpnam): Fix typo.
8121
3a08531d
ME
8122Thu 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
8db9d08b
JB
81311999-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
6a071f4a
FF
8137Thu 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
7dd88617
DT
8144Mon 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
7a1528bc
MK
8149Sun 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
76409268
JB
81531999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
8154
8155 Fix from Dale Hawkins:
5194cf08 8156 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
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
acbbd80a
MK
8162Thu 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
92523551
JB
81691999-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
36eb4217
MK
8175Sun 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
2c45d1a0
RH
81821999-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
391cdef0
MM
81931999-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
9d229989
JB
81991999-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
7c72138a
TT
82081999-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
ae7f7270
MM
82251999-04-02 Mark Mitchell <mark@codesourcery.com>
8226
8227 * splay-tree.h (splay_tree_compare_pointers): Define.
8228
30f72379
MM
82291999-03-30 Mark Mitchell <mark@codesourcery.com>
8230
8231 * splay-tree.c (splay_tree_compare_ints): Define.
8232
4cc48683
TT
82331999-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
3510075c
JL
82411999-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.
5194cf08 8247
89f602a7
MK
8248Thu 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
9346c824
FS
8263Thu 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
3510075c
JL
8267Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
8268
8269 * config.table: Check cygwin*, not cygwin32*.
8270
8ec65f13
DB
8271Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
8272
8273 * Makefile.in: Change mkstemp -> mkstemps.
8274
687361c8
ME
8275Tue 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.
5194cf08 8281
b207e09c
MK
8282Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
8283
5194cf08 8284 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
8285 platforms that don't have HZ.
8286 * getruntime.c (HZ): Likewise.
8287
16b4c15e
RH
8288Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
8289
8290 * Makefile.in (xstrdup.o): Depend on config.h.
8291
38beb75c
UD
8292Wed 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
7e4311a3
KG
8297Wed 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
3510075c
JL
8301Tue 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
83061999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
8307
8308 * configure.in: Require autoconf 2.12.1 or higher.
8309
fb9939b8
MM
83101998-12-30 Michael Meissner <meissner@cygnus.com>
8311
8312 * random.c (NULL): Don't redefine NULL if it is already defined.
8313
087aa398
KG
8314Tue 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.
38beb75c 8319
087aa398 8320 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
8321 (snarf_numeric_literal): Constify first parameter.
8322 (code_for_qualifier): Avoid a gcc extension, make the parameter an
8323 int, not a char.
087aa398
KG
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
c4b9cfe0 8336 avoid ambiguous `else'.
38beb75c 8337
087aa398 8338 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
8339 `cstart' and `cend' to unsigned char. Cast the argument of macro
8340 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
8341
8342 * objalloc.c (free): Add prototype.
8343
21f2174d
HPN
8344Sun 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
3510075c
JL
8348Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
8349
8350 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 8351 doesn't exist.
3510075c 8352 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 8353
e8fc8222
AM
8354Fri 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
3510075c
JL
83601998-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.
11a0bb74 8366
f4f30aa1
JL
8367Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8368
11a0bb74
KG
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.
38beb75c 8375
11a0bb74
KG
8376 * mkstemp.c: Don't check IN_GCC anymore.
8377 * pexecute.c: Likewise.
8378 * splay-tree.c: Likewise.
38beb75c 8379
11a0bb74
KG
8380 * strchr.c (strchr): Use `const', not `CONST'.
8381 * strrchr.c (strrchr): Likewise.
8382 * strtol.c (strtol): Likewise.
8383 * strtoul.c (strtoul): Likewise.
8384
70d5ccef
DT
8385Fri 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
c4b9cfe0
AJ
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.
70d5ccef 8401 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 8402 function.
70d5ccef 8403 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 8404 style for this case is the same as ARM.
70d5ccef
DT
8405 (demangle_args): handle EDG_DEMANGLING style; support HP style.
8406 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
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.
70d5ccef 8410 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 8411 include template args in string defining class.
70d5ccef
DT
8412 (demangle_class_name): use demangel_arm_hp_template.
8413 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
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.
70d5ccef 8417 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
8418 styles. global destructor and constructor for HP style are same
8419 as for ARM style. Same for local variables.
70d5ccef
DT
8420 (demangle_qualified): handle EDG_DEMANGLING style.
8421 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
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.
70d5ccef 8429 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 8430 value param for HP/aCC.
70d5ccef 8431 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 8432 literal parameter for HP aCC.
70d5ccef
DT
8433 (recursively_demangle): new function
8434 (snarf_numeric_literal): new function.
8435 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 8436 to message.
70d5ccef 8437
8d525fa8
CF
8438Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
8439
8440 * pexecute.c: Remove obsolete ifdefed cygwin code.
8441
9b1a92d8
KG
8442Fri 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
c85c3232
MS
84491998-11-25 Mike Stump <mrs@wrs.com>
8450
8451 * Makefile.in (splay-tree.o): Add config.h dependency.
8452
35a6cd99
KG
8453Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8454
8455 * configure.in: Use AC_PREREQ(2.12.1).
8456
6e6e34b7
BK
84571998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
8458
5194cf08 8459 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 8460
59b67c11
JL
8461Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
8462
8463 * mpw.c (mpw_access): Add missing parens.
8464
a6458d1d
KG
8465Thu 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
3510075c
JL
8471Thu 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
8476Wed 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
a9acf741
KG
8481Fri 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
a49fb37a
AM
8489Fri 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
0e714131
MM
84951998-11-08 Mark Mitchell <mark@markmitchell.com>
8496
ec2288ff
MM
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
0e714131
MM
8501 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
8502 not internal_cplus_demangle.
8503
2931b6d4
KG
8504Sat 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
dd8f3ed5
GN
8510Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
8511
5194cf08
ZW
8512 * configure.in: detect cygwin* instead of cygwin32*
8513 * configure: regenerate
dd8f3ed5 8514
c5f7c445
KG
8515Mon 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
c4b9cfe0
AJ
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.
c5f7c445 8525
ad3ef78e
MM
85261998-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
224301c1
MM
85311998-10-25 Mark Mitchell <mark@markmitchell.com>
8532
8533 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
8534 anonymous namespaces.
38beb75c 8535
d9db46fd
MM
85361998-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.
224301c1 8552
b056ad1c
KG
8553Thu 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
ed87f9c8
MM
85581998-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
e0c13971
AS
8565Tue 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
91e0f659
KG
8570Thu 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
73aeb2ff
JL
8601Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
8602
5194cf08
ZW
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.
ae76f1be 8606
73aeb2ff
JL
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
dd8f3ed5
GN
8611Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
8612
5194cf08 8613 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 8614
f77d8413
MT
8615Sun 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
ca6b370d
JL
8619Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
8620
8621 * Merge egcs & devo libiberty.
8622
719bb4e3 86231998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
ab4856b1
ML
8624
8625 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
8626
96e88994
KG
8627Mon 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
c4b9cfe0
AJ
8630 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
8631 IN_GCC.
96e88994
KG
8632
8633 * vasprintf.c: Include stdarg.h/varargs.h first.
8634
8635 * vprintf.c: Likewise.
8636
3f3726a3
JL
8637Sat 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.
7520c31b 8641 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
f45da49c 8642 * getopt1.c, obstack.c: Similarly.
16ba4214 8643 * Makefile.in: Build mkstemp.o
3f3726a3 8644
ca6b370d
JL
8645Tue 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
28235a5c
MK
8651Wed 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
5210f3d0
JM
86571998-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
a7825625
KG
8662Mon 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
ca6b370d
JL
8667Sat 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
8674Thu 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
8691Thu 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
4d17a06f
MM
8696Tue 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
ca6b370d
JL
8713Mon 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
d94f5c58
KG
8720Sun 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
ca6b370d
JL
8725Wed 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
8732Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
8733
8734 * cplus-dem.c (demangle_nested_args): Return a value.
9923cc56 8735
ca6b370d
JL
8736Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
8737
8738 * cplus-dem.c (string): Move definition before work_stuff.
8a2a7ea2
MM
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
38beb75c 8747 functions.
8a2a7ea2
MM
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
38beb75c 8753 code.
8a2a7ea2
MM
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.
38beb75c 8767
ca6b370d
JL
8768Thu 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
8773Mon 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
8778Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
8779
8780 * obstack.c: Update to latest FSF version.
8781
8782Mon 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.
9923cc56 8786
6391b50a
MK
8787Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
8788
8789 * configure.in (checkfuncs): Add missing "'".
8790
ca6b370d 8791Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
10c62dce 8792
ca6b370d
JL
8793 * obstack.c (_obstack_memory_used): Elide this function if we're
8794 on a system with GNU libc.
10c62dce 8795
ca6b370d 8796Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
75f6bf44 8797
ca6b370d 8798 * Makefile.in (distclean): Remove config.log.
75f6bf44 8799
ca6b370d 8800Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7b195f77 8801
ca6b370d
JL
8802 * Makefile.in (distclean): Don't remove alloca-conf.h.
8803
8804Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
8805
8806 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7b195f77 8807
1cc75298
MM
88081998-05-21 Mark Mitchell <mmitchell@usa.net>
8809
8810 * cplus-dem.c (do_type): Handle volatile qualification.
38beb75c 8811
39d65850
MH
88121998-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
c2953795
JL
8824Sat 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
d6f4ec51
KG
8829Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8830
3affd5f0
JL
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
8838Wed 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
8844Fri 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
8850Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
8851
8852 * configure.in: Add *-*-mingw32* case.
8853 * configure: Rebuild.
8854
8855Wed 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
8870Tue 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
8930Mon 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.
c4b9cfe0 8945 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
3affd5f0
JL
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
8960Sun 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
8977Fri 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.
d6f4ec51 8985
63586755
PS
8986Fri 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
07623417
AM
8990Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
8991
8992 * cplus-dem.c (demangle_qualified): Replace missing else.
8993
7bf40741
AS
8994Sun 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
5e5199e8
AM
8999Wed 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.
38beb75c 9003 (cplus_demangle): Initialize squangle info, then call
5e5199e8 9004 internal_cplus_demangle. (Most code moved there as well)
38beb75c 9005 (internal_cplus_demangle): New function, performs most of what use
5e5199e8
AM
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.
38beb75c 9009 (demangle_signature, demangle_template, demangle_class): Add
5e5199e8
AM
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
3affd5f0 9018Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9ee02b5c 9019
3affd5f0 9020 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
f9c85454 9021
0a9e7530
MH
9022Thu 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
b9fb3c42
ILT
9027Mon 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
3affd5f0
JL
9031Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
9032
9033 * choose-temp.c: Sync with copy in gcc.
9034
b134508b
ILT
9035Thu 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
5890bc92
JL
9040Tue 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
f5c3ae66
MH
9045Fri 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
3affd5f0
JL
9051Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
9052
5194cf08
ZW
9053 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
9054 since it gets built automatically
3affd5f0 9055
c00f2b9d
MS
9056Sun 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
76a8b46e
JL
9061Tue 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
9067Mon 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
5890bc92
JL
9072Sun 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
3affd5f0 9077Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
1ce26fc4 9078 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
77aff459 9079
1ce26fc4
JL
9080 Add mingw32 support.
9081 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
9082 (pwait): New function for mingw32.
77aff459 9083
1ce26fc4
JL
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.
77aff459 9090
1ce26fc4 9091Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
84f79fea
JL
9092
9093 * choose-temp.c: Sync with gcc version.
9094
1ce26fc4
JL
9095Tue 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
e7757d69
JL
9103Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
9104
9105 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
9106
8b715b2a
JL
9107Wed 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
5890bc92 9110 was already defined previously.
8b715b2a
JL
9111
9112Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
9113
9114 * Makefile.in (INSTALL): Use ../install-sh, not install.
9115
0c23b0b2
JG
9116Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
9117
9118 * Makefile.in (CFILES): Add pexecute.c.
9119
a6e74b83
ILT
9120Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
9121
9122 * asprintf.c: Consistently use either stdarg or varargs.
9123
19ddc834
JM
9124Tue 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
9129Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
9130
9131 * README: Fix configuration instructions.
9132
9133Mon 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
5194cf08 9139 * pexecute.c: Use spawn if __CYGWIN32__.
19ddc834
JM
9140
9141 1997-08-08 Paul Eggert <eggert@twinsun.com>
9142
5194cf08 9143 * pexecute.c: Include "config.h" first, as per autoconf manual.
19ddc834
JM
9144
9145 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
9146
5194cf08
ZW
9147 * pexecute.c (fix_argv): New function.
9148 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
9149 Add underscore to cwait function call.
19ddc834 9150
a3a5b5b7
MM
9151Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
9152
5194cf08
ZW
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.
a3a5b5b7 9157
19ddc834
JM
9158Wed 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
c4b9cfe0 9162 strncasecmp.o.
19ddc834
JM
9163
9164Thu 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
9172Wed 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
19ddc834
JM
9176Fri 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
19ddc834
JM
9182Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
9183
9184 * argv.c (dupargv): New function, duplicate an argument vector.
9185
6599da04
JM
9186Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
9187
9188 * config/mh-cygwin32: also build random.o
9189
9190Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
9191
9192 * cplus-dem.c: Add 'extern' to prepends_underscore.
9193
3510075c
JL
9194Wed 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
6599da04
JM
9200Tue 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
9204Tue 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
9215Thu 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
9220Tue 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
9243Tue 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
9248Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
9249
9250 * configure.in: Don't turn on multilib here.
9251
9252Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
9253
38beb75c 9254 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
6599da04
JM
9255 elided; needed by gdb and not present in libc.
9256
9257Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
9258
9259 * Makefile.in (clean): Remove tmpmulti.out.
9260
9261Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
9262
38beb75c 9263 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
6599da04
JM
9264 Add new floatformat, mainly for ARM doubles.
9265
9266Mon 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
9271Fri 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
9276Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
9277
9278 * makefile.vms: Add objalloc.
9279
9280Mon 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
9289Fri 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
9303Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
9304
9305 * objalloc.c: Include <stdio.h>.
9306
9307Mon 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
9314Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
9315
9316 * obstack.c: Update to current FSF version.
9317
9318Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
9319
38beb75c 9320 * cplus-dem.c: Add prototypes for all static functions.
6599da04
JM
9321 (mystrstr): Make static. Make arguments and result const.
9322 (cplus_match): Remove; not used.
9323
9324Tue 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
9329Tue 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
9335Wed 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
9340Fri 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
9345Thu 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
9350Tue 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
9357Thu 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
9363Thu 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
9369Mon 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
9374Mon 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
9378Mon 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
9385Mon 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
9389Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9390
38beb75c
UD
9391 * cplus-dem.c: Revert last two commits due to conflicts with
9392 hpux system headers.
6599da04
JM
9393
9394Wed 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:
38beb75c 9397 Revert last commit due to conflicts with hpux system headers.
6599da04
JM
9398
9399Wed 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
9404Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
9405
38beb75c 9406 * alloca.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9407 Don't redefine NULL.
9408 * argv.c: Move prototypes to libiberty.h.
38beb75c 9409 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
9410 Don't redefine NULL.
9411 Use casts to eliminate compiler warnings.
38beb75c 9412 * spaces.c: Remove prototypes for malloc and free which are
6599da04
JM
9413 already in libibrty.h.
9414 * strcasecmp.c: Use casts to eliminate compiler warnings.
38beb75c 9415 * vasprintf.c: Include libiberty.h for definition of malloc.
6599da04
JM
9416 Don't redefine NULL.
9417 * vprintf.c: Include stdarg.h if __STDC__.
9418
9419Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
9420
9421 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
9422
9423Fri 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
9428Tue 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
9433Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
9434
9435 * fnmatch.c: Undef const if not __STDC__.
9436
9437Thu 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
9444Wed 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
9449Fri 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
9454Thu 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
9461Thu 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
9465Tue 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
9472Sat 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
9477Thu 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
9482Sun 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
9488Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
9489
9490 * config.h-vms: New file.
9491 * makefile.vms: Use it.
9492
9493Wed 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
9498Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
9499
9500 * Makefile.in (distclean): Add multilib.out.
9501
9502Thu 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
9507Mon 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
9519Tue 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
9524Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9525
9526 * Makefile.in (docdir): Removed.
9527
9528Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9529
9530 * Makefile.in (oldincludedir): Removed.
9531
9532Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
9533
5194cf08 9534 * Makefile.in (datadir): Set to $(prefix)/share.
6599da04
JM
9535
9536Thu 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
9541Tue 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
9547Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
9548
9549 * pexecute.c: New file.
9550
9551Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
9552
9553 * xmalloc.c: Declare sbrk.
9554
9555Sat 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
9560Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
9561
9562 * xstrerror.c: Include <stdio.h>.
9563
9564Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
9565
9566 * Makefile.in (CFILES): Add atexit.c.
9567
9568Sun 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
9572Wed 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
9578Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
9579
5194cf08 9580 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6599da04
JM
9581 Reverts Feb 8, 1995 change.
9582
9583Mon 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
9589Sat 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
9594Thu 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
9599Mon 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
9604Tue 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
9609Fri 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
9614Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
9615
9616 * mpw.c (mpw_open): Add debugging output option.
9617
9618Wed 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
9622Tue 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).
38beb75c 9626
6599da04
JM
9627Tue 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
9632Mon 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
9638Wed 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
9644Thu 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
9651Tue 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
9656Wed 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
9662Thu 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
9669Mon 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
9675Mon 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
9680Sat 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
9687Tue 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
9692Tue 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
9696Tue 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
9702Tue 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
9707Thu 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
9712Tue 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
9724Sun 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
9733Sun 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
9738Thu 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
9743Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
9744
9745 * configure.in: Correct sed call.
9746
9747Mon 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
9755Tue 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
9763Thu 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
9772Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
9773
9774 * Makefile.in (BISON): Remove macro.
9775
9776Tue 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
9786Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
9787
9788 * Makefile.in (maintainer-clean): New synonym for distclean.
9789
9790Mon 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
9795Tue 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
9802Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
9803
9804 * config.table (i386-*-win32): New.
9805
9806Fri 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
9813Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
9814
9815 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
9816
9817Fri 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
9824Thu 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
9829Wed 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
5194cf08 9834 <stddef.h>.
6599da04
JM
9835 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
9836
9837Thu 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
9846Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9847
9848 * Makefile.in: Massage broken shells that require 'else true'.
9849
9850Sat 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
9858Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
9859
9860 * win32.c: New file.
9861
9862Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9863
9864 * dummy.c: #include "alloca-conf.h".
9865
9866Wed 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
9871Mon 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
9883Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
9884
9885 * vmsbuild.com (config.h): Add `#define NEED_basename'.
9886
9887Tue 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
9893Sat 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
9905Thu 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
9911Tue 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
9917Mon 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
9924Thu 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
5194cf08 9927 ansidecl.h directly.
6599da04
JM
9928
9929Wed 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
5194cf08 9932 xrealloc.
6599da04 9933 (-DMAIN): Don't rely on an externally-defined version number;
5194cf08
ZW
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.
6599da04
JM
9938
9939Tue 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
9984Fri 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
9988Thu 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
9994Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9995
9996 * config.table: Fix --enable-shared logic for native builds.
9997
9998Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
9999
10000 * cplus-dem.c (demangle_template): Demangle bool literals properly.
10001
10002Mon 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
10007Wed 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
10015Fri 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
10025Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
10026
10027 * basename.c (basename): Change argument to be const.
10028
10029Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
10030
10031 * Makefile.in (lneeded-list): Don't worry about xmalloc.
10032
10033Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
10034
10035 * Makefile.in (distclean): Delete xhost-mkfrag.
10036
10037Thu 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
10041Wed 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
10050Wed 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
10056Sat 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
10062Thu 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
10067Mon 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
10072Tue 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
10077Wed 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
10085Sun 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
10092Thu 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
10097Wed 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
10103Fri 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
10108Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
10109
10110 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5194cf08 10111 the type index is greater than 9.
6599da04
JM
10112
10113Wed 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
10119Wed 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
38beb75c 10126Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6599da04 10127
38beb75c 10128 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
6599da04
JM
10129 xxx<ch=81>.
10130
10131Mon 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
10135Sat 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
10142Wed 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
10147Mon 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
10153Mon 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
10159Thu 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
10170Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
10171
10172 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5194cf08 10173 space.
6599da04
JM
10174 (gnu_special): Demangle template and qualified names in a vtable name.
10175
10176Fri 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
10186Fri 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
10191Wed 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
10197Fri 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
10202Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
10203
10204 * cplus-dem.c (demangle_fund_type): Grok bool.
10205
10206Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
10207
38beb75c 10208 * config.table: Add go32
6599da04
JM
10209 * config/mh-go32: New template.
10210
10211Fri 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
10215Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10216
5194cf08
ZW
10217 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
10218 Declare strlen to return int. Don't include stddef.h.
6599da04
JM
10219
10220Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
10221
5194cf08
ZW
10222 * getopt.c: Delete use of IN_GCC to control whether
10223 stddef.h or gstddef.h is included.
6599da04
JM
10224
10225Thu 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
10230Wed 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
10235Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
10236
10237 * cplus-dem.c (optable): Add new[] and delete[].
10238
10239Fri 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
10244Wed 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
10250Sat 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
10255Thu 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
10260Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
10261
10262 * memmove.c: Re-wrote; placed in public domain.
10263
10264Wed 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
10269Mon 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
10274Mon 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
10279Sun 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
10284Thu 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.
3d3b561f
ML
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.
6599da04
JM
10293
10294Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10295
5194cf08
ZW
10296 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
10297 Test just __STDC__, not emacs.
6599da04
JM
10298
10299Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
10300
5194cf08
ZW
10301 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
10302 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
6599da04
JM
10303
10304Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
10305
5194cf08 10306 * getopt.c (_NO_PROTO): Define before config.h is included.
6599da04
JM
10307
10308Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10309
5194cf08 10310 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
6599da04
JM
10311 <config.h> only under these, else "config.h".
10312
10313Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
10314
5194cf08
ZW
10315 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
10316 <config.h> instead of "config.h".
6599da04
JM
10317
10318Sun 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
10325Thu 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
10333Wed 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
10339Tue 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
10344Sat 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
10349Thu 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
10383Tue 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
10392Tue 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
10396Sun 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
10404Sat 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
10409Fri 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
10418Wed 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
10423Fri 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
10430Mon 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
10438Tue 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
10443Tue 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
10448Fri 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
10455Tue 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
10459Sat 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
10470Fri 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
10476Thu 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
10481Wed 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
10486Wed 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
10492Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
10493
10494 * Makefile.in: pass SHELL to recursive make
10495
10496Thu 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
10501Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10502
10503 * config.table: Make *-*-hiux* use mh-hpux.
10504
10505Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10506
10507 * config.table: Add * to end of all OS names.
10508
10509Tue 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
3d3b561f
ML
10512 not duplicated, as multiple instances of the same object file in
10513 a library causes problems on some machines
6599da04
JM
10514
10515Mon 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
10519Fri 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
10528Fri 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
10533Thu 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
10538Wed 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
10543Wed 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
10548Mon 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
10552Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
10553
10554 * cplus-dem.c: fix bug in constructor/destructor
10555
10556Tue 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
10560Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
10561
10562 * cplus-dem.c: Fix demangle_template prototype
10563
10564Fri 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
10571Wed 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
10576Fri 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
10581Fri 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
10586Tue 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
10591Wed 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
10596Sun 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
10602Sat 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
10608Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
10609
10610 * cplus-dem.c: Fix a comment.
10611
10612Sat 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
10616Fri 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
38beb75c 10620 doesn't use alloca.
6599da04
JM
10621
10622Tue 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
10627Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
10628
10629 * Makefile.in: Remove obsolete `demangle' target.
10630
10631Thu 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
10637Mon 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
10647Mon 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
10653Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
10654
10655 * Makefile.in (TAGS): make work when srcdir != objdir.
10656
10657Sun 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
10663Tue 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
10673Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10674
10675 * Makefile.in: remove parentdir support
10676
10677Wed 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
10681Tue 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
10686Fri 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
10690Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
10691
5194cf08 10692 (merge changes from dlong@cse.ucsc.edu)
6599da04
JM
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
10702Fri 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
10708Fri 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
10712Tue 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
10717Tue 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
10723Sun 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
10729Wed 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
10734Tue 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
10739Tue 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
10744Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
10745
10746 * cplus-dem.c: Declare strstr return type.
10747
10748Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
10749
10750 * strsignal.c: Add some AIX signals.
10751
10752Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
10753
10754 * Makefile.in (MAKEOVERRIDES): Define to be empty.
10755
10756Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
10757
10758 * Makefile.in: add installcheck & dvi targets
10759
10760Thu 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
10765Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
10766
10767 * cplus-dem.c: Replace all references to cfront with ARM.
10768
10769Fri 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
10774Sat 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
10781Thu 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
10786Thu 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
10797Tue 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
10802Thu 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.
29120f44 10809 * cplus-dem.c (gnu_special): Recognize static data members that
6599da04
JM
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
10817Mon 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
10825Tue 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
10831Wed 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
10839Thu 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
10852Wed 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
10862Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
10863
10864 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
10865
10866Tue 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
10872Fri 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
10877Thu 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
10883Fri 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
10888Thu 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
10893Thu 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
10897Wed 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
10906Sat 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
10912Mon 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
10918Wed 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
10923Thu 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
3d3b561f 10926 as a time optimization.
6599da04
JM
10927
10928 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
3d3b561f 10929 be more expensive than simply demangling.
6599da04
JM
10930
10931 * cplus-dem.c (cplus_match): new function.
10932
10933Tue 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
10938Sun 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
10948Sat 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
10953Fri 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
10958Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
10959
10960 * Makefile.in: always create installation directories.
10961
10962Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
10963
f33a23a0 10964 * Makefile.in: clean up definition of CFILES, more comments
6599da04
JM
10965
10966Sat 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
10971Sat 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
10977Mon 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
10985Fri 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
10991Fri 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
10997Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
10998
10999 * bcopy.c, strerror.c, strsignal.c: Lint.
11000
11001Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11002
11003 * getopt.c: merge changes from make.
11004
11005Thu 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
11011Tue 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
11018Wed 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
11022Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
11023
11024 * getopt.c, getopt1.c: merged largely gratuitous, mostly
3d3b561f 11025 whitespace diffs from other prep distributions.
6599da04
JM
11026
11027Mon 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
11032Mon 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
11038Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
11039
11040 * functions.def: Use proper prototype for strtoul.
11041
11042Fri 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
11048Wed 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
11053Tue 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
11058Mon 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
11063Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
11064
11065 * configure.in, config/mh-solaris: add solaris2 config support.
11066
11067Fri 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
11072Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
11073
11074 * getopt.c: merged changes from make-3.62.11.
11075
11076Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
11077
11078 * getopt.c: merged changes from bison-1.18.
11079
11080Tue 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
11088Wed 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
11110Mon 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.
3d3b561f 11115 Removed MINUS_G. Default CFLAGS to -g.
6599da04
JM
11116
11117Mon 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
11129Fri 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
11134Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
11135
11136 * argv.c, dummy.c: Lint.
11137
11138Tue 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
11146Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
11147
11148 * getopt.c: Lint.
11149
11150Fri 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
11155Tue 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
11161Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
11162
11163 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
11164
11165Thu 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
11170Sat 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
11175Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
11176
11177 * added check target.
11178
11179Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
11180
11181 * argv.c: #include alloca-conf.h (needed by AIX).
11182
11183Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
11184
11185 * Makefile.in, configure.in: removed traces of namesubdir,
3d3b561f
ML
11186 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
11187 copyrights to '92, changed some from Cygnus to FSF.
6599da04
JM
11188
11189Sat 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
11194Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
11195
11196 * makefile.dos: Remove NUL to keep patch from failing.
11197
11198Thu 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
11202Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
11203
c4b9cfe0 11204 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
6599da04
JM
11205
11206Sat 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
11213Fri 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
11220Thu 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
11225Tue 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
11247Tue 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
11252Mon 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
11258Wed 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.
38beb75c 11263
6599da04
JM
11264
11265Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
11266
11267 * Makefile.in: infodir belongs in datadir.
11268
11269Fri 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
3d3b561f
ML
11272 can't cope. added standards.text support. install using
11273 INSTALL_DATA.
6599da04
JM
11274
11275 * configure.in: remove commontargets as it is no longer a
3d3b561f 11276 recognized hook.
6599da04
JM
11277
11278Thu 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
3d3b561f
ML
11281 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
11282 and mandir now keyed off datadir by default.
6599da04
JM
11283
11284Fri 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
11291Fri 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
11297Fri 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
11305Thu 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
11315Thu 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
11325Tue 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
11336Tue 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
11346Sat 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
11350Sun 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
11355Sun 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
11360Fri 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
11367Thu 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
11392Tue 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
11398Fri 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
11411Tue 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
11416Local Variables:
11417version-control: never
11418End: