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