x86: Correct unwind information for the second PLT
[deliverable/binutils-gdb.git] / libiberty / ChangeLog
CommitLineData
f8ad2513
NC
12017-08-31 Richard Biener <rguenther@suse.de>
2
3 PR lto/81968
4 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
5 Keep names of removed global symbols.
6
72017-08-29 Tony Reix <tony.reix@atos.net>
8
9 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
10 Improve .go_export csect handling. Don't make assumptions
11 on containing section or number of auxiliary entries.
12
132017-08-28 Richard Biener <rguenther@suse.de>
14
15 PR lto/81968
16 * simple-object-elf.c (simple_object_elf_copy_lto_debug_section):
17 Adjust field with for sh_type write, set SHF_EXCLUDE only for
18 removed sections.
19
202017-08-22 Richard Biener <rguenther@suse.de>
21
22 PR lto/81925
23 * simple-object-elf.c (simple_object_elf_write_shdr): Adjust
24 type of sh_addralign and sh_entsize and properly write
25 sh_entsize as Elf_Addr.
26 (simple_object_elf_write_to_file): Read sh_entsize as Elf_Addr.
27
282017-08-21 Richard Biener <rguenther@suse.de>
29
30 * simple-object-common.h (struct simple_object_functions): Add
31 copy_lto_debug_sections hook.
32 * simple-object.c: Include fcntl.h.
33 (handle_lto_debug_sections): New helper function.
34 (simple_object_copy_lto_debug_sections): New function copying
35 early LTO debug sections to regular debug sections in a new file.
36 (simple_object_start_write): Handle NULL segment_name.
37 * simple-object-coff.c (simple_object_coff_functions): Adjust
38 for not implemented copy_lto_debug_sections hook.
39 * simple-object-mach-o.c (simple_object_mach_o_functions): Likewise.
40 * simple-object-xcoff.c (simple_object_xcoff_functions): Likewise.
41 * simple-object-elf.c (SHT_NULL, SHT_SYMTAB, SHT_RELA, SHT_REL,
42 SHT_GROUP): Add various sectopn header types.
43 (SHF_EXCLUDE): Add flag.
44 (Elf32_External_Sym, Elf64_External_Sym): Add symbol struct.
45 (ELF_ST_BIND, ELF_ST_TYPE, ELF_ST_INFO): Add accessors.
46 (STT_OBJECT, STT_FUNC, STT_TLS, STT_GNU_IFUNC): Add Symbol types.
47 (STV_DEFAULT): Add symbol visibility.
48 (SHN_COMMON): Add special section index name.
49 (struct simple_object_elf_write): New.
50 (simple_object_elf_start_write): Adjust for new private data.
51 (simple_object_elf_write_shdr): Pass in values for all fields
52 we write.
53 (simple_object_elf_write_to_file): Adjust. Copy from recorded
54 section headers if requested.
55 (simple_object_elf_release_write): Release private data.
56 (simple_object_elf_copy_lto_debug_sections): Copy and rename sections
57 as denoted by PFN and all their dependences, symbols and relocations
58 to the empty destination file.
59 (simple_object_elf_functions): Adjust for copy_lto_debug_sections hook.
60
de837d77
JK
612017-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 * dwarfnames.c (DW_FIRST_IDX, DW_END_IDX, DW_IDX, DW_IDX_DUP): New.
64
f8ad2513
NC
652017-06-07 Tony Reix <tony.reix@atos.net>
66 Matthieu Sarter <matthieu.sarter.external@atos.net>
67 David Edelsohn <dje.gcc@gmail.com>
68
69 * simple-object-xcoff.c (simple_object_xcoff_find_sections):
70 Search symbol table for .go_export symbol and apply pfn if found.
71
5b4a1ff3
EZ
722017-05-31 DJ Delorie <dj@redhat.com>
73
74 * configure.ac (strnlen): Add to AC_CHECK_DECLS.
75 * configure: Likewise.
76 * config.in: Add HACE_DECL_STRNLEN.
77
d7e2ebe7
IB
782017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
79
80 * d-demangle.c (dlang_identifier): Prefix mangled init symbols
81 with `initializer for'.
82 * testsuite/demangle-expected: Update tests.
83
842017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
85
86 * d-demangle.c (dlang_call_convention_p): Move declaration
87 before dlang_type.
88 (dlang_type): Handle function types.
89 * testsuite/d-demangle-expected: Add tests.
90
912017-05-27 Iain Buclaw <ibuclaw@gdcproject.org>
92
93 * d-demangle.c (dlang_parse_real): Remove stack buffer, write
94 the demangled hexadecimal directly to string.
95 * testsuite/d-demangle-expected: Add tests.
96
f8ad2513
NC
972017-05-24 Eli Zaretskii <eliz@gnu.org>
98
99 * waitpid.c (wait) [__MINGW32__]: Define as a macro
100 that calls _cwait, so that this function works on MinGW.
101
d7e2ebe7
IB
1022017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
103
104 * d-demangle.c (dlang_hexdigit): New function.
105 (ascii2hex): Remove function.
106 (dlang_parse_string): Update to call dlang_hexdigit.
107 * testsuite/d-demangle-expected: Add tests.
108
1092017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
110
111 * d-demangle.c (strtol): Remove declaration.
112 Updated all callers to use dlang_number.
113 (dlang_number): New function.
114 (dlang_value): Moved check for ISDIGIT into dlang_parse_integer.
115 * testsuite/d-demangle-expected: Add tests.
116
1172017-05-02 Iain Buclaw <ibuclaw@gdcproject.org>
118
119 * d-demangle.c (dlang_parse_symbol): Remove function.
120 (dlang_parse_qualified): New function.
121 (dlang_parse_mangle): New function.
122 (dlang_type): Update to call dlang_parse_qualified.
123 (dlang_identifier): Update to call either dlang_parse_qualified or
124 dlang_parse_mangle.
125 (dlang_type_modifier_p): Remove function.
126 (dlang_call_convention_p): Don't allow type modifiers in mangle.
127 (dlang_template_args): Update to call dlang_identifier.
128 (dlang_demangle): Update to call dlang_parse_mangle.
129 * testsuite/d-demangle-expected: Add tests.
130
1312017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
132
133 * d-demangle.c (dlang_value): Add comment explaining why cases for
134 digits are required.
135 * testsuite/d-demangle-expected: Update integer value tests.
136
1372017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
138
139 * d-demangle.c (dlang_parse_symbol): Skip over anonymous symbols.
140 * testsuite/d-demangle-expected: Add tests.
141
1422017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
143
144 * d-demangle.c (dlang_identifier): Handle template constraint symbols.
145 (dlang_parse_template): Only advance if template symbol prefix is
146 followed by a digit.
147 * testsuite/d-demangle-expected: Add tests.
148
1492017-05-01 Iain Buclaw <ibuclaw@gdcproject.org>
150
151 * d-demangle.c (dlang_attributes): Handle scope attributes.
152 * testsuite/d-demangle-expected: Add tests.
153
2d3392bd
IB
1542017-04-27 Jonathan Wakely <jwakely@redhat.com>
155
156 PR demangler/80513
157 * cp-demangle.c (d_number): Check for overflow.
158 * cplus-dem.c (consume_count): Fix overflow check.
159 (gnu_special): Check for underscore after thunk delta.
160 * testsuite/demangle-expected: Add tests for overflows and invalid
161 characters in thunks.
162
1632017-04-21 Mark Wielaard <mark@klomp.org>
164
165 * cp-demangle.c (MAX_RECURSION_COUNT): New constant.
166 (struct d_print_info): Add recursion field.
167 (d_print_init): Initialize recursion.
168 (d_print_comp): Check and update d_print_info recursion depth.
169
1702017-04-21 Mark Wielaard <mark@klomp.org>
171
172 * cp-demangle.c (d_substitution): Return NULL if d_add_substitution
173 fails.
174
1752017-04-21 Mark Wielaard <mark@klomp.org>
176
177 * cp-demangle.h (struct d_info): Remove did_subs field.
178 * cp-demangle.c (struct d_info_checkpoint): Likewise.
179 (d_template_param): Don't update did_subs.
180 (d_substitution): Likewise.
181 (d_checkpoint): Don't assign did_subs.
182 (d_backtrack): Likewise.
183 (cplus_demangle_init_info): Don't initialize did_subs.
184
b1a42fdf
PA
1852017-03-27 Pedro Alves <palves@redhat.com>
186
187 * cp-demint.c (cplus_demangle_fill_component): Handle
188 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
189
b9da89d1 1902017-03-12 Mark Wielaard <mark@klomp.org>
191
192 * cp-demangle.c (cplus_demangle_fill_name): Initialize
193 demangle_component d_printing.
194 (cplus_demangle_fill_extended_operator): Likewise.
195 (cplus_demangle_fill_ctor): Likewise.
196 (cplus_demangle_fill_dtor): Likewise.
197
c793cac1
NC
1982017-03-08 Mark Wielaard <mark@klomp.org>
199
200 PR demangler/70909
201 PR demangler/67264
202 * cp-demangle.c: Fix endless recursion. Pass
203 struct demangle_component as non const.
204 (d_make_empty): Initialize variable.
205 (d_print_comp_inner): Limit recursion.
206 (d_print_comp): Decrement variable.
207 * cp-demint.c (cplus_demangle_fill_component): Initialize
208 variable.
209 (cplus_demangle_fill_builtin_type): Likewise.
210 (cplus_demangle_fill_operator): Likewise.
211 * testsuite/demangle-expected: Add tests.
212
134e805d
NC
2132017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
214
215 PR PR c++/70182
216 * cp-demangle.c (d_unqualified_name): Handle "on" for
217 operator names.
218 * testsuite/demangle-expected: Add tests.
219
2202017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
221
222 PR c++/77489
223 * cp-demangle.c (d_discriminator): Handle discriminator >= 10.
224 * testsuite/demangle-expected: Add tests for discriminator.
225
2262017-01-04 Jakub Jelinek <jakub@redhat.com>
227
228 Update copyright years.
229
e495212d
AM
2302017-01-04 Alan Modra <amodra@gmail.com>
231
134e805d
NC
232 * Makefile.in (configure_deps): Update.
233 * configure: Regenerate.
234
2352016-12-13 Jakub Jelinek <jakub@redhat.com>
236
237 PR c++/78761
238 * cp-demangle.c (cplus_demangle_type): Demangle Dc as decltype(auto).
239 * testsuite/demangle-expected: Add test for decltype(auto).
e495212d 240
88acc2e1
NS
2412016-12-12 Nathan Sidwell <nathan@acm.org>
242
243 PR c++/78252
244 * cp-demangle.c (struct d_print_info): Add is_lambda_arg field.
245 (d_print_init): Initialize it.
246 (d_print_comp_inner) <DEMANGLE_COMPONENT_TEMPLATE_PARAM>: Check
247 is_lambda_arg for auto.
248 <DEMANGLE_COMPONENT_REFERENCE,
249 DEMANGLE_COMPONENT_RVALUE_REFERENCE>: Skip smashing check when
250 is_lambda_arg.
251 <DEMANGLE_COMPONENT_LAMBDA>: Increment is_lambda_arg around arg
252 printing.
134e805d 253 * testsuite/demangle-expected: Add lambda auto mangling cases.
da17fe9d 254
fc72affa
DD
2552016-12-06 DJ Delorie <dj@redhat.com>
256
257 * argv.c (expandargv): Check for directories passed as @-files.
258
134e805d
NC
2592016-11-30 David Malcolm <dmalcolm@redhat.com>
260
261 PR c/78498
262 * strndup.c (strlen): Delete decl.
263 (strnlen): Add decl.
264 (strndup): Call strnlen rather than strlen.
265 * xstrndup.c (xstrndup): Likewise.
266
2672016-11-29 Nathan Sidwell <nathan@acm.org>
268
269 * cp-demangle.c (d_print_comp_inner): Fix parameter indentation.
270
535aade6
DT
2712016-11-03 David Tolnay <dtolnay@gmail.com>
272 Mark Wielaard <mark@klomp.org>
273
274 * Makefile.in (CFILES): Add rust-demangle.c.
275 (REQUIRED_OFILES): Add rust-demangle.o.
276 * cplus-dem.c (libiberty_demanglers): Add rust_demangling case.
277 (cplus_demangle): Handle RUST_DEMANGLING.
278 (rust_demangle): New function.
279 * rust-demangle.c: New file.
280 * testsuite/Makefile.in (really-check): Add check-rust-demangle.
281 (check-rust-demangle): New rule.
282 * testsuite/rust-demangle-expected: New file.
283
ddc5804e
MW
2842016-11-15 Mark Wielaard <mark@klomp.org>
285
286 * cp-demangle.c (d_expression_1): Make sure third expression
287 exists for ?: and fold expressions.
288 * testsuite/demangle-expected: Add examples of strings that could
289 crash the demangler because of missing expression.
290
1706852c
MW
2912016-11-14 Mark Wielaard <mark@klomp.org>
292
293 * cplus-dem.c (demangle_signature): After 'H', template function,
294 no success and don't advance position if end of string reached.
295 (demangle_template): After 'z', template name, return zero on
296 premature end of string.
297 (gnu_special): Guard strchr against searching for zero characters.
298 (do_type): If member, only advance mangled string when 'F' found.
299 * testsuite/demangle-expected: Add examples of strings that could
300 crash the demangler by reading past end of input.
301
59d2699c
MW
3022016-11-06 Mark Wielaard <mark@klomp.org>
303
304 * configure.ac (ac_libiberty_warn_cflags): Add -Wshadow=local.
305 * configure: Regenerated.
306
a4ddf8dc
JM
3072016-11-07 Jason Merrill <jason@redhat.com>
308
309 * cp-demangle.c (is_fnqual_component_type): New.
310 (d_encoding, d_print_comp_inner, d_print_mod_list): Use it.
311 (FNQUAL_COMPONENT_CASE): New.
312 (d_make_comp, has_return_type, d_print_comp_inner)
313 (d_print_function_type): Use it.
314 (next_is_type_qual): New.
315 (d_cv_qualifiers, d_print_mod): Handle noexcept and throw-spec.
316
4d17eaec
MW
3172016-11-02 Mark Wielaard <mjw@redhat.com>
318
319 * cplus-dem.c (demangle_signature): Move fall through comment.
320 (demangle_fund_type): Add fall through comment between 'G' and 'I'.
321 * hashtab.c (iterative_hash): Add fall through comments.
322 * regex.c (regex_compile): Add Fall through comment after '+'/'?'.
323 (byte_re_match_2_internal): Add Fall through comment after jump_n.
324 Change "Note fall through" to "Fall through".
325 (common_op_match_null_string_p): Return false after set_number_at
326 instead of fall through.
327
ef0f5d7c
JM
3282016-11-01 Jason Merrill <jason@redhat.com>
329
330 * cp-demangle.c (d_ctor_dtor_name): Handle inheriting constructor.
331
aba19b62
MW
3322016-10-31 Mark Wielaard <mjw@redhat.com>
333
334 * cplus-dem.c (ada_demangle): Initialize demangled to NULL and
335 XDELETEVEC demangled when unknown.
336
41f225de
NC
3372016-09-19 Andrew Stubbs <ams@codesourcery.com>
338
339 * pex-win32.c (argv_to_cmdline): Quote zero-length parameters.
340 * testsuite/test-pexecute.c (main): Insert check for zero-length parameters.
341
3422016-09-10 Mark Wielaard <mjw@redhat.com>
343
344 * cp-demangle.c (d_substitution): Change struct demangle_component
345 variable name from c to dc.
346
3472016-08-12 Marek Polacek <polacek@redhat.com>
348
349 PR c/7652
350 * cp-demangle.c (d_print_mod): Add FALLTHRU.
351
3522016-08-04 Marcel Böhme <boehme.marcel@gmail.com>
353
354 PR c++/71696
355 * cplus-dem.c: Prevent infinite recursion when there is a cycle
356 in the referencing of remembered mangled types.
357 (work_stuff): New stack to keep track of the remembered mangled
358 types that are currently being processed.
359 (push_processed_type): New method to push currently processed
360 remembered type onto the stack.
361 (pop_processed_type): New method to pop currently processed
362 remembered type from the stack.
363 (work_stuff_copy_to_from): Copy values of new variables.
364 (delete_non_B_K_work_stuff): Free stack memory.
365 (demangle_args): Push/Pop currently processed remembered type.
366 (do_type): Do not demangle a cyclic reference and push/pop
367 referenced remembered type.
368
fa3fcee7
NC
3692016-07-29 Aldy Hernandez <aldyh@redhat.com>
370
371 * make-relative-prefix.c (make_relative_prefix_1): Fall back to
372 malloc if alloca argument is greater than MAX_ALLOCA_SIZE.
373
3742016-07-15 Jason Merrill <jason@redhat.com>
375
376 * cp-demangle.c (cplus_demangle_operators): Add f[lrLR].
377 (d_expression_1): Handle them.
378 (d_maybe_print_fold_expression): New.
379 (d_print_comp_inner): Use it.
380 (d_index_template_argument): Handle negative index.
381
382 * cp-demangle.c (cplus_demangle_operators): Add sP and sZ.
383 (d_print_comp_inner): Handle them.
384 (d_template_args_1): Split out from d_template_args.
385 (d_args_length): New.
386
41f225de 3872016-07-13 Marcel Böhme <boehme.marcel@gmail.com>
fa3fcee7
NC
388
389 PR c++/70926
390 * cplus-dem.c: Handle large values and overflow when demangling
391 length variables.
392 (demangle_template_value_parm): Read only until end of mangled string.
393 (do_hpacc_template_literal): Likewise.
394 (do_type): Handle overflow when demangling array indices.
395
3962016-06-12 Brooks Moses <bmoses@google.com>
397
398 * cp-demangle.c (cplus_demangle_print_callback): Avoid zero-length
399 VLAs.
400
c12969f8
AM
4012016-05-31 Alan Modra <amodra@gmail.com>
402
403 * xmemdup.c (xmemdup): Use xmalloc rather than xcalloc.
404
fa3fcee7
NC
4052016-05-19 Jakub Jelinek <jakub@redhat.com>
406
407 PR c++/70498
408 * cp-demangle.c (d_expression_1): Formatting fix.
409
4102016-05-18 Artemiy Volkov <artemiyv@acm.org>
411
412 * cplus-dem.c (enum type_kind_t): Add tk_rvalue_reference
413 constant.
414 (demangle_template_value_parm): Handle tk_rvalue_reference
415 type kind.
416 (do_type): Support 'O' type id (rvalue references).
417
418 * testsuite/demangle-expected: Add tests.
419
4202016-05-02 Marcel Böhme <boehme.marcel@gmail.com>
421
422 PR c++/70498
423 * cp-demangle.c: Parse numbers as integer instead of long to avoid
424 overflow after sanity checks. Include <limits.h> if available.
425 (INT_MAX): Define if necessary.
426 (d_make_template_param): Takes integer argument instead of long.
427 (d_make_function_param): Likewise.
428 (d_append_num): Likewise.
429 (d_identifier): Likewise.
430 (d_number): Parse as and return integer.
431 (d_compact_number): Handle overflow.
432 (d_source_name): Change variable type to integer for parsed number.
433 (d_java_resource): Likewise.
434 (d_special_name): Likewise.
435 (d_discriminator): Likewise.
436 (d_unnamed_type): Likewise.
437 * testsuite/demangle-expected: Add regression test cases.
438
4392016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
440
441 * configure: Remove SH5 support.
442
4432016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
444
445 PR c++/69687
446 * cplus-dem.c: Include <limits.h> if available.
447 (INT_MAX): Define if necessary.
448 (remember_type, remember_Ktype, register_Btype, string_need):
449 Abort if we detect cases where we the size of the allocation would
450 overflow.
451
452 PR c++/70492
453 * cplus-dem.c (gnu_special): Handle case where consume_count returns
454 -1.
455
4562016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
457 Marcel Bohme <boehme.marcel@gmail.com>
458
459 PR c++/67394
460 PR c++/70481
461 * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing
462 btypevec/ktypevec.
463 * testsuite/demangle-expected: Add coverage tests.
464
9d98de83
IB
4652016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
466
467 * d-demangle.c (dlang_call_convention): Handle extern Objective-C
468 function calling convention.
469 (dlang_call_convention_p): Likewise.
470 (dlang_type): Likewise.
471 * testsuite/d-demangle-expected: Add coverage tests.
472
4732016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
474
475 * d-demangle.c (dlang_function_args): Append ',' for variadic functions
476 only if parameters were seen before the elipsis symbol.
477 * testsuite/d-demangle-expected: Add coverage test for parameter-less
478 variadic functions.
479
4802016-01-27 Iain Buclaw <ibuclaw@gdcproject.org>
481
482 * d-demangle.c (dlang_type): Handle function types only in the context
483 of seeing a pointer type symbol.
484 * testsuite/d-demangle-expected: Update function pointer tests.
485
b36c1ccb
MF
4862016-01-05 Mike Frysinger <vapier@gentoo.org>
487
488 * argv.c (dupargv): Change arg to char * const *. Update comment.
489 (writeargv, countargv): Likewise.
490 * functions.texi (dupargv, writeargv, countargv): Likewise.
491
20321766
MF
4922016-01-05 Mike Frysinger <vapier@gentoo.org>
493
494 * argv.c (dupargv): Replace strlen/xmalloc/strcpy with xstrdup.
495
4bec0ef0
PP
4962015-12-28 Patrick Palka <ppalka@gcc.gnu.org>
497
498 * crc32.c: In the documentation, don't refer to GDB's
499 now-nonexistent crc32 implementation. In the table-generation
500 program embedded within the documentation, change the type of
501 the induction variables i and j from int to unsigned int, to
502 avoid undefined behavior.
503
13b356b2
NC
5042015-12-21 Nick Clifton <nickc@redhat.com>
505
506 PR 66827
507 * regex.c (EXTRACT_NUMBER): Cast sign byte to unsigned before left
508 shifting.
509
c4be2641
PA
5102015-11-27 Pedro Alves <palves@redhat.com>
511
512 PR other/61321
513 PR other/61233
c4be2641
PA
514 * cp-demangle.c (d_demangle_callback, d_make_comp): Handle
515 DEMANGLE_COMPONENT_CONVERSION.
516 (is_ctor_dtor_or_conversion): Handle DEMANGLE_COMPONENT_CONVERSION
517 instead of DEMANGLE_COMPONENT_CAST.
518 (d_operator_name): Return a DEMANGLE_COMPONENT_CONVERSION
519 component if handling a conversion.
520 (d_count_templates_scopes, d_print_comp_inner): Handle
521 DEMANGLE_COMPONENT_CONVERSION.
522 (d_print_comp_inner): Handle DEMANGLE_COMPONENT_CONVERSION instead
523 of DEMANGLE_COMPONENT_CAST.
524 (d_print_cast): Rename as ...
525 (d_print_conversion): ... this. Adjust comments.
526 (d_print_cast): Rewrite - simply print the left subcomponent.
527 * cp-demint.c (cplus_demangle_fill_component): Handle
528 DEMANGLE_COMPONENT_CONVERSION.
529
530 * testsuite/demangle-expected: Add tests.
531
f3363926
MS
5322015-11-12 Mike Stump <mikestump@comcast.net>
533
534 * Makefile.in (etags tags TAGS): Use && instead of ;.
535
c20a0642
AM
5362015-11-09 Alan Modra <amodra@gmail.com>
537
538 * configure.ac: Check size of size_t.
539 * configure: Regenerate.
540 * config.in: Regenerate.
541
78d14d2b
AM
5422015-11-09 Alan Modra <amodra@gmail.com>
543
544 * obstack.c (_obstack_newchunk): Silence -Wc++compat warning.
545 (_obstack_begin_worker): Likewise. Move assignment to h->chunk
546 after alloc failure check.
547
e9f40d7d
AM
5482015-11-09 Alan Modra <amodra@gmail.com>
549
550 PR gdb/17133
551 * obstack.c (__alignof__): Expand alignof_type from alignof.h.
552 (obstack_exit_failure): Don't use exitfail.h.
553 (_): Include libintl.h when HAVE_LIBINTL_H and nls enabled.
554 Provide default. Don't include gettext.h.
555 (_Noreturn): Define.
556 * obstacks.texi: Adjust node references to external libc info files.
557
314dee8e
AM
5582015-11-09 Alan Modra <amodra@gmail.com>
559
560 PR gdb/17133
561 * obstack.c: Import current gnulib file.
562 * obstacks.texi: Updated doc, from glibc's manual/memory.texi.
563
82ef0f70
JB
5642015-11-06 Joel Brobecker <brobecker@adacore.com>
565
566 * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
567 Android hosts.
568 * configure: Regenerate.
569
1e924157
JM
5702015-10-28 Jason Merrill <jason@redhat.com>
571
572 * Makefile.in (TAGS): Fix for separate build directory.
573
35a88fa5
IS
5742015-10-18 Roland McGrath <roland@gnu.org>
575 Iain Sandoe <iain@codesourcery.com>
576
577 PR other/63758
578 * pex-unix.c: Obtain the environment interface from settings in
579 environ.h rather than in-line code. Update copyright date.
580 * setenv.c: Likewise.
581 * xmalloc.c: Likewise.
582
e9a38816
JM
5832015-09-30 Jason Merrill <jason@redhat.com>
584
585 * cp-demangle.c (d_cv_qualifiers): Dx means transaction_safe.
586 (cplus_demangle_type): Let d_cv_qualifiers handle it.
587 (d_dump, d_make_comp, has_return_type, d_encoding)
588 (d_count_templates_scopes, d_print_comp_inner)
589 (d_print_mod_list, d_print_mod, d_print_function_type)
590 (is_ctor_or_dtor): Handle DEMANGLE_COMPONENT_TRANSACTION_SAFE.
591
134e805d 5922015-08-15 Ian Lance Taylor <iant@google.com>
68996839
NC
593
594 * cp-demangle.c (d_abi_tags): Preserve di->last_name across any
595 ABI tags.
596
30379291
IB
5972015-08-11 Iain Buclaw <ibuclaw@gdcproject.org>
598
599 * d-demangle.c (dlang_parse_real): Remove call to strtod.
600 (strtod): Remove declaration.
601 * testsuite/d-demangle-expected: Update float and complex literal
602 tests to check correct hexadecimal demangling.
603
d81bf7dd
MM
6042015-07-13 Mikhail Maltsev <maltsevm@gmail.com>
605
606 * cp-demangle.c (d_dump): Fix syntax error.
607 (d_identifier): Adjust type of len to match d_source_name.
608 (d_expression_1): Fix out-of-bounds access. Check code variable for
609 NULL before dereferencing it.
610 (d_find_pack): Do not recurse for FIXED_TYPE, DEFAULT_ARG and NUMBER.
611 (d_print_comp_inner): Add NULL pointer check.
612 * cp-demangle.h (d_peek_next_char): Define as inline function when
613 CHECK_DEMANGLER is defined.
614 (d_advance): Likewise.
615 * testsuite/demangle-expected: Add new testcases.
616
6a8796db 6172015-07-09 Uros Bizjak <ubizjak@gmail.com>
aaae08a7 618
6a8796db
UB
619 * getruntime.c (RUSAGE_SELF): Define if not already defined.
620 (get_runtime): Use RUSAGE_SELF as argument 1 of getrusage call.
aaae08a7 621
f91ca6bc
IB
6222015-06-01 Jason Merrill <jason@redhat.com>
623
624 * cp-demangle.c (cplus_demangle_type): Handle arguments to vendor
625 extended qualifier.
626
6272015-05-22 Yunlian Jiang <yunlian@google.com>
628
629 * configure.ac: Add AC_GNU_SOURCE.
630 * Makefile.in (COMPILE.c): Add -D_GNU_SOURCE.
631 * configure, config.in: Rebuild.
632 * floatformat.c (_GNU_SOURCE): Don't define if already defined.
633
6342015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
635
636 * d-demangle.c (dlang_symbol_kinds): New enum.
637 (dlang_parse_symbol): Update signature. Handle an ambiguity between
638 pascal functions and template value arguments. Only check for a type
639 if parsing a function, or at the top level. Return failure if the
640 entire symbol was not successfully demangled.
641 (dlang_identifier): Update signature. Handle an ambiguity between two
642 adjacent digits in a mangled symbol string.
643 (dlang_type): Update call to dlang_parse_symbol.
644 (dlang_template_args): Likewise.
645 (dlang_parse_template): Likewise.
646 (dlang_demangle): Likewise.
647 * testsuite/d-demangle-expected: Fix bad tests found, and add problematic
648 examples to the unittests.
649
6502015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
651
652 * d-demangle.c (dlang_template_args): Skip over specialized template
653 parameters in mangled symbol.
654 * testsuite/d-demangle-expected: Add coverage and unittest for specialized
655 template parameters.
656
6572015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
658
659 * d-demangle.c (dlang_type): Handle cent and ucent types.
660 * testsuite/d-demangle-expected: Add coverage tests for cent and ucent.
661
6622015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
663
664 * d-demangle.c (dlang_attributes): Handle return attributes, ignoring
665 return parameters in the mangled string. Return NULL if have encountered
666 an unknown attribute.
667 (dlang_function_args): Handle return parameters in the mangled string.
668 * testsuite/d-demangle-expected: Add coverage tests for functions with
669 return parameters and return attributes.
670
6712015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
672
673 * d-demangle.c (dlang_identifier): Check encoded length of identifier
674 to verify strncmp matches entire string.
675 * testsuite/d-demangle-expected: Fix wrong test for postblit symbol.
676
6772015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
678
679 * d-demangle.c (dlang_type_modifiers): New function.
680 (dlang_type_modifier_p): New function.
681 (dlang_call_convention_p): Ignore any kind of type modifier.
682 (dlang_type): Handle and emit the type modifier after delegate types.
683 (dlang_parse_symbol): Handle and emit the type modifier after the symbol.
684 * testsuite/d-demangle-expected: Add coverage tests for all valid
685 usages of function symbols with type modifiers.
686
6872015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
688
689 * d-demangle.c (dlang_call_convention): Return NULL if have reached the
690 end of the symbol, but expected something to read.
691 (dlang_attributes): Likewise.
692 (dlang_function_type): Likewise.
693 (dlang_type): Likewise.
694 (dlang_identifier): Likewise.
695 (dlang_value): Likewise.
696
6972015-05-16 Iain Buclaw <ibuclaw@gdcproject.org>
698
699 * d-demangle.c (dlang_parse_string): Represent embedded whitespace or
700 non-printable characters as hex or escape sequences.
701 * testsuite/d-demangle-expected: Add test for templates with tabs and
702 newlines embedded into the signature.
703
519b5f61
JB
7042015-05-08 Joel Brobecker <brobecker@adacore.com>
705
706 * mkstemps.c: #include <time.h> if HAVE_TIME_H is defined
707 but not HAVE_SYS_TIME_H.
708
dfc0f57b
JB
7092015-04-22 Eli Zaretskii <eliz@gnu.org>
710
711 * setenv.c <environ>: Declare only if not a macro.
712
f91ca6bc
IB
7132015-04-14 Max Ostapenko <m.ostapenko@partner.samsung.com>
714
715 * testsuite/Makefile.in (LIBCFLAGS): Add LDFLAGS.
716
7172015-04-10 Jakub Jelinek <jakub@redhat.com>
718 Iain Sandoe <iain@codesourcery.com>
719
720 PR target/65351
721 * configure: Regenerate.
722
7232015-04-07 Jakub Jelinek <jakub@redhat.com>
724 Iain Sandoe <iain@codesourcery.com>
725
726 PR target/65351
727 * configure: Regenerate.
728
1f99f6d0
JB
7292015-01-19 Eli Zaretskii <eliz@gnu.org>
730
731 * strerror.c <sys_nerr, sys_errlist>: Declare only if they aren't
732 macros.
733
7c89917f
RE
7342014-12-24 Uros Bizjak <ubizjak@gmail.com>
735 Ben Elliston <bje@au.ibm.com>
736 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
737
738 * xasprintf.c: New file.
739 * Makefile.in (CFILES): Add xasprintf.c.
740 (REQUIRED_OFILES): Add xasprintf.$(objext).
741 (xasprintf.$(objext)): New target.
742 * functions.texi: Regenerate.
743
7442014-12-11 Uros Bizjak <ubizjak@gmail.com>
134e805d
NC
745 Ben Elliston <bje@au.ibm.com>
746 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7c89917f
RE
747
748 * xvasprintf.c: New file.
749 * vprintf-support.h: Likewise.
750 * vprintf-support.c: Likewise.
751 * Makefile.in (CFILES): Add vprintf-support.c, xvasprintf.c.
752 (REQUIRED_OFILES): Add vprintf-support.$(objext), xvasprintf.$(objext).
753 (vprintf-support.$(objext), xvasprintf.$(objext)): New targets.
754 (vasprintf.$(objext)): Depend on $(srcdir)/vprintf-support.h.
755 * functions.texi: Regenerate.
756 * vasprintf.c (int_vasprintf): Use libiberty_vprintf_buffer_size.
757
7582014-11-22 John David Anglin <danglin@gcc.gnu.org>
759
760 PR other/63694
761 * configure.ac: Check for strtol, strtoul, strtoll and strtoull
762 declarations.
763 * configure: Regenerated.
764
abdef8eb
JBG
7652014-11-12 Kirill Yukhin <kirill.yukhin@intel.com>
766
767 * testsuite/test-strtol.c (run_tests): Cast strtol return to
768 unsigned long.
769
7702014-11-11 Anthony Brandon <anthony.brandon@gmail.com>
771 Manuel López-Ibáñez <manu@gcc.gnu.org>
772
773 PR driver/36312
774 * filename_cmp.c (canonical_filename_eq): New function to check if
775 file names are the same.
776 * functions.texi: Updated with documentation for new function.
777
7782014-11-11 David Malcolm <dmalcolm@redhat.com>
779
780 * ChangeLog.jit: New.
781
d3d7100a
RO
7822014-11-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
783
784 * sigsetmask.c (_POSIX_SOURCE): Remove.
785
abdef8eb
JBG
7862014-10-28 Yury Gribov <y.gribov@samsung.com>
787
788 * strtoll.c: New file.
789 * strtoull.c: New file.
790 * configure.ac: Add long long checks. Add harness for strtoll and
791 strtoull. Check decls for strtol, strtoul, strtoll, strtoull.
792 * Makefile.in (CFILES, CONFIGURED_OFILES): Add strtoll and strtoull.
793 * config.in: Regenerate.
794 * configure: Regenerate.
795 * functions.texi: Regenerate.
796 * testsuite/Makefile.in (check-strtol): New rule.
797 (test-strtol): Likewise.
798 (mostlyclean): Clean up strtol test.
799 * testsuite/test-strtol.c: New test.
800
8012014-10-15 David Malcolm <dmalcolm@redhat.com>
802
803 * choose-temp.c (choose_tmpdir): Remove now-redundant local
804 copy of prototype.
805 * functions.texi: Regenerate.
806 * make-temp-file.c (choose_tmpdir): Convert return type from
807 char * to const char * - given that this returns a pointer to
808 a memoized allocation, the caller must not touch it.
809
8102014-10-14 Joel Brobecker <brobecker@adacore.com>
5af04e20
JB
811
812 * d-demangle.c: Replace strtold with strtod in global comment.
813 (strtold): Remove declaration.
814 (strtod): New declaration.
815 (dlang_parse_real): Declare value as double instead of long
816 double. Replace call to strtold by call to strtod.
817 Update format in call to snprintf.
818
b55f9678
IB
8192014-09-26 Jason Merrill <jason@redhat.com>
820
821 * cp-demangle.c (d_substitution): Handle abi tags on abbreviation.
822
8232014-09-26 Max Ostapenko <m.ostapenko@partner.samsung.com>
824
825 * pex-common.h (struct pex_funcs): Add new parameter for open_write field.
826 * pex-unix.c (pex_unix_open_write): Add support for new parameter.
827 * pex-djgpp.c (pex_djgpp_open_write): Likewise.
828 * pex-win32.c (pex_win32_open_write): Likewise.
829 * pex-common.c (pex_run_in_environment): Likewise.
830
8312014-09-23 Iain Buclaw <ibuclaw@gdcproject.org>
832
833 * Makefile.in (CFILES): Add d-demangle.c.
834 (REQUIRED_OFILES): Add d-demangle.o.
835 * cplus-dem.c (libiberty_demanglers): Add dlang_demangling case.
836 (cplus_demangle): Likewise.
837 * d-demangle.c: New file.
838 * testsuite/Makefile.in (really-check): Add check-d-demangle.
839 * testsuite/d-demangle-expected: New file.
840
8412014-09-19 Ian Lance Taylor <iant@google.com>
842
843 * simple-object-elf.c (simple_object_elf_write_ehdr): Correctly
844 handle objects with more than SHN_LORESERVE sections.
845 (simple_object_elf_write_shdr): Add sh_link parameter.
846 (simple_object_elf_write_to_file): Correctly handle objects with
847 more than SHN_LORESERVE sections.
848
8492014-08-29 Andrew Burgess <aburgess@broadcom.com>
850
851 * cp-demangle.c (d_dump): Only access field from s_fixed part of
852 the union for DEMANGLE_COMPONENT_FIXED_TYPE.
853 (d_count_templates_scopes): Likewise.
854
8552014-08-13 Gary Benson <gbenson@redhat.com>
856
857 * testsuite/demangler-fuzzer.c: New file.
858 * testsuite/Makefile.in (fuzz-demangler): New rule.
859 (demangler-fuzzer): Likewise.
860 (mostlyclean): Clean up demangler fuzzer.
861
173373c6
AB
8622014-06-11 Andrew Burgess <aburgess@broadcom.com>
863
864 * cplus-dem.c (do_type): Call string_delete even if the call to
865 demangle_template fails.
866
f69123aa
KT
8672014-06-01 Ray Donnelly <mingw.android@gmail.com>
868
869 * pex-win32.c (argv_to_cmdline): Don't quote
870 args unnecessarily
871
6143b823
PA
8722014-05-28 Pedro Alves <palves@redhat.com>
873
874 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM
875 and DEMANGLE_COMPONENT_NUMBER.
876
6e933ccc
TS
8772014-05-22 Thomas Schwinge <thomas@codesourcery.com>
878
879 * testsuite/demangle-expected: Fix last commit.
880
0aaa9a3a
AB
8812014-05-14 Andrew Burgess <aburgess@broadcom.com>
882
883 * cplus-dmem.c (internal_cplus_demangle): Free any resources
884 allocated by possible previous call to gnu_special.
885 (squangle_mop_up): Reset pointers to NULL after calling free.
886 * testsuite/demangle-expected: New test case.
887
91662bad 8882014-05-08 Gary Benson <gbenson@redhat.com>
889
890 * cp-demangle.c (struct d_component_stack): New structure.
891 (struct d_print_info): New field component_stack.
892 (d_print_init): Initialize the above.
893 (d_print_comp_inner): Renamed from d_print_comp.
894 Do not restore template stack if it would cause a loop.
895 (d_print_comp): New function.
896 * testsuite/demangle-expected: New test cases.
897
3f48575a 8982014-04-17 Jakub Jelinek <jakub@redhat.com>
899
900 PR sanitizer/56781
901 * maint-tool: Also emit rule for noasan/ subdirectory.
902 * configure.ac (NOASANFLAG): Set and substitute.
903 * Makefile.in: Regenerated.
904 (NOASANFLAG): Set.
905 (all, $(TARGETLIB), mostlyclean): Handle noasan subdir like pic
906 subdir.
907 (stamp-noasandir): New goal.
908 * configure: Regenerated.
909
c3c3c691 9102014-04-01 Richard Biener <rguenther@suse.de>
911
912 * simple-object.c (simple_object_internal_write): Handle
913 EINTR and short writes.
914
81ad11e3 9152014-03-28 Richard Biener <rguenther@suse.de>
916
917 * simple-object.c (simple_object_internal_read): Handle
918 EINTR and short reads.
919
10fe779d 9202014-03-13 Uros Bizjak <ubizjak@gmail.com>
921
922 * regex.c (bzero) [!_LIBC]: Define without coma expression.
923 (regerror): Cast the call to memcpy to (void) to avoid unused
924 value warnings.
925
8458514f 9262014-01-28 Thomas Schwinge <thomas@codesourcery.com>
927
928 * cp-demangle.c (d_demangle_callback): Put an abort call in place,
929 to help the compiler.
930
281e9aa6 9312014-01-21 Tom Tromey <tromey@redhat.com>
932
933 * _doprint.c (checkit): Use stdarg, not VA_* macros.
934 * asprintf.c (asprintf): Use stdarg, not VA_* macros.
935 * concat.c (concat_length, concat_copy, concat_copy2, concat)
936 (reconcat): Use stdarg, not VA_* macros.
937 * snprintf.c (snprintf): Use stdarg, not VA_* macros.
938 * vasprintf.c (checkit): Use stdarg, not VA_* macros.
939 * vsnprintf.c (checkit): Use stdarg, not VA_* macros.
940
369be698
MF
9412014-01-06 Mike Frysinger <vapier@gentoo.org>
942
943 PR other/56780
944 * configure.ac: Delete target_header_dir assignment.
945 * configure: Regenerated.
946
fd259167
GB
9472014-01-06 Gary Benson <gbenson@redhat.com>
948
949 * cp-demangle.c (struct d_print_info): New fields
950 next_saved_scope, copy_templates, next_copy_template and
951 num_copy_templates.
952 (d_count_templates): New function.
953 (d_print_init): New parameter "dc".
954 Estimate numbers of templates and scopes required.
955 (d_print_free): Removed function.
956 (cplus_demangle_print_callback): Allocate stack for
957 templates and scopes. Removed call to d_print_free.
958 (d_copy_templates): Removed function.
959 (d_save_scope): New function.
960 (d_get_saved_scope): Likewise.
961 (d_print_comp): Replace state saving/restoring code with
962 calls to d_save_scope and d_get_saved_scope.
963
eafbc3bf
BM
9642013-12-23 Bill Maddox <maddox@google.com>
965
966 * cp-demangle.c (cplus_demangle_fill_ctor,cplus_demangle_fill_dtor):
967 Handle unified ctor/dtor.
968 (d_ctor_dtor_name): Handle unified ctor/dtor.
969
492e19d0 9702013-11-22 Cary Coutant <ccoutant@google.com>
134e805d 971
492e19d0 972 PR other/59195
973 * cp-demangle.c (struct d_info_checkpoint): New struct.
974 (struct d_print_info): Add current_template field.
975 (d_operator_name): Set flag when processing a conversion
976 operator.
977 (cplus_demangle_type): When processing <template-args> for
978 a conversion operator, backtrack if necessary.
979 (d_expression_1): Renamed from d_expression.
980 (d_expression): New wrapper around d_expression_1.
981 (d_checkpoint): New function.
982 (d_backtrack): New function.
983 (d_print_init): Initialize current_template.
984 (d_print_comp): Set current_template.
985 (d_print_cast): Put current_template in scope for
986 printing conversion operator name.
987 (cplus_demangle_init_info): Initialize is_expression and
988 is_conversion.
989 * cp-demangle.h (struct d_info): Add is_expression and
990 is_conversion fields.
991 * testsuite/demangle-expected: New test cases.
992
f0c897ef 9932013-11-15 Andreas Schwab <schwab@linux-m68k.org>
994
995 * configure: Regenerate.
996
8467a2fd 9972013-11-12 Uros Bizjak <ubizjak@gmail.com>
998
999 * cp-demangle.c (d_copy_templates): Cast result of malloc
1000 to (struct d_print_template *).
1001 (d_print_comp): Cast result of realloc to (struct d_saved scope *).
1002
689a1abf 10032013-10-29 Marc Glisse <marc.glisse@inria.fr>
1004
1005 PR tree-optimization/58689
1006 * concat.c: Remove note about xmalloc.
1007
eec65503 10082013-10-27 Gerald Pfeifer <gerald@pfeifer.com>
1009
1010 * testsuite/test-demangle.c: Include unistd.h.
8467a2fd 1011
9548bbed 10122013-10-25 Gary Benson <gbenson@redhat.com>
1013
1014 * cp-demangle.c (struct d_saved_scope): New structure.
1015 (struct d_print_info): New fields saved_scopes and
1016 num_saved_scopes.
1017 (d_print_init): Initialize the above.
1018 (d_print_free): New function.
1019 (cplus_demangle_print_callback): Call the above.
1020 (d_copy_templates): New function.
1021 (d_print_comp): New variables saved_templates and
1022 need_template_restore.
8467a2fd 1023 [DEMANGLE_COMPONENT_REFERENCE, DEMANGLE_COMPONENT_RVALUE_REFERENCE]:
1024 Capture scope the first time the component is traversed, and use the
1025 captured scope for subsequent traversals.
9548bbed 1026 * testsuite/demangle-expected: Add regression test.
1027
ae6da67e 10282013-10-23 Gerald Pfeifer <gerald@pfeifer.com>
1029
1030 * testsuite/test-expandargv.c: Include unistd.h.
1031
26505cc0
DD
10322013-10-15 David Malcolm <dmalcolm@redhat.com>
1033
1034 * configure.ac: If --enable-host-shared, use -fPIC.
1035 * configure: Regenerate.
1036
10372013-10-11 Paul Pluzhnikov <ppluzhnikov@google.com>
1038
1039 * cp-demangle.c (d_name): Demangle local-source-names.
1040 * testsuite/demangle-expected: New test.
1041
53f94b92
DD
10422013-09-10 Paolo Carlini <paolo.carlini@oracle.com>
1043
1044 PR bootstrap/58386
1045 Revert:
1046
1047 2013-09-10 Gary Benson <gbenson@redhat.com>
1048
1049 * cp-demangle.c: Include hashtab.h.
1050 (struct d_print_info): New field saved_scopes.
1051 (d_print_init): Initialize the above.
1052 (d_print_free): New function.
1053 (cplus_demangle_print_callback): Call the above.
1054 (struct d_saved_scope): New structure.
1055 (d_store_scope): New function.
1056 (d_free_scope) Likewise.
1057 (d_restore_scope) Likewise.
1058 (d_hash_saved_scope) Likewise.
1059 (d_equal_saved_scope) Likewise.
1060 (d_print_comp): New variable saved_scope.
1061 [DEMANGLE_COMPONENT_REFERENCE,
1062 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
1063 time the component is traversed, and use the captured scope for
1064 subsequent traversals.
46dd5233 1065 * testsuite/demangle-expected: Add regression test.
53f94b92 1066
eabdca0f
DD
10672013-09-10 Gary Benson <gbenson@redhat.com>
1068
1069 * cp-demangle.c: Include hashtab.h.
1070 (struct d_print_info): New field saved_scopes.
1071 (d_print_init): Initialize the above.
1072 (d_print_free): New function.
1073 (cplus_demangle_print_callback): Call the above.
1074 (struct d_saved_scope): New structure.
1075 (d_store_scope): New function.
1076 (d_free_scope) Likewise.
1077 (d_restore_scope) Likewise.
1078 (d_hash_saved_scope) Likewise.
1079 (d_equal_saved_scope) Likewise.
1080 (d_print_comp): New variable saved_scope.
1081 [DEMANGLE_COMPONENT_REFERENCE,
1082 DEMANGLE_COMPONENT_RVALUE_REFERENCE]: Capture scope the first
1083 time the component is traversed, and use the captured scope for
1084 subsequent traversals.
46dd5233 1085 * testsuite/demangle-expected: Add regression test.
eabdca0f 1086
21290977
DD
10872013-08-20 Alan Modra <amodra@gmail.com>
1088
1089 * floatformat.c (floatformat_ibm_long_double): Rename to..
1090 (floatformat_ibm_long_double_big): ..this.
1091 (floatformat_ibm_long_double_little): New.
1092
bc771b3b
TG
10932013-07-09 Tristan Gingold <gingold@adacore.com>
1094
1095 * makefile.vms (OBJS): Add dwarfnames.obj
1096
a4818a05
DD
10972013-05-31 Matt Burgess <matthew@linuxfromscratch.org>
1098
1099 PR other/56780
41f225de 1100 * configure.ac: Move test for --enable-install-libiberty
a4818a05
DD
1101 outside of the 'with_target_subdir' test so that it actually gets
1102 run. Add output messages to show the test result.
41f225de
NC
1103 * configure: Regenerate.
1104 * Makefile.in (install_to_libdir): Place the
a4818a05
DD
1105 installation of the libiberty library in the same guard as that
1106 used for the headers to prevent it being installed unless
1107 requested via --enable-install-libiberty.
1108
3ecb7338
DD
11092013-05-06 David Edelsohn <dje.gcc@gmail.com>
1110 Peter Bergner <bergner@vnet.ibm.com>
1111 Segher Boessenkool <segher@kernel.crashing.org>
1112 Jakub Jelinek <jakub@redhat.com>
1113
1114 * hashtab.c (hash_pointer): Remove conditional and avoid
1115 unexecuted shift equal to wordsize.
1116
a903d6ac 11172013-04-22 Andi Kleen <ak@linux.intel.com>
29f045bb
DD
1118
1119 * hashtab.c (hash_pointer): Move to end of file and reimplement.
1120
3a4d2339
DD
11212013-04-03 Jason Merrill <jason@redhat.com>
1122
dcd7e9d6
DD
1123 * cp-demangle.c (cplus_demangle_type): Fix function quals.
1124 (d_pointer_to_member_type): Simplify.
1125
3a4d2339
DD
1126 Demangle C++11 ref-qualifier.
1127 * cp-demangle.c (d_ref_qualifier): New.
1128 (d_nested_name, d_function_type): Use it.
1129 (d_parmlist): Don't get confused by a ref-qualifier.
1130 (cplus_demangle_type): Reorder ref-qualifier.
1131 (d_pointer_to_member_type): Likewise.
1132 (d_dump): Handle DEMANGLE_COMPONENT_REFERENCE_THIS and
1133 DEMANGLE_COMPONENT_RVALUE_REFERENCE_THIS.
1134 (d_make_comp, has_return_type, d_encoding): Likewise.
1135 (d_print_comp, d_print_mod_list, d_print_mod): Likewise.
1136 (d_print_function_type, is_ctor_or_dtor): Likewise.
1137
3afd2652
DD
11382013-03-27 Kai Tietz <ktietz@redhat.com>
1139
1140 * configure: Regenerated.
1141
eea30203 11422013-03-06 Tobias Burnus <burnus@net-b.de>
72edb7c2 1143
eea30203
DD
1144 * libiberty.texi: Update comment, remove lowersections.
1145 * obstacks.texi: Regenerate.
1146
11472013-03-05 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR middle-end/56526
1150 * simple-object-mach-o.c (simple_object_mach_o_segment): Initialize
1151 wrapper_sect_offset to avoid a warning.
72edb7c2 1152
2fd2526e
DD
11532013-03-01 Andreas Schwab <schwab@linux-m68k.org>
1154
1155 * obstacks.texi (Obstacks): Trim @node to only contain the
1156 node name.
1157 * libiberty.texi (Obstacks): Lower section.
1158
a9c3ecea
DD
11592013-02-14 Jason Merrill <jason@redhat.com>
1160
1161 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DEFAULT_ARG.
1162 (d_print_comp): Likewise.
1163
389d9b6c
DD
11642013-02-09 Jakub Jelinek <jakub@redhat.com>
1165
1166 PR other/56245
1167 * regex.c (PTR_INT_TYPE): Define.
1168 (EXTEND_BUFFER): Change incr type from int to PTR_INT_TYPE.
1169
fe4b0b46
KT
11702013-01-31 Kai Tietz <ktietz@redhat.com>
1171
0f5f799a
DD
1172 PR other/54620
1173 * sha1.c (sha1_process_block): Handle case that size_t is
1174 a wider-integer-scalar as a 32-bit unsigned integer.
1175
1176 PR other/53413
fe4b0b46
KT
1177 * md5.c (md5_process_block): Handle case that size_t is
1178 a wider-integer-scalar a 32-bit unsigned integer.
1179
07a8e9f0
DD
11802013-01-04 Ian Lance Taylor <iant@google.com>
1181
1182 PR other/54800
1183 * simple-object-mach-o.c (simple_object_mach_o_segment): Don't
1184 bother to zero out a buffer we are about to set anyhow.
1185
11862013-01-01 David Edelsohn <dje.gcc@gmail.com>
1187
1188 * simple-object-xcoff.c: New file.
1189 * Makefile.in: Add it to build machinery.
1190 * simple-object-common.h (simple_object_xcoff_functions): Declare.
1191 * simple-object.c (format_functions): Add
1192 simple_object_xcoff_functions.
1193
1f3de044
DD
11942012-11-10 Jason Merrill <jason@redhat.com>
1195
1196 * cp-demangle.c (d_unqualified_name): Handle abi tags here.
1197 (d_name): Not here.
1198
11992012-11-09 Jason Merrill <jason@redhat.com>
1200
1201 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_TAGGED_NAME.
1202 (d_make_comp, d_find_pack, d_print_comp): Likewise.
1203 (d_abi_tags): New.
1204 (d_name): Call it.
1205
995b61fe
DD
12062012-10-08 Jason Merrill <jason@redhat.com>
1207
1208 * cp-demangle.c (d_special_name, d_dump): Handle TH and TW.
1209 (d_make_comp, d_print_comp): Likewise.
1210
12112012-09-18 Ian Lance Taylor <iant@google.com>
1212
1213 * strnlen.c: New file.
1214 * configure.ac: Check for strnlen, add it to AC_LIBOBJ if it's not
1215 present.
1216 * Makefile.in: Rebuild dependencies.
1217 (CFILES): Add strnlen.c.
1218 (CONFIGURED_OFILES): Add ./strnlen.$(objext).
1219 * configure, config.in, functions.texi: Rebuild.
1220
1221 * maint-tool: Accept .def files in the include directory.
1222
12232012-09-18 Florian Weimer <fweimer@redhat.com>
1224
1225 PR other/54411
1226 * objalloc.c (_objalloc_alloc): Add overflow check covering
1227 alignment and CHUNK_HEADER_SIZE addition.
1228
b9b64803
L
12292011-08-28 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * argv.c (dupargv): Replace malloc with xmalloc. Don't check
1232 xmalloc return.
1233 (buildargv): Likewise. Also replace strdup with xstrdup.
1234 (expandargv): Don't check dupargv return.
1235
bf8247ff
L
12362011-08-28 H.J. Lu <hongjiu.lu@intel.com>
1237
1238 PR binutils/14526
1239 * argv.c (buildargv): Replace alloca with xmalloc/free.
1240
e372c21c
AS
12412012-08-17 Andreas Schwab <schwab@linux-m68k.org>
1242
1243 * floatformat.c (floatformat_to_double): Correctly handle numbers
1244 between 1 and 2. Simplify handling of denormal number.
1245 (main): Test with 1.1.
1246
902e4335
MF
12472012-07-31 Mike Frysinger <vapier@gentoo.org>
1248
1249 * md5.c (md5_finish_ctx): Declare swap_bytes. Assign SWAP() output
1250 to swap_bytes, and then call memcpy to move it to ctx->buffer.
1251
9974286e
DD
12522012-07-26 Kazu Hirata <kazu@codesourcery.com>
1253 Sandra Loosemore <sandra@codesourcery.com>
1254
1255 * pex-win32.c (pex_win32_exec_child): Only close original file
1256 descriptors if child is launched successfully.
1257
7c328963
DD
12582012-07-18 Jason Merrill <jason@redhat.com>
1259
1260 * cp-demangle.c (cplus_demangle_operators): Add *_cast.
1261 (op_is_new_cast): New.
1262 (d_expression, d_print_comp): Check it.
1263
0429544a
DE
12642012-07-13 Doug Evans <dje@google.com>
1265
1266 * filename_cmp.c (filename_hash, filename_eq): New functions.
1267
5afcec73
DD
12682012-06-29 Andreas Schwab <schwab@linux-m68k.org>
1269
1270 * copying-lib.texi (Library Copying): Don't use @heading inside
1271 @enumerate.
1272
67bf71fe
DD
12732012-05-22 Tom Tromey <tromey@redhat.com>
1274
1275 http://sourceware.org/bugzilla/show_bug.cgi?id=14065
1276 * testsuite/demangle-expected: Add regression test.
1277 * cp-demangle.c (d_find_pack): Return NULL for
1278 DEMANGLE_COMPONENT_UNNAMED_TYPE.
1279
fa66ec53
DD
12802012-04-27 Tom Tromey <tromey@redhat.com>
1281
1282 * dwarfnames.c: New file.
1283 * Makefile.in (CFILES): Add dwarfnames.
1284 (REQUIRED_OFILES): Add dwarfnames.
1285 (./dwarfnames.$(objext)): New target.
1286
b3641a6e
DD
12872012-04-04 Tristan Gingold <gingold@adacore.com>
1288
1289 * pex-unix.c (to_ptr32): Fix style.
1290
24e829d0
DD
12912012-04-02 Tristan Gingold <gingold@adacore.com>
1292
1293 * stack-limit.c: Includes ansidecl.h.
1294 (stack_limit_increase): Add ATTRIBUTE_UNUSED
1295
12962012-03-20 Jason Merrill <jason@redhat.com>
1297
1298 * cp-demangle.c (cplus_demangle_type): Handle 'auto'.
1299
4e3aa408
DD
13002012-03-07 Jason Merrill <jason@redhat.com>
1301
1302 * cp-demangle.c (cplus_demangle_operators): Add li.
1303 (d_unqualified_name): Handle it specially.
1304
1712e1d4
JJ
13052012-01-26 Jakub Jelinek <jakub@redhat.com>
1306
1307 * make-relative-prefix.c (make_relative_prefix_1): Avoid warning
1308 about using preprocessor directives inside of macro arguments.
1309
d12c31df
DD
13102012-01-22 Douglas B Rupp <rupp@gnat.com>
1311
1312 * configure: Regenerate.
1313
fbfd63c0
DD
13142012-01-10 Jason Merrill <jason@redhat.com>
1315
1316 * cp-demangle.c (d_print_comp) [DEMANGLE_COMPONENT_OPERATOR]:
1317 Omit a trailing space in the operator name.
1318
eb7b5ddb
DD
13192012-01-06 Jason Merrill <jason@redhat.com>
1320
1321 PR c++/6057
1322 PR c++/48051
1323 PR c++/50855
1324 PR c++/51322
1325 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_NULLARY and
1326 DEMANGLE_COMPONENT_INITIALIZER_LIST.
1327 (d_make_comp): Likewise. Allow null right arg for
1328 DEMANGLE_COMPONENT_TRINARY_ARG2.
1329 (cplus_demangle_operators): Adjust new/delete; add .*, :: and throw.
1330 (d_template_args, d_template_arg): Handle 'J' for argument packs.
1331 (d_exprlist): Add terminator parm.
1332 (d_expression, d_print_comp): Handle initializer lists, nullary
1333 expressions, prefix/suffix operators, and new.
1334 (d_print_subexpr): Avoid parens around DEMANGLE_COMPONENT_QUAL_NAME
1335 and DEMANGLE_COMPONENT_INITIALIZER_LIST.
1336 * testsuite/demangle-expected: Add tests.
1337
1338 * cp-demangle.c (cplus_demangle_type): decltype, pack expansion
1339 and vector are substitutable.
1340 (cplus_demangle_operators): Sort.
1341
13422012-01-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1343
1344 * configure: Regenerate.
1345
dd28faae
DD
13462012-01-02 Jakub Jelinek <jakub@redhat.com>
1347
1348 * make-relative-prefix.c (make_relative_prefix_1): Avoid
1349 stack overflow if PATH contains just a single entry and
1350 HOST_EXECUTABLE_SUFFIX needs to be used.
1351
1352 PR driver/48306
1353 * make-relative-prefix.c: Include sys/stat.h.
1354 (make_relative_prefix_1): If access succeeds, check also stat
1355 if nstore is a regular file.
1356
604fcd65
AS
13572011-12-20 Andreas Schwab <schwab@linux-m68k.org>
1358
1359 * configure: Regenerate.
1360
3fee530e
DD
13612011-12-20 Tristan Gingold <gingold@adacore.com>
1362
1363 * aclocal.m4: Assume strncmp works in cross case.
1364 * configure: Regenerate
1365
a53e62cf
AS
13662011-12-19 Andreas Schwab <schwab@linux-m68k.org>
1367
1368 * configure: Regenerate.
1369
956a8f8b
DD
13702011-11-07 Richard Henderson <rth@redhat.com>
1371
1372 Merged from transactional-memory.
1373
1374 * cp-demangle.c (cplus_demangle_fill_ctor): Accept
1375 gnu_v3_object_ctor_group.
1376 (cplus_demangle_fill_dtor): Accept gnu_v3_object_dtor_group.
1377 (d_ctor_dtor_name): Recognize gnu_v3_object_ctor_group
1378 and gnu_v3_object_dtor_group.
1379 (d_dump): Handle DEMANGLE_COMPONENT_TRANSACTION_CLONE
1380 and DEMANGLE_COMPONENT_NONTRANSACTION_CLONE.
1381 (d_make_comp, d_print_comp): Likewise.
1382 (d_special_name): Generate them.
1383
abc6552b
DD
13842011-11-04 Jason Merrill <jason@redhat.com>
1385
1386 PR c++/48370
1387 * cp-demangle.c (d_special_name, d_print_comp): Handle a
1388 discriminator number on DEMANGLE_COMPONENT_REFTEMP.
1389
cf185ad7
DD
13902011-11-02 Doug Evans <dje@google.com>
1391
1392 * Makefile.in (CFILES): Add timeval-utils.c.
1393 (REQUIRED_OFILES): Add timeval-utils.$(objext).
1394 (INSTALLED_HEADERS): Add timeval-utils.h.
1395 (timeval-utils.$(objext)): Add rule.
1396
eb2722c1
DD
13972011-10-28 Ian Lance Taylor <iant@google.com>
1398
1399 * setproctitle.c (setproctitle): Use "GNU/Linux" in comment.
1400
85d7ed08
DD
14012011-10-26 Iain Sandoe <iains@gcc.gnu.org>
1402
1403 PR target/48108
1404 * simple-object-mach-o.c (GNU_WRAPPER_SECTS, GNU_WRAPPER_INDEX,
1405 GNU_WRAPPER_NAMES): New macros.
1406 (simple_object_mach_o_segment): Handle wrapper scheme.
1407 (simple_object_mach_o_write_section_header): Allow the segment name
1408 to be supplied.
1409 (simple_object_mach_o_write_segment): Handle wrapper scheme. Ensure
1410 that the top-level segment name in the load command is empty.
1411 (simple_object_mach_o_write_to_file): Determine the number of
1412 sections during segment output, use that in writing the header.
1413
f9fb0b2d
DD
14142011-10-10 Ian Lance Taylor <iant@google.com>
1415
1416 PR c++/48665
1417 * cp-demangle.c (d_cv_qualifiers): If qualifiers are applied to a
1418 function type, change them to apply to the "this" parameter.
1419 * testsuite/demangle-expected: Add test case.
1420
514c97d3
DD
14212011-09-28 Doug Evans <dje@google.com>
1422
1423 * timeval-utils.c: New file.
514c97d3
DD
1424
1425 * argv.c (countargv): New function.
1426
7955ede5
DD
14272011-09-23 Cary Coutant <ccoutant@google.com>
1428
1429 PR 40831
1430 * cp-demangle.c (d_make_comp): Add new component type.
1431 (cplus_demangle_mangled_name): Check for clone suffixes.
1432 (d_parmlist): Don't error out if we see '.'.
1433 (d_clone_suffix): New function.
1434 (d_print_comp): Print info for clone suffixes.
1435 * testsuite/demangle-expected: Add new testcases.
1436
634e4f4f 14372011-09-23 Ian Lance Taylor <iant@google.com>
139d7133 1438 Pierre Vittet <piervit@pvittet.com>
634e4f4f
DD
1439
1440 * md5.c (md5_process_bytes): Correct handling of unaligned
1441 buffer.
1442
601a99c6
DD
14432011-08-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1444
1445 * aclocal.m4: Include ../config/picflag.m4.
1446 * configure.ac (GCC_PICFLAG): Call it.
1447 (enable_shared): Clear PICFLAG unless shared.
1448 * configure: Regenerate.
1449
091c2a96
DD
14502011-08-12 Steve Ellcey <sje@cup.hp.com>
1451
1452 * md5.c (md5_read_ctx): Handle mis-aligned resbuf pointer.
1453
6b6bd65a
DD
14542011-08-06 Uros Bizjak <ubizjak@gmail.com>
1455
1456 * testsuite/test-expandargv.c (writeout_test): Check result of fwrite.
1457
14582011-08-01 Jason Merrill <jason@redhat.com>
1459
1460 PR c++/49932
1461 * cp-demangle.c (d_prefix): Handle decltype.
1462 * testsuite/demangle-expected: Test it.
1463
31ba042a
L
14642011-07-26 H.J. Lu <hongjiu.lu@intel.com>
1465
1466 * testsuite/demangle-expected: Remove an extra line.
1467
04aed652
DD
14682011-07-26 Ian Lance Taylor <iant@google.com>
1469
1470 * cp-demangle.c (d_print_init): Initialize pack_index field.
1471 (d_print_comp): Check for NULL template argument.
1472 * testsuite/demangle-expected: Add test case.
1473
17a16b0f
DD
14742011-07-22 Gerald Pfeifer <gerald@pfeifer.com>
1475
1476 PR target/49817
1477 * stack-limit.c: Include <stdint.h>.
1478
26ac1280
DD
14792011-07-22 Jakub Jelinek <jakub@redhat.com>
1480
1481 PR c++/49756
1482 * stack-limit.c: New file.
1483 * Makefile.in: Regenerate deps.
1484 (CFILES): Add stack-limit.c.
1485 (REQUIRED_OFILES): Add ./stack-limit.$(objext).
1486 * configure.ac (checkfuncs): Add getrlimit and setrlimit.
1487 (AC_CHECK_FUNCS): Likewise.
1488 * configure: Regenerated.
1489 * config.in: Regenerated.
1490
f2917a30
DD
14912011-07-04 Jason Merrill <jason@redhat.com>
1492
1493 * cp-demangle.c (d_expression): Handle 'this'.
1494 (d_print_comp) [DEMANGLE_COMPONENT_FUNCTION_PARAM]: Likewise.
1495
7d6b320b
JB
14962011-07-01 Joel Brobecker <brobecker@adacore.com>
1497
1498 * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
1499 HAVE_CASE_INSENSITIVE_FILE_SYSTEM.
1500
02e7efbf
JK
15012011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1502
1503 PR debug/49408
1504 * cp-demangle.c (d_print_comp): Suppress argument list for function
1505 references by the '&' unary operator. Keep also already processed
1506 variant without the argument list. Suppress argument list types for
1507 function call used in an expression.
1508 * testsuite/demangle-expected: Fix excessive argument list types in
1509 `test for typed function in decltype'. New testcase for no argument
1510 list types printed. 3 new testcases for function references by the
1511 '&' unary operator..
1512
b24539b3
DD
15132011-06-20 Jason Merrill <jason@redhat.com>
1514
1515 PR c++/37089
1516 * cp-demangle.c (d_print_comp): Handle reference smashing.
1517 * testsuite/demangle-expected: Test it.
1518
ddee5e46
DD
15192011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1520
1521 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>:
1522 Suppress d_print_mod for DMGL_RET_POSTFIX.
1523 * testsuite/demangle-expected: New testcases for --ret-postfix.
1524
15252011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 * cp-demangle.c (d_print_comp) <DEMANGLE_COMPONENT_FUNCTION_TYPE>: Do
1528 not pass DMGL_RET_POSTFIX or DMGL_RET_DROP. Support DMGL_RET_DROP.
1529 * testsuite/demangle-expected: New testcases for --ret-drop.
1530 * testsuite/test-demangle.c: Document --ret-drop in a comment.
1531 (main): New variable ret_drop, fill it, call cplus_demangle with it.
1532
15332011-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * cp-demangle.c (struct d_print_info): Remove field options.
1536 (d_print_init): Remove parameter options.
1537 (cplus_demangle_print_callback): Update all the callers.
1538 (d_print_comp, d_print_mod_list, d_print_mod, d_print_function_type)
1539 (d_print_array_type, d_print_expr_op, d_print_cast, d_print_subexpr):
1540 Add parameter options, update all the callers.
1541
4ff224cb
DD
15422011-04-20 Jim Meyering <meyering@redhat.com>
1543
1544 * cp-demint.c (cplus_demangle_v3_components): Remove useless
1545 if-before-free.
1546 * cplus-dem.c (squangle_mop_up): Likewise.
1547 (delete_non_B_K_work_stuff): Likewise.
1548 * pex-common.c (pex_free): Likewise.
1549 * pex-msdos.c (pex_msdos_cleanup): Likewise.
1550 * pex-win32.c (mingw_rootify, msys_rootify): Likewise.
1551 (win32_spawn): Likewise.
1552 * regex.c (FREE_VAR, weak_alias): Likewise.
1553 * spaces.c (spaces): Likewise.
1554
a55c6f41
DD
15552011-04-10 Jim Meyering <meyering@redhat.com>
1556
1557 Avoid memory overrun in a test leading to potential double-free.
1558 * testsuite/test-expandargv.c (writeout_test): Fix off-by-one error:
1559 i.e., do copy the trailing NUL byte.
1560
083faca9
TG
15612011-03-31 Tristan Gingold <gingold@adacore.com>
1562
1563 * makefile.vms (OBJS): Add filename_cmp.obj
1564
007d6189
KT
15652011-02-28 Kai Tietz <kai.tietz@onevision.com>
1566
1567 * filename_cmp.c (filename_ncmp): New function.
1568 * functions.texi: Regenerated.
1569
d4d868a2
RW
15702011-02-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1571
1572 * splay-tree.c: Escape wrapping newlines in texinfo markup
1573 with '@', to fix function declaration output rendering.
1574 * gather-docs: Relax and improve macro name matching to actually
1575 match all current names and to allow input line wrapping.
1576 * bsearch.c, concat.c, crc32.c, fnmatch.txh, fopen_unlocked.c,
1577 hashtab.c, insque.c, make-relative-prefix.c, memchr.c, memcmp.c,
1578 memcpy.c, memmem.c, memmove.c, mempcpy.c, memset.c,
1579 pexecute.txh, random.c, setenv.c, setproctitle.c,
1580 simple-object.txh, snprintf.c, stpncpy.c, strncmp.c, strtod.c,
1581 strtol.c, vasprintf.c, vprintf.c, vsnprintf.c, xmemdup.c:
1582 Wrap long texinfo input lines.
1583 * functions.texi: Regenerate.
1584
15852011-01-18 Mike Frysinger <vapier@gentoo.org>
1586
1587 * .gitignore: New file.
1588
98f0b5d4
DD
15892010-12-08 Doug Evans <dje@google.com>
1590
1591 * splay-tree.c (splay_tree_foreach_helper): Remove arg `sp',
1592 all callers updated. Rewrite to be non-recursive.
1593
531ff9fd
DD
15942010-11-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1595
1596 * setproctitle.c [HAVE_SYS_PRCTL_H]: Include <sys/types.h>.
1597
62b06a9e
DD
15982010-11-20 Anthony Green <green@moxielogic.com>
1599
1600 * configure.ac: Turn PR_SET_NAME link test into a test for
1601 sys/prctl.h.
1602 * configure, config.in: Rebuilt.
1603 * setproctitle.c: Test for HAVE_SYS_PRCTL_H.
1604 (setproctitle) Test for PR_SET_NAME definition.
1605
9b980aa1
RW
16062010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1607
1608 PR other/46202
1609 * Makefile.in (install-strip): New phony target.
1610 (install): Also mark as phony.
1611
f9e6589d
DD
16122010-11-16 Ian Lance Taylor <iant@google.com>
1613
1614 * simple-object.c (simple_object_attributes_merge): Rename from
1615 simple_object_attributes_compare. Call merge field.
1616 * simple-object-common.h (struct simple_object_functions): Rename
1617 attributes_compare field to attribute_merge.
1618 * simple-object-elf.c (EM_SPARC): Define.
1619 (EM_SPARC32PLUS): Define.
1620 (simple_object_elf_attributes_merge): Renamed from
1621 simple_object_elf_attributes_compare. Permit EM_SPARC and
1622 EM_SPARC32PLUS objects to be merged.
1623 (simple_object_elf_functions): Update function name.
1624 * simple-object-coff.c (simple_object_coff_attributes_merge):
1625 Rename from simple_object_coff_attributes_compare.
1626 (simple_object_coff_functions): Update function name.
1627 * simple-object-mach-o.c (simple_object_mach_o_attributes_merge):
1628 Renamed from simple_object_mach_o_attributes_compare.
1629 (simple_object_mach_o_functions): Update function name.
1630
a0692e36
L
16312010-11-16 H.J. Lu <hongjiu.lu@intel.com>
1632
1633 PR other/42670
1634 PR binutils/11137
1635 * cp-demangle.c (d_make_demangle_mangled_name): New.
1636 (d_demangle_callback): Use it on DCT_GLOBAL_XTORS.
1637
1638 * testsuite/demangle-expected: Updated.
1639
28fadfc4
DD
16402010-11-14 Kai Tietz <kai.tietz@onevision.com>
1641
1642 * simple-object-coff.c (simple_object_coff_read_strtab): Fix reading
1643 offset.
1644
361c3115
DD
16452010-11-12 Ian Lance Taylor <iant@google.com>
1646
1647 PR other/46332
1648 * cp-demangle.c (d_print_function_type): Don't print parentheses
1649 if there are no modifiers to print.
1650 * testsuite/demangle-expected: Tweak one test case, add another.
1651
9c55e064
RH
16522010-11-04 Richard Henderson <rth@redhat.com>
1653
1654 * configure.ac (AC_CHECK_HEADERS): Add process.h.
1655 (checkfuncs): Add dup3, spawnve, spawnvpe; sort the list.
1656 (AC_CHECK_FUNCS): Add dup3, spawnve, spawnvpe.
1657 * configure, config.in: Rebuild.
1658 * pex-unix.c [HAVE_SPAWNVE] (pex_unix_exec_child): New function.
1659 [HAVE_SPAWNVE] (save_and_install_fd, restore_fd): New functions.
1660
ffa54e5c
DD
16612010-11-02 Ian Lance Taylor <iant@google.com>
1662 Dave Korn <dave.korn.cygwin@gmail.com>
1663 Iain Sandoe <iains@gcc.gnu.org>
1664
1665 * simple-object.c: New file.
1666 * simple-object-common.h: New file.
1667 * simple-object-elf.c: New file.
1668 * simple-object-mach-o.c: New file.
1669 * simple-object-coff.c: New file.
1670 * simple-object.txh: New file.
1671 * configure.ac: Add AC_TYPE_SSIZE_T.
1672 * Makefile.in: Rebuild dependencies.
1673 (CFILES): Add simple-object.c, simple-object-coff,
1674 simple-object-elf.c, and simple-object-mach-o.c.
1675 (REQUIRED_OFILES): Add corresponding object files.
1676 * configure: Rebuild.
1677 * config.in: Rebuild.
1678 * functions.texi: Rebuild.
1679
80347f88
DD
16802010-10-29 Ian Lance Taylor <iant@google.com>
1681
1682 * setproctitle.c: Add space after function name in @deftypefn
1683 comment.
1684 * functions.texi: Rebuild.
1685
85f1f7cf
DD
16862010-10-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1687
1688 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY(C)): Delete.
1689 * configure: Regenerate.
1690
a903d6ac 16912010-10-07 Andi Kleen <ak@linux.intel.com>
94e48200
DD
1692
1693 * configure: Regenerate.
1694 * configure.ac: Turn PR_SET_NAME check into link check.
1695
a903d6ac 16962010-10-06 Andi Kleen <ak@linux.intel.com>
9711ae4d
DD
1697
1698 * Makefile.in (CFILES): Add setproctitle.
1699 (CONFIGURED_OFILES): Add setproctitle.
1700 (setproctitle): Add rule.
1701 * config.in: Regenerate.
1702 * configure: Regenerate.
1703 * configure.ac: Add checks for prctl PR_SET_NAME and setproctitle.
1704 * setproctitle.c: Add file.
1705 * functions.texi: Regenerate.
1706
6a44904e
DD
17072010-09-22 Tristan Gingold <gingold@adacore.com>
1708
1709 * cplus-dem.c (ada_demangle): Add comments.
1710 Handle stream and controlled type operations.
1711 Decoding of some uppercase letters moved before separators.
1712 * testsuite/demangle-expected: Add tests.
1713
57cf60a5
TT
17142010-09-10 James Lyon <jameslyon0@googlemail.com>
1715
1716 http://sourceware.org/bugzilla/show_bug.cgi?id=11572
1717 * cp-demangle.c (d_find_pack): Add case for
1718 DEMANGLE_COMPONENT_LAMBDA.
1719 * testsuite/demangle-expected: Add regression test.
1720
497462ef
DD
17212010-09-08 Tristan Gingold <gingold@adacore.com>
1722
1723 PR 44001
1724 * maint-tool (missing): Fix pattern for object file.
1725 (deps): Use $(objext) for object extension.
1726 * Makefile.in (objext): New variable.
1727 Replace all occurences of .o with .$(objext)
1728 Regenerate with maint-deps
1729 * configure.ac (pexecute): Set to the basename.
1730 * configure: Regenerate.
1731
23701f2e
DD
17322010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
1733
1734 * pex-common.c (pex_read_err): Set stderr_pipe to -1 if a
1735 corresponding stream has been opened.
1736 (pex_free): Close pipe file descriptors corresponding to child's
1737 stdout and stderr before waiting.
1738
9d8d6261
NC
17392010-08-13 Nick Clifton <nickc@redhat.com>
1740
1741 * argv.c (expandargv): Limit the number of times that response
1742 files are opened in order to prevent infinite recursion.
1743
ae30dc00
DD
17442010-07-21 Pascal Obry <obry@adacore.com>
1745
1746 * make-temp-file.c (choose_tmpdir): Append a dot to P_tmpdir if needed.
1747
f9e9243a
UW
17482010-07-06 Ken Werner <ken.werner@de.ibm.com>
1749
1750 * floatformat.c (floatformat_ieee_half_big): New variable.
1751 (floatformat_ieee_half_little): Likewise.
1752
6b13a44c
DD
17532010-06-14 Gerald Pfeifer <gerald@pfeifer.com>
1754
1755 * libiberty.texi: Remove reference to GCC 3 and 2001 (thrice).
1756 Update copyright years.
1757 Move to GFDL 1.3.
1758
3baae9d6
JJ
17592010-06-10 Jakub Jelinek <jakub@redhat.com>
1760
1761 PR other/43838
1762 * cp-demangle.c (struct d_print_info): Add flush_count field.
1763 (d_print_init): Initialize it to 0.
1764 (d_print_flush): Increment it.
1765 (d_print_comp): If needed flush before appending ", ". Only
1766 decrement dpi->len if no flushes happened during the recursive
1767 call.
1768 * testsuite/demangle-expected: Add a test for this.
1769
219a461e
DD
17702010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1771
1772 * splay-tree.c: Update copyright years.
1773 (splay_tree_new_typed_alloc): New.
1774 (splay_tree_new_with_allocator): Use it.
1775
1776 * hashtab.c: Update copyright years.
1777 (htab_create_typed_alloc): New.
1778 (htab_create_alloc): Use it.
1779
1780 * functions.texi: Regenerate.
1781
a2803021
DD
17822010-06-03 Joern Rennecke <joern.rennecke@embecosm.com>
1783 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1784
1785 PR bootstrap/42798
1786 * configure.ac: Check for declaration of 'basename(char *)'.
1787 * configure: Regenerate.
1788
17892010-05-26 Kai Tietz <kai.tietz@onevision.com>
0a5b531f
DD
1790
1791 * testsuite/demangle-expected: Add tests for __int128
1792 and unsigned __int128 types.
1793
cf383746
DD
17942010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
1795 Jason Merrill <jason@redhat.com>
1796
1797 * cp-demangle.c (cplus_demangle_builtin_types): Add nullptr.
1798 (cplus_demangle_type): Handle nullptr.
1799 * testsuite/demangle-expected: Test it.
1800
2cd2156f
DD
18012010-04-23 Pedro Alves <pedro@codesourcery.com>
1802
1803 * lbasename.c (lbasename): Split into ...
1804 (unix_lbasename, dos_basename): ... these.
1805 (lbasename): ... and reimplement on top of them.
1806 * Makefile.in (lbasename.o): Add dependency on
1807 $(INCDIR)/filenames.h.
1808
45ecb02a
DD
18092010-04-07 Jakub Jelinek <jakub@redhat.com>
1810
1811 * regex.c (byte_re_match_2_internal): Avoid set but not used
1812 warning.
1813
f9b58c5b
DD
18142010-03-22 Jason Merrill <jason@redhat.com>
1815
1816 * cp-demangle.c (d_print_mod): Use () rather than [] for vectors.
1817
178bead7
DD
18182010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1819
1820 * Makefile.in (all): Do not use exec.
1821
fbe5da0e
DD
18222010-02-04 Tom Tromey <tromey@redhat.com>
1823
1824 * testsuite/demangle-expected: Add missing --format=gnu-v3.
1825
cbc43128
DD
18262010-02-03 Jason Merrill <jason@redhat.com>
1827
1828 * cp-demangle.c (d_expression): Handle dependent operator name.
1829
1830 PR c++/12909
1831 * cp-demangle.c (d_number_component, d_vector_type): New.
1832 (cplus_demangle_type, d_print_comp, d_print_mod): Handle vectors.
1833
18342010-01-25 Ian Lance Taylor <iant@google.com>
1835
1836 * cp-demangle.c (cplus_demangle_type): Check for invalid type
1837 after "DF".
1838 * testsuite/demangle-expected: Add test.
1839
9ac9c2b6
DD
18402010-01-20 Jason Merrill <jason@redhat.com>
1841
1842 PR c++/42338
1843 * cp-demangle.c (d_print_comp): Fix array index printing.
1844
6d390a9e
DD
18452010-01-11 Tristan Gingold <gingold@adacore.com>
1846
1847 * cplus-dem.c (ada_demangle): Remove prototype.
1848 (grow_vect): Removed.
1849 (ada_demangle): Rewritten.
1850 (cplus_demangle): Fix indentation.
1851 * testsuite/demangle-expected: Add tests for Ada.
1852
ffe7cfdf
L
18532010-01-09 Ian Lance Taylor <iant@google.com>
1854
1855 PR other/42230
1856 * cp-demangle.c (d_demangle): Return dgs.alc on success.
1857
43e85a8f
DD
18582010-01-04 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
1859
1860 PR target/42316
1861 * configure.ac (PICFLAG): Use -fPIC on SH hosts.
1862 * configure: Regenerate.
1863
16b8170d
DE
18642009-12-07 Doug Evans <dje@google.com>
1865
1866 * pex-unix.c (pex_unix_exec_child): Save/restore environ.
1867
e96158fc
BE
18682009-11-26 Ben Elliston <bje@au.ibm.com>
1869
19afebda 1870 * configure.ac (AC_CHECK_FUNCS): Sort into alphabetic order.
e96158fc
BE
1871 * configure: Regenerate.
1872
cf89a94a
BE
18732009-11-25 Ben Elliston <bje@au.ibm.com>
1874
1875 * functions.texi: Rebuild.
1876
23d03362
BE
18772009-11-25 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1878 Ben Elliston <bje@au.ibm.com>
1879
1880 * README: Mention changes to Makefile.in and functions.texi.
1881 * gather-docs: Mention 'make stamp-functions' in the header.
1882
c90188f6
BE
18832009-11-23 Ben Elliston <bje@au.ibm.com>
1884 Ian Lance Taylor <iant@google.com>
1885
1886 * pex-unix.c (pex_child_error): Improve warning avoidance by
1887 checking the results of write(3) and exiting with -2 if any write
1888 returns a negative value.
1889
ca938790
DD
18902009-11-22 Steve Ward <planet36@gmail.com>
1891
1892 * dyn-string.c (dyn_string_append_char): Fix typo in comment.
1893
17f99e29
BE
18942009-11-20 Ben Elliston <bje@au.ibm.com>
1895
1896 * pex-unix.c (pex_child_error): Define writeerr macro to avoid
1897 unused result warnings from write(3) calls. Undefine writeerr
1898 after all uses.
1899
79e31468
DD
19002009-10-08 Daniel Gutson <dgutson@codesourcery.com>
1901 Daniel Jacobowitz <dan@codesourcery.com>
1902 Pedro Alves <pedro@codesourcery.com>
1903
79e31468
DD
1904 * argv.c (consume_whitespace): New function.
1905 (only_whitespace): New function.
1906 (buildargv): Always use ISSPACE by calling consume_whitespace.
1907 (expandargv): Skip empty files. Do not stop at the first empty
1908 argument (calling only_whitespace)..
1909 * testsuite/test-expandargv.c: (test_data): Test empty lines
1910 and empty arguments.
1911 (run_tests): Fix false positives due to shorter arguments.
1912
664aa91f
DD
19132009-09-30 Martin Thuresson <martint@google.com>
1914
1915 * regex.c (byte_re_match_2_internal): Split declaration and
1916 assignment to avoid -Wc++-compat warning due to goto.
1917
19182009-09-29 Jason Merrill <jason@redhat.com>
1919
1920 * Makefile.in: Enable demangle target.
1921 * cp-demangle.c (d_lambda, d_unnamed_type, d_make_default_arg): New.
1922 (d_name, d_prefix, d_unqualified_name, d_local_name): Handle lambdas.
1923 (d_parmlist): Factor out from d_bare_function_type.
1924 (d_compact_number): Factor out from d_template_param and d_expression.
1925 (d_append_num): Factor out from d_print_comp.
1926 (d_print_comp, d_print_mod_list): Handle lambdas.
1927 * testsuite/demangle-expected: Add lambda tests.
1928
572771db
DD
19292009-09-23 Matthew Gingell <gingell@adacore.com>
1930
1931 * cplus-dem.c (ada_demangle): Ensure demangled is freed.
1932
074d710d
KT
19332009-09-22 Ozkan Sezer <sezeroz@gmail.com>
1934
1935 * choose-temp.c: Include unistd.h for mingw targets.
1936
a17fcd19
DD
19372009-09-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1938
1939 * hashtab.c [HAVE_INTTYPES_H]: Include <inttypes.h>.
1940
bc426d7a
DD
19412009-09-15 Tristan Gingold <gingold@adacore.com>
1942
1943 * config.h-vms (intptr_t): Define to compile hashtab.c
1944
b4a451f5
L
19452009-09-04 Ozkan Sezer <sezeroz@gmail.com>
1946
1947 PR target/39065
1948 * configure.ac: Replace AC_CHECK_TYPE() for intptr_t and uintptr_t
1949 with AC_TYPE_INTPTR_T and AC_TYPE_UINTPTR_T.
1950 * config.in: Regenerated.
1951 * configure: Regenerated.
1952
fca6a796
L
19532009-09-03 Ozkan Sezer <sezeroz@gmail.com>
1954
1955 PR target/39065
1956 * configure.ac: Also check for intptr_t.
1957 * config.h.in: Regenerated.
1958 * configure: Regenerated.
1959 * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
1960 instead of of long.
1961
fce11aaa
TG
19622009-09-02 Tristan Gingold <gingold@adacore.com>
1963
1964 * vmsbuild.com: Removed as unused and superceeded by makefile.vms.
1965 * makefile.vms: Ported to Itanium VMS. Remove useless targets and
1966 dependencies. Remove unused FORMAT variable.
1967 * configure.com: New file to create build.com DCL script for
1968 Itanium VMS or Alpha VMS.
1969
d444d2ba
RW
19702009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1971
1972 * configure.ac (AC_PREREQ): Bump to 2.64.
1973
7a0801a9
L
19742009-08-23 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 PR ld/10536
1977 * Makefile.in (install-html-recursive): Removed.
1978
75086676
DD
19792009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1980
1981 * config.in: Regenerate.
1982 * configure: Regenerate.
1983
626aaf89
DD
19842009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1985
1986 * Makefile.in (AUTOCONF, configure_deps): New variables.
1987 ($(srcdir)/configure): New rule, active only in maintainer mode.
1988
b0832eea
DD
19892009-07-29 Douglas B Rupp <rupp@gnat.com>
1990
1991 * make-temp-file.c (choose_tmpdir): Try standard temp logical on VMS.
1992
9fef968a
DD
19932009-07-27 Douglas B Rupp <rupp@gnat.com>
1994
1995 * pex-unix.c (vfork): Remove VMS specific definition (get from header
1996 file instead).
1997 (to_ptr32): New function.
1998 (pex_unix_exec_child): Use it.
1999
bdc0e08d
DD
20002009-07-24 Ian Lance Taylor <iant@google.com>
2001
2002 PR bootstrap/40854
2003 * crc32.c (xcrc32): Rename from crc32.
2004
6e881691
DD
20052009-07-24 Ian Lance Taylor <iant@google.com>
2006
2007 * crc32.c: New file.
2008 * Makefile.in: Rebuild dependencies.
2009 (CFILES): Add crc32.c.
2010 (REQUIRED_OFILES): Add ./crc32.o.
2011 * functions.texi: Rebuild.
2012
d5031754
DD
20132009-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 * cp-demangle.c (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
2016 (d_print_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
2017 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_CONSTRUCTORS>)
2018 (d_make_comp <DEMANGLE_COMPONENT_GLOBAL_DESTRUCTORS): New.
2019 (d_demangle_callback): The variable type is now declared as enum.
2020 Replace parser of _GLOBAL_ symbols by a d_make_comp call.
2021
483d7cf4
DD
20222009-06-21 Jakub Jelinek <jakub@redhat.com>
2023
2024 * hashtab.c (htab_traverse): Don't call htab_expand for
2025 nearly empty hashtabs with sizes 7, 13 or 31.
2026
5d7aee10
NC
20272009-06-16 Nick Clifton <nickc@redhat.com>
2028
2029 PR 10197
2030 * testsuite/test-demangle.c: Rename getline to get_line to avoid
2031 conflicts with system function of the same name.
2032
8893fa20
DD
20332009-05-30 Eli Zaretskii <eliz@gnu.org>
2034
2035 * snprintf.c: Doc fix.
2036
2037 * vsnprintf.c: Doc fix.
2038
b69c3c55
KT
20392009-05-29 Kai Tietz <kai.tietz@onevision.com>
2040
6b6bd65a 2041 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
b69c3c55 2042
0dc69033
DD
20432009-05-29 Michael Matz <matz@suse.de>
2044
2045 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
2046 out when forcing the minimum.
2047 (fibheap_delete_node): Assert that we managed to force the minimum.
2048
56ae5eb9
TG
20492009-05-25 Tristan Gingold <gingold@adacore.com>
2050
2051 * config.h-vms: Rewritten. Define configure macros.
2052 Use DEC-C builtin alloca.
2053
2054 * makefile.vms (OBJS): Update list.
2055 (OPT): New variable.
2056 (CFLAGS): Update compilation flags.
2057 (libiberty.olb): Do not depend on alloca-conf.h anymore.
2058
4e55d6c3
DD
20592009-05-19 Ian Lance Taylor <iant@google.com>
2060 Ben Elliston <bje@au.ibm.com>
2061
2062 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
2063 (cplus_demangle_fill_dtor): Likewise.
2064
ed20019d
JB
20652009-05-17 Julian Brown <julian@codesourcery.com>
2066
2067 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
2068 standard handles (stdin, stdout, stderr) in parent.
2069
59cdf842
JB
20702009-04-29 Julian Brown <julian@codesourcery.com>
2071
6b6bd65a 2072 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
59cdf842 2073 (pex_win32_exec_child): Ensure each process has only one handle open
3ea74505
DD
2074 on pipe endpoints. Close standard input after creating child for
2075 symmetry with standard output/standard error.
59cdf842 2076
e1ad6b9a
DD
20772009-04-25 Eli Zaretskii <eliz@gnu.org>
2078
2079 * Makefile.in (needed-list): Target removed (not used in GCC
2080 3.0 and later). All references deleted.
2081 (mostlyclean): Remove references to needed.awk and needed2.awk.
2082
68724c3d
DD
20832009-04-14 Eli Zaretskii <eliz@gnu.org>
2084
2085 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
2086 existing and required library functions to with_target_subdir
2087 section, so that the native build does detect them at configure
2088 time.
2089 * configure: Regenerated.
6b6bd65a 2090
587c6b96
KT
20912009-04-13 Ozkan Sezer <sezeroz@gmail.com>
2092
6b6bd65a
DD
2093 PR target/39397
2094 * pex-common.h (struct pex_obj): Store pid values as pid_t,
2095 not as long (members *children and (*wait))
2096 * pex-common.c (pex_run_in_environment): Likewise.
2097 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
2098 returned pid value.
2099 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
2100 * pex-msdos.c (pex_msdos_wait): Likewise.
587c6b96 2101
3c72fdec
DD
21022009-04-07 Arnaud Patard <apatard@mandriva.com>
2103
41f225de
NC
2104 * configure.ac: Fix Linux/MIPS matching rule.
2105 * configure: Regenerate.
3c72fdec 2106
6e881691 21072009-03-27 Ian Lance Taylor <iant@google.com>
10e1b6bb
DD
2108
2109 * memmem.c: New file, from gnulib.
2110 * configure.ac: Add memmem to list of functions provided if they
2111 are not available on the host.
2112 * Makefile.in: Rebuild dependencies.
2113 (CFILES): Add memmem.c.
2114 (CONFIGURED_OFILES): Add memmem.o.
2115 * configure, config.in, functions.texi: Rebuild.
2116
e2e1864d
DD
21172009-03-23 Jason Merrill <jason@redhat.com>
2118
2119 * cp-demangle.c (d_expression): Handle pack expansion.
2120 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
2121 (d_print_subexpr): Don't wrap function parms in ().
2122 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
2123 not finding a pack.
2124
c743cf5d
DD
21252009-03-17 Jason Merrill <jason@redhat.com>
2126
2127 * cp-demangle.c (d_make_function_param): new fn.
2128 (cplus_demangle_mangled_name): Work around abi v2 bug.
2129 (d_expr_primary): Likewise.
2130 (cplus_demangle_operators): Add alignof ops.
2131 (d_expression): Handle function parameters and conversions
2132 with other than 1 operand.
2133 (d_print_comp): Handle function parameters. Fix bug with
2134 function used in type of function.
cbc43128 2135 * testsuite/demangle-expected: Update tests.
c743cf5d 2136
3ca747ab
DD
21372009-02-21 Mark Mitchell <mark@codesourcery.com>
2138
2139 * make-temp-file.c (<windows.h>): Include on Windows.
2140 (choose_tmpdir): On Windows, use GetTempPath.
2141
1b5bf944
DK
21422009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
2143
2144 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
2145 as it no longer shares libiberty object files.
2146 * configure: Regenerated.
2147
60cf58f5
DD
21482009-01-07 Jason Merrill <jason@redhat.com>
2149
2150 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
2151
21522009-01-06 Ben Elliston <bje@au.ibm.com>
2153
2154 * cp-demangle.c (cplus_demangle_type): Return NULL if the
2155 character following a 'D' cannot be recognised.
2156
4e59450e
DD
21572008-12-18 Jason Merrill <jason@redhat.com>
2158
2159 PR c++/38561
2160 * cp-demangle.c (d_expression, d_print_comp): Revert
2161 cast changes.
2162
21632008-12-17 Jason Merrill <jason@redhat.com>
2164
2165 * cp-demangle.c (d_expression): Handle rvalue stubs too.
2166 [DEMANGLE_COMPONENT_CAST]: Update mangling.
2167 (d_print_comp): Avoid extra ", " with empty template argument packs.
2168 Remove handling for obsolete T() mangling.
2169
d2825c1a
DD
21702008-12-10 Jason Merrill <jason@redhat.com>
2171
2172 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
2173 (d_print_comp, d_dump): Likewise.
2174
bb52de30
DJ
21752008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
2176
2177 * Makefile.in (CPPFLAGS): Define.
2178 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
2179
eff85da5
DD
21802008-10-15 Paolo Bonzini <bonzini@gnu.org>
2181
2182 PR bootstrap/37137
2183 * Makefile.in (LIBCFLAGS): Remove.
2184 (FLAGS_TO_PASS): Don't mention it.
2185 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
2186
de8a05ff
DE
21872008-10-08 David Edelsohn <edelsohn@gnu.org>
2188
06d61999 2189 * xstrdup.c: Include <sys/types.h> after "config.h"
6b6bd65a 2190
899de170
L
21912008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2192
2193 * configure.ac: Call AC_SYS_LARGEFILE.
2194 * config.in: Regenerated.
2195 * configure: Likewise.
2196
1c08f2c8
DD
21972008-10-06 Jason Merrill <jason@redhat.com>
2198
2199 * cp-demangle.c (struct d_print_info): Add pack_index.
2200 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
2201 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
2202 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
2203 (cplus_demangle_builtin_types): Add char16/32_t.
2204 (cplus_demangle_type): Recognize them.
2205 (d_template_args): Handle empty argument packs.
2206 (d_template_arg): Handle argument packs.
2207 (d_expression): Handle dependent name.
2208 (d_index_template_argument): New fn.
2209 (d_lookup_template_argument): New fn.
2210 (d_find_pack, d_pack_length): New fn.
2211 (d_print_subexpr): Split out...
2212 (d_print_comp): ...from here. Use d_*_template_argument.
2213 Handle empty arg lists. Support pack expansions.
2214 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
d053aef8 2215
ba8cb4ba
DD
22162008-09-09 Jason Merrill <jason@redhat.com>
2217
2218 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
2219 (d_make_comp): Likewise.
2220 (cplus_demangle_type): Handle decltype and DFP types.
2221 (cplus_demangle_operators): Call operator takes 2 args.
2222 (cplus_demangle_builtin_types): Add DFP types.
2223 (d_exprlist): New fn.
2224 (d_expression): Handle parm placeholders, T() and calls.
2225 (d_print_comp): Handle decltype, T() and calls.
2226 * testsuite/demangle-expected: Test the above.
2227
bd8aab1c
DD
22282008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2229
2230 * pex-win32.c (argv_to_argc): New function.
2231 (spawn_script): Duplicate argv before calling win32_spawn.
2232
8975bb30
DD
22332008-07-31 Jakub Jelinek <jakub@redhat.com>
2234
2235 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
2236
f562800d
DD
22372008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
2238
2239 * mkstemps.c (mkstemps): If open failed with errno other than
2240 EEXIST, return immediately.
2241 * make-temp-file.c: Include errno.h.
2242 (make_temp_file): If mkstemps failed, print an error message
2243 before aborting.
2244
b7d9aef1
DD
22452008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2246
2247 * maint-tool (deps): Output config.h instead of stamp-h.
2248 * Makefile.in: Rebuild deps.
2249 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
2250 Reverts 2007-07-11 change.
2251
2c197581
EB
22522008-06-19 Eric Blake <ebb9@byu.net>
2253
2254 Adjust strsignal to POSIX 200x prototype.
2255 * strsignal.c (strsignal): Remove const.
2256
c8536f38
DD
22572008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2258
2259 * configure: Regenerate.
2260
83ef53a9
DD
22612008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2262
2263 * libiberty.texi: Expand TABs, drop indentation outside examples.
2264 * obstacks.texi: Likewise.
2265
017c1138
DD
22662008-04-21 Aurelien Jarno <aurelien@aurel32.net>
2267
41f225de
NC
2268 * configure.ac: use -fPIC on Linux/MIPS hosts.
2269 * configure: Regenerate.
017c1138 2270
5ae54241
DD
22712008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
2272
2273 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
2274
22752008-04-18 Paolo Bonzini <bonzini@gnu.org>
2276
2277 PR bootstrap/35457
2278 * aclocal.m4: Add override.m4.
2279 * configure: Regenerate.
2280
dddc49b7
DD
22812008-03-31 Ian Lance Taylor <iant@google.com>
2282
2283 * cp-demangle.c (d_substitution): Correct overflow check to avoid
2284 -fstrict-overflow optimizations.
2285
c779bab8
PB
22862008-03-27 Paolo Bonzini <bonzini@gnu.org>
2287
2288 * configure.ac (frags): Don't set, use frag instead.
2289 (PICFLAG): Set here and substitute.
2290 * Makefile.in (PICFLAG): Substitute from autoconf.
2291 * configure: Regenerate.
2292
b68965a0
DD
22932008-03-24 Ian Lance Taylor <iant@google.com>
2294
2295 * sha1.c: New file, from gnulib.
2296 * Makefile.in: Rebuild dependencies.
2297 (CFILES): Add sha1.c.
2298 (REQUIRED_OFILES): Add sha1.o.
2299
daddbc6e
DD
23002008-03-24 Doug Evans <dje@google.com>
2301
2302 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
2303 return from strdup.
2304
6b357a9d
DD
23052008-03-12 Seongbae Park <seongbae.park@gmail.com>
2306
2307 * cplus-dem.c (malloc, realloc): Use void * instead of char *
2308 as return type.
2309
3f69c6bf
DD
23102008-03-11 Nick Clifton <nickc@redhat.com>
2311
2312 * md5.c (md5_process_bytes): Do not assume that memcpy will
2313 provide a return value.
2314
610f4894
BE
23152008-02-19 Ben Elliston <bje@au.ibm.com>
2316
2317 PR other/12618
2318 * testsuite/Makefile.in (mostlyclean): Remove any core file.
2319
830ef634
DD
23202008-01-26 David Daney <ddaney@avtrex.com>
2321
2322 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
2323 DEMANGLE_COMPONENT_COMPOUND_NAME, and
2324 DEMANGLE_COMPONENT_CHARACTER cases.
2325 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
2326 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
2327 (d_make_character): New function.
2328 (d_java_resource): Same.
2329 (d_special_name): Handle "Gr" case.
2330 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
2331 DEMANGLE_COMPONENT_COMPOUND_NAME, and
2332 DEMANGLE_COMPONENT_CHARACTER cases.
2333 * testsuite/demangle-expected: Add test for java resource name
2334 mangling.
2335
b4b41ceb
BE
23362008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
2337
2338 * cplus-dem.c (demangle_function_name): Changed to return value
2339 indicating if a name was correctly demangled.
2340 (iterate_demangle_function): Use demangle_function_name return
2341 value.
2342
145f4ab5
DD
23432008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2344
2345 PR other/33768
2346 * splay-tree.c (rotate_left): Fix minor typo in comment.
2347 (rotate_right): Likewise.
2348
38e654e2
DD
23492007-11-12 Joseph Myers <joseph@codesourcery.com>
2350
2351 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
2352 compiler warnings.
2353 (floatformat_ibm_long_double): Use
2354 floatformat_ibm_long_double_is_valid.
2355
b14d30e1
JM
23562007-11-07 Joseph Myers <joseph@codesourcery.com>
2357 Daniel Jacobowitz <dan@codesourcery.com>
2358
2359 * floatformat.c (mant_bits_set): New.
2360 (floatformat_to_double): Use it. Note no special handling of
2361 split formats.
2362 (floatformat_from_double): Note no special handing of split
2363 formats.
2364 (floatformat_ibm_long_double_is_valid,
2365 floatformat_ibm_long_double): New.
2366 (floatformat_ieee_single_big, floatformat_ieee_single_little,
2367 floatformat_ieee_double_big, floatformat_ieee_double_little,
2368 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
2369 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
2370 floatformat_m68881_ext, floatformat_i960_ext,
2371 floatformat_m88110_ext, floatformat_m88110_harris_ext,
2372 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
2373 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
2374 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
2375 for addition of split_half field.
2376
3a0ab695
DD
23772007-09-06 Tom Tromey <tromey@redhat.com>
2378
2379 * pexecute.txh (pex_free): Document process killing.
2380
8969a67f 23812007-08-31 Douglas Gregor <doug.gregor@gmail.com>
2c197581 2382
8969a67f 2383 * cp-demangle.c (d_dump): Handle
2c197581 2384 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
8969a67f
DD
2385 (d_make_comp): Ditto.
2386 (cplus_demangle_type): Ditto.
2387 (d_print_comp): Ditto.
2388 (d_print_mod): Ditto.
2389 (d_print_function_type): Ditto.
2390
29d89e07
DD
23912007-08-24 Kai Tietz <kai.tietz@onevision.com>
2392
2393 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
2394 * pex-djgpp.c: Likewise.
2395 * pex-msdos.c: Likewise.
2396 * pex-unix.c: Likewise.
2397 * pex-win32.c: Likewise.
2398
cefec409
DD
23992007-08-17 Michael Snyder <msnyder@access-company.com>
2400
2401 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
2402
9250f7f0
DD
24032007-08-03 Michael Snyder <msnyder@access-company.com>
2404
2405 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
2406 leak.
2407
168b8298
MS
24082007-07-31 Michael Snyder <msnyder@access-company.com>
2409
2410 * cp-demangle.c (d_print_comp): Guard against null.
2411
642c7534
BE
24122007-07-25 Ben Elliston <bje@au.ibm.com>
2413
2414 * Makefile.in (CFILES): Remove ternary.c.
2415 (REQUIRED_OFILES): Remove ./ternary.o.
2416 (INSTALLED_HEADERS): Remove ternary.h.
2417 (ternary.o): Remove.
2418 * ternary.c: Remove.
2419
acf3a813
DD
24202007-07-23 DJ Delorie <dj@redhat.com>
2421
2422 * argv.c (writeargv): Fix typo in inline documentation.
2423 * functions.texi: Regenerate.
2424
008d60eb
DD
24252007-07-17 DJ Delorie <dj@redhat.com>
2426
2427 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
2428 gettimeofday entry.
2429 * configure: Likewise.
2430
a590e8e7
AO
24312007-07-11 Alexandre Oliva <aoliva@redhat.com>
2432
2433 * maint-tool (deps): Output stamp-h instead of config.h.
2434 * Makefile.in: Rebuild deps.
2435 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
2436
db42c6e8
DD
24372007-07-02 Simon Baldwin <simonb@google.com>
2438
2439 * argv.c (writeargv): Removed declaration of unused variable.
2440
1f616ca1
PB
24412007-06-14 Paolo Bonzini <bonzini@gnu.org>
2442
2443 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
2444 * configure: Regenerate.
2445
a104c397
PB
24462007-06-14 Paolo Bonzini <bonzini@gnu.org>
2447
2448 * aclocal.m4: Include config/warnings.m4.
2449 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
2450 * configure: Regenerate.
2451
958afec3
GK
24522007-06-07 Geoffrey Keating <geoffk@apple.com>
2453
2454 * configure.ac: Non-default multilibs can be cross compilations.
2455 * configure: Regenerate
2456
0c18fee5
DD
24572007-05-07 Nathan Froyd <froydnj@codesourcery.com>
2458
2459 * argv.c (writeargv): New function.
2460
8bf955e1
GK
24612007-05-05 Geoffrey Keating <geoffk@apple.com>
2462
2463 * cp-demangle.c (d_name): Detect local-source-name.
2464 (d_prefix): Likewise.
2465 (d_unqualified_name): Implement local-source-name.
2466
73bdefcf
JB
24672007-05-03 Joel Brobecker <brobecker@adacore.com>
2468
2469 * filename_cmp.c: Replace include of ctype.h by include of
2470 safe-ctype.h.
2471 (filename_cmp): Use TOLOWER instead of tolower for conversions
2472 that are locale-independent.
2473 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
2474
41f225de 24752007-04-11 Thomas Neumann <tneumann@users.sourceforge.net>
8535fe17
DD
2476
2477 * argv.c: Use ANSI C declarations.
2478 * make-relative-prefix.c: Likewise.
2479
34d8f01b
JB
24802007-04-06 Joel Brobecker <brobecker@adacore.com>
2481
2482 * filename_cmp.c (filename_cmp): Improve documentation.
2483
2657faa6
AS
24842007-04-02 Andreas Schwab <schwab@suse.de>
2485
2486 * filename_cmp.c: Include "config.h".
2487
9c577e89
DD
24882007-03-29 Joel Brobecker <brobecker@adacore.com>
2489
2490 * filename_cmp.c: New file.
2491 * Makefile.in (CFILES): Add filename_cmp.c.
2492 (REQUIRED_OFILES): Add filename_cmp.o
2493 (filename_cmp.o): New rule.
2494 * functions.texi: Regenerate.
2495
8d301070
GK
24962007-03-15 Geoffrey Keating <geoffk@apple.com>
2497
2498 * cp-demangle.c (d_encoding): Exit early on error.
2499 (d_pointer_to_member_type): Exit early if cplus_demangle_type
2500 returns NULL.
2501 (cplus_demangle_type): Likewise.
2502 * testsuite/demangle-expected: New testcase.
2503
d7831e7c
DD
25042007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2505
2506 * Makefile.in: Add install-pdf target as copied from
2507 automake v1.10 rules.
2508 * testsuite/Makefile.in: Add dummy install-pdf target.
2509
563d09a5 25102007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
2c197581 2511 Eric Botcazou <ebotcazou@libertysurf.fr>
563d09a5
EB
2512
2513 PR other/16513
2514 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
2515 Install headers in multilib independent location.
2516
1f92e180
DD
25172007-02-26 DJ Delorie <dj@redhat.com>
2518
2519 * configure.ac: add djgpp-specific results, so we don't have to
2520 link during a cross compilation.
2521 * configure: Regenerated.
2c197581 2522
6dd7f013
DD
25232007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2524
2525 * hex.c: Fix typo.
2526 * choose-temp.c: Likewise.
2527 * functions.texi: Regenerate.
2528
53d7966f
VP
25292007-01-31 Vladimir Prus <vladimir@codesourcery.com>
2530
2531 * pex-common.h (struct pex_obj): New fields
2c197581 2532 stderr_pipe and read_err.
53d7966f
VP
2533 * pex-common.c (pex_init_common): Initialize
2534 stderr_pipe.
2535 (pex_run_in_environment): Add error checking
2536 for PEX_STDERR_TO_PIPE. Create a pipe
2537 for stderr if necessary.
2538 (pex_read_err): New.
2539 (pex_free): Close read_err.
2540 * pexecute.txh: Document changes.
2541 * functions.texi: Regenerated.
2542
71f2e6f4
BE
25432007-01-31 Ben Elliston <bje@au.ibm.com>
2544
2545 * strsignal.c (psignal): Change type of signo to int.
2546 * functions.texi: Regenerate.
2547
208c1674
DD
25482007-01-29 Simon Baldwin <simonb@google.com>
2549
2550 * cp-demangle.h (cplus_demangle_operators): External definition
2551 suppressed if not building for libstdc++.
2552 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
2553 to demangling, provides a malloc-less version of __cxa_demangle.
2554 (cplus_demangle_print_callback): Public callback version of
2555 cplus_demangle_print.
2556 (struct d_growable_string): New growable string structure.
2557 (d_growable_string_init): New function, provides support for
2558 growable strings separate from print info.
2559 (d_growable_string_resize): Likewise.
2560 (d_growable_string_append_buffer): Likewise.
2561 (d_growable_string_callback_adapter):): Likewise.
2562 (d_print_init): New print info initialization function.
2563 (d_print_error): Macro replace by inline function.
2564 (d_print_saw_error): Likewise.
2565 (d_append_char): Likewise.
2566 (d_append_buffer): Likewise.
2567 (d_append_string): New inline function, replaces the
2568 d_append_string_constant macro.
2569 (d_flush_buffer): New function, flushes buffer to callback.
2570 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
2571 for unsupported dynamic arrays replaced by alloca().
2572 (d_demangle): Return string length estimating removed.
2573 (d_dump): Moved error case handling from call site into function.
2574 (d_print_resize): Function removed.
2575 (d_print_append_char): Likewise.
2576 (d_print_append_buffer): Likewise.
2577 (d_print_error): Likewise.
2578 (d_print_comp): Added special case handling for Java arrays.
2579 (java_demangle_v3): Removed string post-processing for Java arrays,
2580 now replaced by special case handling in d_print_comp.
2581 (cplus_demangle_v3_callback): Augmented interface to demangling,
2582 provides a malloc-less version of cplus_demangle_v3.
2583 (java_demangle_v3_callback): Augmented interface to demangling,
2584 provides a malloc-less version of java_demangle_v3.
2585
cc0732ba
BE
25862007-01-12 Ben Elliston <bje@au.ibm.com>
2587
0bbe7a79
BE
2588 * pex-unix.c (writeerr): Cast write result to void.
2589
cc0732ba
BE
2590 * choose-temp.c (choose_temp_base): Check the result of the call
2591 to mktemp rather than testing the length of the modified string.
2da20a1b 2592
6ef6358e
GK
25932006-12-20 Geoffrey Keating <geoffk@apple.com>
2594
2595 * cp-demangle.h: Add comment explaining what to do to avoid
2596 overrunning string.
2597 (d_check_char): New.
2598 (d_next_char): Don't advance past trailing '\0'.
2599 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
2600 (d_nested_name): Likewise.
2601 (d_special_name): Likewise.
2602 (d_call_offset): Likewise.
2603 (d_function_type): Likewise.
2604 (d_array_type): Likewise.
2605 (d_pointer_to_member_type): Likewise.
2606 (d_template_param): Likewise.
2607 (d_template_args): Likewise.
2608 (d_template_arg): Likewise.
2609 (d_expr_primary): Likewise.
2610 (d_local_name): Likewise.
2611 (d_substitution): Likewise.
2612 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
2613 * testsuite/test-demangle.c: Include sys/mman.h.
2614 (MAP_ANONYMOUS): Define.
2615 (protect_end): New.
2616 (main): Use protect_end.
2617 * testsuite/demangle-expected: Add testcases for overrunning
2618 the end of the string.
2619
d8f813d4 26202006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
2c197581 2621 J"orn Rennecke <joern.rennecke@st.com>
d8f813d4
JR
2622
2623 PR driver/29931
2624 * make-relative-prefix.c (make_relative_prefix_1): New function,
2625 broken out of make_relative_prefix. Make link resolution dependent
2626 on new parameter.
2627 (make_relative_prefix): Use make_relative_prefix_1.
2628 (make_relative_prefix_ignore_links): New function.
2629
fb347196
VP
26302006-11-08 Vladimir Prus <vladimir@codesourcery.com>
2631
2632 * pex-win32.c (no_suffixes): Remove.
2633 (std_suffixes): Add "" as first element.
2634 (find_executable): Remove detection of already-present
2635 extension. Try all suffixes in std_suffixes.
2c197581 2636
9e59254c
JB
26372006-11-07 Julian Brown <julian@codesourcery.com>
2638
2639 * floatformat.c (get_field): Fix segfault with little-endian word
2640 order on 64-bit hosts.
2641 (put_field): Likewise.
2642 (min): Move definition.
2643
3ac01eb2
DD
26442006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
2645
2646 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
2647 (find_executable): Likewise.
2648 (win32_spawn): Cast alloca return to (char**).
2649 Replace malloc with XNEWVEC.
2650 bcopy.c (bcopy): Add explict casts in assignments.
2651
78de3ccc
DD
26522006-10-25 Ben Elliston <bje@au.ibm.com>
2653
2654 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
2c197581 2655
bff368bd
DD
26562006-10-10 Brooks Moses <bmoses@stanford.edu>
2657
2658 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
2659 * testsuite/Makefile.in: Added empty "pdf" target.
2660
e63f184e
DD
26612006-09-22 Ian Lance Taylor <ian@airs.com>
2662
2663 PR other/29176
2664 * cp-demangle.c (d_substitution): Check for overflow when
2665 computing substitution index.
2666
069e4b19
CV
26672006-08-30 Corinna Vinschen <corinna@vinschen.de>
2668
2669 * configure.ac: Add case for Mingw as host.
2670 * configure: Regenerate.
2671
cb6c09ac
DD
26722006-08-27 Ian Lance Taylor <ian@airs.com>
2673
2674 PR driver/27622
2675 * pex-common.h (struct pex_funcs): Add toclose parameter to
2676 exec_child field.
2677 * pex-common.c (pex_run_in_environment): Pass toclose to
2678 exec_child.
2679 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
2680 * pex-unix.c (pex_unix_exec_child): Likewise.
2681 * pex-msdos.c (pex_msdos_exec_child): Likewise.
2682 * pex-win32.c (pex_win32_exec_child): Likewise.
2683
2684 PR other/28797
2685 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
2686 for a qualified member which is not a function.
2687 * testsuite/demangle-expected: Add test case.
2688
a7d421b8
DD
26892006-07-27 Jan Hubicka <jh@suse.cz>
2690
2691 PR rtl-optimization/28071
2692 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
2693 downsize the hashtable.
2694
6816f995
AO
26952006-07-04 Peter O'Gorman <peter@pogma.com>
2696
2697 * Makefile.in: chmod 644 before ranlib during install.
2698
7741be99
DD
26992006-06-02 Mark Shinwell <shinwell@codesourcery.com>
2700
2701 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
2702 to environ.
2703
014a8caf
DD
27042006-06-01 Mark Shinwell <shinwell@codesourcery.com>
2705
2706 * pex-common.c: New function pex_run_in_environment.
2707 * pex-common.h: Add environment parameter to exec_child.
2708 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
2709 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
2710 (pex_djgpp_exec_child): Pass environment to child process.
2711 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
2712 (pex_unix_exec_child): Pass environment to child process.
2713 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
2714 New function env_compare for comparing VAR=VALUE pairs.
2715 (win32_spawn): Assemble environment block and pass to CreateProcess.
2716 (spawn_script): Pass environment through to win32_spawn.
2717 (pex_win32_exec_child): Pass environment through to spawn_script and
2718 win32_spawn.
2719 * functions.texi: Regenerate.
2720 * pexecute.txh: Document pex_run_in_environment.
2721
069c63e2
DD
27222006-05-28 Mark Shinwell <shinwell@codesourcery.com>
2723
2724 * mkstemps.c: Open temporary files in binary mode.
2725
f6b66e90
DD
27262006-05-12 Anton Blanchard <anton@samba.org>
2727
2728 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
2729 hold "int%u_t".
2730
c77d28ac
JB
27312006-04-24 Julian Brown <julian@codesourcery.com>
2732
2733 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
2734
3db2e6dd
DD
27352006-03-29 Jim Blandy <jimb@codesourcery.com>
2736
b5d60b68 2737 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
3db2e6dd
DD
2738 (pex_init_common): Initialize obj->input_file.
2739 (pex_run): Close any file opened by pex_input_file.
b5d60b68
DD
2740 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
2741 * pex-common.h (struct pex_obj): New field input_file.
3db2e6dd 2742 (struct pex_funcs): New function ptr fdopenw.
b5d60b68
DD
2743 * pex-unix.c (pex_unix_fdopenw): New function.
2744 (funcs): List it as our fdopenw function.
2745 * pex-win32.c (pex_win32_fdopenw): New function.
2746 (funcs): List it as our fdopenw function.
2747 * pex-djgpp.c (funcs): Leave fdopenw null.
2748 * pex-msdos (funcs): Same.
2749 * functions.texi: Regenerated.
3db2e6dd
DD
2750
27512006-04-10 Jim Blandy <jimb@codesourcery.com>
2752
2753 * pex-common.c (temp_file): New function, containing guts of
2754 pex-style temporary file name generation.
2755 (pex_run): Use it.
2756
545c9aee
DD
27572006-04-06 Carlos O'Donell <carlos@codesourcery.com>
2758
2759 * Makefile.in: Add install-html, install-html-am, and
2c197581
EB
2760 install-html-recursive targets. Define mkdir_p and
2761 NORMAL_INSTALL.
545c9aee
DD
2762 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
2763 * configure: Regenerate.
2764 * testsuite/Makefile.in: Add install-html and html targets.
2765
8e1e9959
DD
27662006-03-31 Mark Mitchell <mark@codesourcery.com>
2767
2768 * pex-win32.c (<errno.h>): Include.
2769 (fix_argv): Remove.
2770 (argv_to_cmdline): New function.
2771 (std_suffixes): New variable.
2772 (no_suffixes): Likewise.
2773 (find_executable): New function.
2774 (win32_spawn): Likewise.
2775 (spawn_script): Use win32_spawn instead of _spawnv[p].
2776 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
2777 (pex_win32_wait): Likewise.
2778
57b126a3
DD
27792006-03-24 Jim Blandy <jimb@codesourcery.com>
2780
2781 * pex-common.c (pex_run): Simplify output name handling.
2782
9223c945
DD
27832006-03-12 Jim Blandy <jimb@red-bean.com>
2784
2785 * pex-common.h (struct pex_obj): Doc fixes.
2786
27872006-03-11 Jim Blandy <jimb@red-bean.com>
2788
2789 * functions.texi: Regenerate.
2790
96f4851a
DD
27912006-02-21 Ben Elliston <bje@au.ibm.com>
2792
2793 * pexecute.c (pwait): Syntax fix for previous change.
2794
1c7a49d2
DD
27952006-02-17 Uttam Pawar <uttamp@us.ibm.com>
2796
2797 * pexecute.c (pwait): Free vector pointer.
2798 * partition.c (partition_print): Free class_elements pointer.
2799
e27d251e
DD
28002006-02-11 Roger Sayle <roger@eyesopen.com>
2801 R. Scott Bailey <scott.bailey@eds.com>
2802 Bill Northcott <w.northcott@unsw.edu.au>
2803
2804 PR bootstrap/16787
2805 * floatformat.c: Include <float.h> where available.
2806 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
2807
fd7d450d
DD
28082006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
2809
2810 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
2c197581 2811 supported.
fd7d450d
DD
2812 * configure: Regenerated.
2813
67d78caa
DD
28142006-01-20 Carlos O'Donell <carlos@codesourcery.com>
2815
2816 * testsuite/Makefile.in: Add test-expandargv test.
2817 * testsuite/test-expandargv.c: New test.
2818 * argv.c (expandargv): Check for errors with ferror,
2819 rather than just by looking at return value from fread.
2820
648c3dc0
DD
28212005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
2822
2823 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
2824 to convert from "from".
2825 (floatformat_to_double): Likewise.
2826 (floatformat_from_double): Use explicit cast to convert from "to".
2827
7887b2ce
DD
28282005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
2829
2830 PR java/9861
2831 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
2832 and include return type when found.
2833 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
2834 conditional logic to change printing order of return type.when
2835 the DMGL_RET_POSTFIX option is present.
2836 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
2837 call.
2838 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
2839 * testsuite/demangle-expected: Test cases to verify extended encoding.
2840 Updated comment to document --ret-postfix option.
2c197581 2841
718c0ded
DD
28422005-11-06 Richard Guenther <rguenther@suse.de>
2843
2844 * splay-tree.c (rotate_left): New function.
2845 (rotate_right): Likewise.
2846 (splay_tree_splay_helper): Remove.
2847 (splay_tree_splay): Re-implement.
2848
fb10537e
DD
28492005-10-31 Mark Kettenis <kettenis@gnu.org>
2850
2851 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
2852 New variables.
2853
5209596c
MM
28542005-10-07 Mark Mitchell <mark@codesourcery.com>
2855
2856 * at-file.texi: Fix typo.
2857
7b96829c
MM
28582005-10-03 Mark Mitchell <mark@codesourcery.com>
2859
2860 * at-file.texi: New file.
2861
48e79b0a
MM
28622005-09-27 Mark Mitchell <mark@codesourcery.com>
2863
2864 * argv.c (expandargv): Do not use xmalloc_failed.
2865
7b17bc29
MM
28662005-09-26 Mark Mitchell <mark@codesourcery.com>
2867
2868 * argv.c (safe-ctype.h): Include it.
2869 (ISBLANK): Remove.
2870 (stdio.h): Include.
2871 (buildargv): Use ISSPACE instead of ISBLANK.
2872 (expandargv): New function.
2873 * Makefile.in: Regenerated.
2874
f59e96e0
DD
28752005-09-14 Christopher Faylor <cgf@timesys.com>
2876
2877 * pex-win32.c: Include "windows.h".
2878 (backslashify): New function.
2879 (fix_argv): Use backslashify to convert path to windows format.
2880 Allocate one more place in new argv for potential executable from '#!'
2881 parsing.
2882 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
2883 (openkey): Ditto.
2884 (mingw_rootify): Ditto.
2885 (msys_rootify): Ditto.
2886 (spawn_script): New function.
2887 (pex_win32_exec_child): Save translated argv in newargv. Pass to
2888 spawn_script if spawnv* fails.
2889 (main): New function. Conditional on MAIN. Useful for testing.
2890
3b6940c0
DD
28912005-08-17 Mark Kettenis <kettenis@gnu.org>
2892
2893 * floatformat.c (floatformat_always_valid): Change type of last
2894 argument to `void *'.
2895 (floatformat_i387_ext_is_valid): Likewise.
2896 (floatformat_to_double): Change type of second argument to `const
2897 void *'.
2898 (floatformat_from_double): Change type of last argument to `void
2899 *'.
2900 (floatformat_is_valid): Change type of last argument to `const
2901 void *'.
2902 (ieee_test): Remove redundant casts.
2903
a9479c3f
KC
29042005-08-17 Kelley Cook <kcook@gcc.gnu.org>
2905
2906 * strverscmp.c: Update FSF address.
2907 * testsuite/Makefile.in: Likewise.
2908 * testsuite/test-demangle.c: Likewise.
2909 * testsuite/test-pexecute.c: Likewise.
2910
55060c0b
DD
29112005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2912
2913 * getopt.c: Include ansidecl.h before system headers.
2914
6038baea
DD
29152005-07-22 Ben Elliston <bje@gnu.org>
2916
2917 * getopt.c: Include "ansidecl.h".
2918 (_getopt_initialize): Mark argc and argv parameters as unused.
2919
29202005-07-22 Ben Elliston <bje@gnu.org>
2921
2922 * regex.c (regcomp): Change type of `i' from unsigned to int.
2923
c750388a
DD
29242005-07-22 Ben Elliston <bje@gnu.org>
2925
2926 Recover patch lost in the sourceware repository:
2927 2005-07-09 Ben Elliston <bje@au.ibm.com>
2928 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
2929 * memmove.c: Likewise.
2930 * objalloc.c: Likewise.
2931
a4e5c0d8
DD
29322005-07-22 Ben Elliston <bje@gnu.org>
2933
2934 * configure.ac: Check for a getopt(3) declaration.
2935 * configure, config.in: Regenerate.
2936
4fe19082
DD
29372005-07-15 Ben Elliston <bje@au.ibm.com>
2938
2939 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
2940
f2942ea4
DD
29412005-07-12 Ben Elliston <bje@au.ibm.com>
2942
2943 * floatformat.c (floatformat_to_double): Add a comment about a
2944 potential source of warnings when compiling this file.
2945
29462005-07-12 Ben Elliston <bje@au.ibm.com>
2947
2948 * pexecute.c (pexecute): Cast string litrals to char *.
2949 * regex.c (re_comp): Cast a call to gettext() to char *.
2950
4cf896a5
KC
29512005-07-07 Kelley Cook <kcook@gcc.gnu.org>
2952
2953 * config.table: Delete file. Move former contents into ...
2954 * configure.ac: ... here and escape any brackets for m4.
2955 * Makefile.in (config.status): Remove dependency on config.table.
2956 * configure: Regenerate.
2957
20ae7c34
KC
29582005-07-07 Kelley Cook <kcook@gcc.gnu.org>
2959
2960 * config.in: Regenerate for 6/20 change.
2961
6ba85b8c
DD
29622005-07-03 Steve Ellcey <sje@cup.hp.com>
2963
2964 PR other/13906
2965 * md5.c (md5_process_bytes): Check alignment.
2966
29672005-07-01 Ian Lance Taylor <ian@airs.com>
2968
2969 PR other/22268
2970 * cp-demangle.c (d_expr_primary): Don't run off the end of the
2971 string while looking for the end of a literal value.
2972 * testsuite/demangle-expected: Add test case.
2973
c3cca4c9
DD
29742005-06-30 Daniel Berlin <dberlin@dberlin.org>
2975
2976 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
2c197581 2977 (DELETED_ENTRY): Ditto.
c3cca4c9 2978
67f3cb05
GK
29792005-06-20 Geoffrey Keating <geoffk@apple.com>
2980
2981 * strverscmp.c: New.
2982 * Makefile.in (CFILES): Add strverscmp.c.
2983 (CONFIGURED_OFILES): Add strverscmp.o.
2984 (strverscmp.o): New rule.
2985 (stamp-functions): Add $(srcdir) to files in source directory.
2986 * configure.ac (funcs): Add strverscmp.
2987 (AC_CHECK_FUNCS): Add strverscmp.
2988 * configure: Regenerate.
2989 * functions.texi: Regenerate.
2990
01e94249
DD
29912005-05-28 Eli Zaretskii <eliz@gnu.org>
2992
2993 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
2994 * config.in, configure: Regenerate.
2995
839e4798
RH
29962005-05-25 Richard Henderson <rth@redhat.com>
2997
2998 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
2999 (d_make_comp, d_print_comp): Likewise.
3000 (d_special_name): Generate one.
3001 * testsuite/demangle-expected: Add a hidden alias test.
3002
abf6a75b
DD
30032005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
3004
3005 * configure.ac: Check declarations for calloc(), getenv(),
01e94249 3006 malloc(), realloc() and sbrk().
abf6a75b
DD
3007 * config.in: Regenerate.
3008 * configure: Likewise.
3009
3010 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
3011 instead of xmalloc.
3012 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
3013 * concat.c (liiberty_concat_ptr): Surround definition with an
3014 extern "C" block, if __cplusplus.
3015 (concat): Use XNEWVEC instead of xmalloc.
3016 (reconcat): Likewise.
3017 * cp-demangle.c (struct d_print_template): Rename member
01e94249 3018 "template" to "template_decl". Adjust use throughout the file.
abf6a75b
DD
3019 (d_print_resize): Properly cast return value of realloc().
3020 (cplus_demangle_print): Same for malloc().
3021 (d_demangle): Likewise.
3022 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
3023 "typename" to "type_name".
3024 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
3025 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
3026 (demangle_template_value_parm): Likewise.
3027 (demangle_template): Likewise.
3028 (recursively_demangle): Likewise.
3029 (do_hpacc_template_literal): Likewise.
3030 (do_arg): Likewise.
3031 (remember_type): Likewise.
3032 (remember_Ktype): Likewise.
3033 (register_Btype): Likewise.
3034 (string_need): Use XRESIZEVEC instead of xrealloc().
3035 * dyn-string.c (dyn_string_init): Use XNEWVEC.
3036 (dyn_string_new): Use XNEW.
3037 (dyn_string_resize): Use XRESIZEVEC.
3038 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
3039 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
3040 Otherwise include <stdlib.h>.
3041 (exchange): Cast return value of malloc().
3042 * hashtab.c (htab_size): Define as both macro and non-inline
3043 function.
3044 (htab_elements): Likewise.
3045 * getpwd.c (getpwd): Use XNEWVEC.
3046 (htab_create_alloc_ex): Use C90 prototype-style.
3047 * lrealpath.c (lrealpath): Appropriately cast return value of
01e94249 3048 malloc().
abf6a75b
DD
3049 * make-relative-prefix.c (save_string): Likewise.
3050 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
3051 the file.
3052 (choose_tmpdir): Use XNEWVEC.
3053 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
3054 * pex-common.c (pex_init_common): Use XNEW.
3055 (pex_add_remove): Use XRESIZEVEC.
3056 (pex_run): Likewise.
3057 (pex_get_status_and_time): Likewise.
3058 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
3059 * pex-msdos.c (pex_init): Use XNEW.
3060 (pex_msdos_exec_child): Likewise.
3061 (pex_msdos_exec_child): Use XRESIZEVEC.
3062 * pex-unix.c (pex_wait): Use XNEW.
3063 * pex-win32.c (fix_argv): Use XNEWVEC.
3064 * pexecute.c (pwait): Likewise.
3065 * setenv.c (setenv): Properly cast return value of malloc().
3066 * sigsetmask.c (sigsetmask): Rename local variables "old" and
3067 "new" to "old_sig" and "new_sig".
3068 * sort.c (main): Use XNEWVEC.
3069 * spaces.c (spaces): Cast return value of malloc().
3070 * strndup.c (strndup): Likewise.
3071 * ternary.c (ternary_insert): Use XNEW.
3072 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
3073 with an extern "C" block if __cplusplus.
3074 * xstrdup.c (xstrdup): Cast return value of memcpy().
3075 * xstrerror.c (strerror): Enclose declaration in an extern "C"
3076 block if __cplusplus.
3077 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
3078
2349f557
DD
30792005-05-16 Andreas Jaeger <aj@suse.de>
3080
3081 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
3082 that it's only declared if needed.
3083
3084 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
3085 defined.
3086
e9edcedc
DD
30872005-05-15 Andreas Jaeger <aj@suse.de>
3088
3089 * functions.texi: Regenerated.
3090
f13c9bea
DD
30912005-05-15 Eli Zaretskii <eliz@gnu.org>
3092
3093 * pexecute.txh: Enclose multi-word data types in @deftypefn in
3094 braces. Minor wording fixes. Use --- for em-dash. Use
3095 @enumerate in enumerated lists.
3096
e9edcedc
DD
3097 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
3098 braces.
3099
282d9ec3
ILT
31002005-05-11 Eli Zaretskii <eliz@gnu.org>
3101
3102 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
3103 sys/stat.h.
3104 (pex_init): Fix last argument to pex_init_common.
3105 (pex_djgpp_exec_child): Remove leading underscore from _open,
3106 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
3107 which is undeclared, with `executable', which was unused. Remove
3108 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
3109 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
3110
75919f94
DD
31112005-05-11 Paul Brook <paul@codesourcery.com>
3112
3113 * Makefile.in: Regenerate dependencies.
3114
979c05d3
NC
31152005-05-10 Nick Clifton <nickc@redhat.com>
3116
3117 * Update the address and phone number of the FSF organization in
3118 the GPL notices in the following files:
75919f94
DD
3119 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
3120 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
3121 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
3122 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
3123 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
3124 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
3125 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
3126 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
3127 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
3128 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
3129 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
3130 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
3131 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
979c05d3 3132
0093138c
DD
31332005-05-06 Kelley Cook <kcook@gcc.gnu.org>
3134
3135 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
3136 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
3137 * configure: Regenerate.
3138
31392005-05-06 Kelley Cook <kcook@gcc.gnu.org>
3140
3141 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
3142 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
3143 * aclocal.m4: Don't include accross.m4.
3144 * configure, config.in: Regenerate.
3145
c631edf1
DD
31462005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3147
3148 * fopen_unlocked.c (unlock_std_streams): New.
f13c9bea 3149
c631edf1
DD
3150 * functions.texi: Regenerate.
3151
7b6f6286
DD
31522005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3153
3154 * fopen_unlocked.c (unlock_stream): New.
3155 Consolidate unlocking code into a helper function.
3156
3157 * functions.texi: Regenerate.
3158
fa99459d
DD
31592005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
3160
3161 * asprintf.c: Include config.h.
3162 * basename.c: Likewise.
3163 * fdmatch.c: Likewise.
3164 * hex.c: Likewise.
3165 * lbasename.c: Likewise.
3166 * spaces.c: Likewise.
3167 * xatexit.c:Likewise.
f13c9bea 3168 * configure.ac: Do check declarations for basename, ffs, asprintf
fa99459d
DD
3169 and vasprintf for real.
3170 * configure: Regenerate.
3171
ab70e2a5
DD
31722005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
3173
f13c9bea 3174 * argv.c (dupargv): Allocate space of argv[argc], not
ab70e2a5
DD
3175 sizeof(char *) of that amount. Cast result to char *.
3176
ea7143ac
DD
31772005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
3178
3179 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
f13c9bea 3180 Replace not with negate.
ea7143ac 3181
41c953f9
DD
31822005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
3183
3184 * configure.ac: Check declarations for basename, ffs, asprintf,
3185 vasprintf.
3186 * configure: Regenerate.
3187 * config.in: Likewise.
3188
ac119ae8
DD
31892005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3190
3191 * Makefile.in (CFILES): Add fopen_unlocked.c.
3192 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
3193 Regenerate dependencies.
3194
3195 * configure.ac: Check for stdio_ext.h and __fsetlocking.
3196
3197 * fopen_unlocked.c: New file.
3198
3199 * functions.texi, configure, config.in: Regenerate.
3200
6e933b47
DD
32012005-04-04 Ian Lance Taylor <ian@airs.com>
3202
3203 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
3204 declaration before statement.
3205
aa55ccb1
DD
32062005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3207
14a88c49
DD
3208 * bcmp.c: Fix warnings and implement using memcmp.
3209 * bcopy.c: Fix warnings.
3210 * bzero.c: Fix warnings and implement using memset.
3211
aa55ccb1
DD
3212 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
3213 -Wstrict-prototypes.
3214 * configure, config.in: Regenerate.
3215
3216 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
3217 warnings and reconcile interfaces with relevant standards.
3218
b31a49d7
ILT
32192005-04-02 Ian Lance Taylor <ian@airs.com>
3220
3221 * cp-demangle.c: Update copyright.
3222
0e867e79
DD
32232005-03-31 Joseph S. Myers <joseph@codesourcery.com>
3224
3225 * gettimeofday.c: Add "Supplemental" to @deftypefn.
3226 * functions.texi: Regenerate.
3227
b109e79a
ILT
32282005-03-28 Ian Lance Taylor <ian@airs.com>
3229
3230 * pex-common.c: New file.
3231 * pex-one.c: New file.
3232 * pexecute.c: New file.
3233 * pex-common.h: Include <stdio.h>.
3234 (struct pex_obj): Define.
3235 (struct pex_funcs): Define.
3236 (pex_init_common): Declare.
3237 * pex-unix.c: Rewrite.
3238 * pex-win32.c: Rewrite.
3239 * pex-djgpp.c: Rewrite.
3240 * pex-msdos.c: Rewrite.
3241 * testsuite/text-pexecute.c: New file.
3242 * pexecute.txh: Rewrite.
3243 * configure.ac: Check for wait3 and wait4. Set CHECK to
3244 really-check rather than check-cplus-dem.
3245 * functions.texi: Rebuild.
3246 * Makefile.in: Rebuild dependencies.
3247 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
3248 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
3249 * testsuite/Makefile.in (really-check): New target.
3250 (check-pexecute, test-pexecute): New targets.
3251 * configure: Rebuild.
3252
864e8148 32532005-03-28 Mark Kettenis <kettenis@gnu.org>
f13c9bea 3254
864e8148
DD
3255 * unlink-if-ordinary.c: Include <sys/types.h>.
3256
e064c173
DD
32572005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3258
3259 Convert libiberty to use ISO C prototype style 7/n.
3260 * regex.c (PARAMS): Remove definition.
3261 (PREFIX): Unconditionaly define using ISO C ## operator.
f13c9bea 3262 (init_syntax_once, extract_number, extract_number_and_incr,
e064c173 3263 print_fastmap, print_partial_compiled_pattern,
f13c9bea 3264 print_compiled_pattern, print_double_string, printchar,
e064c173
DD
3265 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
3266 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
f13c9bea
DD
3267 at_begline_loc_p, at_endline_p, group_in_compile_stack,
3268 insert_space, wcs_compile_range, byte_compile_range,
3269 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
3270 re_set_registers, re_search, re_search_2, re_search_3, re_match,
e064c173
DD
3271 re_match_2, count_mbs_length, wcs_re_match_2_internal,
3272 byte_re_match_2_internal, group_match_null_string_p,
3273 alt_match_null_string_p, common_op_match_null_string_p,
f13c9bea 3274 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
e064c173
DD
3275 regexec, regerror, regfree): Use ISO C prototype style.
3276 * partition.c: (elem_compare): Likewise.
3277 * cp-demangle.c (print_usage): Likewise.
3278
1e45deed
DD
32792005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3280
3281 Convert libiberty to use ISO C prototype style 5/n.
3282 * random.c (srandom, initstate, setstate, random): Use ISO C
f13c9bea 3283 prototypes.
1e45deed
DD
3284 * putenv.c (putenv): Likewise.
3285 * physmem.c (physmem_available, physmem_total, main): Likewise.
3286 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
3287 * pex-unix.c (pexecute, pwait): Likewise.
3288 * pex-msdos.c (pexecute, pwait): Likewise.
3289 * pex-djgpp.c (pexecute, pwait): Likewise.
f13c9bea 3290 * partition.c (partition_new, partition_delete, partition_union)
1e45deed 3291 (elem_compare, partition_print): Likewise.
f13c9bea
DD
3292 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
3293 _obstack_allocated_p, _obstack_free, obstack_free,
1e45deed
DD
3294 _obstack_memory_used, print_and_abort, obstack_next_free,
3295 obstack_object_size, obstack_base): Likewise. Remove codes
3296 predicated on !defined(__STDC__).
f13c9bea 3297 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
1e45deed
DD
3298 objalloc_free_block): Use ISO C prototypes.
3299 * mkstemps.c (mkstemps): Likewise.
3300 * memset.c (memset): Likewise.
3301 * mempcpy.c (mempcpy): Likewise.
3302 * rename.c (rename): Likewise.
3303 * rindex.c (rindex): Likewise.
3304 * setenv.c (setenv, unsetenv): Likewise.
3305 * sigsetmask.c (sigsetmask): Likewise.
3306 * snprintf.c (snprintf): Likewise.
f13c9bea 3307 * sort.c (sort_pointers, xmalloc): Likewise.
1e45deed 3308 * spaces.c (spaces): Likewise.
f13c9bea
DD
3309 * splay-tree.c (splay_tree_delete_helper,
3310 splay_tree_splay_helper, splay_tree_splay,
1e45deed 3311 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
f13c9bea 3312 splay_tree_new, splay_tree_xmalloc_allocate,
1e45deed 3313 splay_tree_new_with_allocator, splay_tree_delete,
f13c9bea
DD
3314 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
3315 splay_tree_max, splay_tree_min, splay_tree_predecessor,
3316 splay_tree_successor, splay_tree_foreach,
1e45deed
DD
3317 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
3318 * stpcpy.c (stpcpy): Likewise.
3319 * stpncpy.c (stpncpy): Likewise.
3320 * strcasecmp.c (strcasecmp): Likewise.
3321 * strchr.c (strchr): Likewise.
3322 * strdup.c (strdup): Likewise.
3323
49b1fae4
DD
33242005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3325
3326 Convert libiberty to use ISO C prototype style 6/n.
f13c9bea 3327 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
49b1fae4
DD
3328 strtoerrno, main): Use ISO C prototype style.
3329 * strncasecmp.c (strncasecmp): Likewise.
3330 * strncmp.c (strncmp): Likewise.
3331 * strndup.c (strndup): Likewise.
3332 * strrchr.c (strrchr): Likewise.
f13c9bea 3333 * strsignal.c (init_signal_tables, signo_max, strsignal,
49b1fae4
DD
3334 strsigno, strtosigno, psignal, main): Likewise.
3335 * strstr.c (strstr): Likewise.
3336 * strtod.c (strtod, atof): Likewise.
3337 * strtol.c (strtol): Likewise.
3338 * strtoul.c (strtoul): Likewise.
f13c9bea 3339 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
49b1fae4
DD
3340 ternary_recursivesearch): Likewise.
3341 * tmpnam.c (tmpnam): Likewise.
3342 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
3343 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
3344 * vfork.c (vfork): Likewise.
3345 * vfprintf.c (vfprintf): Likewise.
3346 * vprintf.c (vprintf): Likewise.
3347 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
3348 * vsprintf.c (vsprintf): Likewise.
3349 * waitpid.c (waitpid): Likewise.
3350 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
3351 * xexit.c (xexit): Likewise.
f13c9bea 3352 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
49b1fae4
DD
3353 xcalloc, xrealloc): Likewise.
3354 * xmemdup.c (xmemdup): Likewise.
3355 * xstrdup.c (xstrdup): Likewise.
3356 * xstrerror.c (xstrerror): Likewise.
3357 * xstrndup.c (xstrndup): Likewise.
3358
33592005-03-27 Andreas Jaeger <aj@suse.de>
3360
3361 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
3362 flags.
3363 * configure: Regenerated.
3364
33652005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3366
3367 * getopt1.c (getopt_long_only): Fix thinko.
3368
33692005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3370
3371 Convert libiberty to use ISO C prototype style 4/n.
3372 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
3373 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
3374 htab_create_alloc, htab_set_functions_ex, htab_create,
3375 htab_try_create, htab_delete, htab_empty,
3376 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
3377 htab_find, htab_find_slot_with_hash, htab_find_slot,
3378 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
3379 htab_traverse_noresize, htab_traverse, htab_collisions,
3380 htab_hash_string, iterative_hash): Use ISO C prototype.
3381 * hex.c (hex_init): Likewise.
3382 * index.c (index): Likewise.
3383 * insque.c (insque, remque): Likewise.
3384 * lbasename.c (lbasename): Likewise.
3385 * lrealpath.c (lrealpath): Likewise.
3386 * make-relative-prefix.c (save_string, split_directories,
3387 free_split_directories, make_relative_prefix): Likewise.
3388 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
3389 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
3390 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
3391 * memchr.c (memchr): Likewise.
3392 * memcpy.c (memcpy): Likewise.
3393 * memmove.c (memmove): Likewise.
3394 * gettimeofday.c (gettimeofday): Likewise.
3395 * getruntime.c (get_run_time): Likewise.
3396 * getpwd.c (getpwd, getpwd): Likewise.
3397 * getpagesize.c (getpagesize): Likewise.
3398 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
3399 * getopt.c (my_index, exchange, _getopt_initialize,
3400 _getopt_internal, getopt, main): Likewise.
3401 * getcwd.c (getcwd): Likewise.
3402 * fnmatch.c (fnmatch): Likewise.
3403 * floatformat.c (floatformat_always_valid,
3404 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
3405 put_field, floatformat_from_double, floatformat_is_valid,
3406 ieee_test, main): Likewise.
3407 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
3408 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
3409 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
3410 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
3411 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
3412 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
3413 fibheap_link, fibheap_cut, fibheap_cascading_cut,
3414 fibnode_insert_after, fibnode_remove): Likewise.
3415 * ffs.c (ffs): Likewise.
3416 * fdmatch.c (fdmatch): Likewise.
3417 * dyn-string.c (dyn_string_init, dyn_string_new,
3418 dyn_string_delete, dyn_string_release, dyn_string_resize,
3419 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
3420 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
3421 dyn_string_insert_cstr, dyn_string_insert_char,
3422 dyn_string_append, dyn_string_append_cstr,
3423 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
3424 Likewise.
3425
9334f9c6
DD
34262005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
3427
3428 Convert libiberty to use ISO C prototype style 3/n.
49b1fae4
DD
3429 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
3430 consume_count_with_underscores, code_for_qualifier,
3431 qualifier_string, demangle_qualifier, cplus_demangle_opname,
3432 cplus_mangle_opname, cplus_demangle_set_style,
3433 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
9334f9c6 3434 ada_demangle, internal_cplus_demangle, squangle_mop_up,
49b1fae4
DD
3435 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
3436 delete_work_stuff, mop_up, demangle_signature,
3437 demangle_method_args, demangle_template_template_parm,
3438 demangle_expression, demangle_integral_value,
3439 demangle_real_value, demangle_template_value_parm,
3440 demangle_template, arm_pt, demangle_arm_hp_template,
3441 demangle_class_name, demangle_class, iterate_demangle_function,
3442 demangle_prefix, gnu_special, recursively_demangle, arm_special,
3443 demangle_qualified, get_count, do_type, demangle_fund_type,
3444 do_hpacc_template_const_value, do_hpacc_template_literal,
3445 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
3446 register_Btype, remember_Btype, forget_B_and_K_types,
3447 forget_types, demangle_args, demangle_nested_args,
3448 demangle_function_name, string_need, string_delete, string_init,
3449 string_clear, string_empty, string_append, string_appends,
9334f9c6
DD
3450 string_appendn, string_prepend, string_prepends, string_prependn,
3451 string_append_template_idx): Use ISO C prootype style.
3452 * cp-demint.c (cplus_demangle_fill_component,
49b1fae4 3453 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
9334f9c6
DD
3454 cplus_demangle_v3_components): Likewise.
3455
34562005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
3457
3458 Convert libiberty to use ISO C prototype style 2/n.
3459 * cp-demangle.h: Remove uses of PARAMS.
3460 * cp-demangle.c: Likewise.
49b1fae4
DD
3461 (d_dump, cplus_demangle_fill_name,
3462 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
3463 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
3464 d_make_builtin_type, d_make_operator, d_make_extended_operator,
3465 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
3466 cplus_demangle_mangled_name, has_return_type,
3467 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
3468 d_prefix, d_unqualified_name, d_source_name, d_number,
3469 d_identifier, d_operator_name, d_special_name, d_call_offset,
3470 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
3471 d_function_type, d_bare_function_type, d_class_enum_type,
3472 d_array_type, d_pointer_to_member_type, d_template_param,
3473 d_template_args, d_template_arg, d_expression, d_expr_primary,
3474 d_local_name, d_discriminator, d_add_substitution,
3475 d_substitution, d_print_resize, d_print_append_char,
3476 d_print_append_buffer, d_print_error, cplus_demangle_print,
3477 d_print_comp, d_print_java_identifier, d_print_mod_list,
3478 d_print_mod, d_print_function_type, d_print_array_type,
3479 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
3480 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9334f9c6 3481 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
49b1fae4 3482 print_usage, main):
9334f9c6
DD
3483
34842005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
3485
3486 Convert libiberty to ISO C prototype style 1/n.
3487 * _doprnt.c: Remove conditional #include <varargs.h> on
3488 ANSI_PROTOTYPES as the latter is always assumed.
3489 (_doprnt, checkit, main): Use ISO C prototype.
3490 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
3491 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
49b1fae4 3492 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9334f9c6
DD
3493 * atexit.c (atexit): Likewise
3494 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
49b1fae4 3495 (asprintf): Use ISO C prototype.
9334f9c6
DD
3496 * basename.c (basename): Likewise
3497 * bcmp.c (bcmp): Likewise.
3498 * bcopy.c (bcopy): Likewise.
3499 * bzero.c (bzero): Likewise.
3500 * bsearch.c (bsearch): Likewise. Improve const-correctness.
3501 * choose-temp.c (choose_temp_base): Likewise.
3502 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
3503 (calloc): Use ISO C prototype.
3504 * clock.c (clock): Likewise.
3505 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
49b1fae4 3506 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9334f9c6
DD
3507 concat_copy2, concat, reconcat, main): Use ISO C prototype.
3508 * copysign.c (copysign): Likewise.
3509
0fad4bdb
DD
35102005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3511
3512 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
3513 (REQUIRED_OFILES): Add xstrndup.o.
3514 (CONFIGURED_OFILES): Add strndup.o.
3515 Regenerate dependencies.
3516
3517 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
3518
3519 * strndup.c, xstrndup.c: New.
3520
3521 * config.in, configure, functions.texi: Regenerate.
3522
51e32d64
DD
35232005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3524
3525 * xmemdup.c, xstrdup.c: Expose the tail call.
3526
8ec32723
DD
35272005-03-09 Mark Mitchell <mark@codesourcery.com>
3528
3529 * configure.ac (funcs): Add gettimeofday.
3530 * configure: Regenerated.
3531 * gettimeofday.c: New file.
3532 * Makefile.in (CFILES): Add gettimeofday.
3533 (CONFIGURED_OFILES): Add gettimeofday.o.
3534 (./gettimeofday.o): New rule.
3535
27ff8836
ILT
35362005-03-09 Ian Lance Taylor <ian@airs.com>
3537
3538 * pex-os2.c: Remove.
3539 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
3540 * Makefile.in (CFILES): Remove pex-os2.c.
3541 (CONFIGURED_OFILES): Remove pex-os2.o.
3542 (pex-os2.o): Remove target.
3543 * configure: Rebuild.
3544
48e39b59
ILT
35452005-03-07 Ian Lance Taylor <ian@airs.com>
3546
3547 * mpw-config.in: Remove.
3548 * mpw-make.sed: Remove.
3549 * mpw.c: Remove.
3550 * Makefile.in (CFILES): Remove pex-mpw.c.
3551 (CONFIGURED_OFILES): Remove pex-mpw.o.
3552 (mpw.o, pex-mpw.o): Remove targets.
3553 * maint-tool (undoc): Remove reference to mpw.c.
3554
65dce80e
DD
35552005-03-06 DJ Delorie <dj@redhat.com>
3556
3557 * configure.ac (target_header_dir): vfork is a stub under djgpp.
3558 * configure: Regenerated.
3559
190eb137
DD
35602005-03-01 Jan Beulich <jbeulich@novell.com>
3561
3562 * Makefile.in (CFILES): Add unlink-if-ordinary.c
3563 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
3564 Add dependencies and rule for unlink-if-ordinary.o.
3565 * unlink-if-ordinary.c: New.
3566
bac7199c
DD
35672005-03-01 Ben Elliston <bje@au.ibm.com>
3568
3569 * hashtab.c (htab_find_slot_with_hash): Make function
3570 documentation clearer.
3571
aca9a742
JM
35722005-02-13 Jason Merrill <jason@redhat.com>
3573
3574 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
3575 arguments.
3576
b5c3b3de
DD
35772005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
3578
3579 * hex.c (hex_value): Group 'unsigned int' together to get correct
3580 markup.
3581 * functions.texi: Regenerated.
49b1fae4 3582
46a10049
DD
35832004-12-27 H.J. Lu <hongjiu.lu@intel.com>
3584
3585 * Makefile.in: Undo to 2004-12-17.
3586 * aclocal.m4: Likewise.
3587 * config.table: Likewise.
3588 * configure.ac: Likewise.
3589 * maint-tool: Likewise.
3590 * configure: Likewise.
3591
fbfdf750
DD
35922004-12-19 H.J. Lu <hongjiu.lu@intel.com>
3593
3594 PR bootstrap/19072
3595 * Makefile.in (enable_shared): New substitute.
3596 (LTTARGETLIB): New.
3597 (PREFIXTARGETLIB): New.
3598 (LTTESTLIB): New.
3599 (PREFIXTESTLIB): New.
3600 (CCLD): New.
3601 (LINK): New.
3602 ($(TARGETLIB)): Use $(LINK) to create libraries and create
3603 targets by hand.
3604 ($(TESTLIB)): Likewise.
3605 (mostlyclean): Don't remove .libs. Remove the libtool object
3606 directory.
3607
3608 * config.table (enable_shared): Removed.
3609
3610 * configure.ac (enable_static): Set to yes.
3611 (AC_PROG_LIBTOOL): Removed.
3612 (AM_DISABLE_SHARED): Uncommented.
3613 (AM_PROG_LIBTOOL): Likewise.
3614 (LIBOBJS): Add `./' to avoid VPATH.
3615 (LTLIBOBJS): Likewise.
3616 (enable_shared): Substitute.
3617 * configure: Regenerated.
3618
96e00b33
L
36192004-12-18 H.J. Lu <hongjiu.lu@intel.com>
3620
3621 * Makefile.in (top_builddir): Set to `.'.
3622 (OUTPUT_OPTION): Removed.
3623 (LIBTOOL): New.
3624 (LTLIBOBJS): New.
3625 (EXTRA_LTOFILES): New.
3626 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
3627 (all): Remove stamp-picdir.
3628 (LTCOMPILE): New.
3629 (.c.lo): New rule.
3630 (REQUIRED_LTOFILES): New.
3631 (CONFIGURED_LTOFILES): New.
3632 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
3633 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
3634 (stamp-picdir): Completely removed.
3635 (maint-missing): Pass $(REQUIRED_LTOFILES)
3636 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
3637 $(CONFIGURED_OFILES)
3638 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
3639 $(CONFIGURED_LTOFILES).
3640 (mostlyclean): Also remove *.lo .libs.
3641 Run "make maint-deps".
3642
3643 * aclocal.m4: Include ../libtool.m4.
3644
3645 * config.table: Don't check --enable-shared.
3646
3647 * configure.ac (AC_PROG_LIBTOOL): Add.
3648 (AC_PROG_CC_C_O): Removed.
3649 (OUTPUT_OPTION): Removed.
3650 (NO_MINUS_C_MINUS_O): Removed.
3651 (ltpexecute): New substitute.
3652 (LIBOBJS): Cleanup.
3653 * configure: Regenerated.
3654
3655 * maint-tool: Updated for .lo/libtool.
3656
40a59a4c
DD
36572004-12-11 Ben Elliston <bje@au.ibm.com>
3658
3659 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
3660 * configure: Regenerate.
3661 * config.in: Likewise.
3662
9923bc33
DD
36632004-12-07 DJ Delorie <dj@redhat.com>
3664
3665 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
3666 that recursion (and thus large stack space) is not needed.
3667
70615d15
DD
36682004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
3669
3670 * pex-unix.c: Fix the spelling of longjmp.
3671
eb129e35
DD
36722004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
3673
3674 PR other/18623
3675 * cp-demangle.c (d_call_offset): Remove useless local variables
3676 offset and virtual_offset.
3677 * cplus-dem.c (ada_demangle): Remove useless local variable
3678 at_start_name.
3679 (demangle_template): Remove useless local variable start.
3680
3e0f1404
DD
36812004-11-19 Roger Sayle <roger@eyesopen.com>
3682
3683 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
3684 "ansidecl.h" to avoid redeclaration errors with native compilers.
3685 * regex.c: Protect config.h from multiple inclusion.
3686
6cfb3176
DD
36872004-11-12 Mike Stump <mrs@apple.com>
3688
3689 * Makefile.in (libiberty.html): Fix html generation.
3690
f9b4e353
DD
36912004-09-08 Adam Nemet <anemet@lnxw.com>
3692
3693 * vasprintf.c: Accept __va_copy in addition to va_copy.
3694
49b1fae4 36952004-09-03 Paolo Bonzini <bonzini@gnu.org>
c7efc4d5
PB
3696
3697 * configure: Regenerate.
3698
49b1fae4 36992004-09-02 Paolo Bonzini <bonzini@gnu.org>
f5396bbe
PB
3700
3701 * configure.ac: Do not enable multilibs for build-side libiberty.
3702
49b1fae4 37032004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
950ad202
DD
3704
3705 * lrealpath.c (lrealpath): Add _WIN32 support.
3706
a21da8bf
DD
37072004-06-28 Zack Weinberg <zack@codesourcery.com>
3708
3709 * cp-demangle.h: Declare cplus_demangle_operators,
3710 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
3711 cplus_demangle_type as static if IN_GLIBCPP_V3.
3712
37132004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
3714
3715 PR other/16240
3716 * cp-demangle.c (d_expr_primary): Check for a failure return from
3717 cplus_demangle_type.
3718 * testsuite/demangle-expected: Add test case.
3719
9f7d3e7d
DD
37202004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
3721
3722 * pex-win32.c (fix_argv): Expand comment.
3723
0cb2db3a
DD
37242004-05-25 Daniel Jacobowitz <drow@false.org>
3725
3726 * Makefile.in: Add .NOEXPORT.
3727
25319993
DD
37282004-04-29 Douglas B Rupp <rupp@gnat.com>
3729
3730 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
3731 copyright.
3732
7e9f5c71
DD
37332004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3734
3735 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
3736 * configure: Regenerate.
3737
bb6a587d
DD
37382004-04-22 Richard Henderson <rth@redhat.com>
3739
3740 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
3741 (CHAR_BIT): Provide default.
3742 (struct prime_ent, prime_tab): New.
3743 (higher_prime_index): Rename from higher_prime_number, return index.
3744 (htab_mod_1): New.
3745 (htab_mod, htab_mod_m2): Use it.
3746 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
3747 (htab_expand): Likewise.
3748 * configure.ac: Check for stdint.h.
3749 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
3750 * config.in, configure: Rebuild.
3751
53239e41
DD
37522004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
3753
3754 * strerror.c: Include config.h, and redefine sys_nerr and
3755 sys_errlist, before including ansidecl.h and libiberty.h.
3756
d6ea4e80
DD
37572004-04-13 Jeff Law <law@redhat.com>
3758
3759 * hashtab.c (htab_remove_elt_with_hash): New function.
3760 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
3761
fe046a17
DD
37622004-03-31 Richard Henderson <rth@redhat.com>
3763
3764 * hashtab.c (htab_size): Move to top of file; mark inline.
3765 (htab_elements): Likewise.
3766 (htab_mod, htab_mod_m2): New.
3767 (htab_delete): Refactor htab->size and htab->entries.
3768 (htab_empty): Likewise.
3769 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
3770 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
3771 (htab_clear_slot): Use htab_size, htab_elements.
3772 (htab_traverse_noresize, htab_traverse): Likewise.
3773
e0c148a7
DD
37742004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
3775
12a7367e
DD
3776 * pex-unix.c (pexecute): Use vfork instead of fork, with
3777 appropriate changes to make this safe.
3778 * pex-common.h (STDERR_FILE_NO): Define.
3779
e0c148a7
DD
3780 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
3781 an 80 column screen. Run maint-deps.
3782
85f969cd
DD
37832004-03-09 Kelley Cook <kcook@gcc.gnu.org>
3784
3785 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
3786 * acconfig.h: Delete redundant file.
3787 * config.in: Regenerate.
3788 * configure: Regenerate.
3789
58670637
DD
37902004-03-09 Hans-Peter Nilsson <hp@axis.com>
3791
3792 * configure: Regenerate for config/accross.m4 correction.
3793
758d77be
DD
37942004-03-07 Andreas Jaeger <aj@suse.de>
3795
3796 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
3797 prototypes.
3798 (main): Initialize style.
3799
74aee4eb
DD
38002004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
3801
2d733211
DD
3802 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
3803 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
3804 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
3805 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
3806 short types to D_PRINT_DEFAULT. Change other integer types to use
3807 new D_PRINT_* values where appropriate. Change float types to
3808 D_PRINT_FLOAT.
3809 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
3810 values.
3811 * testsuite/demangle-expected: Adjust two test cases.
3812
3813 * cp-demangle.c (d_print_function_type): Print a space before the
3814 parenthesis around the function type in more cases.
3815 * testsuite/demangle-expected: Adjust one test case.
3816
099f84cf
DD
3817 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
3818 parentheses around a cast.
3819 * testsuite/demangle-expected: Adjust two test cases to match new
3820 output.
3821
74aee4eb
DD
3822 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
3823
3824 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
3825 push more than one of the same CV-qualifier on the top of the
3826 stack.
3827 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
3828 move the CV-qualifiers to apply to the element type instead.
3829 (d_print_array_type): When checking the modifiers, keep looking
3830 past ones which have been printed already.
3831 * testsuite/demangle-expected: Add three test cases.
3832
38332004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
3834
3835 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
3836 empty string correctly.
3837
3838 * cp-demangle.c (__cxa_demangle): It is not an error if status is
3839 not NULL. It is an error if the mangled name is the same as a
3840 built-in type name.
3841 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
3842 than cplus_demangle_v3.
3843
3844 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
3845 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
3846
f9375305
DD
38472004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
3848
3849 * regex.c: Include <ansidecl.h>.
3850 (regcomp): Cast i to int.
3851 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
3852
cbf0ee79
DD
38532004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
3854
3855 * configure.ac: Add m4_pattern_allow(LIBOBJS).
3856 * configure: Regenerate.
3857
37254c9a
DD
38582004-01-22 DJ Delorie <dj@redhat.com>
3859
3860 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
3861 with explicit build rules.
3862 (VPATH): Remove.
3863 (.c.o): Poison.
3864 * configure.ac (pexecute, LIBOBJS): Add ./ .
3865 * maint-tool: Build dependencies with explicit rules.
3866
211333f6
DD
38672004-01-15 Kazu Hirata <kazu@cs.umass.edu>
3868
3869 * strdup.c (strdup): Constify the argument.
3870
3795d586
DD
38712004-01-14 Loren J. Rittle <ljrittle@acm.org>
3872
3873 * Makefile.in (distclean): Remove config.cache.
3874
2d6520ee
DJ
38752004-01-13 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
3878 takes two parameters.
3879 * cp-demint.c (cplus_demangle_fill_component): Likewise.
3880
59727473
DD
38812004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
3882
3883 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
3884 defined, rename some functions which are to become static via
3885 #define.
3886 (CP_STATIC_IF_GLIBCPP_V3): Define.
3887 (struct d_operator_info): Move definition to cp-demangle.h, and
3888 rename to demangle_operator_info. Change all uses.
3889 (enum d_builtin_type_print): Move definition to cp-demangle.h.
3890 (struct d_builtin_type_info): Move definition to cp-demangle.h,
3891 and rename to demangle_builtin_type_info. Change all uses.
3892 (enum d_comp_type): Move definition to include/demangle.h, and
3893 rename to demangle_component_type, and change all enums to start
3894 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
3895 (struct d_comp): Move definition to include/demangle.h, and rename
3896 to demangle_component. Change all uses.
3897 (struct d_info): Move definition to cp-demangle.h.
3898 (cplus_demangle_fill_name): New function.
3899 (cplus_demangle_fill_extended_operator): New function.
3900 (cplus_demangle_fill_ctor): New function.
3901 (cplus_demangle_fill_dtor): New function.
3902 (d_make_empty): Remove type parameter. Change all callers.
3903 (d_make_name): Use cplus_demangle_fill_name.
3904 (d_make_extended_operator): Use
3905 cplus_demangle_fill_extended_operator.
3906 (d_make_ctor): Use cplus_demangle_fill_ctor.
3907 (d_make_dtor): Use cplus_demangle_fill_dtor.
3908 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
3909 non-static by default. Change all callers.
3910 (cplus_demangle_operators): Rename from d_operators. Change all
3911 uses. Make non-static by default. Add sentinel at end of array.
3912 (d_operator_name): Adjust initialization of high for new sentinel
3913 in cplus_demangle_operators.
3914 (cplus_demangle_builtin_types): Rename from d_builtin_types.
3915 Change all uses. Make non-static by default. Change initializer
3916 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
3917 (cplus_demangle_type): Rename from d_type. Make non-static by
3918 default. Change all callers.
3919 (cplus_demangle_init_info): Rename from d_init_info. Make
3920 non-static by default. Change all callers.
3921 * cp-demangle.h: New file.
3922 * cp-demint.c: New file.
3923 * Makefile.in: Rebuild dependencies.
3924 (CFILES): Add cp-demint.c.
3925 (REQUIRED_OFILES): Add cp-demint.o.
3926
1a79b024
DD
39272004-01-09 Kelley Cook <kcook@gcc.gnu.org>
3928
3929 * configure.in: Rename file to ...
3930 * configure.ac: ... this.
3931 * Makefile.in: Update a comment for above change.
3932 * README: Likewise.
3933 * config.in: Regenerate.
3934
820542c9
DD
39352004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
3936
3937 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
3938 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
3939 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
3940 demangling template parameters.
3941 * testsuite/test-demangle.c (fail): New static function.
3942 (main): Support new options in input file: --no-params,
3943 --is-v3-ctor, and --is-v3-dtor.
3944 * testsuite/demangle-expected: Add --no-params to most tests, and
3945 add the correct result when parameters are not demangled. Add
3946 some simple tests for V3 constructor/destructor recognition.
3947
2f9c4058
DD
39482003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3949
3950 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
3951
4fd47f10
DJ
39522003-12-22 Daniel Jacobowitz <drow@mvista.com>
3953
3954 PR debug/13272
3955 * Makefile.in (lbasename.o): Depend on filenames.h.
3956 * lbasename.c: Include "filenames.h" instead of defining
3957 its macros locally.
3958
b6fb00c0
DD
39592003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
3960
3961 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
3962 dynamic arrays.
3963 (struct d_operator_info): Add len field.
3964 (struct d_builtin_type_info): Add len and java_len fields.
3965 (struct d_standard_sub_info): Add simple_len, full_len, and
3966 set_last_name_len fields.
3967 (struct d_comp): Add len field to s_string.
3968 (struct d_info): Add send, did_subs, and expansion fields.
3969 (d_append_string_constant): Define.
3970 (d_append_string): Remove. Change all users to use
3971 d_append_string_constant or d_append_buffer instead.
3972 (d_make_sub): Add len parameter. Change all callers.
3973 (d_name): Increase expansion when substituting std::.
3974 (d_unqualified_name): Increase expansion for an operator.
3975 (d_number): Don't use multiplication for negative numbers.
3976 (d_identifier): Make sure there are enough characters in the
3977 string for the specified length. Adjust expansion for an
3978 anonymous namespace.
3979 (d_operators): Initialize len field.
3980 (d_special_name, d_ctor_dtor_name): Increase expansion.
3981 (d_builtin_types): Initialize len and java_len fields.
3982 (d_type): Increase expansion for a builtin type.
3983 (d_cv_qualifiers): Increase expansion for each qualifier.
3984 (d_bare_function_type): Decrease expansion when removing single
3985 void parameter.
3986 (d_template_param): Increment did_subs.
3987 (d_expression): Increase expansion for an operator.
3988 (d_expr_primary): Decrease expansion for a type we will print
3989 specially.
3990 (standard_subs): Initialize new fields.
3991 (d_substitution): Increment did_subs when doing a normal
3992 substitution. Increase expansion for a special substitution.
3993 (d_print): Add estimate parameter. Change all callers.
3994 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
3995 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
3996 (d_print_java_identifier): Rename from d_print_identifier. Handle
3997 only Java case. Change caller.
3998 (d_init_info): Change return type to void. Change all callers.
3999 Initialize send, did_subs, and expansion fields. Do not
4000 initialize comps and subs fields.
4001 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
4002 arrays on stack. Make an estimate of the length of the demangled
4003 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
4004 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
4005 subs arrays on stack.
4006
2730f651
DD
40072003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
4008
4009 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
4010 after the identifier.
4011 * testsuite/demangle-expected: Add test case.
4012
d4edd112
DD
40132003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
4014
4015 Fix for PR c++/13447:
4016 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
4017 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
4018 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
4019 D_COMP_QUAL_NAME.
4020 (is_ctor_or_dtor): Likewise.
4021 (d_local_name): Use D_COMP_LOCAL_NAME rather than
4022 D_COMP_QUAL_NAME.
4023 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
4024 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
4025 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
4026 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
4027 * testsuite/demangle-expected: Add two test cases.
4028
4029 * cp-demangle.c (d_print_function_type): Clear the global modifier
4030 list when printing the modifiers, not just when printing the
4031 function parameters.
4032 * testsuite/demangle-expected: Add two test cases.
4033
d35d0cd4
DD
40342003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
4035
4036 * cp-demangle.c (d_print_function_type): Print the function
4037 parameters with no modifiers.
4038 * testsuite/demangle-expected: Add test case.
4039
4040 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
4041 expect that we've read the entire string.
4042 (is_ctor_or_dtor): Don't expect that we've read the entire
4043 string--reverse patch of 2003-11-29.
4044
09e9708c
DD
40452003-12-15 Brendan Kehoe <brendan@zen.org>
4046
41f225de 4047 * Makefile.in (floatformat.o): Add dependency on
09e9708c
DD
4048 config.h to accompany change of 2003-12-03.
4049
97ceaf5b
DD
40502003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
4051
4052 Fix handling of constructor/destructor of standard substitution:
4053 * cp-demangle.c (struct d_standard_sub_info): Define.
4054 (d_substitution): Add prefix argument. Change all callers.
4055 Rework handling of standard substitutions to print full name when
4056 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
4057 * testsuite/demangle-expected: Add test case.
4058
4059 Fix handling of negative literal constants:
4060 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
4061 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
4062 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
4063 (d_print_comp): Handle D_COMP_LITERAL_NEG.
4064 * testsuite/demangle-expected: Add test case.
4065
858b45cf
DD
40662003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
4067
4068 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
4069 (d_last_char): Define new macro.
4070 (d_make_name): Reject an empty name.
4071 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
4072 (d_substitution, d_print_identifier): Likewise.
4073 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
4074 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
4075 (d_print_mod) Use new d_last_char macro.
4076 (d_print_cast): Use new d_last_char macro.
4077 (is_ctor_or_dtor): Don't leak memory.
4078
4079 Fix handling of member function modifiers:
4080 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
4081 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
4082 (d_dump): Dump new d_comp_type values.
4083 (d_make_comp): Accept new d_comp_type values.
4084 (has_return_type): Only accept _THIS variants of qualifiers.
4085 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
4086 qualifiers.
4087 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
4088 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
4089 qualifiers and printing them at the end, add _THIS qualifiers to
4090 the modifier list.
4091 (d_print_comp) [D_COMP_*_THIS]: New cases.
4092 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
4093 qualifiers.
4094 (d_print_mod_list): Add suffix parameter. Change all callers.
4095 Keep walking the list even if the current modifier has been
4096 printed.
4097 (d_print_mod): Handle new _THIS qualifiers.
4098 (d_print_function_type): Handle new _THIS qualifiers when deciding
4099 whether to print a parenthesis. Put a space before the
4100 parenthesis in some cases. Call d_print_mod_list again at the
4101 end, passing suffix as 1.
4102 (is_ctor_or_dtor): Look for new _THIS qualifiers.
4103 * testsuite/demangle-expected: Add test case.
4104
4105 Fix for PR gcc/13304:
4106 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
4107 before the '<' is itself a '<', insert a space.
4108 (d_print_cast): Likewise.
4109 * testsuite/demangle-expected: Add test case.
4110
4111 Fix for PR gcc/13244:
4112 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
4113 which uses the '>' operator in an extra layer of parens.
4114 * testsuite/demangle-expected: Add test case.
4115
b52927b7
DD
41162003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
4117
4118 * floatformat.c: Include "config.h" and <string.h> if available.
4119 (INFINITY, NAN): Define if not defined by <math.h>.
4120 (floatformat_to_double): Handle NaN, infinity, and denormalized
4121 numbers.
4122 (floatformat_from_double): Likewise.
4123 (ieee_test): In debugging code, use little endian rather than big
4124 endian. Correct tests to handle NaN and to check correct sign of
4125 zero. Omit m68k extended test.
4126 (main): Add more debugging cases.
4127
24afc00d
DD
41282003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
4129
4130 * cp-demangle.c (d_demangle): Only return success if we consumed
4131 the entire demangled string.
4132 (is_ctor_or_dtor): Likewise.
4133
4134 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
4135 to restore expected result of EDG test case to original expected
4136 result.
4137
331c3da2
DD
41382003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
4139
4140 * cp-demangle.c (struct d_print_mod): Add templates field.
4141 (d_make_builtin_type): Check for NULL type.
4142 (d_make_extended_operator): Check for NULL name.
4143 (d_make_ctor, d_make_dtor): Likewise.
4144 (d_mangled_name): Add top_level parameter. Change all callers.
4145 (d_encoding): If DMGL_PARAMS is not set, strip off initial
4146 CV-qualifiers.
4147 (d_type): Check some return values we rely on.
4148 (d_bare_function_type, d_array_type): Likewise.
4149 (d_pointer_to_member_type, d_template_args): Likewise.
4150 (d_add_substitution): Fail if argument is NULL.
4151 (d_print_resize): Check whether buf is NULL.
4152 (d_print_comp): Save current templates list with each modifier.
4153 Don't pass the modifier list down when printing a template.
4154 (d_print_cast): Don't pass the modifier list down when printing a
4155 template.
4156 (d_print_mod_list): Temporarily set templates list while printing
4157 a modifier.
4158 (d_print_mod): Check that buf is not NULL before using it.
4159 (d_print_function_type): Print parens if there is no modifier.
4160 (d_init_info): Permit as many substitutions as there are
4161 characters in the mangled name.
4162 * testsuite/demangle-expected: Add two new test cases.
4163
51948b34
DD
41642003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
4165
4166 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
4167 d_demangle.
4168
6d95373e
DD
41692003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
4170
4171 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
4172 callers.
4173 (print_usage): Display new -p option.
4174 (long_options): Add --no-params.
4175 (main): Accept and handle -p.
4176
54a962d9
DD
41772003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
4178
4179 * cp-demangle.c (has_return_type): Skip qualifiers when checking
4180 whether we have a template.
4181 * testsuite/demangle-expected: Add four new tests.
4182
8fe0d347
DD
41832003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
4184
4185 * testsuite/demangle-expected: Minor changes to match output of
4186 new demangler: adjust whitespace in four tests, and change order
4187 of qualifiers in one test.
4188
4189 * cp-demangle.c: Complete rewrite.
4190
dd9d4b48
DD
41912003-11-19 Mark Mitchell <mark@codesourcery.com>
4192
4193 * cp-demangle.c (demangle_type): Correct thinko in substitution
4194 processing.
4195
0976f6a7
DD
41962003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
4197
4198 * cp-demangle.c (demangle_operator_name): Remove space before
4199 "sizeof".
4200 (demangle_type_ptr): Put qualifiers in the right place. Handle
4201 qualifiers in pointer to member specially.
4202 (demangle_type): Handle qualifiers for pointer or reference
4203 specially. Handle function type.
4204 (demangle_local_name): Save and restore caret around demangling of
4205 initial encoding.
4206
4207 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
4208 cplus_demangle.
4209
4210 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
4211
e7e6980b
DD
42122003-10-31 Andreas Jaeger <aj@suse.de>
4213
4214 * floatformat.c (floatformat_always_valid): Add unused attribute.
4215
97ceaf5b
DD
42162003-10-30 Josef Zlomek <zlomekj@suse.cz>
4217
4218 Jan Hubicka <jh@suse.cz>
4219 * vasprintf.c (int_vasprintf): Pass va_list by value.
4220 Use va_copy for copying va_list.
4221 (vasprintf): Pass va_list by value.
4222
686e72d7
DD
42232003-10-30 Josef Zlomek <zlomekj@suse.cz>
4224
4225 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
4226 instead of increasing n_elements when inserting to deleted slot.
4227
eec65ede
JB
42282003-10-20 J. Brobecker <brobecker@gnat.com>
4229
4230 * cplus-dem.c (demangle_template): Register a new Btype only
4231 when needed.
4232 * testsuite/demangle-expected: Add a new test.
4233
cd275bff
L
42342003-10-16 H.J. Lu <hongjiu.lu@intel.com>
4235
4236 * testsuite/demangle-expected: Update the expected output of
4237 _GLOBAL__I__Z2fnv.
4238
e3b1168e
DJ
42392003-10-02 Daniel Jacobowitz <drow@mvista.com>
4240
4241 * strerror.c: Revert last change. Declare static sys_nerr
4242 and sys_errlist using different names.
4243
efb150d5
DJ
42442003-10-01 Daniel Jacobowitz <drow@mvista.com>
4245
4246 * strerror.c: Don't provide or reference sys_errlist if
4247 strerror is available.
4248
b7ca9213
L
42492003-10-01 H.J. Lu <hongjiu.lu@intel.com>
4250
4251 * configure.in: Check if $MAKEINFO is missing.
4252 * configure: Regenerated.
4253
8ddbb593
DJ
42542003-09-24 Daniel Jacobowitz <drow@mvista.com>
4255
4256 * configure.in: Use AC_PROG_CPP_WERROR.
4257 * configure: Regenerated.
4258
5324d185
AC
42592003-09-22 Andrew Cagney <cagney@redhat.com>
4260
4261 * floatformat.c (floatformat_i387_ext_is_valid): New function.
4262 (floatformat_always_valid): New function.
4263 (floatformat_i387_ext): Initialize new "is_valid" field to
4264 "floatformat_i387_ext_is_valid".
4265 (floatformat_ieee_single_little): Initialize "is_valid" field to
4266 floatformat_always_valid.
4267 (floatformat_ieee_double_big): Ditto.
4268 (floatformat_ieee_double_little): Ditto.
4269 (floatformat_ieee_double_little): Ditto.
4270 (floatformat_ieee_double_littlebyte_bigword): Ditto.
4271 (floatformat_i960_ext): Ditto.
4272 (floatformat_m88110_ext): Ditto.
4273 (floatformat_m88110_harris_ext): Ditto.
4274 (floatformat_arm_ext_big): Ditto.
4275 (floatformat_arm_ext_littlebyte_bigword): Ditto.
4276 (floatformat_ia64_spill_big): Ditto.
4277 (floatformat_ia64_spill_little): Ditto.
4278 (floatformat_ia64_quad_big): Ditto.
4279 (floatformat_ia64_quad_little): Ditto.
4280 (floatformat_ia64_quad_little): Ditto.
4281 (floatformat_is_valid): Call "is_valid".
4282
34f4a113
AC
42832003-09-15 Andrew Cagney <cagney@redhat.com>
4284
4285 * floatformat.c (get_field): Make "data" constant.
4286 (floatformat_is_valid, floatformat_to_double): Make "from"
4287 constant, fix casts.
4288 (floatformat_from_double): Make "from" constant.
4289
3f2aacaf
DJ
42902003-09-15 Daniel Jacobowitz <drow@mvista.com>
4291
4292 * floatformat.c (floatformat_is_valid): New function.
4293 (get_field, put_field): Correct comments.
4294
aae66b9f
DD
42952003-09-06 Josef Zlomek <zlomekj@suse.cz>
4296
4297 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
4298 FIBHEAPKEY_T.
4299
60b04ee8
DD
43002003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4301
4302 PR bootstrap/12100
4303 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
4304 * configure: Rebuilt.
4305
2299a76d
DJ
43062003-08-27 Daniel Jacobowitz <drow@mvista.com>
4307
4308 * aclocal.m4: Include acx.m4 and no-executables.m4.
4309 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
4310 (LIB_AC_PROG_CC): Remove.
4311 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
4312 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
4313 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
4314 performing link tests.
4315 * configure: Regenerated.
4316
9ad1aa29
DD
43172003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
4318
a21da8bf 4319 * cp-demangle.c: Clarify what package(s) this is part of.
9ad1aa29 4320
dbb9d0f3
DD
43212003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
4322
4323 * pex-win32.c (pexecute): Mark parameters this_pname and
4324 temp_base as unused. Remove unused variables retries,
4325 sleep_interval. Initialize org_stdin, org_stdout.
4326 (pwait): Mark parameter flags as unused.
4327
43282003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
ab8c7bb1
DD
4329
4330 * pex-win32.c (fix_argv): Ensure that the executable pathname
4331 uses Win32 backslashes.
4332 (pexecute): Cast away constness when assigning *errmsg_arg.
4333
78c5b0a5
L
43342003-06-26 H.J. Lu <hongjiu.lu@intel.com>
4335
4336 * testsuite/demangle-expected: Add more GNU V3 testcases.
4337
70ecf948
DD
43382003-06-22 Zack Weinberg <zack@codesourcery.com>
4339
4340 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
4341 not HC_ASCII and HC_EBCDIC.
4342 Add documentation in form expected by gather-docs.
4343 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
4344 * Makefile.in, functions.texi: Regenerate.
4345
cbc0188b
DD
43462003-06-21 Zack Weinberg <zack@codesourcery.com>
4347
4348 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
4349 for charset determination.
4350
5f73c378
DD
43512003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
4352
4353 * configure.in: Add check for malloc.h needed by
4354 m68k for function free().
4355 * configure: Regenerated.
4356 * config.in: Add HAVE_MALLOC_H.
4357 * hashtab.c: include malloc.h were available for
4358 free().
4359
e69f6c8c 43602003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
cbc0188b 4361
e69f6c8c
DD
4362 PR bootstrap/10974
4363 * physmem.c: Update comment.
4364 * configure.in: Modify test for _system_configuration for older
4365 AIX systems.
4366
4367 * config.in, configure: Regenerated.
cbc0188b 4368
54c60684
DD
43692003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4370
4371 PR other/10810
4372 * test-demangle.c (getline): Fix fence-post error.
4373
5a4e47bd
NC
43742003-06-03 Nick Clifton <nickc@redhat.com>
4375
4376 * asprintf.c: Change comment to note that -1 is returned upon
4377 error.
4378 * vasprintf.c: Likewise.
4379 (vasprintf): Return -1 upon error.
4380 * functions.texi: Document changes to asprintf and vasprintf.
4381
916f5d13
DD
43822003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
4383
4384 * config.table: Accept i[345867]86 variant.
4385
e4f79046
JB
43862003-05-15 Jim Blandy <jimb@redhat.com>
4387
4388 * hex.c (_hex_value): Make this unsigned.
4389 (hex_value): Update documentation for new return type. hex_value
4390 now expands to an unsigned int expression, to avoid unexpected
4391 sign extension when we store it in a bfd_vma, which is larger than
4392 int on some platforms.
4393 * functions.texi: Regenerated.
4394
0f3538e7
DD
43952003-05-07 Josef Zlomek <zlomekj@suse.cz>
4396
4397 * splay-tree.c (splay_tree_predecessor): Fix comment.
4398 (splay_tree_successor): Fix comment.
4399
7108c5dc
JM
44002003-05-07 Jason Merrill <jason@redhat.com>
4401
eafaf5eb 4402 * hashtab.c (iterative_hash): New fn.
7108c5dc
JM
4403 * configure.in: Add AC_C_BIGENDIAN_CROSS.
4404 * aclocal.m4: Include accross.m4.
4405 * configure, config.in: Regenerate.
4406
0b555173
DD
44072003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4408
4409 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
4410 * configure: Regenerate.
4411
8730135a
DD
44122003-05-03 Carlo Wood <carlo@alinoe.com>
4413
4414 * cp-demangle.c: Fix typo in "char_traints" string-literal.
4415
341eccbc
DD
44162003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4417
4418 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
4419 (main): Test that we don't write too much data.
4420
2ed1e5cc
DD
44212003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4422
4423 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
4424 vsnprintf.
4425 * snprintf.c, vsnprintf.c: New files.
4426 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
4427 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
4428 Regenerate dependencies.
4429
4430 * functions.texi, configure, config.in: Regenerated.
4431
10b57b38
DD
44322003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4433
4434 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
4435 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
4436 and stpncpy.
4437 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
4438 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
4439 Regenerate dependencies.
4440
4441 * functions.texi, configure, config.in: Regenerated.
4442
ff773b85
DD
44432003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4444
4445 * argv.c: Fix comments.
4446 * calloc.c: Don't unnecessarily include "libiberty.h".
4447 (bzero): Add prototype.
4448 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
4449 * getcwd.c (getcwd): Use standard definition to avoid conflicts
4450 with system headers.
4451 * hashtab.c (htab_traverse): Delete unused variables.
4452 * rename.c: Include "ansidecl.h".
4453 (rename): Use standard definition to avoid conflicts with system
4454 headers.
4455 * strsignal.c: Rely on ANSI_PROTOTYPES.
4456 * strstr.c: Check GNUC >= 2, not GNUC == 2.
4457 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
4458 * vprintf.c: Include "ansidecl.h" earlier, rely on
4459 ANSI_PROTOTYPES.
4460 * vsprintf.c: Include "ansidecl.h" earlier, rely on
4461 ANSI_PROTOTYPES and possibly include <stdarg.h>.
cbc0188b 4462
ff773b85
DD
4463 * Makefile.in: Regenerate dependencies.
4464
bb325820
DD
44652003-04-15 DJ Delorie <dj@redhat.com>
4466
4467 * maint-tool (deps): Scan for headers in $srcdir also.
4468
258a4893
DD
44692003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4470
4471 PR target/10338
4472 PR bootstrap/10198
4473 PR bootstrap/10140
4474 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
4475 __mempcpy.
4476 * regex.c (regerror): Likewise.
4477
ff773b85
DD
44782003-04-14 Roger Sayle <roger@eyesopen.com>
4479
4480 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
4481 * memchr.c: Likewise.
4482 * strcasecmp.c: Likewise.
4483 * strncasecmp.c: Likewise.
4484 * strncmp.c: Likewise.
4485 * xatexit.c: Likewise.
4486 * xmalloc.c: Likewise.
4487
4488 * copysign.c: Use traditional function declaration instead of DEFUN.
4489 * sigsetmask.c: Likewise.
4490
4491 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
4492 * memset.c: Likewise.
4493
4494 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
4495 * memmove.c: Likewise.
4496
eec539c7
DD
44972003-04-14 Roger Sayle <roger@eyesopen.com>
4498
4499 * strdup.c (strdup): Tweak implementation to use memcpy.
4500
daf7c4ad
DD
45012003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4502
4503 * configure.in (HAVE_UINTPTR_T): Always define.
4504 * configure: Regenerated.
4505
aa072e59
AO
45062003-03-23 Alexandre Oliva <aoliva@redhat.com>
4507
4508 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
4509 instead of $$CC alone.
4510 (install_to_tooldir): Use it.
4511
f77ed96c
DD
45122003-17-03 Jan Hubicka <jh@suse.cz>
4513
4514 * hashtab.c (htab_traverse_noresize): Break out from ...
4515 * hashtab.c (htab_traverse): ... here.
4516
2336e177
DD
45172003-12-03 Jan Hubicka <jh@suse.cz>
4518
4519 * hashtab.c (htab_expand): Fix warning.
4520
4521 * hashtab.c (htab_expand): Compute the size of hashtable based
4522 on the number of elements actually used.
4523 (htab_traverse): Call htab_expand when table is too empty.
4524
d8cbbf95
DD
45252003-03-11 Carlo Wood <carlo@gnu.org>
4526
4527 * cplus-dem.c (demangle_integral_value): Correction to reflect
4528 patch of 2002-01-10 in order to also make negative multi-digits
4529 without leading underscore work.
4530
a01fefeb
DD
45312003-03-03 Mark Mitchell <mark@codesourcery.com>
4532
4533 * cplus-dem.c: Add license exception to copyright notice.
4534
638ceb1a
DD
45352003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4536
4537 * physmem.c: Formatting changes from upstream.
4538
ef803806
DD
45392003-02-24 Danny Smith <dannysmith@users.source.forge.net>
4540
4541 * physmem.c (physmem_total): Add _WIN32 support.
4542 (physmem_available): Likewise.
4543
181fa229
DD
45442003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4545
4546 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
4547 GSI_PHYSMEM.
4548 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
4549
cc529274
DD
45502003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4551
4552 * configure.in: Check for sys/systemcfg.h and
4553 _system_configuration.
4554 * physmem.c: Add support for AIX. Tweek formatting as per
4555 upstream coreutils beta.
4556
45572003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4558 Richard Earnshaw <rearnsha@arm.com>
4559 Geoffrey Keating <geoffk@apple.com>
cbc0188b 4560
cc529274
DD
4561 * configure.in: Check for sys/sysctl.h and sysctl.
4562 * physmem.c: Add support for *bsd and darwin.
4563 * Makefile.in: Generate depedency for physmem.o.
4564
192cbe66
DD
45652003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4566
4567 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
4568 Tru64 UNIX.
4569 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
4570 Tru64 UNIX.
4571
4572 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
4573 machine/hal_sysinfo.h, sys/table.h.
4574 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
4575 * configure, config.in: Regenerate.
4576
ff773b85
DD
45772003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4578
4579 * configure.in: Check for sys/sysmp.h and sysmp.
4580 * physmem.c: Pull upstream copy, add support for irix6.
4581
4582 * config.in, configure: Regenerated.
4583
900d2082
DD
45842003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4585
4586 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
4587 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
4588 pstat_getdynamic.
cbc0188b 4589
4938384a
DD
45902003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4591
4592 * Makefile.in (CFILES): Add physmem.c.
4593 (REQUIRED_OFILES): Add physmem.o.
4594 * configure.in: Check for sys/pstat.h.
4595 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
4596 * physmem.c: New file, copied from textutils.
4597
4598 * config.in, configure: Regenerated.
4599
ba61a412
DJ
46002003-02-20 Daniel Jacobowitz <drow@mvista.com>
4601
4602 * Makefile.in (CFILES): Add lrealpath.c.
4603 (REQUIRED_OFILES): Add lrealpath.o.
4604 (lrealpath.o): Add rule.
4605 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
4606 * configure.in: Add realpath and canonicalize_file_name to
4607 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
4608 for canonicalize_file_name.
4609 * lrealpath.c: New file.
4610 * make-relative-prefix.c: Update documentation.
4611 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
4612 * config.in: Regenerated.
4613 * configure: Regenerated.
4614 * functions.texi: Regenerated.
4615
25dfe0ac
DD
46162003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
4617
4618 * cplus_dem.c: Fix typo: intializes -> initializes.
4619
8b90eef4
AO
46202003-02-20 Alexandre Oliva <aoliva@redhat.com>
4621
4622 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
4623 config.status.
4624 * configure: Rebuilt.
4625
fcd7c7c9
DD
46262003-02-13 Daniel Jacobowitz <drow@mvista.com>
4627
4628 Fix PR c++/7612.
4629 * cplus-dem.c (demangle_signature): Call string_delete.
4630 Remove extra string_init.
4631 (demangle_arm_hp_template): Call string_delete instead of
4632 string_clear. Add missing string_delete call.
4633 (demangle_qualified): Add missing string_delete call.
4634 (do_type): Remove unused variable btype. Add missing string_delete
4635 call. Call string_delete instead of string_clear.
4636 (demangle_fund_type): Move variable btype inside of the switch
4637 statement. Add missing string_delete call.
4638 (do_arg): Call string_delete instead of string_clear. Remove extra
4639 string_init.
4640 (demangle_nested_args): Free work->previous_argument.
4641
073c427b
DD
46422003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4643
4644 * acconfig.h: New file. Add uintptr_t.
4645 * config.in: Regenerated.
4646
f8bd3000
DD
46472003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
4648
4649 * libiberty.texi: Update to GFDL 1.2.
4650
85b9a938
DD
46512003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4652
4653 * Makefile.in (libiberty_topdir): New subst.
4654 (mkinstalldirs): Redefine in terms of the above.
4655 * configure.in: AC_SUBST it.
4656 * configure: Regenerate.
4657
578460f2
AO
46582003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4659
4660 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
4661 (info-subdir, install-info-subdir, clean-info-subdir)
4662 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
4663 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
4664 Pass $(FLAGS_TO_PASS).
4665
7f285245
AO
46662003-01-27 Alexandre Oliva <aoliva@redhat.com>
4667
4668 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
4669 /`$$CC -print-multi-os-directory`.
4670
5f9624e3
DJ
46712003-01-26 Daniel Jacobowitz <drow@mvista.com>
4672
4673 * hashtab.c (htab_create_alloc_ex): New function.
4674 (hatab_set_functions_ex): New function.
4675 (htab_delete, htab_expand): Support alternate allocation functions.
4676
9c2259b8
DD
46772003-01-24 Christopher Faylor <cgf@redhat.com>
4678
4679 * configure.in: Remove special pex-cygwin consideration.
4680 * configure: Regenerate.
4681 * pex-cygwin.c: Remove.
4682 * Makefile.in: Remove pex-cygwin.[co] lines.
4683
5a17353c
DD
46842003-01-24 Zack Weinberg <zack@codesourcery.com>
4685
4686 * Makefile.in (CFILES): Add pex-*.c.
4687 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
4688 (CONFIGURED_OFILES): Add pex-*.o.
4689 (TEXIFILES): Add pexecute.txh.
4690 (pexecute.o): Delete rule.
4691 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
4692 pex-unix.o, pex-win32.o): New rules.
4693 * configure.in: Change AC_INIT argument to xmalloc.c.
4694 Compute appropriate pexecute implementation and substitute it
4695 as @pexecute@.
4696
4697 * pexecute.c: Split up into...
4698 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
4699 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
4700 new files.
4701
4702 * functions.texi: Regenerate.
4703 * configure: Regenerate.
4704
eed2b28c
DD
47052003-01-20 Josef Zlomek <zlomekj@suse.cz>
4706
4707 * hashtab.c (htab_expand): Fix allocation of new entries.
4708
27a39a5f
DD
47092003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
4710
4711 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
4712
4713 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
4714 mkinstalldirs command.
4715
b51c1553
DD
47162002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
4717
4718 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
4719 Define for hosts with HOST_EXECUTABLE_SUFFIX.
4720
756954c3
DD
47212002-11-24 Nick Clifton <nickc@redhat.com>
4722
4723 * make-relative-prefix.c (make_relative_prefix): Ensure return
4724 string is empty before using strcat to construct it.
4725
2a80c0a4
DD
47262002-11-22 Daniel Jacobowitz <drow@mvista.com>
4727
4728 * Makefile.in: Add make-relative-prefix.c.
4729 * make-relative-prefix.c: New file.
4730 * functions.texi: Rebuilt.
4731
768b20d8
JJ
47322002-11-16 Jakub Jelinek <jakub@redhat.com>
4733
4734 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
4735 used with arguments in traditional C' warnings.
4736
f52d1d64
JJ
47372002-10-16 Jakub Jelinek <jakub@redhat.com>
4738
4739 * config.table: Use mh-s390pic for s390x too.
4740
0d3deb8d
DD
47412002-10-06 Andreas Jaeger <aj@suse.de>
4742
41f225de 4743 * cplus-dem.c (ada_demangle): Get rid of unneeded
0d3deb8d
DD
4744 variable and of strict-aliasing warning.
4745 (grow_vect): Use char as first parameter.
4746
1b67de92
DD
47472002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4748
4749 * Makefile.in (all): Fix multilib parallel build.
4750
585cc78f
DD
47512002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
4752
4753 * cp-demangle.c (demangling_new): Cast 0 to enum.
4754 (demangle_char): Cast return of strdup to char *.
4755 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
4756 (is_gnu_v3_mangled_dtor): Likewise.
4757 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
4758 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
4759 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
4760 * md5.c (md5_process_bytes): Cast results back to const void *.
4761 (md5_process_block): Add cast to const md5_uint32 *.
4762 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
4763 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
4764 unsigned short.
4765 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
4766 to void *.
4767 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
4768
e21b0cc1
NC
47692002-09-19 Nick Clifton <nickc@redhat.com>
4770
4771 * README: Update email addresses for bugs and patches.
4772
a54ba43f
DD
47732002-09-10 Mike Stump <mrs@apple.com>
4774
4775 * splay-tree.c (splay_tree_successor): Fix comments.
4776
47772002-09-11 Zack Weinberg <zack@codesourcery.com>
4778
4779 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
4780 * testsuite/Makefile.in: Adjust for test-demangle.
4781 * testsuite/regress-demangle: Deleted.
4782 * testsuite/test-demangle.c: New file.
4783 * testsuite/demangle-expected: Change \$ to $ throughout, now that
4784 this file is not being read by a shell script.
4785
01cea699
DD
47862002-09-05 Roger Sayle <roger@eyesopen.com>
4787
4788 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
4789
a2832523
DD
47902002-08-07 DJ Delorie <dj@redhat.com>
4791
4792 * regex.c (re_error_msgid): Just use a simple array of strings.
4793 (re_compile_pattern): Compensate.
4794 (re_comp): Likewise.
4795 (re_comp): Likewise.
4796 (regerror): Likewise.
4797
1e3f0be0
DD
47982002-07-29 Neil Booth <neil@daikokuya.co.uk>
4799
4800 * cplus-dem.c (PREPEND_BLANK): Remove.
4801
b851d07b
DD
48022002-07-10 Jason Merrill <jason@redhat.com>
4803
4804 * cp-demangle.c (demangle_identifier): Support extended Unicode
4805 characters.
4806
2a9dffbf
DD
48072002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4808
4809 * cp-demangle.c (demangle_v3_with_details): Wrap in
4810 !defined IN_GLIBCPP_V3.
4811
793011ca
DD
48122002-07-01 Mark Mitchell <mark@codesourcery.com>
4813
4814 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
4815 Set it for the "st" operator.
4816 (demangle_expression): Handle expressions with types as arguments.
4817
b39b76b8
DD
48182002-06-30 Douglas Rupp <rupp@gnat.com>
4819
4820 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
4821 * Makefile.in (OUTPUT_OPTION): Use.
4822
4748c6d8
DD
48232002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
4824
4825 * Makefile.in (install_to_libdir): Add $(DESTDIR).
4826 (install_to_tooldir): Likewise.
4827
f9c3326a
DD
48282002-06-17 Douglas Rupp <rupp@gnat.com>
4829
4830 * lbasename.c: Add 2002 to copyright.
4831 (IS_DIR_SEPARATOR): Remove VMS junk.
4832
18893690
DD
48332002-06-05 Geoffrey Keating <geoffk@redhat.com>
4834
4835 * hashtab.c (htab_create): New stub function for backward
4836 compatibility.
4837 (htab_try_create): Likewise.
4838
48392002-06-03 Geoffrey Keating <geoffk@redhat.com>
4840
4841 * hashtab.c (htab_create): Delete.
4842 (htab_try_create): Delete.
4843 (htab_create_alloc): New.
4844 (htab_delete): Support user-specified memory allocation.
4845 (htab_expand): Likewise.
4846
48472002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
4848
4849 * configure.in: Fix typo in the code checking for sys_errlist.
4850 * configure: Regenerated.
4851
9296c8b2
DD
48522002-05-13 Andreas Schwab <schwab@suse.de>
4853
4854 * config.table: Use mh-x86pic also for x86-64.
4855
52d98c2d
DD
48562002-05-08 Alexandre Oliva <aoliva@redhat.com>
4857
4858 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
4859 script entry, and set LD to it when configuring multilibs.
4860 * configure: Rebuilt.
4861
cafa3917
DD
48622002-05-07 Mark Mitchell <mark@codesourcery.com>
4863
4864 * configure.in (AC_TYPE_PID_T): Use it.
4865 * configure: Regenerated.
4866 * getruntime.c: Include <sys/types.h>.
4867 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
4868
b1c933fc
RH
48692002-04-09 Richard Henderson <rth@redhat.com>
4870
4871 * hashtab.c (higher_prime_number): Use 7 as minimum.
4872 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
4873 (htab_find_slot_with_hash): Likewise.
4874
0c4460bb
DD
48752002-04-01 Phil Edwards <pme@gcc.gnu.org>
4876
4877 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
4878 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
4879 not compile if IN_GLIBCPP_V3 defined.
4880 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
4881
f2160d2b
DD
48822002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
4883
3ebf1f59 4884 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
f2160d2b
DD
4885 if it is NULL.
4886
7dd4d42a
DD
48872002-03-27 DJ Delorie <dj@redhat.com>
4888
4889 * hex.c: Add documentation.
4890 (_hex_value): Provide non-ASCII empty table.
4891 (hex_init): Initialize the non-ASCII table.
4892 * functions.texi: Regenerate.
4893
38e57a35
DD
48942002-03-27 Mark Mitchell <mark@codesourcery.com>
4895
4896 * dyn-string.c: Add libgcc exception to copyright notice.
4897
cfed0715
DD
48982002-03-26 H.J. Lu (hjl@gnu.org)
4899
4900 * config.table: Support --with-build-subdir.
4901 * configure.in: Likewise.
4902 * configure: Rebuild.
4903
1504972f
DD
49042002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
4905
4906 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
4907 seen.
4908
35efcd67
DD
49092002-03-12 Mark Mitchell <mark@codesourcery.com>
4910
4911 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
4912 notice.
4913
dabc64ea
DD
49142002-03-11 Douglas B Rupp <rupp@gnat.com>
4915
4916 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
4917
3ddbd84c
JB
49182002-03-06 Jim Blandy <jimb@redhat.com>
4919
4920 * splay-tree.c (splay_tree_xmalloc_allocate,
4921 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
4922 prototyped definitions. Mark `data' arguments as unused.
4923
efdab807
AC
49242002-03-06 Andrew Cagney <ac131313@redhat.com>
4925
4926 * floatformat.c (floatformat_arm_ext_big): Delete definition.
4927
50d4562d
DD
49282002-03-04 Phil Edwards <pme@gcc.gnu.org>
4929
4930 * configure.in: Add --enable-install-libiberty option.
4931 * Makefile.in (INSTALLED_HEADERS): New variable.
4932 (install_to_libdir): Possibly also copy headers.
4933 * configure: Regenerated.
4934
49352002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
4936
4937 * xmalloc.c (xmalloc_fail): Clarify error message further.
4938
6e9980f5
DD
49392002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
4940
4941 * xmalloc.c (xmalloc_fail): Clarify error message.
4942
18893690 49432002-02-22 Jim Blandy <jimb@redhat.com>
2bbcdae9
JB
4944
4945 * splay-tree.c (splay_tree_xmalloc_allocate,
4946 splay_tree_xmalloc_deallocate): New functions.
4947 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
4948 above functions and a dummy data pointer.
4949 (splay_tree_new_with_allocator): New function.
4950 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
4951 splay_tree_remove): Use the splay tree's allocation and
4952 deallocation functions.
4953
59ea9fe7
DD
49542002-02-19 Scott Snyder <snyder@fnal.gov>
4955
4956 * testsuite/demangle-expected: Add test case for infinite loop in
4957 demangler.
4958 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
4959 if do_type() doesn't make any progress --- prevents an infinite
4960 loop.
4961
6f848550
DD
49622002-02-18 Carlo Wood <carlo@gnu.org>
4963
4964 PR c++/5390
4965 * cplus-dem.c (demangle_integral_value): Accept multi-digit
4966 numbers that do not start with an underscore; This is needed
4967 for integer template parameters. This doesn't break anything
4968 because multi-digit numbers are never followed by a digit.
4969 * testsuite/demangle-expected: Corrected all mangled test
4970 cases with multi-digit template parameters: g++ 2.95.x does
4971 not generate underscores around these parameters.
4972
44354ae1
DD
49732002-02-05 Jason Merrill <jason@redhat.com>
4974
4975 * cplus-dem.c (flags): Add DMGL_VERBOSE
4976 (cplus_demangle_v3_p): Remove.
4977 (demangle_it): Add DMGL_TYPES to passed flags.
4978 * cp-demangle.c (cplus_demangle_v3_all): Remove.
4979 (cplus_demangle_v3_type): Remove.
4980 (cplus_demangle_v3): Add options parm.
4981
42da15d6
DD
49822002-02-02 H.J. Lu (hjl@gnu.org)
4983
4984 * cp-demangle.c (cp_demangle_type): Do not protect with
4985 IN_LIBGCC2.
4986 (cplus_demangle_v3_all): New.
4987 (cplus_demangle_v3): Call cplus_demangle_v3_all.
4988 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
4989
4990 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
4991 Initialized to cplus_demangle_v3.
4992 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
4993 of cplus_demangle_v3.
4994 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
4995 command line symbol.
4996
4997 * testsuite/regress-demangle: Pass the mangled name at the
4998 command line.
4999
b117c158
DD
50002002-02-01 H.J. Lu <hjl@gnu.org>
5001
5002 * cp-demangle.c (cp_demangle_type): Call demangling_new with
5003 DMGL_GNU_V3.
5004
c78d91b1
DD
50052002-01-31 Phil Edwards <pme@gcc.gnu.org>
5006
5007 * cp-demangle.c: Revert yesterday's change.
5008
bef8b55d
DD
50092002-01-31 Adam Megacz <adam@xwt.org>
5010
41f225de 5011 * configure.in: Treat mingw the same as cywin
bef8b55d
DD
5012 wrt HAVE_SYS_ERRLIST.
5013
2c955b8b
DD
50142002-01-30 Phil Edwards <pme@gcc.gnu.org>
5015
5016 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
5017 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
5018 cp_demangle_type.
5019 * testsuite/demangle-expected: New gnu-v3 test.
5020
58b1717a
RH
50212002-01-22 Momchil Velikov <velco@fadata.bg>
5022
5023 * configure.in (variable detection): Use arrays of unspecified
5024 size instead of plain integers.
5025
cc096b71
DD
50262002-01-18 DJ Delorie <dj@redhat.com>
5027
5028 * Makefile.in (TESTLIB): New. This library is for future
5029 testsuites.
5030 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
5031 break down by letter.
5032 (REQUIRED_OFILES): List long-to-compile files first.
5033 (maint-deps): New, target for updating dependencies.
5034 (dependencies): Update.
5035 * maint-tool: Add dependency-generating option.
5036 * configure.in: Check for _doprnt even if we're not providing it.
5037 * configure: Regenerate.
5038
5039 * _doprnt.c: Modifications to allow compiling on any platform.
5040 * copysign.c: Likewise.
5041 * putenv.c: Likewise.
5042 * setenv.c: Likewise.
5043 * vsprintf.c: Likewise.
5044
50452002-01-15 Douglas B Rupp <rupp@gnat.com>
5046
5047 * mkstemps.c (mkstemps): On VMS, open temp file with option
5048 that causes it to be deleted when closed.
5049
20d54542
DD
50502002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5051
c23795e2
DD
5052 * cp-demangle.c (long_options): Const-ify.
5053 * cplus-dem.c (long_options): Likewise.
5054
20d54542
DD
5055 * cplus-dem.c (mystrstr): Delete. All callers changed to use
5056 strstr instead.
5057
f348a7b1
DD
50582001-12-31 Ira Ruben <ira@apple.com>
5059
5060 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
5061 * configure: Regenerated.
5062
d86cd745
DD
50632001-12-24 Douglas B. Rupp <rupp@gnat.com>
5064
5065 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
5066 * configure: Regenerated.
5067
ae533646
DD
50682001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
5069
5070 PR other/2719
5071 * cplus-dem.c (consume_count): Treat negative count as an error.
5072 * testsuite/demangle-expected: Added testcase.
5073
c0eb281b
DD
5074Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
5075
5076 * configure.in: Hardcode that vfork works on VMS host.
5077 * configure: Regenerated.
5078
2da4c07f
RH
50792001-12-06 Richard Henderson <rth@redhat.com>
5080
5081 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
5082 (cplus_demangle): Support no_demangling.
5083
24acd898
DD
50842001-11-27 Zack Weinberg <zack@codesourcery.com>
5085
5086 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
5087 in libiberty context. Fix typo in leading comment.
5088 * configure.in: Fix various AC_DEFINEs so autoheader works.
5089 If any of vprintf, vsprintf, vfprintf is missing from libc,
5090 then AC_REPLACE_FUNCS(_doprnt).
5091
fec50157 50922001-11-26 DJ Delorie <dj@redhat.com>
d86cd745 5093 Daniel Jacobowitz <drow@mvista.com>
fec50157
DD
5094
5095 * Makefile.in (stamp-h): Depend on Makefile for proper
5096 serialization.
5097 (*-subdir): Depend on config.h for proper serialization.
5098
5527febf
DD
50992001-11-26 DJ Delorie <dj@redhat.com>
5100
5101 * configure.in: Check for alloca.h (for regex.c and putenv.c).
5102 * configure: Regenerate.
5103 * config.h: Add HAVE_ALLOCA_H.
5104
941d74a0
DD
51052001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5106
5107 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
5108 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
5109 is available.
5110
dc579051
DD
5111Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
5112
5113 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
5114 * configure.in (HAVE_UINTPTR_T): Test for system defining
5115 uintptr_t and define HAVE_UINTPTR_T appropriately.
5116 * regex.c (uintptr_t): Do not provide a definition if the
5117 system provided one.
5118
5119 * regex.c (PREFIX): Provide an alternate definition for
5120 non-ANSI/ISO compilers.
5121 (ARG_PREFIX): Likewise.
5122
1a78a35a
DD
51232001-11-12 Jim Meyering <meyering@lucent.com>
5124
5125 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
5126 this code would end up calling gettext even in packages built
5127 with --disable-nls.
5128 * getopt.c (_): Likewise.
5129 * regex.c (_): Likewise.
5130
4e55c4b6
DD
51312001-11-03 Alan Modra <amodra@bigpond.net.au>
5132
5133 * configure.in: Cope with missing makeinfo.
5134 * configure: Regenerate.
5135
d311a83a
DD
51362001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5137
5138 * hex.c (hex_init): Provide empty stub.
5139
5140 * hex.c (hex_init): Delete.
5141 (_hex_value): Const-ify and initialize at compile-time.
5142
3bc62f91
DD
51432001-10-19 H.J. Lu <hjl@gnu.org>
5144
5145 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
5146 necessary.
5147
5d852400
DD
51482001-10-17 DJ Delorie <dj@redhat.com>
5149
5150 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
5151 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
5527febf 5152 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5d852400
DD
5153 Improve manual formatting.
5154 * functions.texi: Regenerate.
5155
ba19b94f
DD
51562001-10-15 DJ Delorie <dj@redhat.com>
5157
5158 * Makefile.in (TEXIFILES): Add fnmatch.txh.
5159 (maint-undoc): New.
5160 maint-tool: Add "undoc" tool.
5161 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
5162 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
5163 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
5164 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
5165 documentation.
5166 * fnmatch.txh: New.
5167 * functions.texi: Regenerate.
5168
56056af5
DD
51692001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
5170
5171 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
5172 * strtod.c: Use "ISO C" instead of "ANSI C".
5173 * functions.texi: Regenerate.
5174
99b58139
DD
51752001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
5176
5177 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
5178 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
5179 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
5180 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
5181 spelling. Give names to function arguments in documentation. Use
5182 (void) prototypes in documentation.
5183 * functions.texi: Regenerate.
5184
e6450fe5
DD
51852001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5186
5187 * argv.c (buildargv, tests, main): Const-ify.
5188 * cp-demangle.c (operator_code): Likewise.
5189 * cplus-dem.c (optable, libiberty_demanglers,
5190 cplus_demangle_set_style, cplus_demangle_name_to_style,
5191 print_demangler_list): Likewise.
5192 * hashtab.c (higher_prime_number): Likewise.
5193 * strcasecmp.c (charmap): Likewise.
5194 * strerror.c (error_info, strerror, main): Likewise.
5195 * strncasecmp.c (charmap): Likewise.
5196 * strsignal.c (signal_info): Likewise.
5197
da191b5b
DD
51982001-09-29 DJ Delorie <dj@redhat.com>
5199
5200 * configure: Regenerate.
5201
916aaa12
DD
52022001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5203
5204 * concat.c: Include stdlib.h.
5205
fa9f0e33
DD
52062001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
5207
5208 * libiberty.texi: (Top level): Add syncodeindex pg. Add
5209 @dircategory and @direntry directives. Add @finalout.
5210 (many nodes): Lose the next,prev,up pointers on the @nide line.
5211 (Using, Supplemental Functions, Replacement Functions): Fix
5212 markup.
5213 (Functions): Move around, to allow makeinfo to build the manual
5214 without next,prev,up pointers in thye node lines.
5215 (Licenses): Fix typos.
5216
5217 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
5218 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
5219 * functions.texi: Regenerate.
5220
5221 * copying-lib.texi: Lose the next,prev,up pointers on the @node
5222 line.
5223
52242001-09-27 DJ Delorie <dj@redhat.com>
5225
5226 * configure.in: Don't use in-tree texinfo, because libiberty must
5227 be built before it. Check for makeinfo version 4 or higher.
5228 * functions.texi: Regenerate.
5229
39423523
DD
52302001-09-20 DJ Delorie <dj@redhat.com>
5231 Phil Edwards <pedwards@disaster.jaj.com>
5232
5233 * configure.in (MAKEINFO, PERL): Detect these.
5234 (--enable-maintainer-mode): Add.
5235 * configure: Regenerate.
5236 * Makefile.in (MAKEINFO, PERL): Define.
5237 (libiberty.info, libiberty.dvi, libiberty.html): New.
5238 (CFILES): Add bsearch.c.
5239 (CONFIGURED_OFILES): New, list of objects configure might add.
5240 (maint-missing, maint-buildall): New, for maintainers only.
5241 (clean, mostlyclean): Add info/dvi/html files.
5242 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
5243 * gather-docs: New, for maintainers.
5244 * maint-tool: New, for maintainers.
5245 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
5246 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
5247 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
5248 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
5249 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
5250 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
5251 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
5252 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
5253 documentation.
5254
66c94e19
DD
52552001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5256
5257 * concat.c (reconcat): Fix for traditional C.
5258
99ee3a8f
DD
52592001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5260
5261 * concat.c (reconcat): New function.
5262
54c20242
DD
52632001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5264
5265 * concat.c (vconcat_length, vconcat_copy, concat_length,
5266 concat_copy, concat_copy2): New functions.
5267 (concat): Use vconcat_length/vconcat_copy.
5268
5269 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
5270 Define.
5271
843f21be
DD
52722001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5273
5274 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
5275 VA_FIXEDARG & VA_CLOSE.
5276
5277 * vasprintf.c: Check HAVE_STRING_H when including string.h.
5278 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
5279 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
5280
8a423cb3
DD
52812001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5282
5283 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
5284
dc676635
DD
52852001-08-23 Ulrich Drepper <drepper@redhat.com>
5286
5287 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
5288
52892001-08-23 Ulrich Drepper <drepper@redhat.com>
5290
5291 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
5292 instead of mbrtowc.
5293 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
5294 wcslen, and __wcscoll instead of wcscoll.
5295
f080c76d
DD
52962001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
5297
3ebf1f59
DD
5298 * fibheap.c (fibheap_init, fibnode_init): Remove.
5299 (fibheap_new, fibnode_new): Use xcalloc to allocate and
5300 initialize memory.
5301 (fibheap_insert): Remove check for node allocation failure.
f080c76d 5302
f01b59ed
DD
53032001-08-21 Richard Henderson <rth@redhat.com>
5304
5305 * Makefile.in (fibheap.o): Depend on config.h.
5306 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
5307 functions for inlining.
5308
5309Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
5310
5311 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
5312 hosting on cygwin.
5313 * configure: Regenerate.
5314
eb828599
AC
53152001-08-20 Andrew Cagney <ac131313@redhat.com>
5316
5317 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
5318 HARRIS_FLOAT_FORMAT.
5319 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
5320 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
5321 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
5322 (floatformat_m88110_harris_ext): New float formats.
5323
4e55c4b6
DD
53242001-08-20 Daniel Berlin <dan@cgsoftware.com>
5325
5326 * fibheap.c: New file. Fibonacci heap.
5327
5328 * Makefile.in (CFILES): Add fibheap.c.
5329 (REQUIRED_OFILES): Add fibheap.o.
5330 (fibheap.o): Add dependencies for fibheap.o.
5331
68a41de7
DD
53322001-08-17 Christopher Faylor <cgf@cygnus.com>
5333
5334 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
5335 * configure: Regenerate.
5336
8fc34799
DD
53372001-08-16 Richard Henderson <rth@redhat.com>
5338
5339 * hashtab.c (htab_hash_string): New.
5340
16bad250
AC
53412001-08-13 Andrew Cagney <ac131313@redhat.com>
5342
5343 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
5344 name.
5345
a9022147
DD
53462001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
5347
5348 * regex.c (wcs_regex_compile): Use appropriate string
5349 to compare with collating element.
5350 Fix the padding for the alignment.
5351
8aefe91a 53522001-08-10 Andrew Cagney <ac131313@redhat.com>
3ea71002
AC
5353
5354 * lbasename.c (lbasename): Change function definition to return a
5355 const char pointer.
5356
e7e9b069
DD
53572001-08-07 Jason Merrill <jason_merrill@redhat.com>
5358
5359 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
5360 for".
5361
cc5144f8
DD
53622001-08-03 Richard Henderson <rth@redhat.com>
5363
5364 * Makefile.in (concat.o): Depend on config.h.
5365
8aefe91a
DD
53662001-07-30 Andreas Jaeger <aj@suse.de>
5367
5368 * concat.c: Include "config.h".
5369
86710ce2
DD
53702001-07-30 Andreas Jaeger <aj@suse.de>
5371
5372 * regex.c: Declare wcs functions only if compiling with
5373 MBS_SUPPORT.
5374 Don't use #elif for traditional C.
5375
53762001-07-23 Ulrich Drepper <drepper@redhat.com>
5377
5378 * regex.c: Revamp memory allocation for WCHAR functions to
5379 not use too much stack.
5380
53812001-07-30 Andreas Jaeger <aj@suse.de>
5382
5383 * regex.c: Declare wcs functions only if compiling with
5384 MBS_SUPPORT.
5385 Don't use #elif for traditional C.
5386
a5d8f731
DD
53872001-07-25 Daniel Jacobowitz <drow@mvista.com>
5388
5389 * Makefile.in (regex.o): Add dependency on config.h.
5390
6ad8a379
DD
53912001-07-18 Andreas Schwab <schwab@suse.de>
5392
5393 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
5394 underscore character.
5395
53962001-07-18 Ulrich Drepper <drepper@redhat.com>
5397
5398 * regex.c: Limit string length printed in debug messages to 100
5399 chars.
5400
54012001-07-18 Andreas Jaeger <aj@suse.de>
5402
5403 * regex.c: Place under LGPL version 2.1.
5404
2a6ef469
DD
54052001-07-10 Jeff Johnston <jjohnstn@redhat.com>
5406
5407 * Makefile.in: Add support for regex code.
5408 * regex.c: New file.
5409
7b78baae
DD
54102001-07-05 Mark Klein <mklein@dis.com>
5411
5412 * Makefile.in: Add ffs.c dependency.
5413 * configure.in: Add ffs.c.
5414 * ffs.c: New file.
5415
926150e2
DD
54162001-06-18 Richard Henderson <rth@redhat.com>
5417
5418 * concat.c: Include <sys/types.h>.
5419
11f6f21d
DD
54202001-06-11 Loren J. Rittle <ljrittle@acm.org>
5421
5422 bootstrap/3106
5423 * strerror.c (sys_nerr): Hide the OS header version.
5424 * strsignal.c (sys_nsig): Likewise.
5425
d42dae6c
DD
54262001-06-10 Richard Henderson <rth@redhat.com>
5427
5428 * concat.c: Include string.h. Fix int vs size_t usage.
5429 Simplify the iteration loops. Use memcpy.
5430
e05c6d27
DD
54312001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
5432
5433 * partition.c: Fix misspelling of `implementation'.
5434
b50c4073
DD
54352001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5436
5437 * md5.c (md5_init_ctx): Declare constants as unsigned.
5438 (md5_process_block): Likewise.
5439
457161bf
DD
54402001-05-07 Zack Weinberg <zackw@stanford.edu>
5441
5442 * cp-demangle.c (demangle_v3_with_details,
5443 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
5444 function definition.
5445 * ternary.c: Use K+R style function definitions. Use PTR, not
5446 void *. Make arguments constant where possible.
5447
e00bc6a7
DD
54482001-05-07 Mark Mitchell <mark@codesourcery.com>
5449
5450 * splay-tree.h (splay_tree_max): New function.
5451 (splay_tree_min): Likewise.
5452
400ee7e1
DB
54532001-04-15 Daniel Berlin <dan@cgsoftware.com>
5454
5455 * ternary.c: New file - Ternary search tree implementation.
a5dd804e
DB
5456
5457 * Makefile.in: Add ternary.o, and ternary.c dependencies.
400ee7e1 5458
d9697354
DD
54592001-04-03 Zack Weinberg <zackw@stanford.edu>
5460
5461 * make-temp-file.c (try): Inline.
5462
a7bf099b
DD
54632001-02-28 Richard Henderson <rth@redhat.com>
5464
5465 * Makefile.in (make-temp-file.o): Depend on config.h.
5466
30a1def2
DD
54672001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5468
5469 * memchr.c (memchr): Adjust condition to avoid infinite loop.
5470
079c672a
DD
54712001-03-23 Jakub Jelinek <jakub@redhat.com>
5472
5473 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
5474 `_' not followed by a digit is invalid.
5475
a88e356a
JB
54762001-03-22 Jim Blandy <jimb@redhat.com>
5477
5478 * cp-demangle.c (string_list_delete): Use dyn_string_delete
5479 instead of free, to free the contents as well as the string
5480 structure.
5481
1dffcc66
DD
54822001-03-21 Zack Weinberg <zackw@stanford.edu>
5483
5484 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
5485 Don't default P_tmpdir to anything. Try /var/tmp before
5486 /usr/tmp.
5487
54882001-03-20 Zack Weinberg <zackw@stanford.edu>
5489
5490 * choose-temp.c: Split off make_temp_file, and the code
5491 duplicated between it and choose_temp_base, into...
5492 * make-temp-file.c: ... here; new file.
5493
5494 * Makefile.in (CFILES): Add make-temp-file.c.
5495 (REQUIRED_OFILES): Add make-temp-file.o.
5496
e61231f1
JB
54972001-03-20 Jim Blandy <jimb@redhat.com>
5498
5499 * cp-demangle.c (struct demangling_def): New fields:
5500 is_constructor and is_destructor.
5501 (demangling_new): Initialize them.
5502 (demangle_ctor_dtor_name): Set them, if we detect a constructor
5503 or destructor.
5504 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
5505 is_gnu_v3_mangled_dtor): New functions.
5506
a9cbbe6d
DD
55072001-03-20 Jason Merrill <jason@redhat.com>
5508
5509 * cplus-dem.c (main): Skip initial $.
5510
b1e51b3c
DD
55112001-03-15 Michael Meissner <meissner@redhat.com>
5512
5513 * hashtab.c (higher_prime_number): Silence warning that 4294967291
5514 might be a signed integer under pre-ISO C systems.
5515
8aa30e60 55162001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
fa03f0a7 5517 John David Anglin <dave@hiauly1.hia.nrc.ca>
8aa30e60 5518
41f225de
NC
5519 * lbasename.c: New file.
5520 * Makefile.in: Update for lbasename.
8aefe91a 5521
30673bf5
DD
55222001-03-06 Zack Weinberg <zackw@stanford.edu>
5523
5524 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
5525 * configure.in: Replace all alloca logic with a simple use of
5526 the above new macro.
5527 * config.table: Kill *-*-beos* entry.
5528 * config/mh-beos: Delete.
5529 * configure, config.in: Regenerate.
fa03f0a7 5530
30673bf5
DD
5531 * Makefile.in (ALLOCA, HFILES): Kill.
5532 (REQUIRED_OFILES): Add alloca.o.
5533 (alloca.o): Depend on libiberty.h.
5534 (argv.o): Don't depend on alloca-conf.h.
5535 * alloca-conf.h: Delete.
5536 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
5537 blocks. Provide the C alloca unconditionally. Use PTR where
5538 appropriate. Make i00afunc static.
5539 * argv.c: Don't include alloca-conf.h.
fa03f0a7 5540
5810f394
DD
55412001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
5542
5543 * cplus-dem.c (main): Cast enum style to int.
fa03f0a7 5544
a9db032a
DD
55452001-02-16 Loren J. Rittle <ljrittle@acm.org>
5546
5547 * cplus-dem.c (main): Initialize style.
fa03f0a7 5548
8aefe91a
DD
55492001-02-02 Phil Edwards <pme@sources.redhat.com>
5550
5551 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
5552
bc9bf259
DD
55532001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
5554
5555 Add support for Java demangling under the v3 ABI:
5556 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
5557 (struct demangling_def): Add `style' field.
5558 (demangling_new): New parameter `style'. Set it in demangling_t.
5559 (demangle_prefix): Use NAMESPACE_SEPARATOR.
5560 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
5561 (cp_demangle): New parameter `style'. Pass it to demangling_new().
5562 (main): Call cp_demangle with extra parameter.
5563 (java_demangle_v3): New function.
5564 (java_builtin_type_names): New. Table of primitive type names used
5565 for Java demangling.
5566 (demangle_builtin_type): Look up in java_builtin_type_names if doing
5567 Java output.
5568 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
5569 demangling.
5570 (long_options): Remove obsolete `java' option.
5571 (main): Remove explicit handling of `java' option. Instead, pass style
5572 parameter in cplus_demangle flags as gdb does.
5573 * testsuite/demangle.expected: Add some Java test cases.
fa03f0a7 5574
f6528837
DD
55752000-12-29 DJ Delorie <dj@redhat.com>
5576
5577 * fnmatch.c: Make the note about the origins of this file more
5578 accurate, at least until we can sync with glibc.
5579 * getopt.c: Ditto.
5580 * getopt1.c: Ditto.
5581 * md5.c: Ditto.
5582 * obstack.c: Ditto.
9d969b59 5583
c6da642e
DD
55842000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5585
5586 * bsearch.c: New file.
5587 * configure.in (funcs): Add bsearch.
5588 (AC_CHECK_FUNCS): Likewise.
5589 * configure, config.in: Regenerate.
5590
ae7d06ad 55912000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
5592
5593 * safe-ctype.c: #include "ansidecl.h".
5594 * strtod.c: Likewise.
5595
ae7d06ad 55962000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
f021637a
DD
5597
5598 * strtoul.c: Include safe-ctype.h, not ctype.h.
5599
ac424eb3
DD
56002000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
5601
5602 * safe-ctype.c: New file.
5603 * Makefile.in (CFILES): Add safe-ctype.c.
5604 (REQUIRED_OFILES): Add safe-ctype.o.
5605
5606 * argv.c: Define ISBLANK and use it, not isspace.
5607 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
5608 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
5609 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
5610 before calling TOLOWER(c)/TOUPPER(c).
5611
4415a860
DD
56122000-12-07 Mike Stump <mrs@wrs.com>
5613
5614 * Makefile.in (distclean): When cleaning, remove testsuite.
5615
849ee224
DD
56162000-12-05 Jason Merrill <jason@redhat.com>
5617
5618 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
5619 name before allocating the dyn_string.
5620
ae7d06ad 56212000-12-04 Jason Merrill <jason@redhat.com>
e49a569c
DD
5622
5623 * cp-demangle.c: s/new_abi/v3/.
5624 * cplus-dem.c: Likewise.
5625 (current_demangling_style): Now auto_demangling.
5626 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
ae7d06ad 5627 (main): Use standard symbol chars for auto_demangling.
e49a569c 5628
ae7d06ad 56292000-11-26 Mark Mitchell <mark@codesourcery.com>
5ca0f83d
DD
5630
5631 * hashtab.c (higher_prime_number): Use a table, rather than a
5632 seive, to find the next prime.
ae7d06ad
NC
5633
56342000-11-22 H.J. Lu <hjl@gnu.org>
5635
5636 * cplus-dem.c (main): Handle gnat_demangling.
5637
56382000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
2ea7befd
DD
5639
5640 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
5641 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
5642 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
5643 argument form of AC_DEFINE in dummy definitions block. Use
5644 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
5645 in dummy block. Preload cache variables instead of bypassing
5646 tests, where possible.
5647 * acconfig.h: Removed.
ae7d06ad 5648
2ea7befd
DD
5649 * xmalloc.c (xmalloc_failed): New function, does error
5650 reporting on failed allocation.
5651 (xmalloc, xcalloc, xrealloc): Use it.
9c26dc82 5652
f1775526
HPN
56532000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
5654
5655 * cplus-dem.c (cplus_demangle): Fix formatting.
5656 (grow_vect): Ditto.
5657 (ada_demangle): Ditto.
5658 (internal_cplus_demangle): Ditto.
5659 (mop_up): Ditto.
5660
56612000-11-21 H.J. Lu <hjl@gnu.org>
5662
5663 * cplus-dem.c (main): Handle java_demangling.
5664
ae7d06ad 56652000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
f1775526
HPN
5666
5667 * cplus-dem.c (grow_vect): Prototype.
5668 (ada_demangle): Cast the arg of ctype macros to unsigned char.
5669
5dd42ef4
HPN
56702000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
5671
5672 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
5673 parameter `option'.
5674
296731c1
DD
56752000-11-15 Kenneth Block <kenneth.block@compaq.com>
5676
8944fb9d 5677 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
296731c1
DD
5678 be used in GCC.
5679
6e53a714 56802000-11-15 Kenneth Block <kenneth.block@compaq.com>
16e85745 5681
5dd42ef4 5682 * cplus-dem.c: Add gnat demangler. Add java to demangle style
16e85745
HPN
5683 list.
5684
99a4c1bd
HPN
56852000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
5686
5687 * hashtab.c (htab_expand): Change to return int. Use calloc or
8aefe91a
DD
5688 xcalloc depending on htab->return_allocation_failure. Return zero
5689 if calloc fails.
99a4c1bd
HPN
5690 (htab_create): Update comment to cover memory allocation.
5691 (htab_try_create): New.
5692 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
8aefe91a 5693 Update comment to cover this.
99a4c1bd 5694
e0f3df8f
HPN
56952000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
5696
5697 * hashtab.c: Change void * to PTR where necessary.
5698 (htab_create, htab_expand): Correct formatting of comment before
5699 function.
5700
ae7d06ad 57012000-10-22 Alex Samuel <samuel@codesourcery.com>
59666b35
DD
5702
5703 * cp-demangle.c (string_list_def): Add caret_position and comments.
5704 (result_caret_pos): New macro.
5705 (result_append_string): Rename to...
5706 (result_add_string): ... this, and insert at caret position.
ae7d06ad 5707 Rename throughout.
59666b35
DD
5708 (result_append): Rename to...
5709 (result_add): ... this, and insert at caret position. Rename
ae7d06ad 5710 throughout.
59666b35
DD
5711 (result_append_char): Rename to...
5712 (result_add_char): ... this, and insert at caret position. Rename
ae7d06ad 5713 throughout.
59666b35
DD
5714 (result_append_space): Remove.
5715 (string_list_new): Initialize caret position.
5716 (result_add_separated_char): Use caret position.
5717 (result_get_caret): New funtion.
5718 (result_set_caret): Likewise.
5719 (result_shift_caret): Likewise.
5720 (result_previous_char_is_space): Likewise.
5721 (substitution_start): Use caret position.
5722 (substitution_add): Likewise.
5723 (demangling_new): Initialize caret position.
5724 (demangle_encoding): Use caret position.
ae7d06ad 5725 (demanglin_nested_name): Put CV qualifiers after name.
59666b35
DD
5726 (demangle_type_ptr): Use switch statement. Handle pointers to
5727 arrays. Don't use result_append_space. Use caret position.
5728 (demangle_type): Emit CV qualifiers after underlying type. Adjust
ae7d06ad
NC
5729 call to demangle_array_type.
5730 (demangle_array_type): Add parameter to handle pointers to arrays.
74bcd529 5731
ae7d06ad 57322000-10-01 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
5733
5734 * splay-tree.c (splay_tree_insert): Fix formatting.
ae7d06ad
NC
5735
57362000-09-16 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
5737
5738 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
ae7d06ad
NC
5739
57402000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5741
5742 * splay-tree.c: #include <stdio.h>.
5743
57442000-09-14 Hans-Peter Nilsson <hp@axis.com>
5745
5746 * testsuite/demangle-expected: Add two tests for anonymous
5747 namespaces.
5748 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
5749
57502000-09-10 Mark Mitchell <mark@codesourcery.com>
74bcd529
DD
5751
5752 * splay-tree.c (splay_tree_predecessor): New function.
5753 (splay_tree_successor): Likewise.
ae7d06ad
NC
5754
57552000-09-10 Hans-Peter Nilsson <hp@axis.com>
5756
5757 * testsuite/demangle-expected: Add four tests for type_info
5758 mangling.
5759 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
5760 for a non-template non-qualified type_info function or node.
5761
57622000-09-08 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5763
5764 * cp-demangle.c: Fix copyright banner.
ae7d06ad
NC
5765
57662000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5767
5768 * md5.c: #include "ansidecl.h".
5769
57702000-09-06 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5771
5772 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
5773 (demangle_type): Handle substitution candidates correctly in the
5774 face of special substitutions.
ae7d06ad
NC
5775
57762000-09-05 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5777
5778 * cp-demangle.c (demangle_encoding): Rename variable.
5779 (demangle_name): Rename parameter. Handle return type
5780 suppression.
5781 (demangle_nested_name): Rename parameter.
5782 (demangle_prefix): Likewise. Change return type suppression.
5783 (demangle_unqualified_name): Add parameter. Flag constructors and
5784 conversion operators.
5785 (demangle_special_name): Fix comment.
5786 (demangle_type): Rename variable.
5787 (demangle_bare_function_type): Check for missing return type and
5788 parameter.
5789 (demangle_class_enum_type): Rename parameter.
5790 (demangle_discriminator): Fix misspelling in comment.
ae7d06ad
NC
5791
57922000-08-31 DJ Delorie <dj@redhat.com>
5793
5794 * configure.in (Cygwin): special case cygwin only when we're
5795 building cygwin, not when we're hosting cygwin.
5796
57972000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5798
5799 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
5800 <expression>.
ae7d06ad
NC
5801
58022000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5803
5804 * cp-demangle.c (demangle_type_ptr): Increment position past
5805 pointer and reference characters.
ae7d06ad
NC
5806
58072000-09-04 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5808
5809 * cp-demangle.c (demangle_nv_offset): New function.
5810 (demangle_v_offset): Likewise.
5811 (demangle_call_offset): Likewise.
5812 (demangle_special_name): Update thunk demangling to comply with
5813 ABI changes.
ae7d06ad
NC
5814
58152000-09-03 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5816
5817 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
5818 (substitution_def): Remove template_parm_number.
5819 (NOT_TEMPLATE_PARM): Remove.
5820 (result_insert_string): New macro.
5821 (result_insert): Likewise.
5822 (result_insert_char): Likewise.
5823 (substitution_add): Remove last parameter. Don't store template
5824 parm number.
5825 (BFT_NO_RETURN_TYPE): Define as NULL.
5826 (demangle_encoding): Adjust call to demangle_bare_function_type.
5827 (demangle_name): Adjust substitution. Adjust call to
5828 substitution_add.
5829 (demangle_prefix): Adjust call to substitution_add.
5830 (demangle_identifier): Handle anonymous namespaces.
5831 (demangle_operator_name): Change demangling of vendor-extended
5832 operator to match ABI changes.
5833 (demangle_type_ptr): Change parameters. Make recursive. Handle
5834 substitutions here.
5835 (demangle_type): Adjust calls to demangle_template_param,
5836 substitution_add, and demangle_type_ptr. Fix substitution of
5837 templated types.
5838 (demangle_function_type): Change parameter to a pointer.
5839 (demangle_bare_function_type): Likewise. Adjust insertion point.
5840 (demangle_template_param): Remove last parameter.
5841 (demangle_expr_primary): Remove unused variable. Adjust call to
5842 demangle_template_param.
5843 (is_mangled_char): Accept `$' and `.'.
5844 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
5845 * dyn-string.c (dyn_string_insert_char): New function.
ae7d06ad
NC
5846
58472000-08-31 Hans-Peter Nilsson <hp@axis.com>
5848
5849 * testsuite/demangle-expected: Add nine tests for
5850 underscore-after-number followed by five tests for name-signature
5851 delimiter.
5852
58532000-08-28 Richard Henderson <rth@cygnus.com>
74bcd529
DD
5854
5855 * Makefile.in (md5.o): Depend on config.h.
ae7d06ad
NC
5856
58572000-08-28 Jason Merrill <jason@redhat.com>
5858
5859 * Makefile.in (REQUIRED_OFILES): Add md5.o.
5860 (CFILES): Add md5.c.
5861 * md5.c: New file.
5862
58632000-08-27 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5864
5865 * cp-demangle.c (demangle_name): Initialize template_p in local
5866 name case. Don't re-add substitutions as candidates.
5867 (demangle_nested_name): Use <unqualified-name>.
5868 (demangle_prefix): Likewise. Don't add template names as
5869 substitution candidates twice, or re-add a substitution or the
5870 last prefix component.
5871 (demangle_local_name): Adjust output format.
ae7d06ad
NC
5872
58732000-08-25 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5874
5875 * cp-demangle.c (result_add_separated_char): Change parameter to
5876 int.
5877 (substitution_add): Don't check for duplicates. Check if
5878 previously allocated size is zero.
5879 (demangle_name): Remove duplicate check for std substitution.
5880 Clear template flag appropriately.
5881 (demangle_prefix): Remove argument to demangle_substitution.
5882 Don't check that template flag is already set.
5883 (demangle_operator_name): Add pt operator.
5884 (demangle_type): Don't treat r as built-in type. Remove argument
5885 to demangle_substitution. Fix substitution candidate mechanics.
5886 Handle <template-template-parm>s. Improve comments.
5887 (demangle_template_param): Don't handle template arg lists here.
5888 (demangle_substitution): Remove parameter.
5889 (print_usage): Remove extra fprintf option.
ae7d06ad
NC
5890
58912000-08-24 Greg McGary <greg@mcgary.org>
74bcd529 5892
41f225de 5893 * random.c (end_ptr): Revert previous change.
ae7d06ad
NC
5894
58952000-08-24 Greg McGary <greg@mcgary.org>
74bcd529 5896
41f225de 5897 * cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
74bcd529 5898 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
41f225de 5899 * random.c (end_ptr): Likewise.
ae7d06ad
NC
5900
59012000-08-23 Alex Samuel <samuel@codesourcery.com>
74bcd529
DD
5902
5903 * cp-demangle.c (result_close_template_list): Remove function.
5904 (result_add_separated_char): New function.
5905 (result_open_template_list): New macro.
5906 (result_close_template_list): Likewise.
5907 (demangle_prefix): Don't set template_p if the
5908 prefix ends with a ctor name.
5909 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
5910 (demangle_type): Check for template args after substitution.
5911 (demangle_template_args): Use result_open_template_list.
d3e85005 5912
ae7d06ad 59132000-08-02 Zack Weinberg <zack@wolery.cumb.org>
64e3a659 5914
ae7d06ad 5915 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
050823ca 5916
ae7d06ad 59172000-07-26 Dave Pitts <dpitts@cozx.com>
d6e83f5f
JL
5918
5919 * config/mh-openedition.h: Added -DLE370 definition.
5920
a9f34fb6
JL
59212000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
5922
5923 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
5924 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
5925 Cast program to 'char *' in errmsg_arg assignment.
5926 (PWAIT_ERROR): Define.
5927 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
5928 to DJGPP's WIF* macros.
5929
90aaccd1 59302000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
ae7d06ad 5931 Jeff Law <law@cygnus.com>
90aaccd1 5932
ae7d06ad 5933 * getcwd.c: Include string.h, stdlib.h for prototypes
443519c1 5934
90aaccd1 5935 * Makefile.in (rename.o, waitpid.o): Depend on config.h
ae7d06ad
NC
5936 * rename.c: Include config.h, unistd.h
5937 * waitpid.c: Include config.h, sys/wait.h
90aaccd1 5938
6ef554e3
HPN
59392000-07-24 Hans-Peter Nilsson <hp@axis.com>
5940
5941 * cplus-dem.c (work_stuff_copy_to_from): New.
5942 (delete_non_B_K_work_stuff): New.
5943 (delete_work_stuff): New.
5944 (mop_up): Break out work_stuff partly destruction to
5945 delete_non_B_K_work_stuff.
5946 (iterate_demangle_function): New.
5947 (demangle_prefix): Call iterate_demangle_function instead of
5948 demangle_function_name. Leave handling of name-signature
5949 __-delimiters to iterate_demangle_function.
5950 (demangle_integral_value): Strip an optional
5951 following underscore cautiously. Handle negative numbers.
5952
ae7d06ad 59532000-07-24 Daniel Berlin <dberlin@redhat.com>
e8865c28 5954
ae7d06ad 5955 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
e8865c28
DB
5956 if (AUTO_DEMANGLING || GNU_DEMANGLING)
5957
ae7d06ad
NC
59582000-07-21 Alex Samuel <samuel@codesourcery.com>
5959
5960 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
5961 allocating ctor mangling.
5962 (demangle_array_type): Handle empty and non-constant array length.
5963
b1233257 59642000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
62df2065
JL
5965 Jeff Law <law@cygnus.com>
5966
5967 * configure.in (AC_CHECK_HEADERS): Add time.h.
5968 (AC_HEADER_TIME): Add check.
5969 * configure, config.in: Regenerate.
5970 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
5971
5972 * configure.in (AC_CHECK_HEADERS): Add limits.h.
5973 * configure, config.in: Regenerate.
5974 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
5975 * strtol.c, strtoul.c: #include "config.h". Portably #include
5976 <limits.h> and/or <sys/param.h>.
5977 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
b1233257 5978
7d3ffcaf
JL
5979 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
5980 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
5981 * configure, config.in: Regenerate.
5982 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
5983
b1233257
JL
5984 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
5985
ae7d06ad
NC
59862000-07-21 Mike Stump <mrs@wrs.com>
5987
5988 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
5989 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
5990
59912000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5992
5993 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
5994
5995 * setenv.c (setenv): Initialize variable `ep'.
5996
5997 * sigsetmask.c (abort): Prototype.
5998
5999 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
6000 __STDC__ for stdarg.h include.
6001 (int_vasprintf): Prototype.
6002 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
6003 definition. Cast `global_total_width' in comparison.
6004 (main): Prototype. Return a value.
6005
6006 * vfork.c (fork): Prototype.
6007
6008 * xexit.c: Include config.h.
6009
9adf30b2
JL
60102000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
6011
6012 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
6013 and print it with %u.
6014
2ed78d1b
HPN
60152000-07-17 Hans-Peter Nilsson <hp@axis.com>
6016
6017 * testsuite/regress-demangle (failed test): Show result and
6018 expected output.
6019
0473bdf7
AH
60202000-07-07 Andrew Haley <aph@cygnus.com>
6021
6022 * cplus-dem.c (main): fflush() after emitting last char before
6023 waiting for input.
6024
03d5f569
JM
60252000-06-28 Alex Samuel <samuel@codesourcery.com>
6026
6027 * cp-demangle.c (demangle_encoding): Accept no substitutions.
6028 (demangle_name): Handle <substitution> followed by
6029 <unqualified-template-name>.
6030 (demangle_type): Follow special substitutions with
6031 <class-enum-type>
6032 (demangle_subtitution): Set template_p for special substitutions.
6033 (main): Fix typos.
ae7d06ad 6034
03d5f569
JM
60352000-06-27 Alex Samuel <samuel@codesourcery.com>
6036
6037 * cp-demangle.c (demangle_special_name): Swap base and derived
6038 class when demangling construction vtables.
6039
60402000-06-21 Alex Samuel <samuel@codesourcery.com>
6041
6042 * cp-demangle.c: Don't include ctype.h.
6043 (IS_DIGIT): New macro.
6044 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
6045 instead of isdigit and isalpanum.
6046 (demangling_def): Make name and next const pointers.
6047 (STATUS_ALLOCATION_FAILED): New status code.
6048 (dyn_string_append_space): Handle failure in
6049 dyn_string_append_char.
6050 (int_to_dyn_string): Likewise. Change return value to status_t.
6051 (string_list_new): Handle failure of dyn_string_init.
6052 (result_close_template_list): Change return type to status_t.
6053 Handle failure in dyn_string_append.
6054 (result_push): Change return value to status_t. Handle failure in
6055 string_list_new. Handle failure of result_push throughout.
6056 (substitution_add): Change return value to status_t. Handle
6057 dyn_string failures. Handle failure of substitution_add
6058 throughout.
6059 (template_arg_list_new): Return NULL on allocation failure.
6060 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
6061 Handle error result throughout.
6062 (result_append): Likewise.
6063 (result_append_char): Likewise.
6064 (result_append_space): Likewise.
6065 (demangling_new): Make argument a const pointer. Handle
6066 allocation failures.
6067 (demangle_template_args): Handle failure in template_arg_list_new
6068 and result_close_template_list.
6069 (demangle_discriminator): Return if int_to_dyn_string fails.
6070 (cp_demangle): Likewise.
6071 (cp_demangle_type): New function.
6072 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
6073 memory allocation failure.
6074 (main): Likewise.
6075 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
6076 IN_LIBGCC2.
6077 (dyn_string_init): Change return value to int. Handle
6078 RETURN_ON_ALLOCATION_FAILURE case.
6079 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
6080 (dyn_string_release): Delete the dyn_string.
6081 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
6082 (dyn_string_copy): Change return type to int.
6083 (dyn_string_copy_cstr): Likewise.
6084 (dyn_string_prepend): Likewise.
6085 (dyn_string_prepend_cstr): Likewise.
6086 (dyn_string_insert): Likewise.
6087 (dyn_string_insert_cstr): Likewise.
6088 (dyn_string_append): Likewise.
6089 (dyn_string_append_cstr): Likewise.
6090 (dyn_string_append_char): Likewise.
6091 (dyn_string_substring): Likewise.
ae7d06ad 6092
eb383413 60932000-06-09 Zack Weinberg <zack@wolery.cumb.org>
9cc28cc8 6094
eb383413
L
6095 * cp-demangle.c (demangle_operator_name): Add spaces before
6096 names beginning with a letter: delete, delete[], new, new[],
6097 sizeof.
6098 (demangle_special_name): Handle TF <type> and TJ <type>.
9cc28cc8 6099
eb383413
L
6100Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
6101
6102 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
6103
6104Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
6105
6106 * cp-demangle.c (stdio.h): File included unconditionaly.
6107 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
6108 * dyn-string.c (stdio.h): File included.
6109 * partition.c (partition_print): No `&' needed to take the address of
6110 a function.
6111
61122000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6113
6114 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
ae7d06ad 6115
eb383413
L
6116 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
6117
6118 * cp-demangle.c (demangle_char): Change parameter from char to int.
6119 (demangle_expression, demangle_expr_primary): Remove extra
6120 semi-colon in prototype.
6121
6122 * dyn-string.c (dyn_string_append_char): Change parameter from
6123 char to int.
6124
6125 * memcmp.c (memcmp): Constify.
6126
6127 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
6128 __extension__.
6129
6130 * partition.c (elem_compare): Prototype. Don't cast away
6131 const-ness.
6132
6133 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
ae7d06ad 6134
eb383413
L
61352000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6136
6137 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
6138
6139 * cp-demangle.c: Include demangle.h.
6140 (template_arg_list_new): DeANSIfy.
6141 (cp_demangle): Make static and add prototype.
6142 (operator_code, operators): Constify.
6143 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
6144
61452000-06-05 Alex Samuel <samuel@codesourcery.com>
6146
6147 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
6148 unsigned char.
6149 (demangle_unqualified_name): Likewise.
6150 (demangle_number_literally): Likewise.
6151 (demangle_type): Likewise.
6152 (demangle_substitution): Likewise.
6153 (is_mangled_char): Likewise, for isalnum.
6154
61552000-06-04 Alex Samuel <samuel@codesourcery.com>
6156
6157 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
6158 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
6159 (cp-demangle.o): New dependency.
6160 (dyn-string.o): Likewise.
6161
6162 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
6163
6164 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
6165 demangler.
6166 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
6167 demangling mode.
6168 (gnu_new_abi_symbol_characters): New function.
6169 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
6170 file.
6171 * cp-demangle.c: New file.
ae7d06ad 6172
f03aa80d
AC
6173Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
6174
6175 * floatformat.c: Add name to each floatformat field.
6176
77bfb694
JL
6177Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
6178
6179 * Makefile.in (objalloc.o): Depend on config.h
6180
5c82d20a
ZW
61812000-05-29 Zack Weinberg <zack@wolery.cumb.org>
6182
eb383413 6183 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
5c82d20a
ZW
6184 if HAVE_STRING_H.
6185 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
6186 * objalloc.c: Include config.h. Include stdlib.h and don't
6187 declare malloc or free if HAVE_STDLIB_H.
6188 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
6189 else declare malloc without prototype. Include string.h if
6190 HAVE_STRING_H, else declare memset without prototype. Don't
6191 include stddef.h.
6192
eb383413
L
61932000-05-23 Mike Stump <mrs@wrs.com>
6194
6195 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
8aefe91a 6196 -j3.
eb383413
L
6197
61982000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
6199
6200 * xmalloc.c: Include config.h for HAVE_SBRK definition.
6201
62022000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
6203
ae7d06ad 6204 * hashtab.c (hash_pointer): Delete low-order bits which are
eb383413
L
6205 probably zero, also eliminate a warning on alpha.
6206
62072000-05-15 David Edelsohn <edelsohn@gnu.org>
6208
6209 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
6210 on $(enable_shared).
6211
62122000-05-10 Jakub Jelinek <jakub@redhat.com>
6213
6214 * config.table: Use mh-sparcpic for sparc*-*-*.
6215
62162000-05-08 Nick Clifton <nickc@cygnus.com>
6217
6218 * Makefile.in (CFILES): Add strncmp.c.
6219 (NEEDED): Add strncmp.
6220
62212000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5c82d20a 6222
eb383413
L
6223 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
6224 Cast the arguments to `islower' to `unsigned char'.
6225 (print_demangler_list): Prototype.
6226
6227Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
6228
6229 * sort.c (UCHAR_MAX): Provide fallback definition.
6230
62312000-04-29 Alexandre Oliva <aoliva@cygnus.com>
010c70e1
AO
6232
6233 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
6234 SUBDIRS.
6235
eb383413
L
62362000-04-28 Kenneth Block <block@zk3.dec.com>
6237 Jason Merrill <jason@casey.cygnus.com>
6238
ae7d06ad
NC
6239 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
6240 (cplus_demangle_set_style): New function for setting style.
6241 (cplus_demangle_name_to_style): New function to translate name.
eb383413
L
6242
62432000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6244
6245 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
6246
6247 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
6248 (libiberty_AC_FUNC_STRNCMP): Invoke.
6249
6250 * strncmp.c: New file.
6251
6252Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
6253
6254 * hashtab.c (htab_expand): Add prototype.
6255 (find_empty_slot_for_expand): Likewise.
6256
62572000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6258
6259 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
6260 match prototype.
6261 (htab_expand): Cast the return value of xcalloc.
6262
62632000-04-24 Mark Mitchell <mark@codesourcery.com>
6264
6265 * hashtab.c (hash_pointer): New function.
6266 (eq_pointer): Likewise.
6267 (htab_hash_pointer): New variable.
6268 (htab_eq_pointer): Likewise.
6269
62702000-04-23 Mark Mitchell <mark@codesourcery.com>
6271
6272 * sort.c (sort_pointers): Fix endianness bugs.
6273
6274 * sort.c: New file.
6275 * Makefile.in (CFILES): Add sort.c
6276 (REQUIRED_OFILES): Add sort.o.
6277 (sort.o): New target.
6278
19be4303
JL
62792000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6280
6281 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
6282 4.3BSD systems.
6283
eb383413
L
6284Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6285
6286 * hashtab.c: Various minor cleanups.
6287 (htab_find_slot_with_hash): INSERT is now enum insert_option.
6288 (htab_find_slot): Likewise.
6289
62902000-04-16 Dave Pitts <dpitts@cozx.com>
6291
6292 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
ae7d06ad 6293
afe36a78
RH
62942000-04-05 Richard Henderson <rth@cygnus.com>
6295
6296 * splay-tree.c (splay_tree_remove): New.
6297
eb383413
L
62982000-03-30 Mark Mitchell <mark@codesourcery.com>
6299
6300 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
6301 codes.
6302 (htab_find_with_hash): Likewise.
6303 (htab_find_slot_with_hash): Likewise.
ae7d06ad 6304
eb383413
L
63052000-03-29 Zack Weinberg <zack@wolery.cumb.org>
6306
6307 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
6308 unless it will be used. Rearrange loop for better
6309 optimization.
6310 (higher_prime_number): Add static prototype.
6311
b4fe2683
JM
6312Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
6313
6314 * Makefile.in (partition.o): Depend on config.h
6315
63162000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
6317
6318 * hashtab.c (find_empty_slot_for_expand): New function.
6319 (htab_expand): Use it instead of htab_find_slot.
6320 (htab_find_with_hash): Renamed from htab_find; now accepts extra
6321 argument HASH.
6322 (htab_find_slot_with_hash): Likewise for htab_find_slot.
6323 (htab_find): New wrapper function.
6324 (htab_find_slot): Likewise.
6325 (htab_traverse): Pass slot, not entry, to called function.
6326
63272000-03-09 Alex Samuel <samuel@codesourcery.com>
6328
6329 * Makefile.in (CFILES): Add partition.c.
6330 (REQUIRED_OFILES): Add partition.o.
6331 (partition.o): New rule.
6332 * partition.c: New file.
ae7d06ad 6333
b4fe2683
JM
63342000-03-09 Zack Weinberg <zack@wolery.cumb.org>
6335
6336 * hashtab.c (htab_create): Set del_f.
6337 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
6338 Use it.
6339
63402000-03-08 Zack Weinberg <zack@wolery.cumb.org>
6341
6342 * hashtab.c: Remove debugging variables (all_searches,
6343 all_collisions, all_expansions). Delete
6344 all_hash_table_collisions.
6345 (create_hash_table, delete_hash_table, empty_hash_table,
6346 find_hash_table_entry, remove_element_from_hash_table_entry,
6347 clear_hash_table_slot, traverse_hash_table, hash_table_size,
6348 hash_table_elements_number, hash_table_collisions): Rename to:
6349 htab_create, htab_delete, htab_empty, htab_find_slot,
6350 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
6351 htab_elements, htab_collisions.
6352 (htab_find): New function, handles common case where you don't
6353 plan to add or delete an entry.
6354 (htab_expand): Don't create a whole new table, just a new
6355 entry vector.
6356 (htab_find_slot): Simplify logic.
6357
08372f14
ILT
63581999-08-03 Ian Lance Taylor <ian@zembu.com>
6359
6360 * floatformat.c: Add casts to avoid signed/unsigned warnings.
6361 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
6362
6363 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
6364 $(TARGETLIB)n so it works on MSDOS.
6365 (install_to_tooldir): Likewise.
6366
9c8ac5a9
ILT
63671999-07-21 Ian Lance Taylor <ian@zembu.com>
6368
6369 From Mark Elbrecht:
6370 * makefile.dos: Remove; obsolete.
8f36e47c 6371 * configure.bat: Remove; obsolete.
9c8ac5a9 6372
0c0a36a4
ILT
63731999-07-11 Ian Lance Taylor <ian@zembu.com>
6374
6375 * splay-tree.c (splay_tree_insert): Add initialization to avoid
6376 warning.
6377
63782000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
6379
6380 * pexecute.c: Conditionally include string.h.
b4fe2683 6381 (fix_argv): Handle embedded whitespace in args for Mingw32.
0c0a36a4
ILT
6382
63832000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6384
6385 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
6386 we're using gcc.
6387
6388 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
6389
63901999-12-27 Geoff Keating <geoffk@cygnus.com>
6391
6392 * vasprintf.c (int_vasprintf): Don't re-read the format character
6393 as this mishandles strings like '%%s'.
6394
63951999-12-05 Mark Mitchell <mark@codesourcery.com>
6396
6397 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
6398 rather than struct splay_tree_node.
6399 (splay_tree_insert): Use struct splay_tree_s rather than struct
6400 splay_tree.
6401
6402Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
6403
6404 * hashtab.c (sys/types.h): File included.
6405
64061999-11-22 Jason Merrill <jason@casey.cygnus.com>
6407
6408 * strtoul.c, strtol.c, random.c: Remove advertising clause from
6409 BSD license, pursuant with
6410
6411 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
6412
6413Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
6414
6415 * hashtab.c: Include stdio.h.
6416
6417Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
6418
6419 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
6420
6421Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
6422
6423 * xstrdup (sys/types.h): Include this file.
6424
64251999-10-28 Nathan Sidwell <nathan@acm.org>
6426
6427 * Makefile.in (SUBDIRS): New macro.
6428 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
6429 avoid multiple subdirectory cleaning.
6430 (*-subdir): Use SUBDIRS.
6431
64321999-10-25 Jim Kingdon <http://developer.redhat.com/>
6433
6434 * cplus-dem.c: Move declarations of standard_symbol_characters and
6435 hp_symbol_characters inside #ifdef MAIN to avoid compiler
6436 warnings.
6437
64381999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
6439
6440 * hashtab.c (find_hash_table_entry): When returning a
6441 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
6442 (clear_hash_table_slot): New function which deletes an entry
6443 by its position in the table, not its value.
6444 (traverse_hash_table): New function which calls a hook
6445 function for every live entry in the table.
6446
64471999-10-19 Mark Mitchell <mark@codesourcery.com>
6448
6449 * cplus-dem.c (INTBUF_SIZE): New macro.
6450 (string_append_template_idx): New function.
6451 (demangle_expression): Likewise.
6452 (demangle_integral_value): Use it.
6453 (demangle_real_value): New function, split out from ...
6454 (demangle_template_value_parm): ... here. Use
6455 string_append_template_idx. Use demangle_real_value.
6456 (demangle_template): Use string_append_template_idx.
6457 (demangle_qualified): Use consume_count_with_underscores.
6458 (get_count): Tweak formatting.
6459 (do_type): Use string_append_template_idx.
b4fe2683 6460
0c0a36a4
ILT
64611999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6462
6463 * calloc.c: Add a public domain notice.
6464
6465Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
6466
6467 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
6468
6469Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
6470
6471 * Makefile.in (CFILES): Add hashtab.c
6472 (REQUIRED_OFILES): Add hashtab.o
6473 (hashtab.o): Add dependencies.
6474 * hashtab.c: New file
6475
6476Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
6477
6478 * basename.c (DIR_SEPARATOR): New macro.
6479 (DIR_SEPARATOR_2): Likewise.
6480 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
6481 (IS_DIR_SEPARATOR): Likewise.
6482 (main): Handle MSDOS style pathname.
6483
64841999-10-11 Mark Mitchell <mark@codesourcery.com>
6485
6486 * cplus-dem.c (do_type): Handle pointer to member types whose
6487 enclosing classes have namespace scope.
6488
6489Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
6490
6491 * config.table: Provide a backup shell for executing move-if-change.
6492
64931999-10-02 Mark Mitchell <mark@codesourcery.com>
6494
6495 * xmalloc.c (xmalloc): Fix spelling error.
6496 (xcalloc, xrealloc): Likewise.
6497
64981999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6499
6500 * cplus-dem.c (fancy_abort, demangle_integral_value,
6501 demangle_arm_hp_template, recursively_demangle,
6502 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
6503 (program_name, program_version, fatal): Constify a char*.
6504 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
6505 (main): Call return, not exit.
6506
65071999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6508
6509 * choose-temp.c: Remove obsolete comment about gcc.
6510 (make_temp_file): Constify a char*.
6511
6512Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6513
6514 * xmemdup.c: Include sys/types.h.
6515
65161999-09-07 Jeff Garzik <jgarzik@pobox.com>
6517
6518 * xmemdup.c: New xmemdup function.
6519 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
6520
6521Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
6522
b4fe2683 6523 * config.table: Add openedition target.
0c0a36a4
ILT
6524 * config/mh-openedition: New file.
6525
6526Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
6527
6528 * pexecute.c (pexecute): Fill in temp_base when needed.
6529
65301999-08-31 Richard Henderson <rth@cygnus.com>
6531
6532 * getpwd.c: Check HAVE_GETCWD before defining it away.
6533
65341999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6535
6536 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
6537 (REQUIRED_OFILES): Add getpwd.o.
6538 (getpwd.o): Add target.
6539
6540 * configure.in (AC_PREREQ): Bump to 2.13.
6541 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
6542
6543 * getpwd.c: New file, moved here from gcc.
6544
65451999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6546
6547 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
6548 comparing against a signed quantity.
6549 (arm_special): Likewise.
6550 (demangle_fund_type): Likewise.
6551 (do_hpacc_template_const_value): Mark parameter `work' with
b4fe2683 6552 ATTRIBUTE_UNUSED.
0c0a36a4
ILT
6553 (main): Constify variable `valid_symbols'.
6554
6555Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
6556
6557 * strtoul.c (strtoul): Add parentheses around && within ||.
6558
6559Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
6560
6561 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
6562 libdir, libsubdir and tooldir.
6563
65641999-08-01 Mark Mitchell <mark@codesourcery.com>
6565
6566 * splay-tree.c (splay_tree_insert): Return the new node.
6567
35ca97ea
RH
65681999-07-14 Richard Henderson <rth@cygnus.com>
6569
b4fe2683 6570 * argv.c: Include stdlib.h and string.h instead of
35ca97ea
RH
6571 prototyping directly.
6572 * choose-temp.c: Conditionally include string.h.
6573
0c0a36a4
ILT
65741999-07-12 Jason Merrill <jason@yorick.cygnus.com>
6575
6576 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
6577
af32ff69
ILT
65781999-07-11 Ian Lance Taylor <ian@zembu.com>
6579
6580 * splay-tree.c (splay_tree_insert): Add initialization to avoid
6581 warning.
6582
0c0a36a4
ILT
65831999-07-07 Jason Merrill <jason@yorick.cygnus.com>
6584
6585 * Makefile.in (needed-list): Only include stuff we actually need
6586 for libstdc++.
6587
65881999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
6589
6590 * configure.in (checkfuncs): Add gettimeofday.
6591 * config.in, configure: Regenerated.
6592
6593Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
6594
6595 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
6596 the test fails.
6597 * configure: Regenerate.
6598
65991999-06-10 Mike Stump <mrs@wrs.com>
6600
6601 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
6602 parallel builds.
6603
66041999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6605
6606 * putenv.c: Include ansidecl.h to define `const'.
6607 * setenv.c: Likewise.
6608
6609Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
6610
6611 * Makefile.in (CFILES): Add putenv.c and setenv.c.
6612 * configure.in (funcs): Add putenv and setenv.
6613 (AC_CHECK_FUNCS): Check for putenv and setenv.
6614 * configure: Rebuilt.
6615 * putenv.c setenv.c: New files.
6616
6617 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
6618 bytes of space using malloc.
6619
6620Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
6621
6622 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
6623 the *mangled pointer beyond the end of the string. Clean up code to
6624 match prevailing coding style.
6625
66261999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
6627
6628 * tmpnam.c (L_tmpnam): Fix typo.
6629
6630Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
6631
6632 * cplus-dem.c (standard_symbol_characters): Renamed from
6633 standard_symbol_alphabet. No longer modify TABLE.
6634 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
6635 modify TABLE.
6636 (main): Corresponding changes. Use strchr to determine if a
6637 character is valid.
6638
e9868447
JB
66391999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
6640
6641 * cplus-dem.c (main): Use table lookup to distinguish identifier
6642 characters from non-identifier characters.
6643 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
6644
33fbbfbc
RH
6645Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
6646
6647 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
6648 * getruntime.c: Only attempt to include sys/resource.h and
6649 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
6650 are defined.
6651
0c0a36a4
ILT
6652Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
6653
6654 * configure.in (alloca detection): Handle alloca directly for interix.
6655 * configure: Rebuilt.
6656
6657Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
6658
6659 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
6660
252b5132
RH
66611999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
6662
6663 Fix from Dale Hawkins:
b4fe2683 6664 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
252b5132
RH
6665 reallocated properly if we use it again.
6666
6667 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
6668 stricter about syntax. Always null-terminate string.
6669
c1687039
ILT
6670Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
6671
6672 * configure.in (checkfuncs): Check for sbrk.
6673 * config.in: Rebuilt.
6674 * configure: Likewise.
6675 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
6676
0c0a36a4
ILT
66771999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
6678
6679 Fix from Marcus Daniels:
6680 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
6681 identifier looking for another underscore.
6682
6683Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
6684
6685 * pexecute.c: Change all references to __UWIN__ to _UWIN.
6686 * xmalloc.c: Likewise.
6687 (xcalloc): UWIN has sbrk.
6688 (xrealloc): Fix guard macro.
6689
252b5132
RH
66901999-04-11 Richard Henderson <rth@cygnus.com>
6691
6692 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
6693 or <alloca.h>.
6694 * clock.c (GNU_HZ): New definition.
6695 (clock): Use it.
6696 * getruntime.c: Likewise.
6697
6698 * config.table: Use mh-beos.
6699 * config/mh-beos: New file.
6700
0c0a36a4
ILT
67011999-04-11 Mark Mitchell <mark@codesourcery.com>
6702
6703 * cplus-dem.c (demangle_template_value_parm): Handle
6704 pointers-to-members.
6705 (do_type): Handle template parameters as qualifiers.
6706
252b5132
RH
67071999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
6708
6709 * cplus-dem.c: Attempt to handle overflows in counts with some
6710 semblance of grace.
6711 (consume_count): Detect overflows. Return -1 to indicate errors,
6712 instead of zero.
6713 (demangle_template_value_parm, demangle_template): Handle change
6714 to consume_count's return convention.
6715
0c0a36a4
ILT
67161999-04-05 Tom Tromey <tromey@cygnus.com>
6717
6718 * testsuite/regress-demangle: New file.
6719 * testsuite/demangle-expected: New file.
252b5132 6720
0c0a36a4
ILT
6721 * Makefile.in (all, check, installcheck, info, install-info,
6722 clean-info, dvi, install, etags, tags, mostlyclean, clean,
6723 distclean, maintainer-clean, realclean): Depend on corresponding
6724 `-subdir' target.
6725 (all-subdir check-subdir installcheck-subdir info-subdir
6726 install-info-subdir clean-info-subdir dvi-subdir
6727 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
6728 distclean-subdir maintainer-clean-subdir): New target.
6729 * testsuite/Makefile.in: New file.
6730 * configure: Rebuilt.
6731 * configure.in: Create testsuite/Makefile.
252b5132
RH
6732
67331999-04-02 Mark Mitchell <mark@codesourcery.com>
6734
6735 * splay-tree.h (splay_tree_compare_pointers): Define.
6736
67371999-03-30 Mark Mitchell <mark@codesourcery.com>
6738
6739 * splay-tree.c (splay_tree_compare_ints): Define.
6740
67411999-03-30 Tom Tromey <tromey@cygnus.com>
6742
6743 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
6744 don't advance input pointer.
6745 (demangle_class_name): If consume_count didn't find a count, do
6746 nothing. Don't bother with `strlen' sanity check; consume_count
6747 does it for us.
6748
67491999-03-16 Stan Shebs <shebs@andros.cygnus.com>
6750
6751 From Art Haas <ahaas@neosoft.com>:
6752 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
6753 when doing arm or hp style.
6754 (demangle_nested_args): Decr forgetting_types field when done.
b4fe2683 6755
252b5132
RH
6756Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
6757
6758 * pexecute.c (__CYGWIN32__): Rename to
6759 (__CYGWIN__): this.
6760 * xmalloc.c: Likewise.
6761
6762 Changes to support i386-pc-uwin.
6763 * configure.in (*-*-uwin*): Workaround for vfork bug.
6764 * configure: Regenerate.
6765 * pexecute.c (pexecute): Be like standard Unix.
6766 (pwait): Likewise.
6767 * xmalloc.c (first_break): Define.
6768 (xmalloc_set_program_name): Use.
6769 (xmalloc): Use.
6770
6771Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
6772
6773 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
6774
6775Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
6776
6777 * config.table: Check cygwin*, not cygwin32*.
6778
6779Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
6780
6781 * Makefile.in: Change mkstemp -> mkstemps.
6782
6783Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
6784
6785 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
6786 * configure.in (funcs): Check for and conditionally add mkstemps to
6787 the list of functions libiberty will provide.
6788 * configure: Rebuilt.
b4fe2683 6789
252b5132
RH
6790Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
6791
b4fe2683 6792 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
252b5132
RH
6793 platforms that don't have HZ.
6794 * getruntime.c (HZ): Likewise.
6795
6796Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
6797
6798 * Makefile.in (xstrdup.o): Depend on config.h.
6799
6800Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
6801
6802 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
6803 freeing it.
6804
6805Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6806
6807 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
6808
6809Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
6810
6811 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
6812 splay-tree.o.
6813
68141999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
6815
6816 * configure.in: Require autoconf 2.12.1 or higher.
6817
68181998-12-30 Michael Meissner <meissner@cygnus.com>
6819
6820 * random.c (NULL): Don't redefine NULL if it is already defined.
6821
6822Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6823
6824 * argv.c (buildargv): Cast the result of alloca in assignment.
6825
6826 * choose-temp.c: Include stdlib.h.
6827
6828 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
8aefe91a
DD
6829 (snarf_numeric_literal): Constify first parameter.
6830 (code_for_qualifier): Avoid a gcc extension, make the parameter an
6831 int, not a char.
252b5132
RH
6832 (demangle_qualifier): Likewise.
6833 (demangle_signature): Cast the argument of a ctype function to
6834 unsigned char.
6835 (arm_pt): Add parens around assignment used as truth value.
6836 (demangle_arm_hp_template): Constify variable `args'.
6837 (do_hpacc_template_const_value): Cast the argument of a ctype
6838 function to unsigned char.
6839 (do_hpacc_template_literal): Remove unused variable `i'.
6840 (snarf_numeric_literal): Constify parameter `args'.
6841 Cast the argument of a ctype function to unsigned char.
6842
6843 * floatformat.c (floatformat_to_double): Add explicit braces to
8aefe91a 6844 avoid ambiguous `else'.
252b5132
RH
6845
6846 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
8aefe91a
DD
6847 `cstart' and `cend' to unsigned char. Cast the argument of macro
6848 `FOLD', which uses ctype functions, to unsigned char.
252b5132
RH
6849
6850 * objalloc.c (free): Add prototype.
6851
6852Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
6853
6854 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
6855
6856Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
6857
6858 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
8aefe91a 6859 doesn't exist.
252b5132 6860 (do_hpacc_template_literal): remove unused variable `i'.
b4fe2683 6861
252b5132
RH
6862Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
6863
6864 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
6865 bumping the pointer we read from. Also prepend these codes,
6866 as we do in other places.
6867
68681998-12-18 Nick Clifton <nickc@cygnus.com>
6869
6870 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
6871 'const char *' in order to match its usage when calling siblings.
6872 (snarf_numeric_literal): Make first arg 'const char **' in order
6873 to match usage.
6874
6875Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6876
6877 * choose-temp.c: Don't check IN_GCC anymore.
6878
6879 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
6880 * memchr.c (memchr): Likewise.
6881 * memcpy.c (memcpy): Likewise.
6882 * memmove.c (memmove): Likewise.
6883
6884 * mkstemp.c: Don't check IN_GCC anymore.
6885 * pexecute.c: Likewise.
6886 * splay-tree.c: Likewise.
6887
6888 * strchr.c (strchr): Use `const', not `CONST'.
6889 * strrchr.c (strrchr): Likewise.
6890 * strtol.c (strtol): Likewise.
6891 * strtoul.c (strtoul): Likewise.
6892
6893Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
6894 Elena Zannoni <ezannoni@cygnus.com>
6895 Stan Shebs <shebs@cygnus.com>
6896 Edith Epstein <eepstein@cygnus.com>
6897 Andres MacLeod <amacleod@cygnus.com>
6898 Satish Pai <pai@apollo.hp.com>
6899
6900 * HP aCC demangling support.
6901 * cplus-dem.c
6902 (main): Remove default to HP style demangling, set to EDG
8aefe91a
DD
6903 demangling correctly when -edg specified; set the demangling style
6904 when user specifies 'edg'. Set strip_underscore to
6905 prepends_underscore, if not HPUXHPPA. Set
6906 current_demangling_style to hp_demangling if HPUXHPPA. Set
6907 current demangling style correctly if the switch is hp. Read
6908 label correctly also in the HP style case.
252b5132 6909 (work_stuff): add temp_start field; add field for volatile member
8aefe91a 6910 function.
252b5132 6911 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
8aefe91a 6912 style for this case is the same as ARM.
252b5132
RH
6913 (demangle_args): handle EDG_DEMANGLING style; support HP style.
6914 (demangle_arm_hp_template): new function. (It was
8aefe91a
DD
6915 demangle_arm_pt.); check and set value of temp_start field in
6916 multiple places. Also, when ceching for end of template args,
6917 check to see if at end of static member of template class.
252b5132 6918 (demangle_class): new local variable : save_class_name_end Don't
8aefe91a 6919 include template args in string defining class.
252b5132
RH
6920 (demangle_class_name): use demangel_arm_hp_template.
6921 (demangle_function_name): handle case where demangling style is
8aefe91a
DD
6922 HP_DEMANGLING and currently point at an 'X' in the mangled name.
6923 Handle EDG_DEMANGLING style. Handle constructor and destructor
6924 ops for HP style.
252b5132 6925 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
8aefe91a
DD
6926 styles. global destructor and constructor for HP style are same
6927 as for ARM style. Same for local variables.
252b5132
RH
6928 (demangle_qualified): handle EDG_DEMANGLING style.
6929 (demangle_signature): add case for volatile member function. For
8aefe91a
DD
6930 cases '1' - '9' : initialize the temp_start field to -1 and handle
6931 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
6932 and AUTO_DEMANGLING styles. If expecting a function and managed
6933 to demangle the funct args, then handle the LUCID_DEMANGLING,
6934 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
6935 class name after "Lnnn_ in HP style case. HP style too needs to
6936 forget types. _nnn is OK for HP style, so don't report failure.
252b5132 6937 (do_hpacc_template_const_value): new function. Handle template's
8aefe91a 6938 value param for HP/aCC.
252b5132 6939 (do_hpacc_template_literal): new function. Handle a template's
8aefe91a 6940 literal parameter for HP aCC.
252b5132
RH
6941 (recursively_demangle): new function
6942 (snarf_numeric_literal): new function.
6943 (usage): add 'edg' to the list of demangling styles; add hp switch
8aefe91a 6944 to message.
252b5132
RH
6945
6946Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
6947
6948 * pexecute.c: Remove obsolete ifdefed cygwin code.
6949
6950Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6951
6952 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
6953 * cplus-dem.c: Likewise. Conform to libiberty.h.
6954 * pexecute.c: Likewise.
6955 * splay-tree.c: Likewise.
6956
69571998-11-25 Mike Stump <mrs@wrs.com>
6958
6959 * Makefile.in (splay-tree.o): Add config.h dependency.
6960
6961Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6962
6963 * configure.in: Use AC_PREREQ(2.12.1).
6964
69651998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
6966
b4fe2683 6967 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
252b5132
RH
6968
6969Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
6970
6971 * mpw.c (mpw_access): Add missing parens.
6972
6973Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6974
6975 * configure.in: Call AC_HEADER_SYS_WAIT.
6976
6977 * pexecute.c: Include sys/wait.h when !IN_GCC.
6978
6979Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
6980
6981 * pexecute.c: revert back to checking old Cygwin
6982 preprocessor symbol until some time has passed.
6983
6984Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
6985
6986 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
6987 since it will now support similar constructs.
6988
6989Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6990
6991 * configure.in: Check for calloc.
6992
6993 * calloc.c: New file.
6994
6995 * xmalloc.c (xcalloc): New function.
6996
6997Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
6998
6999 *cplus-dem.c (demangle_prefix): Use the last "__"
7000 in the mangled name when looking for the signature. This allows
7001 template names to begin with "__".
7002
70031998-11-08 Mark Mitchell <mark@markmitchell.com>
7004
7005 * cplus-dem.c (type_kind_t): Add tk_reference.
7006 (demangle_template_value_parm): Handle it.
7007 (do_type): Use it for references, instead of tk_pointer.
7008
7009 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
7010 not internal_cplus_demangle.
7011
7012Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7013
7014 * choose-temp.c: Don't include gansidecl.h.
7015 * mkstemp.c: Likewise.
7016 * pexecute.c: Likewise.
7017
7018Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
7019
b4fe2683
JM
7020 * configure.in: detect cygwin* instead of cygwin32*
7021 * configure: regenerate
252b5132
RH
7022
7023Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7024
7025 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
8aefe91a
DD
7026 whether to include config.h. Possibly include unistd.h in the
7027 !IN_GCC case. Define VFORK_STRING as a printable function call
7028 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
7029 defined, include vfork.h. If VMS is defined, define vfork()
7030 appropriately. Remove vfork check on USG, we're using autoconf.
7031 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
7032 locally what string to use.
252b5132
RH
7033
70341998-10-26 Mark Mitchell <mark@markmitchell.com>
7035
7036 * splay-tree.c: Tweak include directives to make sure declarations of
7037 xmalloc and free are available.
7038
70391998-10-25 Mark Mitchell <mark@markmitchell.com>
7040
7041 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
7042 anonymous namespaces.
7043
70441998-10-23 Mark Mitchell <mark@markmitchell.com>
7045
7046 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
7047 with type_quals.
7048 (TYPE_UNQUALIFIED): New macro.
7049 (TYPE_QUAL_CONST): Likewise.
7050 (TYPE_QUAL_VOLATILE): Likewise.
7051 (TYPE_QUAL_RESTRICT): Likewise.
7052 (code_for_qualifier): New function.
7053 (qualifier_string): Likewise.
7054 (demangle_qualifier): Likewise.
7055 (internal_cplus_demangle): Use them.
7056 (demangle_signature): Likewise.
7057 (demangle_template_value_parm): Likewise.
7058 (do_type): Likewise.
7059 (demangle_fund_type)): Likewise.
7060
7061Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7062
7063 * splay-tree.c (splay_tree_foreach_helper): Make definition static
7064 to match prototype.
7065
70661998-10-21 Mark Mitchell <mark@markmitchell.com>
7067
7068 * splay-tree.c: New file.
7069 * Makefile.in (CFILES): Add it.
7070 (REQUIRED_OFILES): Likewise.
7071 (splay-tree.o): Add dependencies.
7072
7073Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
7074
7075 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
7076 range of 'K' index.
7077
7078Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7079
7080 * choose-temp.c: Prototype mkstemps() when IN_GCC.
7081
7082 * cplus-dem.c (consume_count): Cast argument of ctype macro to
7083 `unsigned char'.
7084 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
7085 comparing against one.
7086 (cplus_mangle_opname): Likewise.
7087 (demangle_integral_value): Cast argument of ctype macro to
7088 `unsigned char'.
7089 (demangle_template_value_parm): Likewise.
7090 (demangle_template): Initialize variable `bindex'. Cast the
7091 result of `strlen' to (int) when comparing against one. Remove
7092 unused variable `start_of_value_parm'.
7093 (demangle_class_name): Cast the result of `strlen' to (int) when
7094 comparing against one.
7095 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
7096 (gnu_special): Likewise. Cast the result of `strlen' to (int)
7097 when comparing against one.
7098 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
7099 (get_count): Likewise.
7100 (do_type): Likewise. Cast the result of `strlen' to (int) when
7101 comparing against one.
7102 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
7103 (demangle_function_name): Cast the result of `strlen' to (int)
7104 when comparing against one.
7105
7106 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
7107 comparing against one.
7108
7109Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
7110
b4fe2683
JM
7111 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
7112 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
7113 * config.in, configure: Rebuilt.
252b5132
RH
7114
7115 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
7116 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
7117 * config.in, configure: Rebuilt.
7118
7119Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
7120
b4fe2683 7121 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
252b5132
RH
7122
7123Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
7124
7125 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
7126
7127Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
7128
7129 * Merge egcs & devo libiberty.
7130
ba8cb4ba 71311998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
252b5132
RH
7132
7133 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
7134
7135Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7136
7137 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
8aefe91a
DD
7138 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
7139 IN_GCC.
252b5132
RH
7140
7141 * vasprintf.c: Include stdarg.h/varargs.h first.
7142
7143 * vprintf.c: Likewise.
7144
7145Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
7146
7147 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
7148 is the canonical copy. Define ISSPACE if !IN_GCC.
7149 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
7150 * getopt1.c, obstack.c: Similarly.
7151 * Makefile.in: Build mkstemp.o
7152
7153Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
7154
7155 * configure.in: Include asprintf in list of functions known not
7156 to be in newlib.
7157 * configure: Rebuild.
7158
7159Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
7160
7161 * cplus-dem.c (work_stuff): Add dllimported.
7162 (demangled_prefix): Mark symbols imported from PE DLL.
7163 (internal_cplus_demangled): Handle.
7164
71651998-08-17 Jason Merrill <jason@yorick.cygnus.com>
7166
7167 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
7168 stay failed.
7169
7170Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7171
7172 * cplus-dem.c: Include config.h if it exists. Also, only
7173 prototype malloc/realloc if we can't get stdlib.h.
7174
7175Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
7176
7177 * configure.in: Switch back to checking --with-target-subdir when
7178 deciding whether to check for newlib, undoing part of July 15
7179 change.
7180 * configure: Rebuild.
7181
7182Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
7183
7184 * cplus-dem.c (type_kind_t): New type.
7185 (demangle_template_value_parm): Add type_kind_t parameter. Rely
7186 on this paramter, rather than demangling the type again.
7187 (demangle_integral_value): Pass tk_integral.
7188 (demangle_template_: Pass the value returned from do_type.
7189 (do_type): Return a type_kind_t. Pass tk_integral to
7190 demangle_template_value_parm for array bounds.
7191 (demangle_fund_type): Likewise.
7192
7193 Also incorporate from GCC version:
7194
7195 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
7196
7197 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
7198
7199Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7200
7201 * cplus-dem.c (demangle_nested_args): Make function definition
7202 static to match the prototype.
7203
7204Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
7205
7206 * cplus-dem.c (type_kind_t): New type.
7207 (demangle_template_value_parm): Add type_kind_t parameter. Rely
7208 on this paramter, rather than demangling the type again.
7209 (demangle_integral_value): Pass tk_integral.
7210 (demangle_template_: Pass the value returned from do_type.
7211 (do_type): Return a type_kind_t. Pass tk_integral to
7212 demangle_template_value_parm for array bounds.
7213 (demangle_fund_type): Likewise.
7214
7215 Also incorporate from GCC version:
7216
7217 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
7218
7219 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
7220
7221Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
7222
7223 * Makefile.in (ALLOCA): New variable.
7224 ($(TARGETLIB)): Add $(ALLOCA) to library.
7225 (needed-list): Add $(ALLOCA).
7226 ($(ALLOCA)): Depend upon stamp-picdir.
7227
7228Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7229
7230 * cplus-dem.c (demangle_nested_args): Make function definition
7231 static to match the prototype.
7232
7233Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
7234
7235 * configure.in: Check --with-cross-host rather than
7236 --with-target-subdir when deciding whether build uses a cross
7237 compiler, and when deciding where to install the library.
7238 * configure: Rebuild.
7239
7240Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
7241
7242 * cplus-dem.c (demangle_nested_args): Return a value.
7243
7244Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
7245
7246 * cplus-dem.c (string): Move definition before work_stuff.
7247 (work_stuff): Add volatile_type, forgetting_types,
7248 previous_argument, and nrepeats fields.
7249 (SCOPE_STRING): New macro.
7250 (demangle_template): Add `remember' parameter. Add comment.
7251 Register the `B' code type here, if remembering. Tidy. Fix crash
7252 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
7253 (demangle_nested_args): New function.
7254 (internal_cplus_demangle): Handle volatile-qualified member
7255 functions.
7256 (mop_up): Delete the previous_argument string if present.
7257 (demangle_signature): Tidy. Handle volatile-qualified member
7258 functions. Handle back-references using the `B' code. Use extra
7259 parameter to demangle_template and SCOPE_STRING where appropriate.
7260 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
7261 code.
7262 (demangle_class): Use SCOPE_STRING.
7263 (gnu_special): Pass additional argument to demangle_template.
7264 Use SCOPE_STRING.
7265 (demangle_qualified): Save qualified types for later
7266 back-references. Handle constructors and destructors for template
7267 types correctly.
7268 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
7269 demangle_template. Use demangled_nested_args. Don't remember
7270 qualified types here; that's now done in demangle_qualified.
7271 Similarly for templates.
7272 (do_arg): Improve commment. Handle 'n' repeat code.
7273 (remember_type): Check forgetting_types.
7274 (demangle_args): Deal with 'n' repeat codes. Tidy.
7275
7276Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
7277
7278 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
7279 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
7280
7281Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
7282
7283 * configure.in (setobjs): Correct quoting error in cygwin32 case.
7284 From Chris Faylor <cgf@cygnus.com>.
7285
7286Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
7287
7288 * obstack.c: Update to latest FSF version.
7289
7290Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
7291
7292 * Makefile.in: Add a dependency on stamp-picdir for the
7293 objects, so that we can do a parallel build.
7294
7295Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
7296
7297 * configure.in (checkfuncs): Add missing "'".
7298
7299Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
7300
7301 * obstack.c (_obstack_memory_used): Elide this function if we're
7302 on a system with GNU libc.
7303
7304Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
7305
7306 * Makefile.in (distclean): Remove config.log.
7307
7308Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7309
7310 * Makefile.in (distclean): Don't remove alloca-conf.h.
7311
7312Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
7313
7314 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7315
73161998-05-21 Mark Mitchell <mmitchell@usa.net>
7317
7318 * cplus-dem.c (do_type): Handle volatile qualification.
7319
73201998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
7321
7322 * configure.in: Check for unistd.h as well.
7323 * configure: Rebuild.
7324 * config.in: Rebuild.
7325 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
7326 is defined in unistd.h. Reformat conditional block for easier reading.
7327
7328 * config.table (shared): Default to no if ${enable_shared}
7329 is unset or empty; this logic is used by the toplevel
7330 configure scripts, too.
7331
7332Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
7333
7334 * config.table: Add line to set enable_shared in the Makefile
7335 as needed.
7336
7337Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7338
7339 * cplus-dem.c (squangle_mop_up): Change return type to void.
7340 (internal_cplus_demangle): Remove unused parameter `options'.
7341 All callers changed.
7342 (cplus_demangle_opname): Remove function wide variable `int i' and
7343 replace with `size_t i' at each location where it is used.
7344 (cplus_mangle_opname): change type of `i' from int to size_t.
7345
7346Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
7347
7348 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
7349 than sparc or sun.
7350 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
7351
7352Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
7353
7354 * configure.in: Set libiberty_topdir correctly when srcdir is
7355 "." and with_target_subdir is not set.
7356 * configure: Rebuild.
7357
7358Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
7359
7360 * configure.in: Add *-*-mingw32* case.
7361 * configure: Rebuild.
7362
7363Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
7364
7365 * config.table: Never use a PIC file for *-*-cygwin32*.
7366
7367 * Makefile.in (config.status): Depend upon config.table.
7368
7369 * configure.in: On a cygwin32 host, always compile random, and
7370 don't test for sys_siglist, strsignal, or psignal.
7371 * configure: Rebuild.
7372
7373 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
7374 * getcwd.c: Likewise.
7375 * getpagesize.c: Likewise.
7376 * getruntime.c: Likewise.
7377
7378Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
7379
7380 Use autoconf tests rather than the old dummy.c test:
7381 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
7382 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
7383 most functions. Add special cases to handle newlib and VxWorks.
7384 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
7385 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
7386 CONFIG_FILES is set; set ac_file before calling it.
7387 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
7388 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
7389 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
7390 (i[3456]-*-mingw32*): Remove.
7391 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
7392 (LIBOBJS): New variable.
7393 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
7394 (all): Depend upon needed-list. Don't check RULE1.
7395 (@target_makefile_frag@): Remove.
7396 (COMPILE.c): Include @DEFS@.
7397 (HFILES): Add alloca-conf.h.
7398 (REQUIRED_OFILES): Remove basename.o.
7399 ($(TARGETLIB)): New target.
7400 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
7401 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
7402 (needed-list, config.h): Rewrite.
7403 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
7404 (.always.): Remove.
7405 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
7406 (stamp-h): New target.
7407 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
7408 (basename.o): Don't depend upon config.h.
7409 (getruntime.o): Depend upon config.h.
7410 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
7411 NEED_on_exit.
7412 * basename.c: Don't include config.h. Don't check NEED_basename.
7413 * clock.c: Include config.h.
7414 * getcwd.c: Likewise.
7415 * getpagesize.c: Likewise.
7416 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
7417 HAVE_TIMES.
7418 * strerror.c: Change uses of NEED_sys_errlist to
7419 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
7420 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
7421 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
7422 HAVE_PSIGNAL.
7423 * acconfig.h: New file.
7424 * dummy.c: Remove.
7425 * functions.def: Remove.
7426 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
7427 * config/mh-windows (HDEFINES): Remove.
7428 * config/mh-cygwin32: Remove.
7429 * config/mh-go32: Remove.
7430 * config/mh-irix4: Remove.
7431 * config/mh-riscix: Remove.
7432 * config/mh-sysv4: Remove.
7433 * config/mt-mingw32: Remove.
7434 * config/mt-vxworks5: Remove.
7435 * config.in: New file, generated using autoheader.
7436 * configure: Rebuild.
7437
7438Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
7439
7440 * configure.in: Rewrite to use autoconf.
7441 * configure: Generate using autoconf.
7442 * config/mh-a68bsd: Remove.
7443 * config/mh-apollo68: Remove.
7444 * config/mh-hpbsd: Remove.
7445 * config/mh-ncr3000: Remove.
7446 * config/mh-sysv: Remove.
7447 * config/mh-aix (RANLIB, INSTALL): Don't define.
7448 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
7449 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
7450 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
7451 * config.table: Change config_shell to CONFIG_SHELL, and use
7452 libiberty_topdir to find move-if-change.
8aefe91a 7453 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
252b5132
RH
7454 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
7455 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
7456 * Makefile.in (srcdir): Set to @srcdir@.
7457 (VPATH): Likewise.
7458 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
7459 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
7460 (CC, CFLAGS, RANLIB)): Likewise.
7461 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
7462 (target_makefile_frag, host_makefile_frag): Add substitutions.
7463 (INSTALL_DEST): Set to @INSTALL_DEST@.
7464 (Makefile): Depend upon config.status. Don't depend upon
7465 $(host_makefile_frag) or $(target_makefile_frag).
7466 (config.status): New target.
7467
7468Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
7469
7470 * config/mt-sunos4: Remove. Should be handled by --with-headers
7471 and --with-libraries options at top level.
7472 * config.table: Never use mt-sunos4.
7473
7474 * alloca-conf.h: New file, combining alloca-norm.h and
7475 alloca-botch.h.
7476 * alloca-norm.h: Remove.
7477 * alloca-botch.h: Remove.
7478 * configure.in: Set shell variables files and links to empty.
7479 * config.table: Don't set shell variable files.
7480 * configure.bat: Don't create alloca-conf.h.
7481 * makefile.vms: Likewise.
7482 * mpw-config.in: Likewise.
7483 * vmsbuild.com: Likewise.
7484
7485Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
7486
7487 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
7488 target depending upon config.h.
7489 (alloca.o): Add target depending upon config.h
7490 (basename.o, choose-temp.o, fnmatch.o): Likewise.
7491 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
7492 (strsignal.o, xstrerror.o): Likewise.
7493
7494Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7495
7496 * cplus-dem.c (cplus_demangle_opname): Initialize work.
7497
7498Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
7499
7500 * cplus-dem.c (demangle_qualified): Replace missing else.
7501
7502Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7503
7504 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
7505 length in the name of a virtual table.
7506
7507Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
7508
7509 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
7510 (cplus_demangle_opname): Call mop_up_squangle.
7511 (cplus_demangle): Initialize squangle info, then call
7512 internal_cplus_demangle. (Most code moved there as well)
7513 (internal_cplus_demangle): New function, performs most of what use
7514 to be done in cplus_demangle, but is only called with this file.
7515 (squangle_mop_up): New function to clean up B and K code data.
7516 (mop_up): set pointers to NULL after freeing.
7517 (demangle_signature, demangle_template, demangle_class): Add
7518 switch elements to handle K and B codes.
7519 (demangle_prefix, gnu_special, demangle_qualified): Add
7520 code to handle K and B codes.
7521 (do_type, demangle_fund_type): Handle B and K codes.
7522 (remember_Ktype): New function to store K info.
7523 (register_Btype, remember_Btype): New functions for B codes.
7524 (forget_B_and_K_types): New function to destroy B and K info.
7525
7526Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
7527
7528 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
7529
7530Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
7531
7532 * config.table: Make locating frag files failsafe even for the
7533 special case if configuring and building in srcdir.
7534
7535Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
7536
7537 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
7538
7539Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
7540
7541 * choose-temp.c: Sync with copy in gcc.
7542
7543Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
7544
7545 * getopt.c: Update to latest FSF version.
7546 * getopt1.c: Likewise.
7547
7548Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
7549
7550 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
7551 strings that are not actually lengths.
7552
7553Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
7554
7555 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
7556 (.c.o): Check value of enable_shared, not PICFLAG.
7557 (stamp-picdir): Dito.
7558
7559Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
7560
b4fe2683
JM
7561 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
7562 since it gets built automatically
252b5132
RH
7563
7564Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
7565
7566 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
7567 the currently shipping OS.
7568
7569Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
7570
7571 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
7572 Add fnmatch.o and objalloc.o; remove vasprintf.o.
7573 [config.h]: Define NEED_strsignal.
7574
7575Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
7576
7577 * functions.def: Correct argument types for strerror and
7578 strsignal. Reported by Alex Gutman <agutman@emc.com>.
7579
7580Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
7581
7582 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
7583 values.
7584
7585Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
7586 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
7587
7588 Add mingw32 support.
7589 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
7590 (pwait): New function for mingw32.
7591
7592 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
7593 * config/mt-mingw32: New file.
7594 * xmalloc.c (first_break): Not used for mingw32.
7595 (xmalloc_set_program_name): Don't use sbrk on mingw32.
7596 (xmalloc): Likewise.
7597 (xrealloc): Likewise.
7598
7599Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
7600
7601 * choose-temp.c: Sync with gcc version.
7602
7603Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
7604
7605 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
7606 to all filenames in libdir and tooldir.
7607 (distclean): Do MULTICLEAN before deleting Makefile.
7608 (stamp-needed, stamp-config): Add MULTISRCTOP to
7609 pathname for move-if-change.
7610
7611Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
7612
7613 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
7614
7615Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
7616
7617 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
7618 was already defined previously.
7619
7620Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
7621
7622 * Makefile.in (INSTALL): Use ../install-sh, not install.
7623
7624Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
7625
7626 * Makefile.in (CFILES): Add pexecute.c.
7627
7628Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
7629
7630 * asprintf.c: Consistently use either stdarg or varargs.
7631
7632Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
7633
7634 * cplus-dem.c (demangle_signature): Don't look for return types on
7635 constructors. Handle member template constructors.
7636
7637Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
7638
7639 * README: Fix configuration instructions.
7640
7641Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
7642
7643 * pexecute.c: Update to current version from /gd/gnu/lib:
7644
7645 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
7646
b4fe2683 7647 * pexecute.c: Use spawn if __CYGWIN32__.
252b5132
RH
7648
7649 1997-08-08 Paul Eggert <eggert@twinsun.com>
7650
b4fe2683 7651 * pexecute.c: Include "config.h" first, as per autoconf manual.
252b5132
RH
7652
7653 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
7654
b4fe2683
JM
7655 * pexecute.c (fix_argv): New function.
7656 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
7657 Add underscore to cwait function call.
252b5132
RH
7658
7659Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
7660
b4fe2683
JM
7661 * cplus-dem.c (demangle_template): Add new parameter. Handle new
7662 template-function mangling.
7663 (consume_count_with_underscores): New function.
7664 (demangle_signature): Handle new name-mangling scheme.
252b5132
RH
7665
7666Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
7667
7668 * asprintf.c: stdarg.h when ALMOST_STDC
7669 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
8aefe91a 7670 strncasecmp.o.
252b5132
RH
7671
7672Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
7673
7674 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
7675
7676 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
7677
7678 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
7679
7680Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
7681
7682 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
7683
7684Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
7685
7686 * asprintf.c (asprintf): New file.
7687 * Makefile.in (CFILES): Add asprintf.c
7688 * functions.def: Ditto.
7689
7690Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
7691
7692 * argv.c (dupargv): New function, duplicate an argument vector.
7693
7694Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
7695
7696 * config/mh-cygwin32: also build random.o
7697
7698Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
7699
7700 * cplus-dem.c: Add 'extern' to prepends_underscore.
7701
7702Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
7703
7704 * cplus-dem.c: Various changes to produce Java output when passed
7705 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
7706 (main): Support --java and -j flags to set DMGL_JAVA.
7707
7708Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
7709
7710 * config/mh-go32 (CC, AR, RANLIB): Don't define.
7711
7712Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
7713
7714 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
7715 (pexecute.o): New target.
7716
7717 * Makefile.in (stamp-needed): New target, replacing needed-list.
7718 (needed-list): Just depend upon stamp-needed.
7719 (stamp-config): New target, replacing config.h.
7720 (config.h): Just depend upon stamp-config.
7721 (mostlyclean): Remove stamp-*.
7722
7723Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
7724
7725 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
7726 INSTALL_DATA for multilibbed installs
7727
7728Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
7729
7730 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
7731
7732 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
7733
7734 * choose-temp.c (try): Insist that temp dir be searchable.
7735
7736 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
7737
7738 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
7739 for current directory.
7740
7741 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
7742
7743 * pexecute.c: Remove special cases for cygwin32.
7744 (pwait): Remove local definition of `pid'.
7745
7746 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
7747
7748 * pexecute.c (vfork): Supply new definition for VMS.
7749 (pwait): Use waitpid instead of wait for VMS.
7750
7751Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
7752
7753 * cplus-dem.c (do_type): Handle `J'.
7754 (demangle_fund_type): Print "complex" for it.
7755
7756Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
7757
7758 * configure.in: Don't turn on multilib here.
7759
7760Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
7761
7762 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
7763 elided; needed by gdb and not present in libc.
7764
7765Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
7766
7767 * Makefile.in (clean): Remove tmpmulti.out.
7768
7769Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
7770
7771 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
7772 Add new floatformat, mainly for ARM doubles.
7773
7774Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
7775
7776 * config.table: Use ${config_shell} with ${moveifchange}. From
7777 Thomas Graichen <graichen@rzpd.de>.
7778
7779Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
7780
7781 * configure.in: Enable multilibing by default.
7782 Update multilib template to read config-ml.in.
7783
7784Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
7785
7786 * makefile.vms: Add objalloc.
7787
7788Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
7789
7790 * cplus-dem.c (demangle_it): Add prototype declaration.
7791 (usage, fatal): Likewise.
7792
7793 * xexit.c (_xexit_cleanup): Add prototype.
7794
7795 * strerror.c (init_error_tables): Declare.
7796
7797Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
7798
7799 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
7800 * strsignal.c: Only define strsignal if NEED_strsignal.
7801 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
7802 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
7803 to xneeded-list.
7804 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
7805 (EXTRA_OFILES): Define to vasprintf.o.
7806 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
7807 (EXTRA_OFILES): Add vasprintf.o.
7808 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
7809 (vxneeded-list): Add vasprintf.o.
7810
7811Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
7812
7813 * objalloc.c: Include <stdio.h>.
7814
7815Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
7816
7817 * objalloc.c: New file.
7818 * Makefile.in (CFILES): Add objalloc.c
7819 (REQUIRED_OFILES): Add objalloc.o.
7820 (objalloc.o): New target.
7821
7822Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
7823
7824 * obstack.c: Update to current FSF version.
7825
7826Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
7827
7828 * cplus-dem.c: Add prototypes for all static functions.
7829 (mystrstr): Make static. Make arguments and result const.
7830 (cplus_match): Remove; not used.
7831
7832Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
7833
7834 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
7835 __t* symbols.
7836
7837Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
7838
7839 * spaces.c: Declare malloc and free properly.
7840 * strsignal.c (init_signal_tables): Add prototype.
7841 * xatexit.c (_xexit_cleanup): Add parameter declarations.
7842
7843Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
7844
7845 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
7846 also required because of xmalloc.o.
7847
7848Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
7849
7850 * strsignal.c: Unconditionally redefine sys_siglist around the
7851 inclusion of the system header files.
7852
7853Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
7854
7855 * makefile.vms: Remove 8 bit characters. Update to latest
7856 gcc release.
7857
7858Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
7859
7860 * strsignal.c: Use NEED_sys_siglist instead of
7861 LOSING_SYS_SIGLIST.
7862 * config.table: Don't use mh-lynxos.
7863 * config/mh-lynxos: Remove.
7864
7865Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
7866
7867 * cplus-dem.c: Fix indenting; make identical to the copy
7868 in GCC.
7869 (do_type, case 'M'): Check for a template as well as a class.
7870
7871Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
7872
7873 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
7874 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
7875 libiberty is incorrect, as well.
7876
7877Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7878
7879 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
7880 alloca takes a size_t argument, not just unsigned.
7881
7882Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
7883
7884 * cplus-dem.c: Note that this file also lives in GCC.
7885
7886Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
7887
7888 * alloca.c: Remove include of libiberty.h for hpux.
7889 * argv.c: Replace defs from libiberty.h.
7890 * spaces.c: Put back externs from removed from libiberty.h.
7891 * vasprintf.c: Remove include of libiberty.h for hpux.
7892
7893Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
7894
7895 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
7896
7897Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
7898
7899 * cplus-dem.c: Revert last two commits due to conflicts with
7900 hpux system headers.
7901
7902Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
7903
7904 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
7905 Revert last commit due to conflicts with hpux system headers.
7906
7907Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7908
7909 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
7910 libiberty.h when compiled with a standard compiler.
7911
7912Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
7913
7914 * alloca.c: Include libiberty.h for definition of xmalloc.
7915 Don't redefine NULL.
7916 * argv.c: Move prototypes to libiberty.h.
7917 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
7918 Don't redefine NULL.
7919 Use casts to eliminate compiler warnings.
7920 * spaces.c: Remove prototypes for malloc and free which are
7921 already in libibrty.h.
7922 * strcasecmp.c: Use casts to eliminate compiler warnings.
7923 * vasprintf.c: Include libiberty.h for definition of malloc.
7924 Don't redefine NULL.
7925 * vprintf.c: Include stdarg.h if __STDC__.
7926
7927Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
7928
7929 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
7930
7931Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
7932
7933 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
7934 upward components correctly.
7935
7936Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
7937
7938 * config.table, config/mh-windows: Add support for building under
7939 MSVC (the Microsoft build environment).
7940
7941Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
7942
7943 * fnmatch.c: Undef const if not __STDC__.
7944
7945Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
7946
7947 * fnmatch.c: New file.
7948 * Makefile.in (CFILES): Add fnmatch.c.
7949 (REQUIRED_OFILES): Add fnmatch.o.
7950 (fnmatch.o): New target.
7951
7952Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
7953
7954 * cplus-dem.c (demangle_template): Fix handling of address args.
7955 (gnu_special): Handle type_info stuff.
7956
7957Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
7958
7959 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
7960 (mpwify_filename): Handle "::/" case.
7961
7962Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
7963
7964 * config/mh-cygwin32: new file (need -DNEED_basename and
7965 -DNEED_sys_siglist for native NT rebuilding)
7966 * config.table (*-*-cygwin32): new entry
7967 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
7968
7969Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
7970
7971 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
7972
7973Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
7974
7975 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
7976 messed with arguments that included a '/', add escape chars
7977 to double quotes, remove const decl from arg that Mac
7978 compilers don't seem to like.
7979
7980Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
7981
7982 * pexecute.c: Update test for win32 (&& ! cygwin32).
7983 * choose-temp.c: fix WIN32 preprocessor defines
7984
7985Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
7986
7987 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
7988 to editing of default makefile rule.
7989
7990Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
7991
7992 * alloca-norm.h: Include <malloc.h> if _WIN32.
7993 * argv.c: Include non-prototyped decls for malloc and string
7994 functions if ! _WIN32 or if __GNUC__.
7995
7996Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
7997
7998 * config.h-vms: New file.
7999 * makefile.vms: Use it.
8000
8001Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
8002
8003 * getopt.c (_getopt_internal): If argc is 0, just return (before
8004 we reference *argv and segfault).
8005
8006Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
8007
8008 * Makefile.in (distclean): Add multilib.out.
8009
8010Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
8011
8012 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
8013 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
8014
8015Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
8016
8017 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
8018
8019 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
8020
8021 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
8022
8023 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
8024 (do_ofiles): Allow nonexistent source file in pass 3.
8025 (chk_deffunc): New routine.
8026
8027Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
8028
8029 * pexecute.c (PEXECUTE_VERBOSE): Define.
8030 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
8031
8032Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
8033
8034 * Makefile.in (docdir): Removed.
8035
8036Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
8037
8038 * Makefile.in (oldincludedir): Removed.
8039
8040Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
8041
b4fe2683 8042 * Makefile.in (datadir): Set to $(prefix)/share.
252b5132
RH
8043
8044Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
8045
8046 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
8047 checking for errors from do_type.
8048
8049Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
8050
8051 * makefile.vms: New file.
8052 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
8053 than declaring malloc, realloc, and sbrk.
8054
8055Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
8056
8057 * pexecute.c: New file.
8058
8059Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
8060
8061 * xmalloc.c: Declare sbrk.
8062
8063Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8064
8065 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
8066 declaration.
8067
8068Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
8069
8070 * xstrerror.c: Include <stdio.h>.
8071
8072Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
8073
8074 * Makefile.in (CFILES): Add atexit.c.
8075
8076Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
8077
8078 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
8079
8080Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
8081
8082 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
8083 #include <stdio.h>
8084 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
8085
8086Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
8087
b4fe2683 8088 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
252b5132
RH
8089 Reverts Feb 8, 1995 change.
8090
8091Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
8092
8093 * choose-temp.c: New file.
8094 * Makefile.in (CFILES): Add choose-temp.c.
8095 (REQUIRED_OFILES): Add choose-temp.o.
8096
8097Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
8098
8099 * floatformat.c (floatformat_to_double): Don't bias exponent when
8100 handling zero's, denorms or NaNs.
8101
8102Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
8103
8104 * floatformat.c (floatformat_to_double): Fix bugs with handling
8105 numbers with fractions < 32 bits.
8106
8107Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
8108
8109 * config.table: Permit --enable-shared to specify a list of
8110 directories.
8111
8112Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
8113
8114 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
8115 arguments.
8116
8117Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
8118
8119 * configure.in: If srcdir is `.' and with_target_subdir is not
8120 `.', then set MULTISRCTOP before calling config-ml.in.
8121
8122Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
8123
8124 * mpw.c (mpw_open): Add debugging output option.
8125
8126Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
8127
8128 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
8129
8130Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
8131
8132 * mpw.c (mpwify_filename): Change 6 to 5 in
8133 strncmp (unixname, "/tmp/", 5).
8134
8135Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
8136
8137 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
8138 handle 0 as a pointer value parameter.
8139
8140Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
8141
8142 * Makefile.in (all): Depend upon required-list.
8143 (required-list): New target.
8144 (clean): Remove required-list.
8145
8146Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
8147
8148 * win32.c: Deleted.
8149 * config.table (i386-*-win32): Deleted.
8150 * config/mh-i386win32: Deleted.
8151
8152Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
8153
8154 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
8155 const char *.
8156 (cplus_mangle_opname): Change return type and opname parameter to
8157 const char *. Don't cast return value.
8158
8159Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
8160
8161 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
8162 definition.
8163
8164Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
8165
8166 * obstack.c: Update copyright to 1996.
8167 (_obstack_memory_used): Define new function. Called via
8168 obstack_memory_used macro.
8169
8170Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
8171
8172 * xstrdup.c: New file.
8173 * Makefile.in (CFILES): Add xstrdup.c.
8174 (REQUIRED_OFILES): Add xstrdup.o.
8175 (xstrdup.o): New target.
8176
8177Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
8178
8179 * atexit.c: New stub to provide atexit on systems that have
8180 on_exit, like SunOS 4.1.x systems.
8181 * functions.def (on_exit, atexit): Ditto.
8182
8183Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
8184
8185 * mpw.c (mpw_abort): Remove decl.
8186 (mpw_access): Move debugging printf.
8187
8188Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
8189
8190 * config.table: Consistently use ${host} rather than ${xhost} or
8191 ${target}.
8192 * configure.in: Don't bother to set ${xhost} before calling
8193 config.table.
8194
8195Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
8196
8197 * Makefile.in (.c.o): Use test instead of the left bracket, to
8198 avoid problems with some versions of make.
8199
8200Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
8201
8202 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
8203
8204Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
8205
8206 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
8207 which was set to just alloca.o, which is now automatically marked
8208 as needed by the autoconfiguration process.
8209
8210Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
8211
8212 * config.table: Check ${with_cross_host} rather than comparing
8213 ${host} and ${target}.
8214
8215Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
8216
8217 * configure.in: If with_target_subdir is empty, set xhost to
8218 ${host} rather than ${target} before calling config.table.
8219
8220Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
8221
8222 * Makefile.in (MULTITOP): Deleted.
8223 (MULTISRCTOP, MULTIBUILDTOP): New.
8224 (FLAGS_TO_PASS): Delete INCDIR.
8225 (INCDIR): Add $(MULTISRCTOP).
8226 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
8227 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
8228 instead of cfg-ml-pos.in.
8229 (cross-compile check): Change to test for with_target_subdir.
8230 (EXTRA_LINKS): Delete.
8231
8232Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
8233
8234 * mpw-make.sed: Add getpagesize.c.o to needed-list.
8235 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
8236 functions that are supplied by Metrowerks libraries.
8237 (fstat): Clean up descriptor->pointer conversion code.
8238 (InstallConsole, etc): Empty definitions, for when linking
8239 with SIOUX.
8240
8241Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
8242
8243 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
8244 (.c.o): Stylistic change.
8245
8246Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
8247
8248 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
8249 phdm@info.ucl.ac.be (Philippe De Muyter).
8250
8251Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
8252
8253 * configure.in: Correct sed call.
8254
8255Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
8256
8257 * configure.in: Clean up / simplify for native.
8258
8259 * configure.in: Merge in stuff from ../xiberty/configure.in.
8260 * Makefile.in (CC): Add definition (so it can be overrridden
8261 by ../configure).
8262
8263Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
8264
8265 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
8266 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
8267 (link): Remove useless definition with error return.
8268 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
8269 Use UnsignedWide type for microsecond counts.
8270
8271Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
8272
8273 * memcmp.c (memcmp): Argument types are const void *, not void
8274 *const.
8275
8276 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
8277 sys/types.h.
8278 * strcasecmp.c (strcasecmp): Ditto.
8279
8280Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
8281
8282 * Makefile.in (BISON): Remove macro.
8283
8284Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
8285
8286 * Makefile.in (HFILES): Add default empty definition.
8287 * mpw-config.in (config.h): Only update if changed.
8288 * mpw-make.in: Remove.
8289 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
8290 * mpw.c: Remove semi-clone of strerror code.
8291 (sys_nerr, sys_errlist): Define here.
8292 (Microseconds): Only define as A-line trap if m68k Mac.
8293
8294Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
8295
8296 * Makefile.in (maintainer-clean): New synonym for distclean.
8297
8298Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
8299
8300 * config.table: For host, generalize rs6000-ibm-aix*
8301 to *-ibm-aix* so we also include powerpc.
8302
8303Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
8304
8305 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
8306
8307 * xstrerror.c: New file.
8308 * Makefile.in, vmsbuild.com: Compile it.
8309
8310Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
8311
8312 * config.table (i386-*-win32): New.
8313
8314Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
8315
8316 * Makefile.in (MULTITOP): New variable.
8317 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
8318 (all): Add multilib support.
8319 (install_to_tooldir, *clean): Likewise.
8320
8321Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
8322
8323 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
8324
8325Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
8326
8327 * vmsbuild.com: create "new-lib.olb", build libiberty under that
8328 name, and then make it become "liberty.olb" when done, so that an
8329 incomplete build attempt never leaves behind something which looks
8330 like a complete library.
8331
8332Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
8333
8334 * config/mh-i386pe: New file for PE hosts.
8335 * config.table: Understand PE hosts.
8336
8337Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8338
8339 * cplus-dem.c: Update from gcc.
8340
8341 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
b4fe2683 8342 <stddef.h>.
252b5132
RH
8343 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
8344
8345Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
8346
8347 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
8348 * mpw.c: Only test DebugPI once whenever printing debug info.
8349 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
8350 also fix to not write on input filename buffer.
8351 (mpw_access): Use stat() instead of open(), works for directories
8352 as well as files.
8353
8354Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8355
8356 * Makefile.in: Massage broken shells that require 'else true'.
8357
8358Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
8359
8360 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
8361 Declare __builtin_alloca in the sparc case, as argv.c did.
8362 * argv.c: Replace inline version of alloca-norm.h at start of file with
8363 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
8364 because alloca-norm.h needs to declare alloca as "PTR".
8365
8366Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
8367
8368 * win32.c: New file.
8369
8370Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8371
8372 * dummy.c: #include "alloca-conf.h".
8373
8374Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8375
8376 * Makefile.in (mostlyclean): Remove stamp-picdir.
8377 (clean): Don't.
8378
8379Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8380
8381 * config.table (frags): Use toplevel pic frags.
8382
8383 * Makefile.in (PICFLAG): New macro.
8384 (all): Depend on stamp-picdir.
8385 (needed-list): Ditto.
8386 (.c.o): Also build pic object.
8387 (stamp-picdir): New rule.
8388 (mostlyclean): Remove pic.
8389 (clean): Remove stamp-picdir.
8390
8391Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
8392
8393 * vmsbuild.com (config.h): Add `#define NEED_basename'.
8394
8395Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
8396
8397 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
8398 to libio-style copyright.
8399 * getpagesize.c: Remove FSF copyright.
8400
8401Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
8402
8403 Added improved VMS support from Pat Rankin:
8404
8405 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
8406
8407 * vmsbuild.com: new file.
8408
8409 * getpagesize.c (getpagesize): implement for VMS;
8410 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
8411 support for EVMSERR.
8412
8413Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
8414
8415 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
8416
8417 * floatformat.c (floatformat_arm_ext): Define.
8418
8419Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
8420
8421 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
8422 strerror.c, strsignal.c: Remove FSF copyright.
8423 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
8424
8425Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
8426
8427 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
8428 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
8429 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
8430 * strchr.c, strrchr.c: Add cast to suppress const warning.
8431
8432Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8433
8434 * cplus-dem.c: Use const instead of CONST. Don't include
b4fe2683 8435 ansidecl.h directly.
252b5132
RH
8436
8437Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8438
8439 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
b4fe2683 8440 xrealloc.
252b5132 8441 (-DMAIN): Don't rely on an externally-defined version number;
b4fe2683
JM
8442 instead, require the version number to be defined as a
8443 preprocessor macro. Handle the RS/6000 leading dot. Define
8444 xmalloc, xrealloc and fatal. Don't strip a leading underscore
8445 if we couldn't demangle the word.
252b5132
RH
8446
8447Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
8448
8449 (Old mpw.c change descriptions retained for informational value.)
8450 * mpw.c (warning_threshold): Default to .4 sec.
8451 (overflow_count, current_progress): New globals.
8452 (warn_if_spin_delay): Include current progress type,
8453 such as program name, in message.
8454 (mpw_start_progress): Set current_progress variable from arg.
8455 (mpw_end_progress): Report spin delays by power-of-two-size
8456 buckets instead of constant-size buckets.
8457
8458 * mpw.c: Clean up formatting, types, returns, etc.
8459 (ENOSYS): Define.
8460 (mpw_fread, mpw_fwrite): Define.
8461 (sleep): Define correctly.
8462
8463 * mpw.c: New code to implement cursor spinning support.
8464 (umask): New function.
8465 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
8466
8467 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
8468 basenames for MPW and MPW/Unix filenames.
8469 (mpw_special_init): New function, calls Macsbug if desired.
8470
8471 * mpw.c: Add GPL notice.
8472 (mpwify_filename): Add more transformations.
8473 (mpw_fopen): Call mpwify_filename on file names.
8474 (rename): Remove.
8475 (chdir, getcwd): Add simple definitions.
8476
8477 * mpw.c: Random cleanups, remove unused code bits.
8478 Added copy of strerror.c for gcc's use.
8479 (stat, fstat, _stat): New versions based on Guido van Rossum code.
8480
8481 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
8482
8483 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
8484 (fork, vfork, etc): Print error messages if called.
8485 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
8486 rename, chown): Define.
8487
8488 * mpw-config.in: New file, MPW version of configure.in.
8489 * mpw-make.in: New file, MPW version of Makefile.in.
8490 * mpw.c: New file, MPW compatibility routines.
8491
8492Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
8493
8494 * basename.c: Include config.h before checking for NEED_basename.
8495
8496Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8497
8498 * functions.def: Add DEFFUNC for basename.
8499
8500 * basename.c: Only define basename if NEED_basename.
8501
8502Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8503
8504 * config.table: Fix --enable-shared logic for native builds.
8505
8506Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8507
8508 * cplus-dem.c (demangle_template): Demangle bool literals properly.
8509
8510Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
8511
8512 * strtol.c strtoul.c: Replace these with less buggy versions from
8513 NetBSD. (strtoul in particular couldn't handle base 16.)
8514
8515Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
8516
8517 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
8518
8519 * clock.c: If NO_SYS_PARAM_H is defined, don't include
8520 <sys/param.h>.
8521 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
8522
8523Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
8524
8525 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
8526 a number; ANSI appears to permit any expression, including a
8527 function call.
8528
8529 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
8530 xiberty.
8531 * config/mt-vxworks5: New file.
8532
8533Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
8534
8535 * basename.c (basename): Change argument to be const.
8536
8537Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8538
8539 * Makefile.in (lneeded-list): Don't worry about xmalloc.
8540
8541Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
8542
8543 * Makefile.in (distclean): Delete xhost-mkfrag.
8544
8545Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
8546
8547 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
8548
8549Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
8550
8551 * hex.c: New file.
8552 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
8553 (hex.o): Add dependencies.
8554
8555 * cplus-dem.c (demangle_prefix): For GNU style constructor and
8556 destructor names, try demangling the remainder of the string.
8557
8558Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
8559
8560 * vasprintf.c (int_vasprintf): New static function.
8561 (vasprintf): Use int_vasprintf. Removes assumption that va_list
8562 is assignment compatible.
8563
8564Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
8565
8566 * Makefile.in (LIBCFLAGS): New variable.
8567 (FLAGS_TO_PASS): Pass it.
8568 (.c.o): Use it.
8569
8570Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
8571
8572 * getopt.c, getopt1.c: Do compile these functions under Linux,
8573 since many native versions are based on glibc but are buggy.
8574
8575Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
8576
8577 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
8578 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
8579
8580Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
8581
8582 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
8583 * functions.def: Remove vasprintf.
8584
8585Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8586
8587 * xmalloc.c (first_break): New static variable.
8588 (xmalloc_set_program_name): Record sbrk (0) in first_break.
8589 (xmalloc): If memory allocation fails, try to report how much
8590 memory was allocated by the program up to this point.
8591 (xrealloc): Likewise.
8592
8593Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
8594
8595 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
8596 when linking dummy.
8597 * config.table: Add host RISCiX Makefile frag.
8598 * config/mh-riscix: New file.
8599
8600Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8601
8602 * Makefile.in (FLAGS_TO_PASS): Define.
8603 ($(RULE1)): Use $(FLAGS_TO_PASS).
8604
8605Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8606
8607 * vasprintf.c: Include <string.h>.
8608 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
8609 * xatexit.c: Declare malloc.
8610
8611Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
8612
8613 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
8614 one below).
8615
8616Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
8617
8618 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
b4fe2683 8619 the type index is greater than 9.
252b5132
RH
8620
8621Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
8622
8623 * cplus-dem.c (demangle_qualified): accept optional '_' between
8624 qualified name. This is baecause the template name may end with
8625 numeric and can mixed up with the length of next qualified name.
8626
8627Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
8628
8629 * config/mt-sunos4: Use our standard location for cross-includes
8630 and cross-libs when the target is also a "host" environment (ie no
8631 newlib; includes and such don't belong to us). This is specific
8632 to the Cygnus Support environment.
8633
8634Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
8635
8636 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
8637 xxx<ch=81>.
8638
8639Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
8640
8641 * cplus-dem.c (main): flush stdout to make pipe work.
8642
8643Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
8644
8645 * config.table (*-*-cxux7*): Recognize.
8646 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
8647 Harris-specific float format.
8648 * config/mh-cxux7: New file.
8649
8650Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8651
8652 * cplus-dem.c (demangle_template): Make sure that the result of
8653 consume_count doesn't index beyond the end of the string.
8654
8655Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8656
8657 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
8658 earlier. Improve test for new vtable mangling. Change output back
8659 to `virtual table'.
8660
8661Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
8662
8663 * obstack.c: Always compile this code, even if using the GNU
8664 library. Avoids problems with relatively recent binary
8665 incompatibility.
8666
8667Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8668
8669 * cplus-dem.c: Include libiberty.h.
8670 (xmalloc, xrealloc, free): Don't declare.
8671 (strstr): Don't declare parameters.
8672 (xmalloc, xrealloc): Don't define.
8673 (long_options): Add no-strip-underscores.
8674 (main): Call xmalloc_set_program_name. Pass n in short options to
8675 getopt_long. Handle option 'n' to not strip underscores.
8676 (usage): Mention -n and --no-strip-underscores.
8677
8678Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
8679
8680 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
b4fe2683 8681 space.
252b5132
RH
8682 (gnu_special): Demangle template and qualified names in a vtable name.
8683
8684Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8685
8686 From gas-2.3 and binutils-2.4 net releases:
8687
8688 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
8689
8690 * makefile.dos: [new] Makefile for dos/go32
8691 * configure.bat: update for latest files
8692 * msdos.c: remove some functions now in libc.a
8693
8694Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
8695
8696 * cplus-dem.c (gnu_special): Recognize thunks, as well as
8697 the new naming style for vtables (when -fvtable-thunks).
8698
8699Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8700
8701 * Makefile.in (XTRAFLAGS): Don't define.
8702 (.c.o, dummy.o): Don't use XTRAFLAGS.
8703 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
8704
8705Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
8706
8707 * vasprintf.c: New file.
8708 * Makefile.in, functions.def: Add it.
8709
8710Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
8711
8712 * cplus-dem.c (demangle_fund_type): Grok bool.
8713
8714Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
8715
8716 * config.table: Add go32
8717 * config/mh-go32: New template.
8718
8719Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
8720
8721 * config.table, config/mt-sunos4: config for when sun4 is cross target.
8722
8723Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8724
b4fe2683
JM
8725 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
8726 Declare strlen to return int. Don't include stddef.h.
252b5132
RH
8727
8728Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
8729
b4fe2683
JM
8730 * getopt.c: Delete use of IN_GCC to control whether
8731 stddef.h or gstddef.h is included.
252b5132
RH
8732
8733Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
8734
8735 * cplus-dem.c (demangle_signature): Fix a bug in template function
8736 type numbering.
8737
8738Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
8739
8740 * cplus-dem.c (demangle_signature): Fix template function with arm
8741 style argument type number, Tn.
8742
8743Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
8744
8745 * cplus-dem.c (optable): Add new[] and delete[].
8746
8747Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
8748
8749 * argv.c (buildargv): Don't produce empty argument just because
8750 there is trailing whitespace.
8751
8752Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
8753
8754 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
8755 Handle 'p' same as 'P'.
8756 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
8757
8758Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8759
8760 * floatformat.c (get_field, put_field): Fix off by one error in
8761 little endian case.
8762
8763Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
8764
8765 * floatformat.c (floatformat_from_double): Pass unsigned char *,
8766 not char *, to put_field.
8767
8768Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
8769
8770 * memmove.c: Re-wrote; placed in public domain.
8771
8772Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
8773
8774 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
8775 __Q* as a constructor.
8776
8777Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
8778
8779 * ieee-float.c: Removed; no longer used.
8780 * Makefile.in: Changed accordingly.
8781
8782Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8783
8784 * floatformat.c (get_field): Removed unused local variable i.
8785 (put_field): Removed unused local variable i.
8786
8787Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
8788
8789 * floatformat.c: New file, intended to replace ieee-float.c.
8790 * Makefile.in: Change accordingly.
8791
8792Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8793
8794 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
8795 (_getopt_initialize): New function, broken out of _getopt_internal.
8796 (_getopt_internal):
8797 If long_only and the ARGV-element has the form "-f", where f is
8798 a valid short option, don't consider it an abbreviated form of
8799 a long option that starts with f. Otherwise there would be no
8800 way to give the -f short option.
8801
8802Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8803
b4fe2683
JM
8804 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
8805 Test just __STDC__, not emacs.
252b5132
RH
8806
8807Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
8808
b4fe2683
JM
8809 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
8810 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
252b5132
RH
8811
8812Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
8813
b4fe2683 8814 * getopt.c (_NO_PROTO): Define before config.h is included.
252b5132
RH
8815
8816Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8817
b4fe2683 8818 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
252b5132
RH
8819 <config.h> only under these, else "config.h".
8820
8821Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
8822
b4fe2683
JM
8823 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
8824 <config.h> instead of "config.h".
252b5132
RH
8825
8826Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
8827
8828 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
8829 whether to use prototypes or not.
8830 * strerror.c (const): Never undefine; let ansidecl.h handle it.
8831 * strsignal.c (const): Likewise.
8832
8833Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8834
8835 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
8836 Merging common and initialized variables need not be supported by
8837 ANSI C compilers.
8838 (xatexit): Initialize _xexit_cleanup if not already set.
8839 * xexit.c: Comment fix.
8840
8841Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8842
8843 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
8844 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
8845 assuming that realloc works correctly.
8846
8847Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8848
8849 * concat.c, ieee-float.c: Replace inclusion of <string.h>
8850 with explicit function declarations, as recommended by Ian Taylor.
8851
8852Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
8853
8854 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
8855 (malloc, realloc): Declare.
8856
8857Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8858
8859 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
8860 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
8861 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
8862 * xmalloc.c: Likewise.
8863 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
8864 macros, not <varargs.h> macros.
8865 * spaces.c (spaces): Make return type const. Don't crash if
8866 malloc returns NULL.
8867 * strerror.c (struct error_info): Make name and msg fields const.
8868 (error_names): Make const.
8869 (strerrno): Make const.
8870 (strtoerrno): Make argument const.
8871 * strsignal.c (struct signal_info): Make name and msg fields
8872 const.
8873 (signal_names, sys_siglist): Make const.
8874 (strsignal, strsigno): Make const.
8875 (strtosigno): Make argument const.
8876 * xatexit.c: Declare parameter types.
8877 * xmalloc.c (name): Make const.
8878 (xmalloc_set_program_name): Make argument const.
8879 * Makefile.in (INCDIR): Define.
8880 (.c.o): Use $(INCDIR).
8881 (dummy.o): Likewise.
8882 (argv.o, basename.o): New targets; depend on libiberty.h.
8883 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
8884 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
8885 (xmalloc.o): Likewise.
8886 (cplus-dem.o): New target; depend on demangle.h.
8887 (getopt.o, getopt1.o): New targets; depend on getopt.h.
8888 (ieee-float.o): New target; depend on ieee-float.h.
8889 (obstack.o): New target; depend on obstack.h.
8890
8891Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8892
8893 Handle obstack_chunk_alloc returning NULL. This allows
8894 obstacks to be used by libraries, without forcing them
8895 to call exit or longjmp.
8896 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
8897 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
8898 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
8899
8900Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
8901
8902 * concat.c, ieee-float.c: Include <string.h>.
8903
8904Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8905
8906 * xmalloc.c (xmalloc_set_program_name): New function.
8907 (xmalloc, xrealloc): Include the name in the error message, if set.
8908
8909 * Replace atexit.c with xatexit.c.
8910 * Makefile.in (CFILES), functions.def: Change references.
8911
8912Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
8913
8914 * getruntime.c (get_run_time): Use getrusage or times if
8915 HAVE_GETRUSAGE or HAVE_TIMES are defined.
8916
8917Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
8918
8919 * atexit.c: New file.
8920 * Makefile.in (CFILES), functions.def: Add it.
8921 * xexit.c: New file.
8922 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
8923 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
8924 Change request for 0 bytes into request for 1 byte.
8925
8926Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8927
8928 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
8929 unsigned long, to avoid warnings.
8930
8931Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
8932
8933 * dummy.c: Don't include time.h ever; always define clock_t as
8934 "unsigned long". Until gcc/fixincludes ensures that clock_t
8935 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
8936 exist, clock_t probably doesn't either.
8937
8938Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
8939
8940 * clock.c, getruntime.c: New files.
8941 * Makefile.in: Add to file lists.
8942 * functions.def (clock): Add to list.
8943 * dummy.c (time.h): Add if __STDC__.
8944 (clock_t): #define as "unsigned long" if not __STDC__.
8945
8946Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8947
8948 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
8949 Edler).
8950
8951Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
8952
8953 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
8954 linking.
8955
8956Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
8957
8958 * cplus-dem.c (demangle_arm_pt): New function. Common code
8959 for ARM template demangling.
8960 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
8961 * cplus-dem.c (demangle_prefix): Likewise.
8962
8963Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
8964
8965 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
8966
8967Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
8968
8969 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
8970 * strerror.c, strsignal.c: As a small space optimization, don't
8971 include messages when they aren't actually used.
8972
8973 Merge changes from takefive.co.at!joe (Josef Leherbauer)
8974 * cplus-dem.c (demangle_prefix, demangle_function_name,
8975 cplus_demangle_opname): Fixes for systems where cplus_marker
8976 is something other than '$'.
8977
8978Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
8979
8980 * waitpid.c: Simple-minded approcimation to waitpid
8981 using vanilla wait.
8982 * functions.def, Makefile.in: Update accordingly,
8983
8984Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
8985
8986 * cplus-dem.c(demangle_template): fix bug template instantiation
8987 with value of user defined type.
8988
8989Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
8990
8991 * cplus-dem.c(cplus_demangle_opname): add the subject new function
8992 to support unified search of operator in class.
8993
8994Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
8995
8996 gcc -Wall lint:
8997 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
8998 "digit = *s" as condition in while loop.
8999
9000Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
9001
9002 * Makefile.in: pass SHELL to recursive make
9003
9004Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
9005
9006 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
9007 be (const char*), for ANSI (and gcc w/fixproto) consistency.
9008
9009Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9010
9011 * config.table: Make *-*-hiux* use mh-hpux.
9012
9013Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9014
9015 * config.table: Add * to end of all OS names.
9016
9017Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9018
9019 * Makefile.in (lneeded-list): ensure that object file names are
9020 not duplicated, as multiple instances of the same object file in
9021 a library causes problems on some machines
9022
9023Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9024
9025 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
9026
9027Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9028
9029 * strncasecmp.c: new file, implements strncasecmp
9030 * strcasecmp.c: new file, implement strcasecmp
9031
9032 * Makefile.in (CFILES): list these two new source files
9033
9034 * functions.def: add strcasecmp and strncasecmp entries
9035
9036Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9037
9038 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
9039 according to ANSI C.
9040
9041Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
9042
9043 * cplus-dem.c: add support of ARM global constructor/destructor,
9044 and 'G' for passing record or union in parameter.
9045
9046Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9047
9048 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
9049 should not be in functions.def.
9050
9051Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
9052
9053 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
9054 not be in functions.def.
9055
9056Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
9057
9058 * cplus-dem.c: change globl constructor/destructor to proper name
9059
9060Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
9061
9062 * cplus-dem.c: fix bug in constructor/destructor
9063
9064Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
9065
9066 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
9067
9068Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
9069
9070 * cplus-dem.c: Fix demangle_template prototype
9071
9072Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
9073
9074 * cplus-dem.c: fix template demangling
9075 * cplus-dem.c: fix const type demangling
9076 * cplus-dem.c: fix constructor/destructor, virtual table,
9077 qualifier, global constructor/destructor demangling
9078
9079Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9080
9081 * strsignal.c, strerror.c: Use fully-bracketed initializer to
9082 keep gcc -Wall happy.
9083
9084Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
9085
9086 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
9087 patch.
9088
9089Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9090
9091 Patch from Paul Flinders:
9092 * cplus-dem.c (do_type): Deal with arrays.
9093
9094Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9095
9096 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
9097 than 9 classes.
9098
9099Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
9100
9101 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
9102 not initialized" warnings under HP/UX
9103
9104Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9105
9106 * strerror.c: Move include of stdio.h after sys_errlist #define.
9107 Also remove NULL definition (stdio.h always defines NULL, so it
9108 never did anything but clutter up the code).
9109
9110Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9111
9112 * Makefile.in, functions.def: handle xmalloc.c
9113
9114 * xmalloc.c: provide xmalloc and xrealloc functions
9115
9116Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9117
9118 * cplus-dem.c: Fix a comment.
9119
9120Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9121
9122 * getopt1.c: Declare const the way getopt.c does.
9123
9124Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9125
9126 * obstack.c, alloca.c: Update from FSF.
9127 * getopt.c, getopt1.c: Update to current FSF version, which
9128 doesn't use alloca.
9129
9130Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
9131
9132 * Makefile.in (demangle): Add the target with a message saying
9133 where demangle went.
9134
9135Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9136
9137 * Makefile.in: Remove obsolete `demangle' target.
9138
9139Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
9140
9141 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
9142 avoid infinite loop on vtbl symbols with disambiguating "junk"
9143 tacked on the end.
9144
9145Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
9146
9147 * strsignal.c: work around some systems losing definitions of
9148 sys_siglist
9149
9150 * config/mh-lynxos: this system has a losing definition of
9151 sys_siglist
9152
9153 * config.table: use mh-lynxos for *-*-lynxos
9154
9155Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
9156
9157 * config.table: Add support for HPPA BSD hosts.
9158
9159 * config/mh-hpbsd: New file.
9160
9161Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
9162
9163 * Makefile.in (TAGS): make work when srcdir != objdir.
9164
9165Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
9166
9167 * cplus-dem.c (main): Add long options, including --help and
9168 --version.
9169 (usage): New function from code in main.
9170
9171Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
9172
9173 * config.table: New shell scipt, sourced by both ./configure,in
9174 and ../xiberty/configure.in, to avoid maintainance lossages.
9175 * configure.in and ../xiberty/configure.in: Use config.table.
9176
9177 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
9178 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
9179 * ../xiberty/configure.in: Update from ./configure.in.
9180
9181Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9182
9183 * Makefile.in: remove parentdir support
9184
9185Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9186
9187 * cplus-dem.c (xrealloc): Match definition with prototype.
9188
9189Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9190
9191 * cplus-dem.c (demangle_prefix): Demangle cfront
9192 local variables as an extension to ARM demangling.
9193
9194Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
9195
9196 * ieee-float.c: Don't require pointers to double to be aligned.
9197
9198Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
9199
b4fe2683 9200 (merge changes from dlong@cse.ucsc.edu)
252b5132
RH
9201 * cplus-dem.c (consume_count): Simplify.
9202 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
9203 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
9204
9205 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
9206 full prototypes.
9207 * cplus-dem.c (free): Add prototype.
9208 * cplus-dem.c (optable): Fully bracketize initializer.
9209
9210Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
9211
9212 * cplus-dem.c: Whether initial underscores are stripped
9213 depends on the external variable prepends_underscore
9214 (which is generated by the binutils Makefile).
9215
9216Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9217
9218 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
9219
9220Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
9221
9222 * cplus-dem.c (consume_count): Return zero if arg does not
9223 start with digit, and don't consume any input.
9224
9225Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
9226
9227 * Makefile.in (demangle): Use ${srcdir} not $^.
9228
9229 * strtod.c: New file, needed at least for BSD 4.3.
9230
9231Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
9232
9233 * strsignal.c (sys_siglist): For ANSI compilations, type is
9234 "const char *const". Also remove conditionalization on __STDC__
9235 since const is defined away for non-ANSI.
9236
9237Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
9238
9239 * configure.in: Recognize *-*-hpux.
9240 * config/mh-hpux: New file.
9241
9242Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
9243
9244 * tmpnam.c: Added ANSI tmpnam() function.
9245 * functions.def, Makefile.in: Update accordingly.
9246
9247Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
9248
9249 * cplus-dem.c (demangle_function_name): Get the demangling of
9250 stop__1A right.
9251
9252Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
9253
9254 * cplus-dem.c: Declare strstr return type.
9255
9256Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
9257
9258 * strsignal.c: Add some AIX signals.
9259
9260Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
9261
9262 * Makefile.in (MAKEOVERRIDES): Define to be empty.
9263
9264Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
9265
9266 * Makefile.in: add installcheck & dvi targets
9267
9268Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
9269
9270 * ieee-float.c: New file, moved from ../gdb (since it is
9271 needed by ../opcode/m68k-dis.c).
9272
9273Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
9274
9275 * cplus-dem.c: Replace all references to cfront with ARM.
9276
9277Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
9278
9279 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
9280 to be more useful as a filter.
9281
9282Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
9283
9284 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
9285 destination directory before running $(RANLIB), in case that
9286 program tries to create a file in the current directory as part of
9287 its work.
9288
9289Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
9290
9291 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
9292 because BSD 4.4 lacks one. Isn't this fun?
9293
9294Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
9295
9296 * cplus-dem.c (demangle_signature): Set func_done after
9297 demangling a template.
9298 * cplus-dem.c (demangle_template): Fix several small bugs
9299 in demangling GNU style templates.
9300 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
9301 style constructors.
9302 * cplus-dem.c (gnu_special): Fix for templates in GNU style
9303 static data members.
9304
9305Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
9306
9307 * cplus-dem.c (demangle_signature): Modify to include type
9308 modifiers like static and const in remembered types.
9309
9310Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
9311
9312 * cplus-dem.c (demangled_qualified): Add new parameter that tells
9313 whether to prepend or append the qualifiers.
9314 * cplus-dem.c (string_prepends): Used now, remove #if 0.
9315 * cplus-dem.c (demangle_signature): Call demangle_qualified
9316 with prepending.
5dd42ef4 9317 * cplus-dem.c (gnu_special): Recognize static data members that
252b5132
RH
9318 use qualified names.
9319 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
9320 temporary buffer and the prepend or append them to the result,
9321 as specified by the new "append" flag.
9322 * cplus-dem.c (do_type): Call demangled_qualified with
9323 appending.
9324
9325Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
9326
9327 * strsignal.c (signal_table): Now const.
9328 (init_signal_tables): Variable eip now points to const.
9329
9330 * strerror.c (error_table): Now const.
9331 (init_error_tables): Variable eip now points to const.
9332
9333Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
9334
9335 * memchr.c (memchr): New (ANSI standard) function.
9336 * Makefile.in, functions.def: Added memchr.
9337 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
9338
9339Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9340
9341 * getopt.c: remove use of USG around <alloca.h>, which never meant
9342 anything anyway
9343
9344 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
9345 of USG and USGr4
9346
9347Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
9348
9349 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
9350 it's now a type according to the ANSI X3J16 working paper; output
9351 "wchar_t" for it.
9352 (demangle_template): Accept `w' as an integral type.
9353 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
9354 counterparts malloc and realloc to `char *'.
9355 (main): Exit with a 0 status.
9356 * Makefile.in (demangle): Don't expect the user to define
9357 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
9358 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
9359
9360Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
9361
9362 * Makefile.in (AR_FLAGS): Avoid verbosity.
9363 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
9364 replace USGr4 with HAVE_SYSCONF.
9365 * config/mh-solaris: Remove; mh-sysv4 works now.
9366 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
9367 * configure.in: Simplify host matching table, remove separate
9368 solaris config file.
9369
9370Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
9371
9372 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
9373
9374Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
9375
9376 * cplus-dem.c (xmalloc, xrealloc): Add decls.
9377 (remember_type): Don't cast xmalloc.
9378 (string_need): Likewise; don't cast xrealloc either.
9379
9380Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
9381
9382 * Makefile.in, functions.defs, rename.c: added simple
9383 implementation of rename, since some binutils programs use it.
9384
9385Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
9386
9387 * strsignal.c: Add appropriate 'const' to sys_siglist
9388 extern declaration (if __STDC__). (Needed for Linux.)
9389 * strsignal.c (strsignal): Add cast to remove const-ness.
9390
9391Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
9392
9393 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
9394 before "'s, diagnosed by BSD 4.4 awk.
9395
9396Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
9397
9398 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
9399 and $(NEEDED_LIST), to give some hooks for xiberty.
9400
9401Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9402
9403 * configure.in: use cpu-vendor-triple instead of nested cases
9404
9405Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
9406
9407 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
9408 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
9409 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
9410 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
9411 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
9412 Convert from using GPL to LGPL.
9413
9414Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
9415
9416 * Makefile.in (errors): Leave dummy.o and dummy around so that
9417 we can see how the needed list was generated (it's sometimes wrong).
9418 (mostlyclean): Remove them.
9419
9420Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
9421
9422 * getcwd.c: supply a default if MAXPATHLEN is not defined.
9423
9424 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
9425
9426Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
9427
9428 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
9429 when cross-compiling.
9430
9431Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
9432
9433 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
9434 as a time optimization.
9435
9436 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
9437 be more expensive than simply demangling.
9438
9439 * cplus-dem.c (cplus_match): new function.
9440
9441Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
9442
9443 * cplus-dem.c: #include <stdio.h>, to define NULL.
9444 Define current_demangling_style.
9445
9446Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
9447
9448 * cplus-dem.c: New file, moved from ../gdb.
9449 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
9450 function, to avoid compiling in target-dependency for CPLUS_MARKER.
9451 * cplus-dem.c (cplus_demangle): Allow demangling style option
9452 to be passed as a parameter, but using the global variable
9453 current_demangling_style as a default.
9454 * Makefile.in: Update for cplus-dem.c
9455
9456Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
9457
9458 * obstack.c: Merge in comment changes from FSF version. Now
9459 matches the FSF version exactly.
9460
9461Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
9462
9463 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
9464 least on losing DECstations!); use if-then-else instead.
9465
9466Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
9467
9468 * Makefile.in: always create installation directories.
9469
9470Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
9471
b5d60b68 9472 * Makefile.in: clean up definition of CFILES, more comments
252b5132
RH
9473
9474Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
9475
9476 * getopt.c (my_index): Make first arg const to match strchr,
9477 which it sometimes is remapped to.
9478
9479Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
9480
9481 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
9482 * obstack.c (_obstack_begin): Initialize use_extra_arg.
9483 * obstack.c (_obstack_begin_1): New, from FSF version.
9484
9485Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
9486
9487 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
9488 extra_arg.
9489 * obstack.c (_obstack_begin): Remove area_id and flags arguments
9490 (previously added for mmalloc support, interface has changed).
9491 Also convert flags usage to use use_extra_arg and maybe_empty_object.
9492
9493Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
9494
9495 * argv.c: Move expandargv inline and eliminate static variables.
9496 Rewrite to always allocate in powers of two. Fix to return an
9497 argv with a single null string arg if passed a null string.
9498
9499Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
9500
9501 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
9502 "(void)" casts from function calls where the return value is
9503 ignored, in accordance with GNU coding standards.
9504
9505Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
9506
9507 * bcopy.c, strerror.c, strsignal.c: Lint.
9508
9509Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9510
9511 * getopt.c: merge changes from make.
9512
9513Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
9514
9515 * alloca.c: Incorporate fixes from gdb/alloca.c.
9516 FIXME: Eventually move gdb's alloca configuration files here,
9517 and remove gdb/alloca.c and its Makefile.in support.
9518
9519Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
9520
9521 * dummy.c: Define NOTHING to /*nothing*/, change return type
9522 of main to int and return zero.
9523 * functions.def: Supply NOTHING as the fourth arg to macros
9524 that don't have an explicit arg, to satisfy picky preprocessors.
9525
9526Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
9527
9528 * Makefile.in: Clean up *clean rules, as per standards.texi.
9529
9530Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
9531
9532 * getopt.c, getopt1.c: merged largely gratuitous, mostly
9533 whitespace diffs from other prep distributions.
9534
9535Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
9536
9537 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
9538 it is broken on ncr 3000's.
9539
9540Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
9541
9542 * sigsetmask.c: Rewrite. Old one was very confused about its
9543 arguments and result. New one can't do much, but at least knows
9544 what it can't do, and it's good enough for GDB's use.
9545
9546Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
9547
9548 * functions.def: Use proper prototype for strtoul.
9549
9550Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
9551
9552 * Makefile.in: Add random.c.
9553 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
9554 * configure.in: update solaris2 config.
9555
9556Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
9557
9558 * random.c: Add for random() and srandom().
9559 * functions.def: Add random
9560
9561Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
9562
9563 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
9564 using /usr/ucb/install.
9565
9566Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
9567
9568 * strerror.c: Kludge to guard against a conflict with
9569 possible declaration of sys_errlist in errno.h.
9570
9571Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
9572
9573 * configure.in, config/mh-solaris: add solaris2 config support.
9574
9575Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
9576
9577 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
9578 is not defined (should be defined in signal.h, says Posix.).
9579
9580Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
9581
9582 * getopt.c: merged changes from make-3.62.11.
9583
9584Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
9585
9586 * getopt.c: merged changes from bison-1.18.
9587
9588Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
9589
9590 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
9591 since that introduces a circular dependency.
9592 ($(EXTRA_OFILES) are used to build config.h.)
9593
9594 * strtoul.c: Fixes to handle non-decimal bases better.
9595
9596Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
9597
9598 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
9599 * Makefile.dos: Finish MINUS_G eradication.
9600 * Makefile.in (CFILES): Add strsignal.c.
9601 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
9602 * Makefile.in (needed-list): Split creation of errors file to
9603 separate make target.
9604 * Makefile.in (config.h, needed2.awk, errors): New targets.
9605 * Makefile.in (clean): Split to multiple lines, add needed2.awk
9606 and config.h.
9607 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
9608 * functions.def (strerror): Remove from optional list.
9609 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
9610 * functions.def (strerror, psignal): DEFFUNC's
9611 * strerror.c: Rewrite from scratch to use sys_errlist only if
9612 available, add errno_max(), add strerrno(), add strtoerrno(),
9613 add test driver.
9614 * strsignal.c: New file, signal equivalent to strerror.c.
9615 Uses sys_siglist if available, defines signo_max(), strsignal(),
9616 strsigno(), strtosigno(), psignal(), and test driver.
9617
9618Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
9619
9620 * Makefile.in: do not print recursion line.
9621
9622 * Makefile.in: allow CFLAGS to be passed in from command line.
9623 Removed MINUS_G. Default CFLAGS to -g.
9624
9625Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
9626
9627 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
9628 so libg++ users don't have to be inconvenienced by a
9629 libc.a bug (libc.a needs copysign, but doesn't define it!).
9630 * configure.in: Use config/mh-aix.
9631 * strtoul.c: Handle '-' as required by ANSI.
9632 Clean up radix handling.
9633 * strstr.c: Fix buggy algorithm.
9634 * Makefile.in: Change so that ${EXTRA_OFILES} is
9635 appended to needed-list (which is used by libg++).
9636
9637Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
9638
9639 * configure.in: Recognize new ncr3000 config.
9640 * config/mh-ncr3000: New config file.
9641
9642Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
9643
9644 * argv.c, dummy.c: Lint.
9645
9646Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
9647
9648 * config/mh-sysv4: New config file.
9649 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
9650 host_os == sysv4.
9651 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
9652 pagesize.
9653
9654Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
9655
9656 * getopt.c: Lint.
9657
9658Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
9659
9660 * functions.def (alloca): Fix return type and args to avoid
9661 type clash with gcc's builtin alloca.
9662
9663Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
9664
9665 * configure.in, config/mh-irix4: irix4 support.
9666
9667 * Makefile.in, functions.def, alloca.c: added alloca.
9668
9669Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
9670
9671 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
9672
9673Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
9674
9675 * argv.c: Fix various external function definitions to be
9676 correct in an ANSI compilation environment.
9677
9678Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
9679
9680 * obstack.c: Changes to support calling mmalloc functions,
9681 which take an additional argument over malloc functions.
9682
9683Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
9684
9685 * added check target.
9686
9687Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
9688
9689 * argv.c: #include alloca-conf.h (needed by AIX).
9690
9691Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
9692
9693 * Makefile.in, configure.in: removed traces of namesubdir,
9694 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
9695 copyrights to '92, changed some from Cygnus to FSF.
9696
9697Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
9698
9699 * argv.c: Check in Fred's version which fixes problems with
9700 alloca().
9701
9702Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
9703
9704 * makefile.dos: Remove NUL to keep patch from failing.
9705
9706Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
9707
9708 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
9709
9710Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
9711
8aefe91a 9712 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
252b5132
RH
9713
9714Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
9715
9716 * argv.c: New file to build and destroy standard argument
9717 vectors from a command string.
9718
9719 * Makefile.in: Add argv.c and argv.o to appropriate macros.
9720
9721Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
9722
9723 * configure.in: Change svr4 references to sysv4.
9724
9725 * rindex.c: Declare return type of externally used function
9726 strrchr().
9727
9728Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
9729
9730 * Makefile.in: Remove "***" in normal output, since Make produces
9731 this on errors, and it's convenient to search for.
9732
9733Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
9734
9735 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
9736 New ANSI functions. The old non-ANSI functions (such as bcopy)
9737 should be avoided.
9738 * bcopy.c: Fix to correctly handle overlapping regions.
9739 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
9740 * functions.def: Add the new functions.
9741 * functions.def: Add 4th parameter to DEF macro,
9742 an ansidecl.h-style prototype.
9743 * dummy.c: Use expanded DEF macro to create a dummy function
9744 call, with correct parameter types. (This avoids some
9745 complaints from gcc about predefined builtins.)
9746
9747 Move the functionality of config/mh-default into Makefile.in.
9748 This avoid duplication, and simplifies things slightly.
9749 * Makefile.in: Tweak so we don't need config/mh-default.
9750 * README: Update.
9751 * configure.in: No longer need config/mh-default.
9752 * config/mh-default: Deleted.
9753 * config/mh-sysv: Remove lines copied from old mh-default.
9754
9755Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
9756
9757 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
9758 'mknod' device numbers.
9759
9760Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
9761
9762 * fdmatch.c, Makefile.in: Add new function that takes two
9763 open file descriptors and returns nonzero if they refer to
9764 the same file, zero otherwise. (used in gdb)
9765
9766Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
9767 From DJ:
9768 * msdos.c: stub functions for dos.
9769 * makefile.dos, configdj.bat: new.
9770 * getopt.c: Don't include alloca-conf.h in a GO32 world.
9771
9772
9773Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9774
9775 * Makefile.in: infodir belongs in datadir.
9776
9777Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9778
9779 * Makefile.in: remove spaces following hyphens because bsd make
9780 can't cope. added standards.text support. install using
9781 INSTALL_DATA.
9782
9783 * configure.in: remove commontargets as it is no longer a
9784 recognized hook.
9785
9786Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
9787
9788 * Makefile.in: idestdir and ddestdir go away. Added copyrights
9789 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
9790 and mandir now keyed off datadir by default.
9791
9792Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
9793
9794 * Makefile.in: find-needed.awk does not fit in 14 chars.
9795
9796 * Makefile.in: Suppress error checking when compiling the test
9797 program, because Ultrix make/sh aborts there due to a bug.
9798
9799Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
9800
9801 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
9802 * README: Explained how the auto-configuration works,
9803 and how to add new files and/or configurations.
9804
9805Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
9806
9807 * strtoul.c: Avoid defining ULONG_MAX if already defined;
9808 cast a const char * to char * for pedants.
9809
9810 * getopt.c: Only define "const" after local include files get to,
9811 and only if they haven't defined it.
9812
9813Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
9814
9815 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
9816 emulate it with getwd() if available. This avoids callers having
9817 to find a MAXPATHLEN or PATH_MAX value from somewhere.
9818 * Makefile.in, functions.def: getwd->getcwd.
9819 * configure.in: Use generic case for every system.
9820 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
9821 * config/mh-sysv: Use default handling, just add -DUSG.
9822
9823Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
9824
9825 * Makefile.in, config/mh-default: Re-do make magic
9826 so that for the default ("automatic") mode we only
9827 compile the files we actually need. Do this using
9828 a recursive make: The top-level generates the list
9829 of needed files (loosely, the ones missing in libc),
9830 and then passes that list to the recursive make.
9831 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
9832
9833Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
9834
9835 RS/6000 host support (grumble).
9836
9837 * configure.in: Build alloca-conf.h file from alloca-norm.h
9838 (everything else) or alloca-botch.h (rs/6000).
9839 * Makefile.in: Include . on the include path.
9840 * getopt.c: Use alloca-conf.h.
9841 * alloca-norm.h: How to declare alloca on reasonable machines.
9842 * alloca-botch.h: How to declare alloca on braindead machines.
9843
9844Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
9845
9846 * concat.c : New file, like concat() in gdb but can take a
9847 variable number of arguments rather than fixed at 3 args. For
9848 now, client applications must supply an xmalloc(), which is a
9849 front end function to malloc() that deals with out-of-memory
9850 conditions.
9851
9852 * Makefile.in: Add concat.c and concat.o to appropriate macros.
9853
9854Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
9855
9856 * config/mh-svr4: Add sigsetmask to list of required functions.
9857
9858Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
9859
9860 * vsprintf.c: New file.
9861 * functions.def, Makefile.in: Add vsprintf.
9862
9863Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
9864
9865 * configure.in, config/mh-rs6000: Add rs/6000 host support.
9866 * Makefile.in: Compile with debug info.
9867
9868Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
9869
9870 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
9871 config/mf-default: Added a default configuration mode,
9872 which includes into libiberty.a functions that are "missing" in libc.
9873 * strdup.c, vprintf.c, vfprintf.c: New files.
9874
9875Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
9876
9877 * config/hmake-svr4: New file.
9878
9879 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
9880
9881 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
9882 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
9883 files containing either portable C versions or emulations using
9884 native library calls.
9885
9886 * strerror.c: Add copyright, internal documentation, etc.
9887
9888 * strtol.c: Replace hardwired hex constants with some more
9889 portable macros. Remove illegal (according to gcc) cast.
9890
9891 * strtoul.c: Replace hardwired hex constant with more portable
9892 macro.
9893
9894 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
9895 can override them. Add new source and object file names to CFILES
9896 and OFILES respectively.
9897
9898 * configure.in: Add support for SVR4 makefile fragments.
9899
9900Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
9901
9902 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
9903 over-ridden by config/hmake-*
9904 * configure.in: added m88kcvs to sysv list
9905
9906Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
9907
9908 * Makefile.in: Most hosts need strerror, but one or two don't,
9909 and they override these definitions in the host-dependent makefile
9910 fragment.
9911 * config/hmake-mach: The odd man out on strerror -- it's supplied.
9912 * strerror.c: New file.
9913
9914 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
9915 it and bfd uses it.
9916 * configure.in, Makefile.in, config/hmake-mach: Only configure
9917 strtol & strotoul in on Mach.
9918
9919Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
9920
9921 * obstack.c: Merge with latest FSF version.
9922
9923\f
9924Local Variables:
9925version-control: never
9926End:
This page took 1.259464 seconds and 4 git commands to generate.