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