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