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