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