]> git.ipfire.org Git - thirdparty/gcc.git/blame - libiberty/ChangeLog
re PR testsuite/40475 (gcc.dg/vect/vect-nest-cycle-[12].c)
[thirdparty/gcc.git] / libiberty / ChangeLog
CommitLineData
ee07afa0
NC
12009-06-16 Nick Clifton <nickc@redhat.com>
2
3 PR 10197
4 * testsuite/test-demangle.c: Rename getline to get_line to avoid
5 conflicts with system function of the same name.
6
ec5c6f4a
EZ
72009-05-30 Eli Zaretskii <eliz@gnu.org>
8
9 * snprintf.c: Doc fix.
10
11 * vsnprintf.c: Doc fix.
12
bb870b58
KT
132009-05-29 Kai Tietz <kai.tietz@onevision.com>
14
15 * pex-win32.c (pex_win32_fdopenr): Set INHERIT to false.
16
4cfaf1ec
MM
172009-05-29 Michael Matz <matz@suse.de>
18
19 * fibheap.c (fibheap_replace_key_data): Make sure we don't early
20 out when forcing the minimum.
21 (fibheap_delete_node): Assert that we managed to force the minimum.
22
0d38b677
TG
232009-05-25 Tristan Gingold <gingold@adacore.com>
24
25 * config.h-vms: Rewritten. Define configure macros.
26 Use DEC-C builtin alloca.
27
28 * makefile.vms (OBJS): Update list.
29 (OPT): New variable.
30 (CFLAGS): Update compilation flags.
31 (libiberty.olb): Do not depend on alloca-conf.h anymore.
32
7859dde7
ILT
332009-05-19 Ian Lance Taylor <iant@google.com>
34 Ben Elliston <bje@au.ibm.com>
35
36 * cp-demangle.c (cplus_demangle_fill_ctor): Fix logic bug.
37 (cplus_demangle_fill_dtor): Likewise.
38
965cc3c3
JB
392009-05-17 Julian Brown <julian@codesourcery.com>
40
41 * pex-win32.c (pex_win32_exec_child): Fix logic to avoid closing
42 standard handles (stdin, stdout, stderr) in parent.
43
6874160d
JB
442009-04-29 Julian Brown <julian@codesourcery.com>
45
46 * pex-win32.c (pex_win32_pipe): Add _O_NOINHERIT.
47 (pex_win32_exec_child): Ensure each process has only one handle open
48 on pipe endpoints. Close standard input after creating child for
49 symmetry with standard output/standard error.
50
ae2040df
EZ
512009-04-25 Eli Zaretskii <eliz@gnu.org>
52
53 * Makefile.in (needed-list): Target removed (not used in GCC
54 3.0 and later). All references deleted.
55 (mostlyclean): Remove references to needed.awk and needed2.awk.
56
01459fb5
EZ
572009-04-14 Eli Zaretskii <eliz@gnu.org>
58
59 * configure.ac (setobjs, msdosdjgpp): Move a-priori setting of
60 existing and required library functions to with_target_subdir
61 section, so that the native build does detect them at configure
62 time.
63 * configure: Regenerated.
64
92c3e704
OS
652009-04-13 Ozkan Sezer <sezeroz@gmail.com>
66
67 PR target/39397
68 * pex-common.h (struct pex_obj): Store pid values as pid_t,
69 not as long (members *children and (*wait))
70 * pex-common.c (pex_run_in_environment): Likewise.
71 * pex-win32.c (pex_win32_wait): Return pid_t and properly check
72 returned pid value.
73 * pex-djgpp.c (pex_djgpp_wait): Return pid_t.
74 * pex-msdos.c (pex_msdos_wait): Likewise.
75
020e3d02
AP
762009-04-07 Arnaud Patard <apatard@mandriva.com>
77
78 * libiberty/configure.ac: Fix Linux/MIPS matching rule.
79 * libiberty/configure: Regenerate.
80
5fbd9447
ILT
812008-03-27 Ian Lance Taylor <iant@google.com>
82
83 * memmem.c: New file, from gnulib.
84 * configure.ac: Add memmem to list of functions provided if they
85 are not available on the host.
86 * Makefile.in: Rebuild dependencies.
87 (CFILES): Add memmem.c.
88 (CONFIGURED_OFILES): Add memmem.o.
89 * configure, config.in, functions.texi: Rebuild.
90
6afcfe0a
JM
912009-03-23 Jason Merrill <jason@redhat.com>
92
93 * cp-demangle.c (d_expression): Handle pack expansion.
94 (d_find_pack): Handle DEMANGLE_COMPONENT_FUNCTION_PARAM.
95 (d_print_subexpr): Don't wrap function parms in ().
96 (d_print_comp) [DEMANGLE_COMPONENT_PACK_EXPANSION]: Handle
97 not finding a pack.
98
448545cb
JM
992009-03-17 Jason Merrill <jason@redhat.com>
100
101 * cp-demangle.c (d_make_function_param): new fn.
102 (cplus_demangle_mangled_name): Work around abi v2 bug.
103 (d_expr_primary): Likewise.
104 (cplus_demangle_operators): Add alignof ops.
105 (d_expression): Handle function parameters and conversions
106 with other than 1 operand.
107 (d_print_comp): Handle function parameters. Fix bug with
108 function used in type of function.
109 * testsuite/demangle-expected: Upate tests.
110
8c9abf1f
MM
1112009-02-21 Mark Mitchell <mark@codesourcery.com>
112
113 * make-temp-file.c (<windows.h>): Include on Windows.
114 (choose_tmpdir): On Windows, use GetTempPath.
115
04f9f7b5
DK
1162009-01-18 Dave Korn <dave.korn.cygwin@gmail.com>
117
118 * configure.ac (funcs, vars, checkfuncs): Don't munge on Cygwin,
119 as it no longer shares libiberty object files.
120 * configure: Regenerated.
121
30471e01
JM
1222009-01-07 Jason Merrill <jason@redhat.com>
123
124 * cp-demangle.c (d_expression): Remove mangling for zero-op casts.
125
381009fe
BE
1262009-01-06 Ben Elliston <bje@au.ibm.com>
127
128 * cp-demangle.c (cplus_demangle_type): Return NULL if the
129 character following a 'D' cannot be recognised.
130
938e76ad
JM
1312008-12-18 Jason Merrill <jason@redhat.com>
132
133 PR c++/38561
134 * cp-demangle.c (d_expression, d_print_comp): Revert
135 cast changes.
136
a77f94e2
JM
1372008-12-17 Jason Merrill <jason@redhat.com>
138
139 * cp-demangle.c (d_expression): Handle rvalue stubs too.
140 [DEMANGLE_COMPONENT_CAST]: Update mangling.
141 (d_print_comp): Avoid extra ", " with empty template argument packs.
142 Remove handling for obsolete T() mangling.
143
07523e7c
JM
1442008-12-10 Jason Merrill <jason@redhat.com>
145
146 * cp-demangle.c (cplus_demangle_type): Support fixed-point types.
147 (d_print_comp, d_dump): Likewise.
148
b36c386c
DJ
1492008-10-22 Daniel Jacobowitz <dan@codesourcery.com>
150
151 * Makefile.in (CPPFLAGS): Define.
152 (FLAGS_TO_PASS, COMPILE.c): Add CPPFLAGS.
153
269f1d98
PB
1542008-10-15 Paolo Bonzini <bonzini@gnu.org>
155
61b74e12 156 PR bootstrap/37137
269f1d98
PB
157 * Makefile.in (LIBCFLAGS): Remove.
158 (FLAGS_TO_PASS): Don't mention it.
159 (COMPILE.c, MULTIOSDIR): Replace it with CFLAGS.
160
0c9e8424
DE
1612008-10-08 David Edelsohn <edelsohn@gnu.org>
162
163 * xstrdup.c: Include <sys/types.h> after "config.h"
164
d208e2d2
JK
1652008-10-07 Jan Kratochvil <jan.kratochvil@redhat.com>
166
167 * configure.ac: Call AC_SYS_LARGEFILE.
168 * config.in: Regenerated.
169 * configure: Likewise.
170
38179091
JM
1712008-10-06 Jason Merrill <jason@redhat.com>
172
173 * cp-demangle.c (struct d_print_info): Add pack_index.
174 (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION.
175 (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and
176 DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args.
177 (cplus_demangle_builtin_types): Add char16/32_t.
178 (cplus_demangle_type): Recognize them.
179 (d_template_args): Handle empty argument packs.
180 (d_template_arg): Handle argument packs.
181 (d_expression): Handle dependent name.
182 (d_index_template_argument): New fn.
183 (d_lookup_template_argument): New fn.
184 (d_find_pack, d_pack_length): New fn.
185 (d_print_subexpr): Split out...
186 (d_print_comp): ...from here. Use d_*_template_argument.
187 Handle empty arg lists. Support pack expansions.
188 * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32.
189
5a3d7e74
JM
1902008-09-09 Jason Merrill <jason@redhat.com>
191
192 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_DECLTYPE.
193 (d_make_comp): Likewise.
194 (cplus_demangle_type): Handle decltype and DFP types.
195 (cplus_demangle_operators): Call operator takes 2 args.
196 (cplus_demangle_builtin_types): Add DFP types.
197 (d_exprlist): New fn.
198 (d_expression): Handle parm placeholders, T() and calls.
199 (d_print_comp): Handle decltype, T() and calls.
200 * testsuite/demangle-expected: Test the above.
201
98b45309
AL
2022008-08-07 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
203
204 * pex-win32.c (argv_to_argc): New function.
205 (spawn_script): Duplicate argv before calling win32_spawn.
206
60ecfb1b
JJ
2072008-07-31 Jakub Jelinek <jakub@redhat.com>
208
209 * mkstemps.c (mkstemps): Keep looping even for EISDIR.
210
a23eb008
DV
2112008-07-31 Denys Vlasenko <dvlasenk@redhat.com>
212
213 * mkstemps.c (mkstemps): If open failed with errno other than
214 EEXIST, return immediately.
215 * make-temp-file.c: Include errno.h.
216 (make_temp_file): If mkstemps failed, print an error message
217 before aborting.
218
f59a2f55
RW
2192008-07-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
220
221 * maint-tool (deps): Output config.h instead of stamp-h.
222 * Makefile.in: Rebuild deps.
223 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
224 Reverts 2007-07-11 change.
225
6819ba36
EB
2262008-06-19 Eric Blake <ebb9@byu.net>
227
228 Adjust strsignal to POSIX 200x prototype.
229 * strsignal.c (strsignal): Remove const.
230
18c04407
RW
2312008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
232
233 * configure: Regenerate.
234
6ccde948
RW
2352008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
236
237 * libiberty.texi: Expand TABs, drop indentation outside examples.
238 * obstacks.texi: Likewise.
239
951b54cc
AJ
2402008-04-21 Aurelien Jarno <aurelien@aurel32.net>
241
242 * libiberty/configure.ac: use -fPIC on Linux/MIPS hosts.
243 * libiberty/configure: Regenerate.
244
b6baa67d
KVH
2452008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
246
247 * testsuite/demangle-expected: Added tests for char16_t and char32_t.
248
deb984e6
PB
2492008-04-18 Paolo Bonzini <bonzini@gnu.org>
250
251 PR bootstrap/35457
252 * aclocal.m4: Add override.m4.
253 * configure: Regenerate.
254
eeda7b98
ILT
2552008-03-31 Ian Lance Taylor <iant@google.com>
256
257 * cp-demangle.c (d_substitution): Correct overflow check to avoid
258 -fstrict-overflow optimizations.
259
c91c9c2e
PB
2602008-03-27 Paolo Bonzini <bonzini@gnu.org>
261
262 * configure.ac (frags): Don't set, use frag instead.
263 (PICFLAG): Set here and substitute.
264 * Makefile.in (PICFLAG): Substitute from autoconf.
265 * configure: Regenerate.
266
598848e4
ILT
2672008-03-24 Ian Lance Taylor <iant@google.com>
268
269 * sha1.c: New file, from gnulib.
270 * Makefile.in: Rebuild dependencies.
271 (CFILES): Add sha1.c.
272 (REQUIRED_OFILES): Add sha1.o.
273
01b11940
DE
2742008-03-24 Doug Evans <dje@google.com>
275
276 * make-relative-prefix.c (make_relative_prefix_1): Handle NULL
277 return from strdup.
278
5a9340fd
SP
2792008-03-12 Seongbae Park <seongbae.park@gmail.com>
280
281 * cplus-dem.c (malloc, realloc): Use void * instead of char *
282 as return type.
283
73b38fce
NC
2842008-03-11 Nick Clifton <nickc@redhat.com>
285
286 * md5.c (md5_process_bytes): Do not assume that memcpy will
287 provide a return value.
288
5ff3a208
BE
2892008-02-19 Ben Elliston <bje@au.ibm.com>
290
291 PR other/12618
292 * testsuite/Makefile.in (mostlyclean): Remove any core file.
293
e5df4fb1
DD
2942008-01-26 David Daney <ddaney@avtrex.com>
295
296 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
297 DEMANGLE_COMPONENT_COMPOUND_NAME, and
298 DEMANGLE_COMPONENT_CHARACTER cases.
299 (d_make_comp): Handle DEMANGLE_COMPONENT_COMPOUND_NAME and
300 DEMANGLE_COMPONENT_JAVA_RESOURCE cases.
301 (d_make_character): New function.
302 (d_java_resource): Same.
303 (d_special_name): Handle "Gr" case.
304 (d_print_comp): Handle DEMANGLE_COMPONENT_JAVA_RESOURCE,
305 DEMANGLE_COMPONENT_COMPOUND_NAME, and
306 DEMANGLE_COMPONENT_CHARACTER cases.
307 * testsuite/demangle-expected: Add test for java resource name
308 mangling.
309
62b445b3
TJB
3102008-01-23 Thiago Jung Bauermann <bauerman@br.ibm.com>
311
312 * cplus-dem.c (demangle_function_name): Changed to return value
313 indicating if a name was correctly demangled.
314 (iterate_demangle_function): Use demangle_function_name return
315 value.
316
daf6ff4c
MLI
3172008-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
318
319 PR other/33768
320 * splay-tree.c (rotate_left): Fix minor typo in comment.
321 (rotate_right): Likewise.
322
983a6f8d
JM
3232007-11-12 Joseph Myers <joseph@codesourcery.com>
324
325 * floatformat.c (floatformat_ibm_long_double_is_valid): Fix
326 compiler warnings.
327 (floatformat_ibm_long_double): Use
328 floatformat_ibm_long_double_is_valid.
329
da59326f
JM
3302007-11-07 Joseph Myers <joseph@codesourcery.com>
331 Daniel Jacobowitz <dan@codesourcery.com>
332
333 * floatformat.c (mant_bits_set): New.
334 (floatformat_to_double): Use it. Note no special handling of
335 split formats.
336 (floatformat_from_double): Note no special handing of split
337 formats.
338 (floatformat_ibm_long_double_is_valid,
339 floatformat_ibm_long_double): New.
340 (floatformat_ieee_single_big, floatformat_ieee_single_little,
341 floatformat_ieee_double_big, floatformat_ieee_double_little,
342 floatformat_ieee_double_littlebyte_bigword, floatformat_vax_f,
343 floatformat_vax_d, floatformat_vax_g, floatformat_i387_ext,
344 floatformat_m68881_ext, floatformat_i960_ext,
345 floatformat_m88110_ext, floatformat_m88110_harris_ext,
346 floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword,
347 floatformat_ia64_spill_big, floatformat_ia64_spill_little,
348 floatformat_ia64_quad_big, floatformat_ia64_quad_little): Update
349 for addition of split_half field.
350
48492bdf
TT
3512007-09-06 Tom Tromey <tromey@redhat.com>
352
353 * pexecute.txh (pex_free): Document process killing.
354
1ab28be5 3552007-08-31 Douglas Gregor <doug.gregor@gmail.com>
6819ba36 356
1ab28be5 357 * cp-demangle.c (d_dump): Handle
6819ba36 358 DEMANGLE_COMPONENT_RVALUE_REFERENCE.
1ab28be5
DG
359 (d_make_comp): Ditto.
360 (cplus_demangle_type): Ditto.
361 (d_print_comp): Ditto.
362 (d_print_mod): Ditto.
363 (d_print_function_type): Ditto.
364
1651030c
KT
3652007-08-24 Kai Tietz <kai.tietz@onevision.com>
366
367 * pex-common.h: (pex_funcs): Retyped wait and exec_child to pid_t.
368 * pex-djgpp.c: Likewise.
369 * pex-msdos.c: Likewise.
370 * pex-unix.c: Likewise.
371 * pex-win32.c: Likewise.
372
9c79ad8b
MS
3732007-08-17 Michael Snyder <msnyder@access-company.com>
374
375 * make-relative-prefix.c (make_relative_prefix_1): Resource leaks.
376
fd83e387
MS
3772007-08-03 Michael Snyder <msnyder@access-company.com>
378
379 * make-relative-prefix.c (make_relative_prefix_1): Fix resource
380 leak.
381
ac847e32
MS
3822007-07-31 Michael Snyder <msnyder@access-company.com>
383
384 * cp-demangle.c (d_print_comp): Guard against null.
385
f4f29b59
BE
3862007-07-25 Ben Elliston <bje@au.ibm.com>
387
388 * Makefile.in (CFILES): Remove ternary.c.
389 (REQUIRED_OFILES): Remove ./ternary.o.
390 (INSTALLED_HEADERS): Remove ternary.h.
391 (ternary.o): Remove.
392 * ternary.c: Remove.
393
f4e00f44
DD
3942007-07-23 DJ Delorie <dj@redhat.com>
395
396 * argv.c (writeargv): Fix typo in inline documentation.
397 * functions.texi: Regenerate.
398
6a9131e7
DD
3992007-07-17 DJ Delorie <dj@redhat.com>
400
401 * configure.ac (target_header_dir, msdosdjgpp): Remove duplicate
402 gettimeofday entry.
403 * configure: Likewise.
404
0f3d38b6
AO
4052007-07-11 Alexandre Oliva <aoliva@redhat.com>
406
407 * maint-tool (deps): Output stamp-h instead of config.h.
408 * Makefile.in: Rebuild deps.
409 (maintainer-clean-subdir): Depend on stamp-h rather than config.h.
410
38bb3485
SB
4112007-07-02 Simon Baldwin <simonb@google.com>
412
413 * argv.c (writeargv): Removed declaration of unused variable.
414
aa2480c5
PB
4152007-06-14 Paolo Bonzini <bonzini@gnu.org>
416
417 * configure.ac: Use ACX_PROG_CC_ALMOST_PEDANTIC too.
418 * configure: Regenerate.
419
3bbd5a19
PB
4202007-06-14 Paolo Bonzini <bonzini@gnu.org>
421
422 * aclocal.m4: Include config/warnings.m4.
423 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS.
424 * configure: Regenerate.
425
abea993f
GK
4262007-06-07 Geoffrey Keating <geoffk@apple.com>
427
428 * configure.ac: Non-default multilibs can be cross compilations.
429 * configure: Regenerate
430
2091ff66
NF
4312007-05-07 Nathan Froyd <froydnj@codesourcery.com>
432
433 * argv.c (writeargv): New function.
434
a2aa65f0
GK
4352007-05-05 Geoffrey Keating <geoffk@apple.com>
436
437 * cp-demangle.c (d_name): Detect local-source-name.
438 (d_prefix): Likewise.
439 (d_unqualified_name): Implement local-source-name.
440
186c60ab
JB
4412007-05-03 Joel Brobecker <brobecker@adacore.com>
442
443 * filename_cmp.c: Replace include of ctype.h by include of
444 safe-ctype.h.
445 (filename_cmp): Use TOLOWER instead of tolower for conversions
446 that are locale-independent.
447 * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
448
017133fd
TN
4492007-04-11 Thomas Neumann tneumann@users.sourceforge.net
450
451 * argv.c: Use ANSI C declarations.
452 * make-relative-prefix.c: Likewise.
453
96a94ff4
JB
4542007-04-06 Joel Brobecker <brobecker@adacore.com>
455
456 * filename_cmp.c (filename_cmp): Improve documentation.
457
320fc205
AS
4582007-04-02 Andreas Schwab <schwab@suse.de>
459
460 * filename_cmp.c: Include "config.h".
461
cde515d9
JB
4622007-03-29 Joel Brobecker <brobecker@adacore.com>
463
464 * filename_cmp.c: New file.
465 * Makefile.in (CFILES): Add filename_cmp.c.
466 (REQUIRED_OFILES): Add filename_cmp.o
467 (filename_cmp.o): New rule.
468 * functions.texi: Regenerate.
469
771904f1
GK
4702007-03-15 Geoffrey Keating <geoffk@apple.com>
471
472 * cp-demangle.c (d_encoding): Exit early on error.
473 (d_pointer_to_member_type): Exit early if cplus_demangle_type
474 returns NULL.
475 (cplus_demangle_type): Likewise.
476 * testsuite/demangle-expected: New testcase.
477
267686a7
BM
4782007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
479
480 * Makefile.in: Add install-pdf target as copied from
481 automake v1.10 rules.
482 * testsuite/Makefile.in: Add dummy install-pdf target.
483
5f81370d 4842007-03-01 Peter Breitenlohner <peb@mppmu.mpg.de>
6819ba36 485 Eric Botcazou <ebotcazou@libertysurf.fr>
5f81370d
PB
486
487 PR other/16513
488 * Makefile.in: Install library under $(MULTIOSDIR), not $(MULTISUBDIR).
489 Install headers in multilib independent location.
490
f86b57e4
DD
4912007-02-26 DJ Delorie <dj@redhat.com>
492
493 * configure.ac: add djgpp-specific results, so we don't have to
494 link during a cross compilation.
495 * configure: Regenerated.
6819ba36 496
15b16eb5
RW
4972007-01-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
498
499 * hex.c: Fix typo.
500 * choose-temp.c: Likewise.
501 * functions.texi: Regenerate.
502
7cf4c53d
VP
5032007-01-31 Vladimir Prus <vladimir@codesourcery.com>
504
505 * pex-common.h (struct pex_obj): New fields
6819ba36 506 stderr_pipe and read_err.
7cf4c53d
VP
507 * pex-common.c (pex_init_common): Initialize
508 stderr_pipe.
509 (pex_run_in_environment): Add error checking
510 for PEX_STDERR_TO_PIPE. Create a pipe
511 for stderr if necessary.
512 (pex_read_err): New.
513 (pex_free): Close read_err.
514 * pexecute.txh: Document changes.
515 * functions.texi: Regenerated.
516
ae452ed1
BE
5172007-01-31 Ben Elliston <bje@au.ibm.com>
518
519 * strsignal.c (psignal): Change type of signo to int.
520 * functions.texi: Regenerate.
521
456cc5cf
SB
5222007-01-29 Simon Baldwin <simonb@google.com>
523
524 * cp-demangle.h (cplus_demangle_operators): External definition
525 suppressed if not building for libstdc++.
526 * cp-demangle.c (__gcclibcxx_demangle_callback): Augmented interface
527 to demangling, provides a malloc-less version of __cxa_demangle.
528 (cplus_demangle_print_callback): Public callback version of
529 cplus_demangle_print.
530 (struct d_growable_string): New growable string structure.
531 (d_growable_string_init): New function, provides support for
532 growable strings separate from print info.
533 (d_growable_string_resize): Likewise.
534 (d_growable_string_append_buffer): Likewise.
535 (d_growable_string_callback_adapter):): Likewise.
536 (d_print_init): New print info initialization function.
537 (d_print_error): Macro replace by inline function.
538 (d_print_saw_error): Likewise.
539 (d_append_char): Likewise.
540 (d_append_buffer): Likewise.
541 (d_append_string): New inline function, replaces the
542 d_append_string_constant macro.
543 (d_flush_buffer): New function, flushes buffer to callback.
544 (d_demangle_callback, is_ctor_or_dtor): Malloc-based fallback
545 for unsupported dynamic arrays replaced by alloca().
546 (d_demangle): Return string length estimating removed.
547 (d_dump): Moved error case handling from call site into function.
548 (d_print_resize): Function removed.
549 (d_print_append_char): Likewise.
550 (d_print_append_buffer): Likewise.
551 (d_print_error): Likewise.
552 (d_print_comp): Added special case handling for Java arrays.
553 (java_demangle_v3): Removed string post-processing for Java arrays,
554 now replaced by special case handling in d_print_comp.
555 (cplus_demangle_v3_callback): Augmented interface to demangling,
556 provides a malloc-less version of cplus_demangle_v3.
557 (java_demangle_v3_callback): Augmented interface to demangling,
558 provides a malloc-less version of java_demangle_v3.
559
7d37bf39
BE
5602007-01-12 Ben Elliston <bje@au.ibm.com>
561
1a8e58a3
BE
562 * pex-unix.c (writeerr): Cast write result to void.
563
4d4f0164
BE
564 * choose-temp.c (choose_temp_base): Check the result of the call
565 to mktemp rather than testing the length of the modified string.
7d37bf39 566
5165f125
GK
5672006-12-20 Geoffrey Keating <geoffk@apple.com>
568
569 * cp-demangle.h: Add comment explaining what to do to avoid
570 overrunning string.
571 (d_check_char): New.
572 (d_next_char): Don't advance past trailing '\0'.
573 * cp-demangle.c (cplus_demangle_mangled_name): Use d_check_char.
574 (d_nested_name): Likewise.
575 (d_special_name): Likewise.
576 (d_call_offset): Likewise.
577 (d_function_type): Likewise.
578 (d_array_type): Likewise.
579 (d_pointer_to_member_type): Likewise.
580 (d_template_param): Likewise.
581 (d_template_args): Likewise.
582 (d_template_arg): Likewise.
583 (d_expr_primary): Likewise.
584 (d_local_name): Likewise.
585 (d_substitution): Likewise.
586 (d_ctor_dtor_name): Use d_advance rather than d_next_char.
587 * testsuite/test-demangle.c: Include sys/mman.h.
588 (MAP_ANONYMOUS): Define.
589 (protect_end): New.
590 (main): Use protect_end.
591 * testsuite/demangle-expected: Add testcases for overrunning
592 the end of the string.
593
334737af 5942006-11-30 Andrew Stubbs <andrew.stubbs@st.com>
6819ba36 595 J"orn Rennecke <joern.rennecke@st.com>
334737af
AS
596
597 PR driver/29931
598 * make-relative-prefix.c (make_relative_prefix_1): New function,
599 broken out of make_relative_prefix. Make link resolution dependent
600 on new parameter.
601 (make_relative_prefix): Use make_relative_prefix_1.
602 (make_relative_prefix_ignore_links): New function.
603
e9903c67
VP
6042006-11-08 Vladimir Prus <vladimir@codesourcery.com>
605
606 * pex-win32.c (no_suffixes): Remove.
607 (std_suffixes): Add "" as first element.
608 (find_executable): Remove detection of already-present
609 extension. Try all suffixes in std_suffixes.
6819ba36 610
36b82060
JB
6112006-11-07 Julian Brown <julian@codesourcery.com>
612
613 * floatformat.c (get_field): Fix segfault with little-endian word
614 order on 64-bit hosts.
615 (put_field): Likewise.
616 (min): Move definition.
617
7445de0a
DS
6182006-10-26 Danny Smith <dannysmith@users.sourceforge.net>
619
620 pex-win32.c (argv_to_cmdline): Replace xmalloc with XNEWVEC.
621 (find_executable): Likewise.
622 (win32_spawn): Cast alloca return to (char**).
623 Replace malloc with XNEWVEC.
624 bcopy.c (bcopy): Add explict casts in assignments.
625
97977a91
BE
6262006-10-25 Ben Elliston <bje@au.ibm.com>
627
628 * pexecute.txh: Wrap pexecute's "flag" argument with @var {..}.
6819ba36 629
b5422ad7
BM
6302006-10-10 Brooks Moses <bmoses@stanford.edu>
631
632 * Makefile.in: Added "pdf", "libiberty.pdf" target support.
633 * testsuite/Makefile.in: Added empty "pdf" target.
634
53e3e587
ILT
6352006-09-22 Ian Lance Taylor <ian@airs.com>
636
637 PR other/29176
638 * cp-demangle.c (d_substitution): Check for overflow when
639 computing substitution index.
640
70aec81b
CV
6412006-08-30 Corinna Vinschen <corinna@vinschen.de>
642
643 * configure.ac: Add case for Mingw as host.
644 * configure: Regenerate.
645
022d4166
ILT
6462006-08-27 Ian Lance Taylor <ian@airs.com>
647
5317e1c7
ILT
648 PR driver/27622
649 * pex-common.h (struct pex_funcs): Add toclose parameter to
650 exec_child field.
651 * pex-common.c (pex_run_in_environment): Pass toclose to
652 exec_child.
653 * pex-djgpp.c (pex_djgpp_exec_child): Add toclose parameter.
654 * pex-unix.c (pex_unix_exec_child): Likewise.
655 * pex-msdos.c (pex_msdos_exec_child): Likewise.
656 * pex-win32.c (pex_win32_exec_child): Likewise.
657
022d4166
ILT
658 PR other/28797
659 * cp-demangle.c (d_pointer_to_member_type): Do add a substitution
660 for a qualified member which is not a function.
661 * testsuite/demangle-expected: Add test case.
662
3050098b
JH
6632006-07-27 Jan Hubicka <jh@suse.cz>
664
665 PR rtl-optimization/28071
666 * hashtab.c (htab_empty): Clear out n_deleted/n_elements;
667 downsize the hashtable.
668
706601d9
PG
6692006-07-04 Peter O'Gorman <peter@pogma.com>
670
671 * Makefile.in: chmod 644 before ranlib during install.
672
239559e7
MS
6732006-06-02 Mark Shinwell <shinwell@codesourcery.com>
674
675 * pex-unix.c (pex_unix_exec_child): Insert cast when assigning
676 to environ.
677
ea60341e
MS
6782006-06-01 Mark Shinwell <shinwell@codesourcery.com>
679
680 * pex-common.c: New function pex_run_in_environment.
681 * pex-common.h: Add environment parameter to exec_child.
682 * pex-msdos.c: Add environment parameter to pex_msdos_exec_child.
683 * pex-djgpp.c: Add environment parameter to pex_djgpp_exec_child.
684 (pex_djgpp_exec_child): Pass environment to child process.
685 * pex-unix.c: Add environment parameter to pex_unix_exec_child.
686 (pex_unix_exec_child): Pass environment to child process.
687 * pex-win32.c: Add environment parameter to pex_win32_exec_child.
688 New function env_compare for comparing VAR=VALUE pairs.
689 (win32_spawn): Assemble environment block and pass to CreateProcess.
690 (spawn_script): Pass environment through to win32_spawn.
691 (pex_win32_exec_child): Pass environment through to spawn_script and
692 win32_spawn.
693 * functions.texi: Regenerate.
694 * pexecute.txh: Document pex_run_in_environment.
695
8967e029
MS
6962006-05-28 Mark Shinwell <shinwell@codesourcery.com>
697
698 * mkstemps.c: Open temporary files in binary mode.
699
824bceb0
AB
7002006-05-12 Anton Blanchard <anton@samba.org>
701
702 * cplus-dem.c (demangle_fund_type): Ensure buf is large enough to
703 hold "int%u_t".
704
9fff6432
JB
7052006-04-24 Julian Brown <julian@codesourcery.com>
706
707 * floatformat.c (floatformat_to_double): Fix (biased) exponent=0 case.
708
8eff378c
JB
7092006-03-29 Jim Blandy <jimb@codesourcery.com>
710
f33a23a0 711 * pex-common.c (pex_input_file, pex_input_pipe): New functions.
8eff378c
JB
712 (pex_init_common): Initialize obj->input_file.
713 (pex_run): Close any file opened by pex_input_file.
f33a23a0
AP
714 * pexecute.txh (pex_input_file, pex_input_pipe): New docs.
715 * pex-common.h (struct pex_obj): New field input_file.
8eff378c 716 (struct pex_funcs): New function ptr fdopenw.
f33a23a0
AP
717 * pex-unix.c (pex_unix_fdopenw): New function.
718 (funcs): List it as our fdopenw function.
719 * pex-win32.c (pex_win32_fdopenw): New function.
720 (funcs): List it as our fdopenw function.
721 * pex-djgpp.c (funcs): Leave fdopenw null.
722 * pex-msdos (funcs): Same.
723 * functions.texi: Regenerated.
8eff378c 724
5ea49f9c
JB
7252006-04-10 Jim Blandy <jimb@codesourcery.com>
726
727 * pex-common.c (temp_file): New function, containing guts of
728 pex-style temporary file name generation.
729 (pex_run): Use it.
730
cf61af07
CD
7312006-04-06 Carlos O'Donell <carlos@codesourcery.com>
732
733 * Makefile.in: Add install-html, install-html-am, and
6819ba36
EB
734 install-html-recursive targets. Define mkdir_p and
735 NORMAL_INSTALL.
cf61af07
CD
736 * configure.ac: AC_SUBST datarootdir, docdir, htmldir.
737 * configure: Regenerate.
738 * testsuite/Makefile.in: Add install-html and html targets.
739
bd9e7c5c
MM
7402006-03-31 Mark Mitchell <mark@codesourcery.com>
741
742 * pex-win32.c (<errno.h>): Include.
743 (fix_argv): Remove.
744 (argv_to_cmdline): New function.
745 (std_suffixes): New variable.
746 (no_suffixes): Likewise.
747 (find_executable): New function.
748 (win32_spawn): Likewise.
749 (spawn_script): Use win32_spawn instead of _spawnv[p].
750 (pex_win32_exec_child): Replace MSVCRT calls with Win32 API calls.
751 (pex_win32_wait): Likewise.
752
58df1c41
JB
7532006-03-24 Jim Blandy <jimb@codesourcery.com>
754
755 * pex-common.c (pex_run): Simplify output name handling.
756
7d898fa2
JB
7572006-03-12 Jim Blandy <jimb@red-bean.com>
758
759 * pex-common.h (struct pex_obj): Doc fixes.
760
ddbbee51
JB
7612006-03-11 Jim Blandy <jimb@red-bean.com>
762
763 * functions.texi: Regenerate.
764
f49712d8
BE
7652006-02-21 Ben Elliston <bje@au.ibm.com>
766
767 * pexecute.c (pwait): Syntax fix for previous change.
768
8f629dc5
UP
7692006-02-17 Uttam Pawar <uttamp@us.ibm.com>
770
771 * pexecute.c (pwait): Free vector pointer.
772 * partition.c (partition_print): Free class_elements pointer.
773
12c61ac3
RS
7742006-02-11 Roger Sayle <roger@eyesopen.com>
775 R. Scott Bailey <scott.bailey@eds.com>
776 Bill Northcott <w.northcott@unsw.edu.au>
777
778 PR bootstrap/16787
779 * floatformat.c: Include <float.h> where available.
780 (NAN): Use value of DBL_QNAN if defined, and NAN isn't.
781
e8f9ec35
GDR
7822006-01-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
783
784 * configure.ac: Add -Wc++-compat to ac_libibety_warn_cflags where
6819ba36 785 supported.
e8f9ec35
GDR
786 * configure: Regenerated.
787
974c2c56
CD
7882006-01-20 Carlos O'Donell <carlos@codesourcery.com>
789
790 * testsuite/Makefile.in: Add test-expandargv test.
791 * testsuite/test-expandargv.c: New test.
792 * argv.c (expandargv): Check for errors with ferror,
793 rather than just by looking at return value from fread.
794
573b07c7
GDR
7952005-12-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
796
797 * floatformat.c (floatformat_i387_ext_is_valid): Use explicit cast
798 to convert from "from".
799 (floatformat_to_double): Likewise.
800 (floatformat_from_double): Use explicit cast to convert from "to".
801
92aed1cb
TL
8022005-12-10 Terry Laurenzo <tlaurenzo@gmail.com>
803
804 PR java/9861
805 * cp-demangle.c (d_bare_function_type): Recognize new 'J' qualifer
806 and include return type when found.
807 (d_print_comp)[DEMANGLE_COMPONENT_FUNCTION_TYPE]: Add
808 conditional logic to change printing order of return type.when
809 the DMGL_RET_POSTFIX option is present.
810 (java_demangle_v3): Add DMGL_RET_POSTFIX option to d_demangle
811 call.
812 * testsuite/test-demangle.c (main): Recognize option --ret-postfix
813 * testsuite/demangle-expected: Test cases to verify extended encoding.
814 Updated comment to document --ret-postfix option.
6819ba36 815
73a08f87
RG
8162005-11-06 Richard Guenther <rguenther@suse.de>
817
818 * splay-tree.c (rotate_left): New function.
819 (rotate_right): Likewise.
820 (splay_tree_splay_helper): Remove.
821 (splay_tree_splay): Re-implement.
822
0432a5de
MK
8232005-10-31 Mark Kettenis <kettenis@gnu.org>
824
825 * floatformat.c (floatformat_vax_aingle, floatformat_vax_double):
826 New variables.
827
cb120852
MM
8282005-10-07 Mark Mitchell <mark@codesourcery.com>
829
830 * at-file.texi: Fix typo.
831
36dd6d31
MM
8322005-10-03 Mark Mitchell <mark@codesourcery.com>
833
834 * at-file.texi: New file.
835
affbb54a
MM
8362005-09-27 Mark Mitchell <mark@codesourcery.com>
837
838 * argv.c (expandargv): Do not use xmalloc_failed.
839
97393d0a
MM
8402005-09-26 Mark Mitchell <mark@codesourcery.com>
841
842 * argv.c (safe-ctype.h): Include it.
843 (ISBLANK): Remove.
844 (stdio.h): Include.
845 (buildargv): Use ISSPACE instead of ISBLANK.
846 (expandargv): New function.
240921b9 847 * Makefile.in: Regenerated.
97393d0a 848
0d676b85
CF
8492005-09-14 Christopher Faylor <cgf@timesys.com>
850
851 * pex-win32.c: Include "windows.h".
852 (backslashify): New function.
853 (fix_argv): Use backslashify to convert path to windows format.
854 Allocate one more place in new argv for potential executable from '#!'
855 parsing.
856 (tack_on_executable): New function. Conditional on USE_MINGW_MSYS
857 (openkey): Ditto.
858 (mingw_rootify): Ditto.
859 (msys_rootify): Ditto.
860 (spawn_script): New function.
861 (pex_win32_exec_child): Save translated argv in newargv. Pass to
862 spawn_script if spawnv* fails.
863 (main): New function. Conditional on MAIN. Useful for testing.
864
e89b6c1c
MK
8652005-08-17 Mark Kettenis <kettenis@gnu.org>
866
867 * floatformat.c (floatformat_always_valid): Change type of last
868 argument to `void *'.
869 (floatformat_i387_ext_is_valid): Likewise.
870 (floatformat_to_double): Change type of second argument to `const
871 void *'.
872 (floatformat_from_double): Change type of last argument to `void
873 *'.
874 (floatformat_is_valid): Change type of last argument to `const
875 void *'.
876 (ieee_test): Remove redundant casts.
877
0cbe2a68
KC
8782005-08-17 Kelley Cook <kcook@gcc.gnu.org>
879
880 * strverscmp.c: Update FSF address.
881 * testsuite/Makefile.in: Likewise.
882 * testsuite/test-demangle.c: Likewise.
883 * testsuite/test-pexecute.c: Likewise.
884
ca1cc111
KG
8852005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
886
887 * getopt.c: Include ansidecl.h before system headers.
888
f4f94d6b
BE
8892005-07-22 Ben Elliston <bje@gnu.org>
890
891 * getopt.c: Include "ansidecl.h".
892 (_getopt_initialize): Mark argc and argv parameters as unused.
893
8cfb7ab7
BE
8942005-07-22 Ben Elliston <bje@gnu.org>
895
896 * regex.c (regcomp): Change type of `i' from unsigned to int.
897
b4db223f
BE
8982005-07-22 Ben Elliston <bje@gnu.org>
899
900 Recover patch lost in the sourceware repository:
901 2005-07-09 Ben Elliston <bje@au.ibm.com>
902 * memcpy.c: Remove ANSI_PROTOTYPES conditional code.
903 * memmove.c: Likewise.
904 * objalloc.c: Likewise.
905
8b82b724
BE
9062005-07-22 Ben Elliston <bje@gnu.org>
907
908 * configure.ac: Check for a getopt(3) declaration.
909 * configure, config.in: Regenerate.
910
7c22afcb
BE
9112005-07-15 Ben Elliston <bje@au.ibm.com>
912
913 * regex.c (TRANSLATE): Cast rhs of ternary expression to char.
914
72f93778
BE
9152005-07-12 Ben Elliston <bje@au.ibm.com>
916
917 * floatformat.c (floatformat_to_double): Add a comment about a
918 potential source of warnings when compiling this file.
919
6c5844d2
BE
9202005-07-12 Ben Elliston <bje@au.ibm.com>
921
922 * pexecute.c (pexecute): Cast string litrals to char *.
923 * regex.c (re_comp): Cast a call to gettext() to char *.
924
769b009e
KC
9252005-07-07 Kelley Cook <kcook@gcc.gnu.org>
926
927 * config.table: Delete file. Move former contents into ...
928 * configure.ac: ... here and escape any brackets for m4.
929 * Makefile.in (config.status): Remove dependency on config.table.
930 * configure: Regenerate.
931
f379ddd1
KC
9322005-07-07 Kelley Cook <kcook@gcc.gnu.org>
933
934 * config.in: Regenerate for 6/20 change.
935
6cbfa10e
SE
9362005-07-03 Steve Ellcey <sje@cup.hp.com>
937
938 PR other/13906
939 * md5.c (md5_process_bytes): Check alignment.
940
8c7262af
ILT
9412005-07-01 Ian Lance Taylor <ian@airs.com>
942
943 PR other/22268
944 * cp-demangle.c (d_expr_primary): Don't run off the end of the
945 string while looking for the end of a literal value.
946 * testsuite/demangle-expected: Add test case.
947
a3648cfc
DB
9482005-06-30 Daniel Berlin <dberlin@dberlin.org>
949
950 * hashtab.c (EMPTY_ENTRY): Moved and renamed.
6819ba36 951 (DELETED_ENTRY): Ditto.
a3648cfc 952
83fbfe42
GK
9532005-06-20 Geoffrey Keating <geoffk@apple.com>
954
955 * strverscmp.c: New.
956 * Makefile.in (CFILES): Add strverscmp.c.
957 (CONFIGURED_OFILES): Add strverscmp.o.
958 (strverscmp.o): New rule.
959 (stamp-functions): Add $(srcdir) to files in source directory.
960 * configure.ac (funcs): Add strverscmp.
961 (AC_CHECK_FUNCS): Add strverscmp.
962 * configure: Regenerate.
963 * functions.texi: Regenerate.
964
ddcf783b
EZ
9652005-05-28 Eli Zaretskii <eliz@gnu.org>
966
967 * configure.ac: Add snprintf and vsnprintf to AC_CHEK_DECLS.
968 * config.in, configure: Regenerate.
969
15da2806
RH
9702005-05-25 Richard Henderson <rth@redhat.com>
971
972 * cp-demangle.c (d_dump): Handle DEMANGLE_COMPONENT_HIDDEN_ALIAS.
973 (d_make_comp, d_print_comp): Likewise.
974 (d_special_name): Generate one.
975 * testsuite/demangle-expected: Add a hidden alias test.
976
d7cf8390
GDR
9772005-05-24 Gabriel Dos Reis <gdr@integrable-solutions.net>
978
979 * configure.ac: Check declarations for calloc(), getenv(),
ddcf783b 980 malloc(), realloc() and sbrk().
d7cf8390
GDR
981 * config.in: Regenerate.
982 * configure: Likewise.
983
984 * alloca.c (C_alloca): Change "new" to "new_storage". Use XNEWVEC
985 instead of xmalloc.
986 * choose-temp.c (choose_temp_base): Use XNEWVEC instea od xmalloc.
987 * concat.c (liiberty_concat_ptr): Surround definition with an
988 extern "C" block, if __cplusplus.
989 (concat): Use XNEWVEC instead of xmalloc.
990 (reconcat): Likewise.
991 * cp-demangle.c (struct d_print_template): Rename member
ddcf783b 992 "template" to "template_decl". Adjust use throughout the file.
d7cf8390
GDR
993 (d_print_resize): Properly cast return value of realloc().
994 (cplus_demangle_print): Same for malloc().
995 (d_demangle): Likewise.
996 * cp-demint.c (cplus_demangle_fill_builtin_type): Rename parameter
997 "typename" to "type_name".
998 * cplus-dem.c (grow_vect): Use XRESIZEVEC instead of xrealloc().
999 (work_stuff_copy_to_from): Use XNEWVEC insteand of xmalloc().
1000 (demangle_template_value_parm): Likewise.
1001 (demangle_template): Likewise.
1002 (recursively_demangle): Likewise.
1003 (do_hpacc_template_literal): Likewise.
1004 (do_arg): Likewise.
1005 (remember_type): Likewise.
1006 (remember_Ktype): Likewise.
1007 (register_Btype): Likewise.
1008 (string_need): Use XRESIZEVEC instead of xrealloc().
1009 * dyn-string.c (dyn_string_init): Use XNEWVEC.
1010 (dyn_string_new): Use XNEW.
1011 (dyn_string_resize): Use XRESIZEVEC.
1012 * fnmatch.c (fnmatch): Rename local variable "not" to "negate".
1013 * getopt.c (getenv): Declare only if !__cplusplus and !getenv.
1014 Otherwise include <stdlib.h>.
1015 (exchange): Cast return value of malloc().
1016 * hashtab.c (htab_size): Define as both macro and non-inline
1017 function.
1018 (htab_elements): Likewise.
1019 * getpwd.c (getpwd): Use XNEWVEC.
1020 (htab_create_alloc_ex): Use C90 prototype-style.
1021 * lrealpath.c (lrealpath): Appropriately cast return value of
ddcf783b 1022 malloc().
d7cf8390
GDR
1023 * make-relative-prefix.c (save_string): Likewise.
1024 * make-temp-file.c (try_dir): Rename from "try". Adjust use in
1025 the file.
1026 (choose_tmpdir): Use XNEWVEC.
1027 * mkstemps.c (mkstemps): Rename parameter "template" to "pattern".
1028 * pex-common.c (pex_init_common): Use XNEW.
1029 (pex_add_remove): Use XRESIZEVEC.
1030 (pex_run): Likewise.
1031 (pex_get_status_and_time): Likewise.
1032 * pex-djgpp.c (pex_djgpp_exec_child): Likewise.
1033 * pex-msdos.c (pex_init): Use XNEW.
1034 (pex_msdos_exec_child): Likewise.
1035 (pex_msdos_exec_child): Use XRESIZEVEC.
1036 * pex-unix.c (pex_wait): Use XNEW.
1037 * pex-win32.c (fix_argv): Use XNEWVEC.
1038 * pexecute.c (pwait): Likewise.
1039 * setenv.c (setenv): Properly cast return value of malloc().
1040 * sigsetmask.c (sigsetmask): Rename local variables "old" and
1041 "new" to "old_sig" and "new_sig".
1042 * sort.c (main): Use XNEWVEC.
1043 * spaces.c (spaces): Cast return value of malloc().
1044 * strndup.c (strndup): Likewise.
1045 * ternary.c (ternary_insert): Use XNEW.
1046 * xmalloc.c (malloc, realloc, calloc, sbrk): Surround declaration
1047 with an extern "C" block if __cplusplus.
1048 * xstrdup.c (xstrdup): Cast return value of memcpy().
1049 * xstrerror.c (strerror): Enclose declaration in an extern "C"
1050 block if __cplusplus.
1051 * xstrndup.c (xstrndup): Use XNEW. Cast return value of memcpy().
1052
99e4078f
AJ
10532005-05-16 Andreas Jaeger <aj@suse.de>
1054
1055 * getpwd.c: Remove unneeded prototype getcwd and move getwd so
1056 that it's only declared if needed.
1057
1058 * getopt1.c: Change order of includes so that __GNU_LIBRARY__ is
1059 defined.
1060
766643be
AJ
10612005-05-15 Andreas Jaeger <aj@suse.de>
1062
1063 * functions.texi: Regenerated.
1064
2b836651
EZ
10652005-05-15 Eli Zaretskii <eliz@gnu.org>
1066
1067 * pexecute.txh: Enclose multi-word data types in @deftypefn in
1068 braces. Minor wording fixes. Use --- for em-dash. Use
1069 @enumerate in enumerated lists.
1070
d842a495
AJ
1071 * fopen_unlocked.c: Enclose multi-word data types in @deftypefn in
1072 braces.
1073
5db1c531
EZ
10742005-05-11 Eli Zaretskii <eliz@gnu.org>
1075
1076 * pex-djgpp.c: Include string.h, fcntl.h, unistd.h, and
1077 sys/stat.h.
1078 (pex_init): Fix last argument to pex_init_common.
1079 (pex_djgpp_exec_child): Remove leading underscore from _open,
1080 _dup, _dup2, _close, and _spawnv/_spawnvp. Replace `program',
1081 which is undeclared, with `executable', which was unused. Remove
1082 unused variable `e'. Fix casting of last arg to spawnv/spawnvp.
1083 (pex_djgpp_wait): Declare arguments with ATTRIBUTE_UNUSED.
1084
bd7d50f8
PB
10852005-05-11 Paul Brook <paul@codesourcery.com>
1086
1087 * Makefile.in: Regenerate dependencies.
1088
ee58dffd
NC
10892005-05-10 Nick Clifton <nickc@redhat.com>
1090
1091 * Update the address and phone number of the FSF organization in
1092 the GPL notices in the following files:
1093 COPYING.LIB, Makefile.in, _doprnt.c, argv.c, asprintf.c,
1094 choose-temp.c, clock.c, concat.c, copying-lib.texi, cp-demangle.c,
1095 cp-demangle.h, cp-demint.c, cplus-dem.c, dyn-string.c, fdmatch.c,
1096 fibheap.c, floatformat.c, fnmatch.c, fopen_unlocked.c,
1097 gather-docs, getopt.c, getopt1.c, getruntime.c, hashtab.c, hex.c,
1098 lbasename.c, lrealpath.c, maint-tool, make-relative-prefix.c,
1099 make-temp-file.c, md5.c, mempcpy.c, mkstemps.c, objalloc.c,
1100 obstack.c, partition.c, pex-common.c, pex-common.h, pex-djgpp.c,
1101 pex-msdos.c, pex-one.c, pex-unix.c, pex-win32.c, pexecute.c,
1102 physmem.c, putenv.c, regex.c, safe-ctype.c, setenv.c, snprintf.c,
1103 sort.c, spaces.c, splay-tree.c, stpcpy.c, stpncpy.c, strndup.c,
1104 strtod.c, ternary.c, unlink-if-ordinary.c, vasprintf.c,
1105 vsnprintf.c, vsprintf.c, xexit.c, xmalloc.c, xstrndup.c
1106
c1300f45
KC
11072005-05-06 Kelley Cook <kcook@gcc.gnu.org>
1108
1109 * aclocal.m4 (AC_DEFINE_NOAUTOHEADER): Remove.
1110 * configure.ac: Replace any AC_DEFINE_NOAUTOHEADER with AC_DEFINE.
1111 * configure: Regenerate.
1112
fbc1bc09
KC
11132005-05-06 Kelley Cook <kcook@gcc.gnu.org>
1114
1115 * configure.ac: Use AC_C_BIGENDIAN instead of AC_C_BIGENDIAN_CROSS.
1116 Use AC_CHECK_SIZEOF instead of AC_COMPILE_CHECK_SIZEOF.
1117 * aclocal.m4: Don't include accross.m4.
1118 * configure, config.in: Regenerate.
1119
32e82bd8
KG
11202005-04-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121
1122 * fopen_unlocked.c (unlock_std_streams): New.
2b836651 1123
32e82bd8
KG
1124 * functions.texi: Regenerate.
1125
6feaa084
KG
11262005-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1127
1128 * fopen_unlocked.c (unlock_stream): New.
1129 Consolidate unlocking code into a helper function.
1130
1131 * functions.texi: Regenerate.
1132
3c60ae5a
GDR
11332005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1134
1135 * asprintf.c: Include config.h.
1136 * basename.c: Likewise.
1137 * fdmatch.c: Likewise.
1138 * hex.c: Likewise.
1139 * lbasename.c: Likewise.
1140 * spaces.c: Likewise.
1141 * xatexit.c:Likewise.
2b836651 1142 * configure.ac: Do check declarations for basename, ffs, asprintf
3c60ae5a
GDR
1143 and vasprintf for real.
1144 * configure: Regenerate.
1145
0e0af50b
GDR
11462005-04-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
1147
2b836651 1148 * argv.c (dupargv): Allocate space of argv[argc], not
fec02a2d 1149 sizeof(char *) of that amount. Cast result to char *.
0e0af50b 1150
4cf88ac3
GDR
11512005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1152
1153 * regex.c (wcs_re_match_2_internal, byte_re_match_2_internal):
2b836651 1154 Replace not with negate.
4cf88ac3 1155
1ff7682c
GDR
11562005-04-12 Gabriel Dos Reis <gdr@integrable-solutions.net>
1157
1158 * configure.ac: Check declarations for basename, ffs, asprintf,
1159 vasprintf.
1160 * configure: Regenerate.
1161 * config.in: Likewise.
1162
78a7dc90
KG
11632005-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1164
1165 * Makefile.in (CFILES): Add fopen_unlocked.c.
1166 (REQUIRED_OFILES): Add ./fopen_unlocked.o.
1167 Regenerate dependencies.
1168
1169 * configure.ac: Check for stdio_ext.h and __fsetlocking.
1170
1171 * fopen_unlocked.c: New file.
1172
1173 * functions.texi, configure, config.in: Regenerate.
1174
2f84c996
ILT
11752005-04-04 Ian Lance Taylor <ian@airs.com>
1176
1177 * testsuite/test-pexecute.c (TEST_PEX_RUN): Move variable
1178 declaration before statement.
1179
f9a9ac80
KG
11802005-04-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1181
29138797
KG
1182 * bcmp.c: Fix warnings and implement using memcmp.
1183 * bcopy.c: Fix warnings.
1184 * bzero.c: Fix warnings and implement using memset.
1185
f9a9ac80
KG
1186 * configure.ac (ac_libiberty_warn_cflags): Add -Wwrite-strings
1187 -Wstrict-prototypes.
1188 * configure, config.in: Regenerate.
1189
1190 * bsearch.c, index.c, rindex.c, strstr.c, strtol.c, waitpid.c: Fix
1191 warnings and reconcile interfaces with relevant standards.
1192
23ea4f4a
ILT
11932005-04-02 Ian Lance Taylor <ian@airs.com>
1194
1195 * cp-demangle.c: Update copyright.
1196
1e3a2100
JM
11972005-03-31 Joseph S. Myers <joseph@codesourcery.com>
1198
1199 * gettimeofday.c: Add "Supplemental" to @deftypefn.
1200 * functions.texi: Regenerate.
1201
a584cf65
ILT
12022005-03-28 Ian Lance Taylor <ian@airs.com>
1203
1204 * pex-common.c: New file.
1205 * pex-one.c: New file.
1206 * pexecute.c: New file.
1207 * pex-common.h: Include <stdio.h>.
1208 (struct pex_obj): Define.
1209 (struct pex_funcs): Define.
1210 (pex_init_common): Declare.
1211 * pex-unix.c: Rewrite.
1212 * pex-win32.c: Rewrite.
1213 * pex-djgpp.c: Rewrite.
1214 * pex-msdos.c: Rewrite.
1215 * testsuite/text-pexecute.c: New file.
1216 * pexecute.txh: Rewrite.
1217 * configure.ac: Check for wait3 and wait4. Set CHECK to
1218 really-check rather than check-cplus-dem.
1219 * functions.texi: Rebuild.
1220 * Makefile.in: Rebuild dependencies.
1221 (CFILES): Add pexecute.c, pex-common.c, pex-one.c.
1222 (REQUIRED_OFILES): Add pexecute.o, pex-common.o, pex-one.o.
1223 * testsuite/Makefile.in (really-check): New target.
1224 (check-pexecute, test-pexecute): New targets.
1225 * configure: Rebuild.
1226
93764b5b 12272005-03-28 Mark Kettenis <kettenis@gnu.org>
2b836651 1228
93764b5b
MK
1229 * unlink-if-ordinary.c: Include <sys/types.h>.
1230
93079c81
GDR
12312005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1232
1233 Convert libiberty to use ISO C prototype style 7/n.
1234 * regex.c (PARAMS): Remove definition.
1235 (PREFIX): Unconditionaly define using ISO C ## operator.
2b836651 1236 (init_syntax_once, extract_number, extract_number_and_incr,
93079c81 1237 print_fastmap, print_partial_compiled_pattern,
2b836651 1238 print_compiled_pattern, print_double_string, printchar,
93079c81
GDR
1239 convert_mbs_to_wcs, re_set_syntax, regex_grow_registers,
1240 regex_compile, store_op1, store_op2, insert_op1, insert_op2,
2b836651
EZ
1241 at_begline_loc_p, at_endline_p, group_in_compile_stack,
1242 insert_space, wcs_compile_range, byte_compile_range,
1243 truncate_wchar, re_compile_fastmap, re_compile_fastmap,
1244 re_set_registers, re_search, re_search_2, re_search_3, re_match,
93079c81
GDR
1245 re_match_2, count_mbs_length, wcs_re_match_2_internal,
1246 byte_re_match_2_internal, group_match_null_string_p,
1247 alt_match_null_string_p, common_op_match_null_string_p,
2b836651 1248 bcmp_translate, re_compile_pattern, re_comp, re_exec, regcomp,
93079c81
GDR
1249 regexec, regerror, regfree): Use ISO C prototype style.
1250 * partition.c: (elem_compare): Likewise.
1251 * cp-demangle.c (print_usage): Likewise.
1252
885f2199
GDR
12532005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1254
1255 Convert libiberty to use ISO C prototype style 5/n.
1256 * random.c (srandom, initstate, setstate, random): Use ISO C
2b836651 1257 prototypes.
885f2199
GDR
1258 * putenv.c (putenv): Likewise.
1259 * physmem.c (physmem_available, physmem_total, main): Likewise.
1260 * pex-win32.c (fix_argv, pexecute, pwait): Likewise.
1261 * pex-unix.c (pexecute, pwait): Likewise.
1262 * pex-msdos.c (pexecute, pwait): Likewise.
1263 * pex-djgpp.c (pexecute, pwait): Likewise.
2b836651 1264 * partition.c (partition_new, partition_delete, partition_union)
885f2199 1265 (elem_compare, partition_print): Likewise.
2b836651
EZ
1266 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
1267 _obstack_allocated_p, _obstack_free, obstack_free,
885f2199
GDR
1268 _obstack_memory_used, print_and_abort, obstack_next_free,
1269 obstack_object_size, obstack_base): Likewise. Remove codes
1270 predicated on !defined(__STDC__).
2b836651 1271 * objalloc.c (objalloc_create, _objalloc_alloc, objalloc_free,
885f2199
GDR
1272 objalloc_free_block): Use ISO C prototypes.
1273 * mkstemps.c (mkstemps): Likewise.
1274 * memset.c (memset): Likewise.
1275 * mempcpy.c (mempcpy): Likewise.
1276 * rename.c (rename): Likewise.
1277 * rindex.c (rindex): Likewise.
1278 * setenv.c (setenv, unsetenv): Likewise.
1279 * sigsetmask.c (sigsetmask): Likewise.
1280 * snprintf.c (snprintf): Likewise.
2b836651 1281 * sort.c (sort_pointers, xmalloc): Likewise.
885f2199 1282 * spaces.c (spaces): Likewise.
2b836651
EZ
1283 * splay-tree.c (splay_tree_delete_helper,
1284 splay_tree_splay_helper, splay_tree_splay,
885f2199 1285 splay_tree_foreach_helper, splay_tree_xmalloc_allocate,
2b836651 1286 splay_tree_new, splay_tree_xmalloc_allocate,
885f2199 1287 splay_tree_new_with_allocator, splay_tree_delete,
2b836651
EZ
1288 splay_tree_insert, splay_tree_remove, splay_tree_lookup,
1289 splay_tree_max, splay_tree_min, splay_tree_predecessor,
1290 splay_tree_successor, splay_tree_foreach,
885f2199
GDR
1291 splay_tree_compare_ints, splay_tree_compare_pointers): Likewise.
1292 * stpcpy.c (stpcpy): Likewise.
1293 * stpncpy.c (stpncpy): Likewise.
1294 * strcasecmp.c (strcasecmp): Likewise.
1295 * strchr.c (strchr): Likewise.
1296 * strdup.c (strdup): Likewise.
1297
7a17ef5e
GDR
12982005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1299
1300 Convert libiberty to use ISO C prototype style 6/n.
2b836651 1301 * strerror.c (init_error_tables, errno_max, strerror, strerrno,
7a17ef5e
GDR
1302 strtoerrno, main): Use ISO C prototype style.
1303 * strncasecmp.c (strncasecmp): Likewise.
1304 * strncmp.c (strncmp): Likewise.
1305 * strndup.c (strndup): Likewise.
1306 * strrchr.c (strrchr): Likewise.
2b836651 1307 * strsignal.c (init_signal_tables, signo_max, strsignal,
7a17ef5e
GDR
1308 strsigno, strtosigno, psignal, main): Likewise.
1309 * strstr.c (strstr): Likewise.
1310 * strtod.c (strtod, atof): Likewise.
1311 * strtol.c (strtol): Likewise.
1312 * strtoul.c (strtoul): Likewise.
2b836651 1313 * ternary.c (ternary_insert, ternary_cleanup, ternary_search,
7a17ef5e
GDR
1314 ternary_recursivesearch): Likewise.
1315 * tmpnam.c (tmpnam): Likewise.
1316 * unlink-if-ordinary.c (unlink_if_ordinary): Likewise.
1317 * vasprintf.c (int_vasprintf, vasprintf, checkit, main): Likewise.
1318 * vfork.c (vfork): Likewise.
1319 * vfprintf.c (vfprintf): Likewise.
1320 * vprintf.c (vprintf): Likewise.
1321 * vsnprintf.c (vsnprintf, checkit, main): Likewise.
1322 * vsprintf.c (vsprintf): Likewise.
1323 * waitpid.c (waitpid): Likewise.
1324 * xatexit.c (xatexit, xatexit_cleanup): Likewise.
1325 * xexit.c (xexit): Likewise.
2b836651 1326 * xmalloc.c (xmalloc_set_program_name, xmalloc_failed, xmalloc,
7a17ef5e
GDR
1327 xcalloc, xrealloc): Likewise.
1328 * xmemdup.c (xmemdup): Likewise.
1329 * xstrdup.c (xstrdup): Likewise.
1330 * xstrerror.c (xstrerror): Likewise.
1331 * xstrndup.c (xstrndup): Likewise.
1332
1134b11d
AJ
13332005-03-27 Andreas Jaeger <aj@suse.de>
1334
1335 * configure.ac (ac_c_preproc_warn_flag): Remove -Wtraditional
1336 flags.
1337 * configure: Regenerated.
1338
e78410c1
GDR
13392005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1340
1341 * getopt1.c (getopt_long_only): Fix thinko.
1342
6da879de
GDR
13432005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1344
1345 Convert libiberty to use ISO C prototype style 4/n.
1134b11d
AJ
1346 * hashtab.c (higher_prime_index, hash_pointer, eq_pointer,
1347 htab_size, htab_elements, htab_mod_1, htab_mod, htab_mod_m2,
1348 htab_create_alloc, htab_set_functions_ex, htab_create,
1349 htab_try_create, htab_delete, htab_empty,
1350 find_empty_slot_for_expand, htab_expand, htab_find_with_hash,
1351 htab_find, htab_find_slot_with_hash, htab_find_slot,
1352 htab_remove_elt, htab_remove_elt_with_hash, htab_clear_slot,
1353 htab_traverse_noresize, htab_traverse, htab_collisions,
6da879de
GDR
1354 htab_hash_string, iterative_hash): Use ISO C prototype.
1355 * hex.c (hex_init): Likewise.
1356 * index.c (index): Likewise.
1134b11d 1357 * insque.c (insque, remque): Likewise.
6da879de
GDR
1358 * lbasename.c (lbasename): Likewise.
1359 * lrealpath.c (lrealpath): Likewise.
1134b11d 1360 * make-relative-prefix.c (save_string, split_directories,
6da879de 1361 free_split_directories, make_relative_prefix): Likewise.
1134b11d
AJ
1362 * make-temp-file.c (try, choose_tmpdir, make_temp_file): Likewise.
1363 * md5.c (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
6da879de
GDR
1364 md5_buffer, md5_process_bytes, md5_process_block): Likewise.
1365 * memchr.c (memchr): Likewise.
1366 * memcpy.c (memcpy): Likewise.
1367 * memmove.c (memmove): Likewise.
1368 * gettimeofday.c (gettimeofday): Likewise.
1369 * getruntime.c (get_run_time): Likewise.
1370 * getpwd.c (getpwd, getpwd): Likewise.
1371 * getpagesize.c (getpagesize): Likewise.
1372 * getopt1.c (getopt_long, getopt_long_only, main): Likewise.
1134b11d 1373 * getopt.c (my_index, exchange, _getopt_initialize,
6da879de
GDR
1374 _getopt_internal, getopt, main): Likewise.
1375 * getcwd.c (getcwd): Likewise.
1376 * fnmatch.c (fnmatch): Likewise.
1134b11d
AJ
1377 * floatformat.c (floatformat_always_valid,
1378 floatformat_i387_ext_is_valid, get_field, floatformat_to_double,
1379 put_field, floatformat_from_double, floatformat_is_valid,
6da879de 1380 ieee_test, main): Likewise.
1134b11d
AJ
1381 * fibheap.c (fibheap_new, fibnode_new, fibheap_compare,
1382 fibheap_comp_data, fibheap_insert, fibheap_min, fibheap_min_key,
1383 fibheap_union, fibheap_extract_min, fibheap_replace_key_data,
1384 fibheap_replace_key, fibheap_replace_data, fibheap_delete_node,
1385 fibheap_delete, fibheap_empty, fibheap_extr_min_node,
1386 fibheap_ins_root, fibheap_rem_root, fibheap_consolidate,
1387 fibheap_link, fibheap_cut, fibheap_cascading_cut,
6da879de
GDR
1388 fibnode_insert_after, fibnode_remove): Likewise.
1389 * ffs.c (ffs): Likewise.
1390 * fdmatch.c (fdmatch): Likewise.
1134b11d
AJ
1391 * dyn-string.c (dyn_string_init, dyn_string_new,
1392 dyn_string_delete, dyn_string_release, dyn_string_resize,
1393 dyn_string_clear, dyn_string_copy, dyn_string_copy_cstr,
1394 dyn_string_prepend, dyn_string_prepend_cstr, dyn_string_insert,
1395 dyn_string_insert_cstr, dyn_string_insert_char,
1396 dyn_string_append, dyn_string_append_cstr,
6da879de 1397 dyn_string_append_char, dyn_string_substring, dyn_string_eq):
1134b11d 1398 Likewise.
6da879de 1399
500d7701
GDR
14002005-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1401
1402 Convert libiberty to use ISO C prototype style 3/n.
1134b11d
AJ
1403 * cplus-dem.c (set_cplus_marker_for_demangling, consume_count,
1404 consume_count_with_underscores, code_for_qualifier,
1405 qualifier_string, demangle_qualifier, cplus_demangle_opname,
1406 cplus_mangle_opname, cplus_demangle_set_style,
1407 cplus_demangle_name_to_style, cplus_demangle, grow_vect,
500d7701 1408 ada_demangle, internal_cplus_demangle, squangle_mop_up,
1134b11d
AJ
1409 work_stuff_copy_to_from, delete_non_B_K_work_stuff,
1410 delete_work_stuff, mop_up, demangle_signature,
1411 demangle_method_args, demangle_template_template_parm,
1412 demangle_expression, demangle_integral_value,
1413 demangle_real_value, demangle_template_value_parm,
1414 demangle_template, arm_pt, demangle_arm_hp_template,
1415 demangle_class_name, demangle_class, iterate_demangle_function,
1416 demangle_prefix, gnu_special, recursively_demangle, arm_special,
1417 demangle_qualified, get_count, do_type, demangle_fund_type,
1418 do_hpacc_template_const_value, do_hpacc_template_literal,
1419 snarf_numeric_literal, do_arg, remember_type, remember_Ktype,
1420 register_Btype, remember_Btype, forget_B_and_K_types,
1421 forget_types, demangle_args, demangle_nested_args,
1422 demangle_function_name, string_need, string_delete, string_init,
1423 string_clear, string_empty, string_append, string_appends,
500d7701
GDR
1424 string_appendn, string_prepend, string_prepends, string_prependn,
1425 string_append_template_idx): Use ISO C prootype style.
1426 * cp-demint.c (cplus_demangle_fill_component,
1134b11d 1427 cplus_demangle_fill_builtin_type, cplus_demangle_fill_operator,
500d7701
GDR
1428 cplus_demangle_v3_components): Likewise.
1429
9486db4f
GDR
14302005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1431
1432 Convert libiberty to use ISO C prototype style 2/n.
1433 * cp-demangle.h: Remove uses of PARAMS.
1434 * cp-demangle.c: Likewise.
1134b11d
AJ
1435 (d_dump, cplus_demangle_fill_name,
1436 cplus_demangle_fill_extended_operator, cplus_demangle_fill_ctor,
1437 cplus_demangle_fill_dtor, d_make_empty, d_make_comp, d_make_name,
1438 d_make_builtin_type, d_make_operator, d_make_extended_operator,
1439 d_make_ctor, d_make_dtor, d_make_template_param, d_make_sub,
1440 cplus_demangle_mangled_name, has_return_type,
1441 is_ctor_dtor_or_conversion, d_encoding, d_name, d_nested_name,
1442 d_prefix, d_unqualified_name, d_source_name, d_number,
1443 d_identifier, d_operator_name, d_special_name, d_call_offset,
1444 d_ctor_dtor_name, cplus_demangle_type, d_cv_qualifiers,
1445 d_function_type, d_bare_function_type, d_class_enum_type,
1446 d_array_type, d_pointer_to_member_type, d_template_param,
1447 d_template_args, d_template_arg, d_expression, d_expr_primary,
1448 d_local_name, d_discriminator, d_add_substitution,
1449 d_substitution, d_print_resize, d_print_append_char,
1450 d_print_append_buffer, d_print_error, cplus_demangle_print,
1451 d_print_comp, d_print_java_identifier, d_print_mod_list,
1452 d_print_mod, d_print_function_type, d_print_array_type,
1453 d_print_expr_op, d_print_cast, cplus_demangle_init_info,
1454 d_demangle, __cxa_demangle, cplus_demangle_v3, java_demangle_v3,
9486db4f 1455 is_ctor_or_dtor, is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor,
1134b11d 1456 print_usage, main):
9486db4f
GDR
1457
14582005-03-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1459
1460 Convert libiberty to ISO C prototype style 1/n.
1461 * _doprnt.c: Remove conditional #include <varargs.h> on
1462 ANSI_PROTOTYPES as the latter is always assumed.
1463 (_doprnt, checkit, main): Use ISO C prototype.
1464 * alloca.c (find_stack_direction, C_alloca): Use ISO C prototype.
1465 * argv.c: Remove conditional #includes on ANSI_PROTOTYPES.
1134b11d 1466 (dupargv, freeargv, buildargv, main): Use ISO C prototype.
9486db4f
GDR
1467 * atexit.c (atexit): Likewise
1468 * asprintf.c: Remove conditional include on ANSI_PROTOTYPES.
1134b11d 1469 (asprintf): Use ISO C prototype.
9486db4f
GDR
1470 * basename.c (basename): Likewise
1471 * bcmp.c (bcmp): Likewise.
1472 * bcopy.c (bcopy): Likewise.
1473 * bzero.c (bzero): Likewise.
1474 * bsearch.c (bsearch): Likewise. Improve const-correctness.
1475 * choose-temp.c (choose_temp_base): Likewise.
1476 * calloc.c: Remove conditional #include on ANSI_PROTOTYPES.
1477 (calloc): Use ISO C prototype.
1478 * clock.c (clock): Likewise.
1479 * concat.c: Remove conditional #include on ANSI_PROTOTYPES.
1134b11d 1480 (vconcat_length, vconcat_copy, concat_length, concat_copy,
9486db4f
GDR
1481 concat_copy2, concat, reconcat, main): Use ISO C prototype.
1482 * copysign.c (copysign): Likewise.
1483
17998b22
KG
14842005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1485
1486 * Makefile.in (CFILES): Add strndup.c and xstrndup.c.
1487 (REQUIRED_OFILES): Add xstrndup.o.
1488 (CONFIGURED_OFILES): Add strndup.o.
1489 Regenerate dependencies.
1490
1491 * configure.ac (funcs, AC_CHECK_FUNCS): Add strndup.
1492
1493 * strndup.c, xstrndup.c: New.
1494
1495 * config.in, configure, functions.texi: Regenerate.
1496
bb99744f
KG
14972005-03-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1498
1499 * xmemdup.c, xstrdup.c: Expose the tail call.
1500
17049f0b
MM
15012005-03-09 Mark Mitchell <mark@codesourcery.com>
1502
1503 * configure.ac (funcs): Add gettimeofday.
1504 * configure: Regenerated.
1505 * gettimeofday.c: New file.
1506 * Makefile.in (CFILES): Add gettimeofday.
1507 (CONFIGURED_OFILES): Add gettimeofday.o.
1508 (./gettimeofday.o): New rule.
1509
6af8bd50
ILT
15102005-03-09 Ian Lance Taylor <ian@airs.com>
1511
1512 * pex-os2.c: Remove.
1513 * configure.ac: Remove *-*-os2-emx* case when setting pexecute.
1514 * Makefile.in (CFILES): Remove pex-os2.c.
1515 (CONFIGURED_OFILES): Remove pex-os2.o.
1516 (pex-os2.o): Remove target.
1517 * configure: Rebuild.
1518
c80d391c
ILT
15192005-03-07 Ian Lance Taylor <ian@airs.com>
1520
1521 * mpw-config.in: Remove.
1522 * mpw-make.sed: Remove.
1523 * mpw.c: Remove.
1524 * Makefile.in (CFILES): Remove pex-mpw.c.
1525 (CONFIGURED_OFILES): Remove pex-mpw.o.
1526 (mpw.o, pex-mpw.o): Remove targets.
1527 * maint-tool (undoc): Remove reference to mpw.c.
1528
fe8ee922
DD
15292005-03-06 DJ Delorie <dj@redhat.com>
1530
1531 * configure.ac (target_header_dir): vfork is a stub under djgpp.
1532 * configure: Regenerated.
1533
c363985d
JB
15342005-03-01 Jan Beulich <jbeulich@novell.com>
1535
1536 * Makefile.in (CFILES): Add unlink-if-ordinary.c
1537 (REQUIRED_OFILES): Add unlink-if-ordinary.o.
1538 Add dependencies and rule for unlink-if-ordinary.o.
1539 * unlink-if-ordinary.c: New.
1540
6a88516c
BE
15412005-03-01 Ben Elliston <bje@au.ibm.com>
1542
1543 * hashtab.c (htab_find_slot_with_hash): Make function
1544 documentation clearer.
1545
b8b3c655
JM
15462005-02-13 Jason Merrill <jason@redhat.com>
1547
1548 * cp-demangle.c (__cxa_demangle): Change resolution of ambiguous
1549 arguments.
1550
e8805990
TS
15512005-01-11 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
1552
1553 * hex.c (hex_value): Group 'unsigned int' together to get correct
1554 markup.
1555 * functions.texi: Regenerated.
1134b11d 1556
24f2cabb
L
15572004-12-27 H.J. Lu <hongjiu.lu@intel.com>
1558
1559 * Makefile.in: Undo to 2004-12-17.
1560 * aclocal.m4: Likewise.
1561 * config.table: Likewise.
1562 * configure.ac: Likewise.
1563 * maint-tool: Likewise.
1564 * configure: Likewise.
1565
3d815594
L
15662004-12-19 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 PR bootstrap/19072
1569 * Makefile.in (enable_shared): New substitute.
1570 (LTTARGETLIB): New.
1571 (PREFIXTARGETLIB): New.
1572 (LTTESTLIB): New.
1573 (PREFIXTESTLIB): New.
1574 (CCLD): New.
1575 (LINK): New.
1576 ($(TARGETLIB)): Use $(LINK) to create libraries and create
1577 targets by hand.
1578 ($(TESTLIB)): Likewise.
1579 (mostlyclean): Don't remove .libs. Remove the libtool object
1580 directory.
1581
1582 * config.table (enable_shared): Removed.
1583
1584 * configure.ac (enable_static): Set to yes.
1585 (AC_PROG_LIBTOOL): Removed.
1586 (AM_DISABLE_SHARED): Uncommented.
1587 (AM_PROG_LIBTOOL): Likewise.
1588 (LIBOBJS): Add `./' to avoid VPATH.
1589 (LTLIBOBJS): Likewise.
1590 (enable_shared): Substitute.
1591 * configure: Regenerated.
1592
207db768
L
15932004-12-18 H.J. Lu <hongjiu.lu@intel.com>
1594
1595 * Makefile.in (top_builddir): Set to `.'.
1596 (OUTPUT_OPTION): Removed.
1597 (LIBTOOL): New.
1598 (LTLIBOBJS): New.
1599 (EXTRA_LTOFILES): New.
1600 (FLAGS_TO_PASS): Add EXTRA_LTOFILES.
1601 (all): Remove stamp-picdir.
1602 (LTCOMPILE): New.
1603 (.c.lo): New rule.
1604 (REQUIRED_LTOFILES): New.
1605 (CONFIGURED_LTOFILES): New.
1606 ($(TARGETLIB)): Check .libs for PIC object files. Depend on
1607 $(REQUIRED_LTOFILES) $(EXTRA_LTOFILES) $(LTLIBOBJS).
1608 (stamp-picdir): Completely removed.
1609 (maint-missing): Pass $(REQUIRED_LTOFILES)
1610 $(CONFIGURED_LTOFILES) instead of (REQUIRED_OFILES)
1611 $(CONFIGURED_OFILES)
1612 (maint-buildall): Depend on $(REQUIRED_LTOFILES)
1613 $(CONFIGURED_LTOFILES).
1614 (mostlyclean): Also remove *.lo .libs.
1615 Run "make maint-deps".
1616
1617 * aclocal.m4: Include ../libtool.m4.
1618
1619 * config.table: Don't check --enable-shared.
1620
1621 * configure.ac (AC_PROG_LIBTOOL): Add.
1622 (AC_PROG_CC_C_O): Removed.
1623 (OUTPUT_OPTION): Removed.
1624 (NO_MINUS_C_MINUS_O): Removed.
1625 (ltpexecute): New substitute.
1626 (LIBOBJS): Cleanup.
1627 * configure: Regenerated.
1628
1629 * maint-tool: Updated for .lo/libtool.
1630
d49d0907
BE
16312004-12-11 Ben Elliston <bje@au.ibm.com>
1632
1633 * configure.ac: Invoke AC_CHECK_SIZEOF for sizeof (int).
1634 * configure: Regenerate.
1635 * config.in: Likewise.
1636
b180d5fb
DD
16372004-12-07 DJ Delorie <dj@redhat.com>
1638
1639 * splay-tree.c (splay_tree_delete_helper): Redesign the logic so
1640 that recursion (and thus large stack space) is not needed.
1641
ecc30353
MK
16422004-11-29 Matt Kraai <kraai@alumni.cmu.edu>
1643
1644 * pex-unix.c: Fix the spelling of longjmp.
1645
0b167d51
ILT
16462004-11-23 Ian Lance Taylor <ian@wasabisystems.com>
1647
1648 PR other/18623
1649 * cp-demangle.c (d_call_offset): Remove useless local variables
1650 offset and virtual_offset.
1651 * cplus-dem.c (ada_demangle): Remove useless local variable
1652 at_start_name.
1653 (demangle_template): Remove useless local variable start.
1654
2d59754f
RS
16552004-11-19 Roger Sayle <roger@eyesopen.com>
1656
1657 * objalloc.c, strsignal.c, xstrerror.c: Include "config.h" before
1658 "ansidecl.h" to avoid redeclaration errors with native compilers.
1659 * regex.c: Protect config.h from multiple inclusion.
1660
ea27a394
MS
16612004-11-12 Mike Stump <mrs@apple.com>
1662
610784f0
MS
1663 * Makefile.in (libiberty.html): Fix html generation.
1664
626ff3de
AN
16652004-09-08 Adam Nemet <anemet@lnxw.com>
1666
1667 * vasprintf.c: Accept __va_copy in addition to va_copy.
1668
1134b11d 16692004-09-03 Paolo Bonzini <bonzini@gnu.org>
7b3ed47d
PB
1670
1671 * configure: Regenerate.
1672
1134b11d 16732004-09-02 Paolo Bonzini <bonzini@gnu.org>
27cfe310
PB
1674
1675 * configure.ac: Do not enable multilibs for build-side libiberty.
1676
1134b11d 16772004-06-29 Danny Smith <dannysmith@users.sourceforge.net>
50a2de96
DS
1678
1679 * lrealpath.c (lrealpath): Add _WIN32 support.
1680
0cf61401
ZW
16812004-06-28 Zack Weinberg <zack@codesourcery.com>
1682
1683 * cp-demangle.h: Declare cplus_demangle_operators,
1684 cplus_demangle_builtin_types, cplus_demangle_mangled_name, and
1685 cplus_demangle_type as static if IN_GLIBCPP_V3.
1686
00a5aa9c
ILT
16872004-06-28 Ian Lance Taylor <ian@wasabisystems.com>
1688
1689 PR other/16240
1690 * cp-demangle.c (d_expr_primary): Check for a failure return from
1691 cplus_demangle_type.
5cd29062 1692 * testsuite/demangle-expected: Add test case.
00a5aa9c 1693
b47785f4
DS
16942004-05-31 Danny Smith <dannysmith@users.sourceforge.net>
1695
1696 * pex-win32.c (fix_argv): Expand comment.
1697
54b2f310
DJ
16982004-05-25 Daniel Jacobowitz <drow@false.org>
1699
1700 * Makefile.in: Add .NOEXPORT.
1701
8fd58397
DR
17022004-04-29 Douglas B Rupp <rupp@gnat.com>
1703
1704 * mkstemps.c (mkstemps) [VMS]: Remove special open option. Update
1705 copyright.
1706
6489430a
MR
17072004-04-26 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1708
1709 * configure.ac (UNSIGNED_64BIT_TYPE): Unquote the definition.
1710 * configure: Regenerate.
1711
9bf3c9cc
RH
17122004-04-22 Richard Henderson <rth@redhat.com>
1713
1714 * hashtab.c: Include limits.h, stdint.h, ansidecl.h.
1715 (CHAR_BIT): Provide default.
1716 (struct prime_ent, prime_tab): New.
1717 (higher_prime_index): Rename from higher_prime_number, return index.
1718 (htab_mod_1): New.
1719 (htab_mod, htab_mod_m2): Use it.
1720 (htab_create_alloc, htab_create_alloc_ex): Store prime index.
1721 (htab_expand): Likewise.
1722 * configure.ac: Check for stdint.h.
1723 (UNSIGNED_64BIT_TYPE): New define and checks to fill it in.
1724 * config.in, configure: Rebuild.
1725
80790b05
ILT
17262004-04-13 Ian Lance Taylor <ian@wasabisystems.com>
1727
1728 * strerror.c: Include config.h, and redefine sys_nerr and
1729 sys_errlist, before including ansidecl.h and libiberty.h.
1730
7f96816a
JL
17312004-04-13 Jeff Law <law@redhat.com>
1732
1733 * hashtab.c (htab_remove_elt_with_hash): New function.
1734 (htab_remove_elt): Implement in terms of htab_remove_elt_with_hash.
1735
d9175b87
RH
17362004-03-31 Richard Henderson <rth@redhat.com>
1737
1738 * hashtab.c (htab_size): Move to top of file; mark inline.
1739 (htab_elements): Likewise.
1740 (htab_mod, htab_mod_m2): New.
1741 (htab_delete): Refactor htab->size and htab->entries.
1742 (htab_empty): Likewise.
1743 (find_empty_slot_for_expand): Use htab_size, htab_mod, htab_mod_m2.
1744 (htab_find_with_hash, htab_find_slot_with_hash): Likewise.
1745 (htab_clear_slot): Use htab_size, htab_elements.
1746 (htab_traverse_noresize, htab_traverse): Likewise.
1747
e8190aa2
ILT
17482004-03-17 Ian Lance Taylor <ian@wasabisystems.com>
1749
fed8129b
ILT
1750 * pex-unix.c (pexecute): Use vfork instead of fork, with
1751 appropriate changes to make this safe.
1752 * pex-common.h (STDERR_FILE_NO): Define.
1753
e8190aa2
ILT
1754 * Makefile.in: Clean up REQUIRED_OFILES and CONFIGURED_OFILES for
1755 an 80 column screen. Run maint-deps.
1756
a4f74b58
KC
17572004-03-09 Kelley Cook <kcook@gcc.gnu.org>
1758
1759 * configure.ac: Bump version to 2.59. Apply suggested autoupdates.
1760 * acconfig.h: Delete redundant file.
1761 * config.in: Regenerate.
1762 * configure: Regenerate.
1763
3beb1315
HPN
17642004-03-09 Hans-Peter Nilsson <hp@axis.com>
1765
1766 * configure: Regenerate for config/accross.m4 correction.
1767
688556b9
AJ
17682004-03-07 Andreas Jaeger <aj@suse.de>
1769
1770 * testsuite/test-demangle.c: Include <string.h> and <stdlib.h> for
1771 prototypes.
1772 (main): Initialize style.
1773
80a19ac8
ILT
17742004-02-24 Ian Lance Taylor <ian@wasabisystems.com>
1775
31058ee3
ILT
1776 * cp-demangle.h (enum d_builtin_type_print): Add D_PRINT_UNSIGNED,
1777 D_PRINT_UNSIGNED_LONG, D_PRINT_LONG_LONG,
1778 D_PRINT_UNSIGNED_LONG_LONG, D_PRINT_FLOAT.
1779 * cp-demangle.c (cplus_demangle_builtin_types): Change char and
1780 short types to D_PRINT_DEFAULT. Change other integer types to use
1781 new D_PRINT_* values where appropriate. Change float types to
1782 D_PRINT_FLOAT.
1783 (d_print_comp) [LITERAL, LITERAL_NEG]: Handle new D_PRINT_*
1784 values.
1785 * testsuite/demangle-expected: Adjust two test cases.
1786
1787 * cp-demangle.c (d_print_function_type): Print a space before the
1788 parenthesis around the function type in more cases.
1789 * testsuite/demangle-expected: Adjust one test case.
1790
93f20626
ILT
1791 * cp-demangle.c (d_print_comp) [UNARY]: Don't emit extra
1792 parentheses around a cast.
1793 * testsuite/demangle-expected: Adjust two test cases to match new
1794 output.
1795
dbd6ec2b
ILT
1796 * cp-demangle.c (__cxa_demangle): Pass DMGL_PARAMS to d_demangle.
1797
80a19ac8
ILT
1798 * cp-demangle.c (d_print_comp) [RESTRICT, VOLATILE, CONST]: Don't
1799 push more than one of the same CV-qualifier on the top of the
1800 stack.
1801 (d_print_comp) [ARRAY_TYPE]: If the array itself is CV-qualified,
1802 move the CV-qualifiers to apply to the element type instead.
1803 (d_print_array_type): When checking the modifiers, keep looking
1804 past ones which have been printed already.
1805 * testsuite/demangle-expected: Add three test cases.
1806
8ad1c80e
ILT
18072004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1808
e8ed4ac2
ILT
1809 * cp-demangle.c (__cxa_demangle): Adjust last patch to handle
1810 empty string correctly.
1811
4a368ffd
ILT
1812 * cp-demangle.c (__cxa_demangle): It is not an error if status is
1813 not NULL. It is an error if the mangled name is the same as a
1814 built-in type name.
1815 (main): If IN_GLIBCPP_V3 is defined, test __cxa_demangle rather
1816 than cplus_demangle_v3.
1817
8ad1c80e
ILT
1818 * dyn-string.c: Remove test of IN_LIBGCC2 and IN_GLIBCPP_V3 and
1819 the associated #define of RETURN_ON_ALLOCATION_FAILURE.
1820
ef2a223f
MK
18212004-02-16 Matt Kraai <kraai@alumni.cmu.edu>
1822
1823 * regex.c: Include <ansidecl.h>.
1824 (regcomp): Cast i to int.
1825 (regerror): Add ATTRIBUTE_UNUSED to parameter preg.
1826
5254fd7b
ILT
18272004-01-25 Ian Lance Taylor <ian@wasabisystems.com>
1828
1829 * configure.ac: Add m4_pattern_allow(LIBOBJS).
1830 * configure: Regenerate.
1831
398b3deb
DD
18322004-01-22 DJ Delorie <dj@redhat.com>
1833
1834 * Makefile.in: Convert to ./ throughout. Rebuild dependencies
1835 with explicit build rules.
1836 (VPATH): Remove.
1837 (.c.o): Poison.
1838 * configure.ac (pexecute, LIBOBJS): Add ./ .
1839 * maint-tool: Build dependencies with explicit rules.
1840
4e394293
KH
18412004-01-15 Kazu Hirata <kazu@cs.umass.edu>
1842
1843 * strdup.c (strdup): Constify the argument.
1844
0046e342
LR
18452004-01-14 Loren J. Rittle <ljrittle@acm.org>
1846
1847 * Makefile.in (distclean): Remove config.cache.
1848
d4f3ce5c
DJ
18492004-01-13 Daniel Jacobowitz <drow@mvista.com>
1850
1851 * cp-demangle.c (d_make_comp): DEMANGLE_COMPONENT_CONSTRUCTION_VTABLE
1852 takes two parameters.
1853 * cp-demint.c (cplus_demangle_fill_component): Likewise.
1854
5e777af5
ILT
18552004-01-12 Ian Lance Taylor <ian@wasabisystems.com>
1856
1857 * cp-demangle.c: Include "cp-demangle.h". If IN_GLIBCPP_V3 is
1858 defined, rename some functions which are to become static via
1859 #define.
1860 (CP_STATIC_IF_GLIBCPP_V3): Define.
1861 (struct d_operator_info): Move definition to cp-demangle.h, and
1862 rename to demangle_operator_info. Change all uses.
1863 (enum d_builtin_type_print): Move definition to cp-demangle.h.
1864 (struct d_builtin_type_info): Move definition to cp-demangle.h,
1865 and rename to demangle_builtin_type_info. Change all uses.
1866 (enum d_comp_type): Move definition to include/demangle.h, and
1867 rename to demangle_component_type, and change all enums to start
1868 with DEMANGLE_COMPONENT_ instead of D_. Change all uses.
1869 (struct d_comp): Move definition to include/demangle.h, and rename
1870 to demangle_component. Change all uses.
1871 (struct d_info): Move definition to cp-demangle.h.
1872 (cplus_demangle_fill_name): New function.
1873 (cplus_demangle_fill_extended_operator): New function.
1874 (cplus_demangle_fill_ctor): New function.
1875 (cplus_demangle_fill_dtor): New function.
1876 (d_make_empty): Remove type parameter. Change all callers.
1877 (d_make_name): Use cplus_demangle_fill_name.
1878 (d_make_extended_operator): Use
1879 cplus_demangle_fill_extended_operator.
1880 (d_make_ctor): Use cplus_demangle_fill_ctor.
1881 (d_make_dtor): Use cplus_demangle_fill_dtor.
1882 (cplus_demangle_mangled_name): Rename from d_mangled_name. Make
1883 non-static by default. Change all callers.
1884 (cplus_demangle_operators): Rename from d_operators. Change all
1885 uses. Make non-static by default. Add sentinel at end of array.
1886 (d_operator_name): Adjust initialization of high for new sentinel
1887 in cplus_demangle_operators.
1888 (cplus_demangle_builtin_types): Rename from d_builtin_types.
1889 Change all uses. Make non-static by default. Change initializer
1890 to use D_BUILTIN_TYPE_COUNT instead of magic number 26.
1891 (cplus_demangle_type): Rename from d_type. Make non-static by
1892 default. Change all callers.
1893 (cplus_demangle_init_info): Rename from d_init_info. Make
1894 non-static by default. Change all callers.
1895 * cp-demangle.h: New file.
1896 * cp-demint.c: New file.
1897 * Makefile.in: Rebuild dependencies.
1898 (CFILES): Add cp-demint.c.
1899 (REQUIRED_OFILES): Add cp-demint.o.
1900
c31d56ed
KC
19012004-01-09 Kelley Cook <kcook@gcc.gnu.org>
1902
1903 * configure.in: Rename file to ...
1904 * configure.ac: ... this.
1905 * Makefile.in: Update a comment for above change.
1906 * README: Likewise.
1907 * config.in: Regenerate.
1908
e4796f1c
ILT
19092004-01-02 Ian Lance Taylor <ian@wasabisystems.com>
1910
1911 * cp-demangle.c (d_encoding): When DMGL_PARAMS is not set, strip
1912 CV-qualifiers from D_COMP_LOCAL_NAME right subtree.
1913 * cplus-dem.c (demangle_arm_hp_template): Set DMGL_PARAMS when
1914 demangling template parameters.
1915 * testsuite/test-demangle.c (fail): New static function.
1916 (main): Support new options in input file: --no-params,
1917 --is-v3-ctor, and --is-v3-dtor.
1918 * testsuite/demangle-expected: Add --no-params to most tests, and
1919 add the correct result when parameters are not demangled. Add
1920 some simple tests for V3 constructor/destructor recognition.
1921
4d425229
KG
19222003-12-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1923
1924 * cp-demangle.c (is_ctor_or_dtor): Fix error in last change.
1925
6b309c6e
DJ
19262003-12-22 Daniel Jacobowitz <drow@mvista.com>
1927
1928 PR debug/13272
1929 * Makefile.in (lbasename.o): Depend on filenames.h.
1930 * lbasename.c: Include "filenames.h" instead of defining
1931 its macros locally.
1932
2d6c4025
ILT
19332003-12-22 Ian Lance Taylor <ian@wasabisystems.com>
1934
1935 * cp-demangle.c (CP_DYNAMIC_ARRAYS): Define if compiler supports
1936 dynamic arrays.
1937 (struct d_operator_info): Add len field.
1938 (struct d_builtin_type_info): Add len and java_len fields.
1939 (struct d_standard_sub_info): Add simple_len, full_len, and
1940 set_last_name_len fields.
1941 (struct d_comp): Add len field to s_string.
1942 (struct d_info): Add send, did_subs, and expansion fields.
1943 (d_append_string_constant): Define.
1944 (d_append_string): Remove. Change all users to use
1945 d_append_string_constant or d_append_buffer instead.
1946 (d_make_sub): Add len parameter. Change all callers.
1947 (d_name): Increase expansion when substituting std::.
1948 (d_unqualified_name): Increase expansion for an operator.
1949 (d_number): Don't use multiplication for negative numbers.
1950 (d_identifier): Make sure there are enough characters in the
1951 string for the specified length. Adjust expansion for an
1952 anonymous namespace.
1953 (d_operators): Initialize len field.
1954 (d_special_name, d_ctor_dtor_name): Increase expansion.
1955 (d_builtin_types): Initialize len and java_len fields.
1956 (d_type): Increase expansion for a builtin type.
1957 (d_cv_qualifiers): Increase expansion for each qualifier.
1958 (d_bare_function_type): Decrease expansion when removing single
1959 void parameter.
1960 (d_template_param): Increment did_subs.
1961 (d_expression): Increase expansion for an operator.
1962 (d_expr_primary): Decrease expansion for a type we will print
1963 specially.
1964 (standard_subs): Initialize new fields.
1965 (d_substitution): Increment did_subs when doing a normal
1966 substitution. Increase expansion for a special substitution.
1967 (d_print): Add estimate parameter. Change all callers.
1968 (d_print_comp) [D_COMP_NAME]: Handle C++ case inline.
1969 (d_print_comp) [D_COMP_BINARY]: Use length to avoid strcmp call.
1970 (d_print_java_identifier): Rename from d_print_identifier. Handle
1971 only Java case. Change caller.
1972 (d_init_info): Change return type to void. Change all callers.
1973 Initialize send, did_subs, and expansion fields. Do not
1974 initialize comps and subs fields.
1975 (d_demangle): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and subs
1976 arrays on stack. Make an estimate of the length of the demangled
1977 name. Ifdef CP_DEMANGLE_DEBUG, print estimation failures.
1978 (is_ctor_or_dtor): Ifdef CP_DYNAMIC_ARRAYS, allocate comps and
1979 subs arrays on stack.
1980
2307e075
ILT
19812003-12-20 Ian Lance Taylor <ian@wasabisystems.com>
1982
1983 * cp-demangle.c (d_identifier): In Java mode, skip an optional '$'
1984 after the identifier.
1985 * testsuite/demangle-expected: Add test case.
1986
a91d1af0
ILT
19872003-12-19 Ian Lance Taylor <ian@wasabisystems.com>
1988
1989 Fix for PR c++/13447:
1990 * cp-demangle.c (enum d_comp_type): Add D_COMP_LOCAL_NAME.
1991 (d_dump, d_make_comp): Handle D_COMP_LOCAL_NAME.
1992 (is_ctor_dtor_or_conversion): Handle D_COMP_LOCAL_NAME like
1993 D_COMP_QUAL_NAME.
1994 (is_ctor_or_dtor): Likewise.
1995 (d_local_name): Use D_COMP_LOCAL_NAME rather than
1996 D_COMP_QUAL_NAME.
1997 (d_print_comp) [D_COMP_LOCAL_NAME]: New.
1998 (d_prinT_comp) [D_COMP_TYPED_NAME]: If the left tree is
1999 D_COMP_LOCAL_NAME, pull any qualifiers off its right subtree.
2000 (d_print_mod_list): Handle D_COMP_LOCAL_NAME.
2001 * testsuite/demangle-expected: Add two test cases.
2002
2003 * cp-demangle.c (d_print_function_type): Clear the global modifier
2004 list when printing the modifiers, not just when printing the
2005 function parameters.
2006 * testsuite/demangle-expected: Add two test cases.
2007
8d686df2
ILT
20082003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
2009
cbc278f4
ILT
2010 * cp-demangle.c (d_print_function_type): Print the function
2011 parameters with no modifiers.
2012 * testsuite/demangle-expected: Add test case.
2013
8d686df2
ILT
2014 * cp-demangle.c (d_demangle): If DMGL_PARAMS is not set, don't
2015 expect that we've read the entire string.
2016 (is_ctor_or_dtor): Don't expect that we've read the entire
2017 string--reverse patch of 2003-11-29.
2018
adf269c7
BK
20192003-12-15 Brendan Kehoe <brendan@zen.org>
2020
2021 * libiberty/Makefile.in (floatformat.o): Add dependency on
2022 config.h to accompany change of 2003-12-03.
2023
374caa50
ILT
20242003-12-15 Ian Lance Taylor <ian@wasabisystems.com>
2025
2026 Fix handling of constructor/destructor of standard substitution:
2027 * cp-demangle.c (struct d_standard_sub_info): Define.
2028 (d_substitution): Add prefix argument. Change all callers.
2029 Rework handling of standard substitutions to print full name when
2030 qualifying a constructor/destructor, or when DMGL_VERBOSE is set.
2031 * testsuite/demangle-expected: Add test case.
2032
2033 Fix handling of negative literal constants:
2034 * cp-demangle.c (enum d_comp_type): Add D_COMP_LITERAL_NEG.
2035 (d_dump, d_make_comp): Handle D_COMP_LITERAL_NEG.
2036 (d_expr_primary): Use D_COMP_LITERAL_NEG for a negative number.
2037 (d_print_comp): Handle D_COMP_LITERAL_NEG.
2038 * testsuite/demangle-expected: Add test case.
2039
a51753e4
ILT
20402003-12-04 Ian Lance Taylor <ian@wasabisystems.com>
2041
2042 * cp-demangle.c (IS_UPPER, IS_LOWER): Define.
2043 (d_last_char): Define new macro.
2044 (d_make_name): Reject an empty name.
2045 (d_prefix, d_unqualified_name, d_type): Use new IS_* macros.
2046 (d_substitution, d_print_identifier): Likewise.
2047 (d_print_comp) [D_COMP_OPERATOR]: Likewise.
2048 (d_print_comp) [D_COMP_TEMPLATE]: Use new d_last_char macro.
2049 (d_print_mod) Use new d_last_char macro.
2050 (d_print_cast): Use new d_last_char macro.
2051 (is_ctor_or_dtor): Don't leak memory.
2052
2053 Fix handling of member function modifiers:
2054 * cp-demangle.c (enum d_comp_type): Add D_COMP_RESTRICT_THIS,
2055 D_COMP_VOLATILE_THIS, and D_COMP_CONST_THIS.
2056 (d_dump): Dump new d_comp_type values.
2057 (d_make_comp): Accept new d_comp_type values.
2058 (has_return_type): Only accept _THIS variants of qualifiers.
2059 (d_encoding): Without DMGL_PARAMS, only remove _THIS variants of
2060 qualifiers.
2061 (d_cv_qualifiers): Add member_fn parameter. Change all callers.
2062 (d_print_comp) [D_COMP_TYPED_NAME]: Rather than removing
2063 qualifiers and printing them at the end, add _THIS qualifiers to
2064 the modifier list.
2065 (d_print_comp) [D_COMP_*_THIS]: New cases.
2066 (d_print_comp) [D_COMP_PTRMEM_TYPE]: Remove special handling of
2067 qualifiers.
2068 (d_print_mod_list): Add suffix parameter. Change all callers.
2069 Keep walking the list even if the current modifier has been
2070 printed.
2071 (d_print_mod): Handle new _THIS qualifiers.
2072 (d_print_function_type): Handle new _THIS qualifiers when deciding
2073 whether to print a parenthesis. Put a space before the
2074 parenthesis in some cases. Call d_print_mod_list again at the
2075 end, passing suffix as 1.
2076 (is_ctor_or_dtor): Look for new _THIS qualifiers.
2077 * testsuite/demangle-expected: Add test case.
2078
2079 Fix for PR gcc/13304:
2080 * cp-demangle.c (d_print_comp) [D_COMP_TEMPLATE]: If the character
2081 before the '<' is itself a '<', insert a space.
2082 (d_print_cast): Likewise.
2083 * testsuite/demangle-expected: Add test case.
2084
2085 Fix for PR gcc/13244:
2086 * cp-demangle.c (d_print_comp) [D_COMP_BINARY]: Wrap an expression
2087 which uses the '>' operator in an extra layer of parens.
2088 * testsuite/demangle-expected: Add test case.
2089
bee6ab3e
ILT
20902003-12-03 Ian Lance Taylor <ian@wasabisystems.com>
2091
2092 * floatformat.c: Include "config.h" and <string.h> if available.
2093 (INFINITY, NAN): Define if not defined by <math.h>.
2094 (floatformat_to_double): Handle NaN, infinity, and denormalized
2095 numbers.
2096 (floatformat_from_double): Likewise.
2097 (ieee_test): In debugging code, use little endian rather than big
2098 endian. Correct tests to handle NaN and to check correct sign of
2099 zero. Omit m68k extended test.
2100 (main): Add more debugging cases.
2101
f26deb3d
ILT
21022003-11-29 Ian Lance Taylor <ian@wasabisystems.com>
2103
2104 * cp-demangle.c (d_demangle): Only return success if we consumed
2105 the entire demangled string.
2106 (is_ctor_or_dtor): Likewise.
2107
2108 * testsuite/demangle-expected: Revert one part of 2003-06-26 patch
2109 to restore expected result of EDG test case to original expected
2110 result.
2111
81dc098b
ILT
21122003-11-26 Ian Lance Taylor <ian@wasabisystems.com>
2113
2114 * cp-demangle.c (struct d_print_mod): Add templates field.
2115 (d_make_builtin_type): Check for NULL type.
2116 (d_make_extended_operator): Check for NULL name.
2117 (d_make_ctor, d_make_dtor): Likewise.
2118 (d_mangled_name): Add top_level parameter. Change all callers.
2119 (d_encoding): If DMGL_PARAMS is not set, strip off initial
2120 CV-qualifiers.
2121 (d_type): Check some return values we rely on.
2122 (d_bare_function_type, d_array_type): Likewise.
2123 (d_pointer_to_member_type, d_template_args): Likewise.
2124 (d_add_substitution): Fail if argument is NULL.
2125 (d_print_resize): Check whether buf is NULL.
2126 (d_print_comp): Save current templates list with each modifier.
2127 Don't pass the modifier list down when printing a template.
2128 (d_print_cast): Don't pass the modifier list down when printing a
2129 template.
2130 (d_print_mod_list): Temporarily set templates list while printing
2131 a modifier.
2132 (d_print_mod): Check that buf is not NULL before using it.
2133 (d_print_function_type): Print parens if there is no modifier.
2134 (d_init_info): Permit as many substitutions as there are
2135 characters in the mangled name.
2136 * testsuite/demangle-expected: Add two new test cases.
2137
eb459c81
ILT
21382003-11-25 Ian Lance Taylor <ian@wasabisystems.com>
2139
2140 * cp-demangle.c (java_demangle_v3): Pass DMGL_PARAMS to
2141 d_demangle.
2142
ad07f5e5
ILT
21432003-11-22 Ian Lance Taylor <ian@wasabisystems.com>
2144
2145 * cp-demangle.c (d_encoding): Add top_level parameter. Change all
2146 callers.
2147 (print_usage): Display new -p option.
2148 (long_options): Add --no-params.
2149 (main): Accept and handle -p.
2150
0ba5c8a2
ILT
21512003-11-21 Ian Lance Taylor <ian@wasabisystems.com>
2152
2153 * cp-demangle.c (has_return_type): Skip qualifiers when checking
2154 whether we have a template.
2155 * testsuite/demangle-expected: Add four new tests.
2156
bd6946d1
ILT
21572003-11-20 Ian Lance Taylor <ian@wasabisystems.com>
2158
9cca376f
ILT
2159 * testsuite/demangle-expected: Minor changes to match output of
2160 new demangler: adjust whitespace in four tests, and change order
2161 of qualifiers in one test.
2162
bd6946d1
ILT
2163 * cp-demangle.c: Complete rewrite.
2164
6df5a5c7
MM
21652003-11-19 Mark Mitchell <mark@codesourcery.com>
2166
2167 * cp-demangle.c (demangle_type): Correct thinko in substitution
2168 processing.
2169
a9b571f2
ILT
21702003-11-18 Ian Lance Taylor <ian@wasabisystems.com>
2171
820555e6
ILT
2172 * cp-demangle.c (demangle_operator_name): Remove space before
2173 "sizeof".
2174 (demangle_type_ptr): Put qualifiers in the right place. Handle
2175 qualifiers in pointer to member specially.
2176 (demangle_type): Handle qualifiers for pointer or reference
2177 specially. Handle function type.
2178 (demangle_local_name): Save and restore caret around demangling of
2179 initial encoding.
2180
c4328d32
ILT
2181 * testsuite/test-demangle.c (main): Don't pass DMGL_VERBOSE to
2182 cplus_demangle.
2183
a9b571f2
ILT
2184 * testsuite/Makefile.in (test-demangle): Depend upon libiberty.a.
2185
ad37274a
AJ
21862003-10-31 Andreas Jaeger <aj@suse.de>
2187
2188 * floatformat.c (floatformat_always_valid): Add unused attribute.
2189
27eb8ab1
JZ
21902003-10-30 Josef Zlomek <zlomekj@suse.cz>
2191
2192 Jan Hubicka <jh@suse.cz>
2193 * vasprintf.c (int_vasprintf): Pass va_list by value.
2194 Use va_copy for copying va_list.
2195 (vasprintf): Pass va_list by value.
2196
e0432c1c
JZ
21972003-10-30 Josef Zlomek <zlomekj@suse.cz>
2198
2199 * hashtab.c (htab_find_slot_with_hash): Decrease n_deleted
2200 instead of increasing n_elements when inserting to deleted slot.
2201
08c5b96d
B
22022003-10-20 J. Brobecker <brobecker@gnat.com>
2203
2204 * cplus-dem.c (demangle_template): Register a new Btype only
2205 when needed.
2206 * testsuite/demangle-expected: Add a new test.
2207
968e3f93
L
22082003-10-16 H.J. Lu <hongjiu.lu@intel.com>
2209
2210 * testsuite/demangle-expected: Update the expected output of
2211 _GLOBAL__I__Z2fnv.
2212
bca48dc6
DJ
22132003-10-02 Daniel Jacobowitz <drow@mvista.com>
2214
2215 * strerror.c: Revert last change. Declare static sys_nerr
2216 and sys_errlist using different names.
2217
b9e8f4b3
DJ
22182003-10-01 Daniel Jacobowitz <drow@mvista.com>
2219
2220 * strerror.c: Don't provide or reference sys_errlist if
2221 strerror is available.
2222
c0590bfd
L
22232003-10-01 H.J. Lu <hongjiu.lu@intel.com>
2224
2225 * configure.in: Check if $MAKEINFO is missing.
2226 * configure: Regenerated.
2227
b033df90
DJ
22282003-09-24 Daniel Jacobowitz <drow@mvista.com>
2229
2230 * configure.in: Use AC_PROG_CPP_WERROR.
2231 * configure: Regenerated.
2232
83c07342
AC
22332003-09-22 Andrew Cagney <cagney@redhat.com>
2234
2235 * floatformat.c (floatformat_i387_ext_is_valid): New function.
2236 (floatformat_always_valid): New function.
2237 (floatformat_i387_ext): Initialize new "is_valid" field to
2238 "floatformat_i387_ext_is_valid".
2239 (floatformat_ieee_single_little): Initialize "is_valid" field to
2240 floatformat_always_valid.
2241 (floatformat_ieee_double_big): Ditto.
2242 (floatformat_ieee_double_little): Ditto.
2243 (floatformat_ieee_double_little): Ditto.
2244 (floatformat_ieee_double_littlebyte_bigword): Ditto.
2245 (floatformat_i960_ext): Ditto.
2246 (floatformat_m88110_ext): Ditto.
2247 (floatformat_m88110_harris_ext): Ditto.
2248 (floatformat_arm_ext_big): Ditto.
2249 (floatformat_arm_ext_littlebyte_bigword): Ditto.
2250 (floatformat_ia64_spill_big): Ditto.
2251 (floatformat_ia64_spill_little): Ditto.
2252 (floatformat_ia64_quad_big): Ditto.
2253 (floatformat_ia64_quad_little): Ditto.
2254 (floatformat_ia64_quad_little): Ditto.
2255 (floatformat_is_valid): Call "is_valid".
2256
c9fbef12
AC
22572003-09-15 Andrew Cagney <cagney@redhat.com>
2258
2259 * floatformat.c (get_field): Make "data" constant.
2260 (floatformat_is_valid, floatformat_to_double): Make "from"
2261 constant, fix casts.
2262 (floatformat_from_double): Make "from" constant.
2263
9c8860c3
DJ
22642003-09-15 Daniel Jacobowitz <drow@mvista.com>
2265
2266 * floatformat.c (floatformat_is_valid): New function.
2267 (get_field, put_field): Correct comments.
2268
13f7d3a1
JZ
22692003-09-06 Josef Zlomek <zlomekj@suse.cz>
2270
2271 * fibheap.c (fibheap_replace_key_data): Change type of OKEY to
2272 FIBHEAPKEY_T.
2273
03eec143 22742003-09-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
86d75906
JDA
2275
2276 PR bootstrap/12100
2277 * aclocal.m4 (AC_LANG_FUNC_LINK_TRY): Define.
2278 * configure: Rebuilt.
2279
238235ef
DJ
22802003-08-27 Daniel Jacobowitz <drow@mvista.com>
2281
2282 * aclocal.m4: Include acx.m4 and no-executables.m4.
2283 (libiberty_AC_FUNC_STRNCMP): Use AC_LIBOBJ.
2284 (LIB_AC_PROG_CC): Remove.
2285 * configure.in: Update AC_PREREQ to 2.57. Use GCC_NO_EXECUTABLES.
2286 Use AC_PROG_CC and set ac_libiberty_warn_cflags instead of using
2287 LIB_AC_PROG_CC. Use AC_LIBOBJ. Call AC_ISC_POSIX later, only if
2288 performing link tests.
2289 * configure: Regenerated.
2290
2b81b2c9
NN
22912003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
2292
0cf61401 2293 * cp-demangle.c: Clarify what package(s) this is part of.
2b81b2c9 2294
7b96f3e4
DS
22952003-07-05 Danny Smith <dannysmith@users.sourceforge.net>
2296
2297 * pex-win32.c (pexecute): Mark parameters this_pname and
2298 temp_base as unused. Remove unused variables retries,
2299 sleep_interval. Initialize org_stdin, org_stdout.
2300 (pwait): Mark parameter flags as unused.
2301
23022003-07-02 Danny Smith <dannysmith@users.sourceforge.net>
bacb96b2
DS
2303
2304 * pex-win32.c (fix_argv): Ensure that the executable pathname
2305 uses Win32 backslashes.
2306 (pexecute): Cast away constness when assigning *errmsg_arg.
2307
6f8507b1
L
23082003-06-26 H.J. Lu <hongjiu.lu@intel.com>
2309
2310 * testsuite/demangle-expected: Add more GNU V3 testcases.
2311
21299dbd
ZW
23122003-06-22 Zack Weinberg <zack@codesourcery.com>
2313
2314 * safe-ctype.c: Use HOST_CHARSET_ASCII and HOST_CHARSET_EBCDIC,
2315 not HC_ASCII and HC_EBCDIC.
2316 Add documentation in form expected by gather-docs.
2317 * hex.c: Use HOST_CHARSET, not hand-coded check of character set.
2318 * Makefile.in, functions.texi: Regenerate.
2319
7468e0b5
ZW
23202003-06-21 Zack Weinberg <zack@codesourcery.com>
2321
2322 * safe-ctype.c: Separate out EOF==-1 check. Use HOST_CHARSET
2323 for charset determination.
2324
cf8e4b78
DH
23252003-06-19 Dara Hazeghi <dhazeghi@yahoo.com>
2326
2327 * configure.in: Add check for malloc.h needed by
2328 m68k for function free().
2329 * configure: Regenerated.
2330 * config.in: Add HAVE_MALLOC_H.
2331 * hashtab.c: include malloc.h were available for
2332 free().
2333
aa9dc53d 23342003-06-09 Albert Chin-A-Young <china@thewrittenword.com>
7468e0b5 2335
aa9dc53d
ACY
2336 PR bootstrap/10974
2337 * physmem.c: Update comment.
2338 * configure.in: Modify test for _system_configuration for older
2339 AIX systems.
2340
2341 * config.in, configure: Regenerated.
7468e0b5 2342
8191fe81
JDA
23432003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2344
2345 PR other/10810
2346 * test-demangle.c (getline): Fix fence-post error.
2347
8d398258
NC
23482003-06-03 Nick Clifton <nickc@redhat.com>
2349
2350 * asprintf.c: Change comment to note that -1 is returned upon
2351 error.
2352 * vasprintf.c: Likewise.
2353 (vasprintf): Return -1 upon error.
2354 * functions.texi: Document changes to asprintf and vasprintf.
2355
29ad6d3f
KC
23562003-05-19 Kelley Cook <kelleycook@wideopenwest.com>
2357
2358 * config.table: Accept i[345867]86 variant.
2359
49a19cfd
JB
23602003-05-15 Jim Blandy <jimb@redhat.com>
2361
2362 * hex.c (_hex_value): Make this unsigned.
2363 (hex_value): Update documentation for new return type. hex_value
2364 now expands to an unsigned int expression, to avoid unexpected
2365 sign extension when we store it in a bfd_vma, which is larger than
2366 int on some platforms.
2367 * functions.texi: Regenerated.
2368
d5d4eae2
JZ
23692003-05-07 Josef Zlomek <zlomekj@suse.cz>
2370
2371 * splay-tree.c (splay_tree_predecessor): Fix comment.
2372 (splay_tree_successor): Fix comment.
2373
5cc5a0d0
JM
23742003-05-07 Jason Merrill <jason@redhat.com>
2375
9d70d418 2376 * hashtab.c (iterative_hash): New fn.
5cc5a0d0
JM
2377 * configure.in: Add AC_C_BIGENDIAN_CROSS.
2378 * aclocal.m4: Include accross.m4.
2379 * configure, config.in: Regenerate.
2380
05c30f22
KG
23812003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2382
2383 * configure.in (AC_CHECK_FUNCS): Don't make multiple calls.
2384 * configure: Regenerate.
2385
41fe9404
CW
23862003-05-03 Carlo Wood <carlo@alinoe.com>
2387
2388 * cp-demangle.c: Fix typo in "char_traints" string-literal.
2389
52dd3224
KG
23902003-04-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2391
2392 * vsnprintf.c (vsnprintf): Don't pad string with extra nulls.
2393 (main): Test that we don't write too much data.
2394
bd3fbc6b
KG
23952003-04-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2396
2397 * configure.in (funcs, AC_CHECK_FUNCS): Add snprintf and
2398 vsnprintf.
2399 * snprintf.c, vsnprintf.c: New files.
2400 * Makefile.in (CFILES): Add snprintf.c and vsnprintf.c.
2401 (CONFIGURED_OFILES): Add snprintf.o and vsnprintf.o.
2402 Regenerate dependencies.
2403
2404 * functions.texi, configure, config.in: Regenerated.
2405
029bcc09
KG
24062003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2407
2408 * mempcpy.c, stpcpy.c, stpncpy.c: New files.
2409 * configure.in (funcs, AC_CHECK_FUNCS): Add mempcpy, stpcpy
2410 and stpncpy.
2411 * Makefile.in (CFILES): Add mempcpy.c, stpcpy.c and stpncpy.c.
2412 (CONFIGURED_OFILES): Add mempcpy.o, stpcpy.o and stpncpy.o.
2413 Regenerate dependencies.
2414
2415 * functions.texi, configure, config.in: Regenerated.
2416
c9ac9147
KG
24172003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2418
2419 * argv.c: Fix comments.
2420 * calloc.c: Don't unnecessarily include "libiberty.h".
2421 (bzero): Add prototype.
2422 * floatformat.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2423 * getcwd.c (getcwd): Use standard definition to avoid conflicts
2424 with system headers.
2425 * hashtab.c (htab_traverse): Delete unused variables.
2426 * rename.c: Include "ansidecl.h".
2427 (rename): Use standard definition to avoid conflicts with system
2428 headers.
2429 * strsignal.c: Rely on ANSI_PROTOTYPES.
2430 * strstr.c: Check GNUC >= 2, not GNUC == 2.
2431 * vfprintf.c: Include "ansidecl.h", rely on ANSI_PROTOTYPES.
2432 * vprintf.c: Include "ansidecl.h" earlier, rely on
2433 ANSI_PROTOTYPES.
2434 * vsprintf.c: Include "ansidecl.h" earlier, rely on
2435 ANSI_PROTOTYPES and possibly include <stdarg.h>.
7468e0b5 2436
c9ac9147
KG
2437 * Makefile.in: Regenerate dependencies.
2438
98475c57
DD
24392003-04-15 DJ Delorie <dj@redhat.com>
2440
2441 * maint-tool (deps): Scan for headers in $srcdir also.
2442
55adc7bd
KG
24432003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2444
2445 PR target/10338
2446 PR bootstrap/10198
2447 PR bootstrap/10140
2448 * getopt.c (exchange, _getopt_initialize): Use mempcpy not
2449 __mempcpy.
2450 * regex.c (regerror): Likewise.
2451
0ae0f1b0
RS
24522003-04-14 Roger Sayle <roger@eyesopen.com>
2453
2454 * argv.c: Use ANSI_PROTOTYPES instead of __STDC__.
2455 * memchr.c: Likewise.
2456 * strcasecmp.c: Likewise.
2457 * strncasecmp.c: Likewise.
2458 * strncmp.c: Likewise.
2459 * xatexit.c: Likewise.
2460 * xmalloc.c: Likewise.
2461
2462 * copysign.c: Use traditional function declaration instead of DEFUN.
2463 * sigsetmask.c: Likewise.
2464
2465 * memcmp.c: Both of the above, ANSI_PROTOTYPES and DEFUN.
2466 * memset.c: Likewise.
2467
2468 * memcpy.c: ANSI_PROTOTYPES, DEFUN and prototype bcopy.
2469 * memmove.c: Likewise.
2470
88702c45
RS
24712003-04-14 Roger Sayle <roger@eyesopen.com>
2472
2473 * strdup.c (strdup): Tweak implementation to use memcpy.
2474
39e8d049
KG
24752003-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2476
2477 * configure.in (HAVE_UINTPTR_T): Always define.
2478 * configure: Regenerated.
2479
9f2e0608
AO
24802003-03-23 Alexandre Oliva <aoliva@redhat.com>
2481
2482 * Makefile.in (MULTIOSDIR): New macro. Use $(CC) $(LIBCFLAGS)
2483 instead of $$CC alone.
2484 (install_to_tooldir): Use it.
2485
dbccdc42
JH
24862003-17-03 Jan Hubicka <jh@suse.cz>
2487
2488 * hashtab.c (htab_traverse_noresize): Break out from ...
2489 * hashtab.c (htab_traverse): ... here.
2490
0a8e3de3
JH
24912003-12-03 Jan Hubicka <jh@suse.cz>
2492
cd22e4af
JH
2493 * hashtab.c (htab_expand): Fix warning.
2494
0a8e3de3
JH
2495 * hashtab.c (htab_expand): Compute the size of hashtable based
2496 on the number of elements actually used.
2497 (htab_traverse): Call htab_expand when table is too empty.
2498
8fe85775
CW
24992003-03-11 Carlo Wood <carlo@gnu.org>
2500
2501 * cplus-dem.c (demangle_integral_value): Correction to reflect
2502 patch of 2002-01-10 in order to also make negative multi-digits
2503 without leading underscore work.
2504
3bf27822
MM
25052003-03-03 Mark Mitchell <mark@codesourcery.com>
2506
2507 * cplus-dem.c: Add license exception to copyright notice.
2508
434fa0b8
KG
25092003-02-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2510
2511 * physmem.c: Formatting changes from upstream.
2512
ed935c35
DS
25132003-02-24 Danny Smith <dannysmith@users.source.forge.net>
2514
2515 * physmem.c (physmem_total): Add _WIN32 support.
2516 (physmem_available): Likewise.
2517
7f9fc006
RO
25182003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2519
2520 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Test for
2521 GSI_PHYSMEM.
2522 (physmem_available) [HAVE_TABLE]: Test for TBL_VMSTATS.
2523
d47f75c4
KG
25242003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2525
2526 * configure.in: Check for sys/systemcfg.h and
2527 _system_configuration.
2528 * physmem.c: Add support for AIX. Tweek formatting as per
2529 upstream coreutils beta.
2530
170230b7
KG
25312003-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2532 Richard Earnshaw <rearnsha@arm.com>
2533 Geoffrey Keating <geoffk@apple.com>
7468e0b5 2534
170230b7
KG
2535 * configure.in: Check for sys/sysctl.h and sysctl.
2536 * physmem.c: Add support for *bsd and darwin.
2537 * Makefile.in: Generate depedency for physmem.o.
2538
4a06f7f2
RO
25392003-02-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2540
2541 * physmem.c (physmem_total) [HAVE_GETSYSINFO]: Use getsysinfo on
2542 Tru64 UNIX.
2543 (physmem_available) [HAVE_TABLE && HAVE_SYS_TABLE_H]: Use table on
2544 Tru64 UNIX.
2545
2546 * configure.in (AC_CHECK_HEADERS): Check for sys/sysinfo.h,
2547 machine/hal_sysinfo.h, sys/table.h.
2548 (checkfuncs, AC_CHECKFUNCS): Check for getsysinfo, table.
2549 * configure, config.in: Regenerate.
2550
64c7e556
KG
25512003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2552
2553 * configure.in: Check for sys/sysmp.h and sysmp.
2554 * physmem.c: Pull upstream copy, add support for irix6.
2555
2556 * config.in, configure: Regenerated.
2557
e9019af6
KG
25582003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2559
2560 * physmem.c (physmem_total, physmem_available): De-ANSI-fy.
2561 * configure.in (AC_CHECK_FUNCS): Add pstat_getstatic and
2562 pstat_getdynamic.
7468e0b5 2563
a354191e
KG
25642003-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2565
2566 * Makefile.in (CFILES): Add physmem.c.
2567 (REQUIRED_OFILES): Add physmem.o.
2568 * configure.in: Check for sys/pstat.h.
2569 (checkfuncs): Add pstat_getstatic and pstat_getdynamic.
2570 * physmem.c: New file, copied from textutils.
2571
2572 * config.in, configure: Regenerated.
2573
4876b2b4
DJ
25742003-02-20 Daniel Jacobowitz <drow@mvista.com>
2575
2576 * Makefile.in (CFILES): Add lrealpath.c.
2577 (REQUIRED_OFILES): Add lrealpath.o.
2578 (lrealpath.o): Add rule.
2579 * aclocal.m4 (libiberty_NEED_DECLARATION): Add.
2580 * configure.in: Add realpath and canonicalize_file_name to
2581 checkfuncs and AC_CHECK_FUNCS. Use libiberty_NEED_DECLARATION
2582 for canonicalize_file_name.
2583 * lrealpath.c: New file.
2584 * make-relative-prefix.c: Update documentation.
2585 (make_relative_prefix): Simplify. Use lbasename and lrealpath.
2586 * config.in: Regenerated.
2587 * configure: Regenerated.
2588 * functions.texi: Regenerated.
2589
e182f0a3 25902003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2591
2592 * cplus_dem.c: Fix typo: intializes -> initializes.
2593
3343fdd2
AO
25942003-02-20 Alexandre Oliva <aoliva@redhat.com>
2595
2596 * configure.in: Propagate ORIGINAL_LD_FOR_MULTILIBS to
2597 config.status.
2598 * configure: Rebuilt.
2599
902cf50c
DJ
26002003-02-13 Daniel Jacobowitz <drow@mvista.com>
2601
2602 Fix PR c++/7612.
2603 * cplus-dem.c (demangle_signature): Call string_delete.
2604 Remove extra string_init.
2605 (demangle_arm_hp_template): Call string_delete instead of
2606 string_clear. Add missing string_delete call.
2607 (demangle_qualified): Add missing string_delete call.
2608 (do_type): Remove unused variable btype. Add missing string_delete
2609 call. Call string_delete instead of string_clear.
2610 (demangle_fund_type): Move variable btype inside of the switch
2611 statement. Add missing string_delete call.
2612 (do_arg): Call string_delete instead of string_clear. Remove extra
2613 string_init.
2614 (demangle_nested_args): Free work->previous_argument.
2615
7ac27e08
KG
26162003-02-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2617
2618 * acconfig.h: New file. Add uintptr_t.
2619 * config.in: Regenerated.
2620
b3a8389d
JM
26212003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
2622
2623 * libiberty.texi: Update to GFDL 1.2.
2624
d8c22ce7
CC
26252003-01-30 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2626
2627 * Makefile.in (libiberty_topdir): New subst.
2628 (mkinstalldirs): Redefine in terms of the above.
2629 * configure.in: AC_SUBST it.
2630 * configure: Regenerate.
2631
4ce1921a
CC
26322003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2633
2634 * Makefile.in (all-subdir, check-subdir, installcheck-subdir)
2635 (info-subdir, install-info-subdir, clean-info-subdir)
2636 (dvi-subdir, install-subdir, etags-subdir, mostlyclean-subdir)
2637 (clean-subdir, distclean-subdir, maintainer-clean-subdir):
2638 Pass $(FLAGS_TO_PASS).
2639
93239fdb
AO
26402003-01-27 Alexandre Oliva <aoliva@redhat.com>
2641
2642 * Makefile.in (install_to_tooldir): Instead of $(MULTISUBDIR), use
2643 /`$$CC -print-multi-os-directory`.
2644
74828682
DJ
26452003-01-26 Daniel Jacobowitz <drow@mvista.com>
2646
2647 * hashtab.c (htab_create_alloc_ex): New function.
2648 (hatab_set_functions_ex): New function.
2649 (htab_delete, htab_expand): Support alternate allocation functions.
2650
ece0e59f
CF
26512003-01-24 Christopher Faylor <cgf@redhat.com>
2652
2653 * configure.in: Remove special pex-cygwin consideration.
2654 * configure: Regenerate.
2655 * pex-cygwin.c: Remove.
2656 * Makefile.in: Remove pex-cygwin.[co] lines.
2657
55d0e5e0
ZW
26582003-01-24 Zack Weinberg <zack@codesourcery.com>
2659
2660 * Makefile.in (CFILES): Add pex-*.c.
2661 (REQUIRED_OFILES): Change pexecute.o to @pexecute@
2662 (CONFIGURED_OFILES): Add pex-*.o.
2663 (TEXIFILES): Add pexecute.txh.
2664 (pexecute.o): Delete rule.
2665 (pex-cygwin.o, pex-djgpp.o, pex-mpw.o, pex-msdos.o, pex-os2.o,
2666 pex-unix.o, pex-win32.o): New rules.
2667 * configure.in: Change AC_INIT argument to xmalloc.c.
2668 Compute appropriate pexecute implementation and substitute it
2669 as @pexecute@.
2670
2671 * pexecute.c: Split up into...
2672 * pex-cygwin.c, pex-djgpp.c, pex-mpw.c, pex-msdos.c, pex-os2.c,
2673 pex-unix.c, pex-win32.c, pex-common.h, pexecute.txh: ... these
2674 new files.
2675
2676 * functions.texi: Regenerate.
2677 * configure: Regenerate.
2678
120cdf68
JZ
26792003-01-20 Josef Zlomek <zlomekj@suse.cz>
2680
2681 * hashtab.c (htab_expand): Fix allocation of new entries.
2682
90e5b39f
CC
26832003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
2684
2685 * Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
2686
d7082cd7
CC
2687 * Makefile.in (install_to_libdir, install_to_tooldir): Add a
2688 mkinstalldirs command.
2689
eaed9290
DS
26902002-12-04 Danny Smith <dannysmith@users.sourceforge.net>
2691
2692 * make-relative-prefix.c (HAVE_HOST_EXECUTABLE_SUFFIX):
2693 Define for hosts with HOST_EXECUTABLE_SUFFIX.
2694
ef4e4181
NC
26952002-11-24 Nick Clifton <nickc@redhat.com>
2696
2697 * make-relative-prefix.c (make_relative_prefix): Ensure return
2698 string is empty before using strcat to construct it.
2699
42766f8d
DJ
27002002-11-22 Daniel Jacobowitz <drow@mvista.com>
2701
2702 * Makefile.in: Add make-relative-prefix.c.
2703 * make-relative-prefix.c: New file.
2704 * functions.texi: Rebuilt.
2705
783080ab
JJ
27062002-11-16 Jakub Jelinek <jakub@redhat.com>
2707
2708 * md5.c (md5_process_block): Avoid `function-like macro "F{G,H,I}" must be
2709 used with arguments in traditional C' warnings.
2710
7da64d7a
JJ
27112002-10-16 Jakub Jelinek <jakub@redhat.com>
2712
2713 * config.table: Use mh-s390pic for s390x too.
2714
de78f58b
AJ
27152002-10-06 Andreas Jaeger <aj@suse.de>
2716
2717 * libiberty/cplus-dem.c (ada_demangle): Get rid of unneeded
2718 variable and of strict-aliasing warning.
2719 (grow_vect): Use char as first parameter.
2720
6c5d742e
KG
27212002-09-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2722
2723 * Makefile.in (all): Fix multilib parallel build.
2724
f08b7eee
JDA
27252002-09-19 John David Anglin <dave@hiuly1.hia.nrc.ca>
2726
2727 * cp-demangle.c (demangling_new): Cast 0 to enum.
2728 (demangle_char): Cast return of strdup to char *.
2729 (is_gnu_v3_mangled_ctor): Cast 0 to enum.
2730 (is_gnu_v3_mangled_dtor): Likewise.
2731 * cplus-dem.c (grow_vect): Cast return of xrealloc to void *.
2732 (work_stuff_copy_to_from): Cast return of xmalloc to char **.
2733 * fibheap.c (fibnode_new): Cast return of xcalloc to fibnode_t.
2734 * md5.c (md5_process_bytes): Cast results back to const void *.
2735 (md5_process_block): Add cast to const md5_uint32 *.
2736 * regex.c (re_compile_fastmap): Cast enum to UCHAR_T.
2737 * safe-ctype.c (L, XL, U, XU, D, P, _, C, Z, M, V, T, S): Add cast to
2738 unsigned short.
2739 * splay-tree.c (splay_tree_xmalloc_allocate): Cast return of xmalloc
2740 to void *.
2741 * vasprintf.c (int_vasprintf): Cast return of malloc to char *.
2742
8d87f295
NC
27432002-09-19 Nick Clifton <nickc@redhat.com>
2744
2745 * README: Update email addresses for bugs and patches.
2746
6eedb9ca
MS
27472002-09-10 Mike Stump <mrs@apple.com>
2748
2749 * splay-tree.c (splay_tree_successor): Fix comments.
2750
3fd9d606
ZW
27512002-09-11 Zack Weinberg <zack@codesourcery.com>
2752
b2196e8f 2753 * cplus-dem.c: Code under #ifdef MAIN moved to gcc/cp/cxxfilt.c.
3fd9d606
ZW
2754 * testsuite/Makefile.in: Adjust for test-demangle.
2755 * testsuite/regress-demangle: Deleted.
2756 * testsuite/test-demangle.c: New file.
2757 * testsuite/demangle-expected: Change \$ to $ throughout, now that
2758 this file is not being read by a shell script.
2759
70c4e67a
RS
27602002-09-05 Roger Sayle <roger@eyesopen.com>
2761
2762 * regex.c: Only use "#pragma alloca" on AIX when not using gcc.
2763
65b91091
DD
27642002-08-07 DJ Delorie <dj@redhat.com>
2765
2766 * regex.c (re_error_msgid): Just use a simple array of strings.
2767 (re_compile_pattern): Compensate.
2768 (re_comp): Likewise.
2769 (re_comp): Likewise.
2770 (regerror): Likewise.
2771
437974a9
NB
27722002-07-29 Neil Booth <neil@daikokuya.co.uk>
2773
2774 * cplus-dem.c (PREPEND_BLANK): Remove.
de78f58b 2775
28a34ec1
JM
27762002-07-10 Jason Merrill <jason@redhat.com>
2777
2778 * cp-demangle.c (demangle_identifier): Support extended Unicode
2779 characters.
2780
84326592
KG
27812002-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2782
2783 * cp-demangle.c (demangle_v3_with_details): Wrap in
de78f58b 2784 !defined IN_GLIBCPP_V3.
84326592 2785
5d69ba1f
MM
27862002-07-01 Mark Mitchell <mark@codesourcery.com>
2787
2788 * cp-demangle.c (demangle_operator_name): Add type_arg parameter.
2789 Set it for the "st" operator.
2790 (demangle_expression): Handle expressions with types as arguments.
2791
7fda878c
DR
27922002-06-30 Douglas Rupp <rupp@gnat.com>
2793
2794 * configure.in (OUTPUT_OPTION,NO_MINUS_C_MINUS_O): Configure.
2795 * Makefile.in (OUTPUT_OPTION): Use.
2796
112bae77
PB
27972002-06-22 Peter Breitenlohner <peb@mppmu.mpg.de>
2798
2799 * Makefile.in (install_to_libdir): Add $(DESTDIR).
2800 (install_to_tooldir): Likewise.
2801
53309d5c
DR
28022002-06-17 Douglas Rupp <rupp@gnat.com>
2803
2804 * lbasename.c: Add 2002 to copyright.
2805 (IS_DIR_SEPARATOR): Remove VMS junk.
2806
045b3a49
GK
28072002-06-05 Geoffrey Keating <geoffk@redhat.com>
2808
2809 * hashtab.c (htab_create): New stub function for backward
2810 compatibility.
2811 (htab_try_create): Likewise.
2812
e2500fed
GK
28132002-06-03 Geoffrey Keating <geoffk@redhat.com>
2814
2815 * hashtab.c (htab_create): Delete.
2816 (htab_try_create): Delete.
2817 (htab_create_alloc): New.
2818 (htab_delete): Support user-specified memory allocation.
2819 (htab_expand): Likewise.
2820
9f3dbd92
RL
28212002-05-22 Roman Lechtchinsky <rl@cs.tu-berlin.de>
2822
2823 * configure.in: Fix typo in the code checking for sys_errlist.
2824 * configure: Regenerated.
2825
e4723404
AS
28262002-05-13 Andreas Schwab <schwab@suse.de>
2827
2828 * config.table: Use mh-x86pic also for x86-64.
2829
6706f116
AO
28302002-05-08 Alexandre Oliva <aoliva@redhat.com>
2831
2832 * configure.in (ORIGINAL_LD_FOR_MULTILIBS): Preserve LD at
2833 script entry, and set LD to it when configuring multilibs.
2834 * configure: Rebuilt.
2835
deae2ed9
MM
28362002-05-07 Mark Mitchell <mark@codesourcery.com>
2837
2838 * configure.in (AC_TYPE_PID_T): Use it.
2839 * configure: Regenerated.
2840 * getruntime.c: Include <sys/types.h>.
2841 * waitpid.c: Likewise. Use pid_t, not int, as the type of "pid".
2842
4fc4e478
RH
28432002-04-09 Richard Henderson <rth@redhat.com>
2844
2845 * hashtab.c (higher_prime_number): Use 7 as minimum.
2846 (find_empty_slot_for_expand): Don't compute hash2 unless needed.
2847 (htab_find_slot_with_hash): Likewise.
2848
bd7e6f2d
PE
28492002-04-01 Phil Edwards <pme@gcc.gnu.org>
2850
2851 * cp-demangle.c (__cxa_demangle): Also protect with IN_GLIBCPP_V3.
2852 (is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_ctor): Conditionally
2853 not compile if IN_GLIBCPP_V3 defined.
2854 * dyn-string.c: Also allow IN_GLIBCPP_V3 to change allocation scheme.
2855
a8f55e51
BM
28562002-03-30 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
2857
de78f58b 2858 * cp-demangle.c (java_demangle_v3): Don't try to release "demangled"
a8f55e51
BM
2859 if it is NULL.
2860
96adcacb
DD
28612002-03-27 DJ Delorie <dj@redhat.com>
2862
2863 * hex.c: Add documentation.
2864 (_hex_value): Provide non-ASCII empty table.
2865 (hex_init): Initialize the non-ASCII table.
2866 * functions.texi: Regenerate.
2867
2b613c6a
MM
28682002-03-27 Mark Mitchell <mark@codesourcery.com>
2869
2870 * dyn-string.c: Add libgcc exception to copyright notice.
2871
cd862df8
L
28722002-03-26 H.J. Lu (hjl@gnu.org)
2873
2874 * config.table: Support --with-build-subdir.
2875 * configure.in: Likewise.
2876 * configure: Rebuild.
2877
ed300793
SG
28782002-03-18 Stuart Griffith <Stuart_Griffith@credence.com>
2879
2880 * strtod.c (strtod): Increment 8 chars, not 7, when `infinity'
2881 seen.
2882
b3dd43df
MM
28832002-03-12 Mark Mitchell <mark@codesourcery.com>
2884
2885 * cp-demangle.c: Add libgcc exception to cp-demangle.c copyright
2886 notice.
2887
50c74579
DR
28882002-03-11 Douglas B Rupp <rupp@gnat.com>
2889
2890 * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
2891
957978a4
JB
28922002-03-06 Jim Blandy <jimb@redhat.com>
2893
2894 * splay-tree.c (splay_tree_xmalloc_allocate,
2895 splay_tree_xmalloc_deallocate): Use K&R-style definitions, not
2896 prototyped definitions. Mark `data' arguments as unused.
2897
ccc49bed
AC
28982002-03-06 Andrew Cagney <ac131313@redhat.com>
2899
2900 * floatformat.c (floatformat_arm_ext_big): Delete definition.
2901
48d7db63
PE
29022002-03-04 Phil Edwards <pme@gcc.gnu.org>
2903
2904 * configure.in: Add --enable-install-libiberty option.
2905 * Makefile.in (INSTALLED_HEADERS): New variable.
2906 (install_to_libdir): Possibly also copy headers.
2907 * configure: Regenerated.
2908
af18e951
NB
29092002-03-04 Neil Booth <neil@daikokuya.demon.co.uk>
2910
2911 * xmalloc.c (xmalloc_fail): Clarify error message further.
2912
d8d7c3c3
NB
29132002-03-03 Neil Booth <neil@daikokuya.demon.co.uk>
2914
2915 * xmalloc.c (xmalloc_fail): Clarify error message.
2916
00c2f96f
JB
29172002-02-22 Jim Blandy <jimb@redhat.com>
2918
2919 * splay-tree.c (splay_tree_xmalloc_allocate,
2920 splay_tree_xmalloc_deallocate): New functions.
2921 (splay_tree_new): Call splay_tree_new_with_allocator, passing the
2922 above functions and a dummy data pointer.
2923 (splay_tree_new_with_allocator): New function.
2924 (splay_tree_delete_helper, splay_tree_delete, splay_tree_insert,
2925 splay_tree_remove): Use the splay tree's allocation and
2926 deallocation functions.
2927
b1c1a22f
SS
29282002-02-19 Scott Snyder <snyder@fnal.gov>
2929
2930 * testsuite/demangle-expected: Add test case for infinite loop in
2931 demangler.
2932 * cplus-dem.c (demangle_arm_hp_template): Stop trying to demangle
2933 if do_type() doesn't make any progress --- prevents an infinite
2934 loop.
2935
336669e7
CW
29362002-02-18 Carlo Wood <carlo@gnu.org>
2937
2938 PR c++/5390
2939 * cplus-dem.c (demangle_integral_value): Accept multi-digit
2940 numbers that do not start with an underscore; This is needed
2941 for integer template parameters. This doesn't break anything
2942 because multi-digit numbers are never followed by a digit.
2943 * testsuite/demangle-expected: Corrected all mangled test
2944 cases with multi-digit template parameters: g++ 2.95.x does
2945 not generate underscores around these parameters.
2946
c13db5d1
JM
29472002-02-05 Jason Merrill <jason@redhat.com>
2948
2949 * cplus-dem.c (flags): Add DMGL_VERBOSE
2950 (cplus_demangle_v3_p): Remove.
2951 (demangle_it): Add DMGL_TYPES to passed flags.
2952 * cp-demangle.c (cplus_demangle_v3_all): Remove.
2953 (cplus_demangle_v3_type): Remove.
2954 (cplus_demangle_v3): Add options parm.
2955
d74697b8
L
29562002-02-02 H.J. Lu (hjl@gnu.org)
2957
2958 * cp-demangle.c (cp_demangle_type): Do not protect with
2959 IN_LIBGCC2.
2960 (cplus_demangle_v3_all): New.
2961 (cplus_demangle_v3): Call cplus_demangle_v3_all.
2962 (cplus_demangle_v3_type): Call cplus_demangle_v3_all.
2963
2964 * cplus-dem.c (cplus_demangle_v3_p): New function pointer.
2965 Initialized to cplus_demangle_v3.
2966 (cplus_demangle_with_style): Call cplus_demangle_v3_p instead
2967 of cplus_demangle_v3.
2968 (main): Set cplus_demangle_v3_p to cplus_demangle_v3_type for
2969 command line symbol.
2970
2971 * testsuite/regress-demangle: Pass the mangled name at the
2972 command line.
2973
3a441e38
L
29742002-02-01 H.J. Lu <hjl@gnu.org>
2975
2976 * cp-demangle.c (cp_demangle_type): Call demangling_new with
2977 DMGL_GNU_V3.
2978
6d747e63
PE
29792002-01-31 Phil Edwards <pme@gcc.gnu.org>
2980
2981 * cp-demangle.c: Revert yesterday's change.
2982
46af757b
AM
29832002-01-31 Adam Megacz <adam@xwt.org>
2984
2985 * gcc/libiberty/configure.in: Treat mingw the same as cywin
2986 wrt HAVE_SYS_ERRLIST.
2987
46ab74b1
PE
29882002-01-30 Phil Edwards <pme@gcc.gnu.org>
2989
2990 * cp-demangle.c (cp_demangle_type): Do not protect with IN_LIBGCC2.
2991 (cplus_demangle_v3): Mimic __cxa_demangle and fall back on
2992 cp_demangle_type.
2993 * testsuite/demangle-expected: New gnu-v3 test.
2994
e64d0626
MV
29952002-01-22 Momchil Velikov <velco@fadata.bg>
2996
2997 * configure.in (variable detection): Use arrays of unspecified
2998 size instead of plain integers.
2999
9ce3f7e5
DD
30002002-01-18 DJ Delorie <dj@redhat.com>
3001
3002 * Makefile.in (TESTLIB): New. This library is for future
3003 testsuites.
3004 (CFILES, REQUIRED_OFILES, CONFIGURED_OFILES): Re-alphabetize,
3005 break down by letter.
3006 (REQUIRED_OFILES): List long-to-compile files first.
3007 (maint-deps): New, target for updating dependencies.
3008 (dependencies): Update.
3009 * maint-tool: Add dependency-generating option.
3010 * configure.in: Check for _doprnt even if we're not providing it.
3011 * configure: Regenerate.
3012
3013 * _doprnt.c: Modifications to allow compiling on any platform.
3014 * copysign.c: Likewise.
3015 * putenv.c: Likewise.
3016 * setenv.c: Likewise.
3017 * vsprintf.c: Likewise.
3018
0e83ceb1
DR
30192002-01-15 Douglas B Rupp <rupp@gnat.com>
3020
3021 * mkstemps.c (mkstemps): On VMS, open temp file with option
3022 that causes it to be deleted when closed.
3023
adddf5bf
KG
30242002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3025
5e65297b
KG
3026 * cp-demangle.c (long_options): Const-ify.
3027 * cplus-dem.c (long_options): Likewise.
3028
adddf5bf
KG
3029 * cplus-dem.c (mystrstr): Delete. All callers changed to use
3030 strstr instead.
3031
a4219437
IR
30322001-12-31 Ira Ruben <ira@apple.com>
3033
3034 * aclocal.m4 (libiberty_AC_FUNC_STRNCMP): Use anon mmap as 2nd try.
3035 * configure: Regenerated.
af328d8d
DR
3036
30372001-12-24 Douglas B. Rupp <rupp@gnat.com>
3038
3039 * configure.in (uintptr_t): Use AC_CHECK_TYPE.
3040 * configure: Regenerated.
a4219437 3041
63de15a4
CR
30422001-12-12 Craig Rodrigues <rodrigc@gcc.gnu.org>
3043
3044 PR other/2719
3045 * cplus-dem.c (consume_count): Treat negative count as an error.
3046 * testsuite/demangle-expected: Added testcase.
3047
ee262b6f
DR
3048Tue Dec 11 07:08:57 2001 Douglas B. Rupp <rupp@gnat.com>
3049
3050 * configure.in: Hardcode that vfork works on VMS host.
3051 * configure: Regenerated.
3052
d06ba3c7
RH
30532001-12-06 Richard Henderson <rth@redhat.com>
3054
3055 * cplus-dem.c (libiberty_demanglers): Add no_demangling case.
3056 (cplus_demangle): Support no_demangling.
3057
e490616e
ZW
30582001-11-27 Zack Weinberg <zack@codesourcery.com>
3059
3060 * _doprnt.c: Moved here from gcc/doprint.c. Adjust to build
3061 in libiberty context. Fix typo in leading comment.
3062 * configure.in: Fix various AC_DEFINEs so autoheader works.
3063 If any of vprintf, vsprintf, vfprintf is missing from libc,
3064 then AC_REPLACE_FUNCS(_doprnt).
3065
97e620cf 30662001-11-26 DJ Delorie <dj@redhat.com>
e490616e 3067 Daniel Jacobowitz <drow@mvista.com>
97e620cf
DD
3068
3069 * Makefile.in (stamp-h): Depend on Makefile for proper
3070 serialization.
3071 (*-subdir): Depend on config.h for proper serialization.
3072
c3bb7df0
DD
30732001-11-26 DJ Delorie <dj@redhat.com>
3074
3075 * configure.in: Check for alloca.h (for regex.c and putenv.c).
3076 * configure: Regenerate.
3077 * config.h: Add HAVE_ALLOCA_H.
3078
23850d35
KG
30792001-11-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3080
2c47b56b
KG
3081 * regex.c: Check defined(__STDC__) || defined(ALMOST_STDC) ||
3082 defined(HAVE_STRINGIZE) to determine whether ISO CPP token pasting
3083 is available.
23850d35 3084
7ddfb651
JL
3085Thu Nov 15 11:06:25 2001 Jeffrey A Law (law@cygnus.com)
3086
d3982b71
JL
3087 * config.in (HAVE_UINTPTR_T): Provide autoconf stub.
3088 * configure.in (HAVE_UINTPTR_T): Test for system defining
3089 uintptr_t and define HAVE_UINTPTR_T appropriately.
3090 * regex.c (uintptr_t): Do not provide a definition if the
3091 system provided one.
3092
7ddfb651
JL
3093 * regex.c (PREFIX): Provide an alternate definition for
3094 non-ANSI/ISO compilers.
3095 (ARG_PREFIX): Likewise.
3096
2e683037
JM
30972001-11-12 Jim Meyering <meyering@lucent.com>
3098
3099 * obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
3100 this code would end up calling gettext even in packages built
3101 with --disable-nls.
3102 * getopt.c (_): Likewise.
3103 * regex.c (_): Likewise.
3104
f749bd83
AM
31052001-11-03 Alan Modra <amodra@bigpond.net.au>
3106
3107 * configure.in: Cope with missing makeinfo.
55a10d7c 3108 * configure: Regenerate.
f749bd83 3109
26ad2982
KG
31102001-10-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3111
e5969ba6
KG
3112 * hex.c (hex_init): Provide empty stub.
3113
26ad2982
KG
3114 * hex.c (hex_init): Delete.
3115 (_hex_value): Const-ify and initialize at compile-time.
3116
afb649d5
L
31172001-10-19 H.J. Lu <hjl@gnu.org>
3118
3119 * Makefile.in ($(TARGETLIB)): Also generate pic/$(TARGETLIB) if
3120 necessary.
3121
5bed56d9
DD
31222001-10-17 DJ Delorie <dj@redhat.com>
3123
3124 * argv.c, asprintf.c, choose-temp.c, concat.c, cplus-dem.c,
3125 ffs.c, fnmatch.txh, getruntime.c, make-temp-file.c,
4dcc42a3 3126 mkstemps.c, pexecute.c, random.c, strsignal.c, vasprintf.c:
5bed56d9
DD
3127 Improve manual formatting.
3128 * functions.texi: Regenerate.
3129
aac04c15
DD
31302001-10-15 DJ Delorie <dj@redhat.com>
3131
3132 * Makefile.in (TEXIFILES): Add fnmatch.txh.
3133 (maint-undoc): New.
3134 maint-tool: Add "undoc" tool.
3135 * alloca.c, argv.c, asprintf.c, choose-temp.c, concat.c,
3136 fdmatch.c, ffs.c, getruntime.c, insque.c, lbasename.c,
3137 make-temp-file.c, mkstemps.c, pexecute.c, random.c, spaces.c,
3138 strerror.s, strsignal.c, strtol.c, vasprintf.c: Add or update
3139 documentation.
3140 * fnmatch.txh: New.
3141 * functions.texi: Regenerate.
fae8182a 3142
0e4e9e8f
JM
31432001-10-10 Joseph S. Myers <jsm28@cam.ac.uk>
3144
3145 * bcmp.c, setenv.c: Use "nonzero" instead of "non-zero".
3146 * strtod.c: Use "ISO C" instead of "ANSI C".
3147 * functions.texi: Regenerate.
3148
7f8fa05d
JM
31492001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
3150
3151 * alloca.c, clock.c, getcwd.c, getpagesize.c, getpwd.c, index.c,
3152 libiberty.texi, memchr.c, putenv.c, rindex.c, strchr.c, strdup.c,
3153 strerror.c, strrchr.c, strstr.c, strtod.c, tmpnam.c, vfork.c,
3154 xatexit.c, xmalloc.c, xstrerror.c: Improve manual formatting. Fix
3155 spelling. Give names to function arguments in documentation. Use
3156 (void) prototypes in documentation.
3157 * functions.texi: Regenerate.
3158
0be6abca
KG
31592001-10-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3160
3161 * argv.c (buildargv, tests, main): Const-ify.
3162 * cp-demangle.c (operator_code): Likewise.
3163 * cplus-dem.c (optable, libiberty_demanglers,
3164 cplus_demangle_set_style, cplus_demangle_name_to_style,
3165 print_demangler_list): Likewise.
3166 * hashtab.c (higher_prime_number): Likewise.
3167 * strcasecmp.c (charmap): Likewise.
3168 * strerror.c (error_info, strerror, main): Likewise.
3169 * strncasecmp.c (charmap): Likewise.
3170 * strsignal.c (signal_info): Likewise.
3171
0e30ffc5
DD
31722001-09-29 DJ Delorie <dj@redhat.com>
3173
3174 * configure: Regenerate.
3175
576fb787
KG
31762001-09-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3177
3178 * concat.c: Include stdlib.h.
3179
e922f978
EZ
31802001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3181
3182 * libiberty.texi: (Top level): Add syncodeindex pg. Add
3183 @dircategory and @direntry directives. Add @finalout.
3184 (many nodes): Lose the next,prev,up pointers on the @nide line.
3185 (Using, Supplemental Functions, Replacement Functions): Fix
3186 markup.
3187 (Functions): Move around, to allow makeinfo to build the manual
3188 without next,prev,up pointers in thye node lines.
3189 (Licenses): Fix typos.
3190
3191 * index.c, rindex.c, strchr.c, strerror.c, strrchr.c, strstr.c,
3192 strtol.c, xatexit.c, xexit.c, xmalloc.c: Fix spelling and markup.
3193 * functions.texi: Regenerate.
3194
3195 * copying-lib.texi: Lose the next,prev,up pointers on the @node
3196 line.
3197
ae9092da
DD
31982001-09-27 DJ Delorie <dj@redhat.com>
3199
3200 * configure.in: Don't use in-tree texinfo, because libiberty must
3201 be built before it. Check for makeinfo version 4 or higher.
3202 * functions.texi: Regenerate.
fae8182a 3203
aaa5f039
DD
32042001-09-20 DJ Delorie <dj@redhat.com>
3205 Phil Edwards <pedwards@disaster.jaj.com>
fae8182a 3206
aaa5f039
DD
3207 * configure.in (MAKEINFO, PERL): Detect these.
3208 (--enable-maintainer-mode): Add.
3209 * configure: Regenerate.
3210 * Makefile.in (MAKEINFO, PERL): Define.
3211 (libiberty.info, libiberty.dvi, libiberty.html): New.
3212 (CFILES): Add bsearch.c.
3213 (CONFIGURED_OFILES): New, list of objects configure might add.
3214 (maint-missing, maint-buildall): New, for maintainers only.
3215 (clean, mostlyclean): Add info/dvi/html files.
3216 * libiberty.texi, copying-lib.texi, obstacks.texi, functions.texi: New.
3217 * gather-docs: New, for maintainers.
3218 * maint-tool: New, for maintainers.
3219 * alloca.c, atexit.c, basename.c, bcmp.c, bcopy.c, bsearch.c,
3220 bzero.c, calloc.c, clock.c, configure.in, configure, getcwd.c,
3221 getpagesize.c, getpwd.c, index.c, memchr.c, memcmp.c, memcpy.c,
3222 memmove.c, memset.c, putenv.c, rename.c, rindex.c, setenv.c,
3223 sigsetmask.c, strcasecmp.c, strchr.c, strdup.c, strerror.c,
3224 strncasecmp.c, strncmp.c, strrchr.c, strstr.c, strtod.c, strtol.c,
3225 tmpnam.c, vfork.c, vprintf.c, waitpid.c, xatexit.c, xexit.c,
3226 xmalloc.c, xmemdup.c, xstrdup.c, xstrerror.c: Add or update
3227 documentation.
fae8182a 3228
c1766881
KG
32292001-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3230
3231 * concat.c (reconcat): Fix for traditional C.
3232
ad43d46f
KG
32332001-09-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3234
3235 * concat.c (reconcat): New function.
3236
c1d49704
KG
32372001-09-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3238
c793eea7
KG
3239 * concat.c (vconcat_length, vconcat_copy, concat_length,
3240 concat_copy, concat_copy2): New functions.
3241 (concat): Use vconcat_length/vconcat_copy.
3242
c1d49704
KG
3243 * alloca.c (libiberty_optr, libiberty_nptr, libiberty_len):
3244 Define.
3245
7a98d9b2
KG
32462001-09-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3247
3248 * asprintf.c: Don't define USE_STDARG. Use VPARAMS, VA_OPEN,
3249 VA_FIXEDARG & VA_CLOSE.
fae8182a 3250
7a98d9b2
KG
3251 * vasprintf.c: Check HAVE_STRING_H when including string.h.
3252 (checkit): Delete redundant prototype. Add ATTRIBUTE_PRINTF_1.
3253 Use VA_OPEN, VA_FIXEDARG & VA_CLOSE. Free allocated string.
3254
e2dff3f2
KG
32552001-08-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3256
3257 * concat.c (concat): Use VPARAMS, VA_OPEN, VA_FIXEDARG & VA_CLOSE.
3258
d0708dc1
UD
32592001-08-23 Ulrich Drepper <drepper@redhat.com>
3260
3261 * regex.c (truncate_wchar): Use wcrtomb not wctomb.
3262
32632001-08-23 Ulrich Drepper <drepper@redhat.com>
3264
3265 * posix/regex.c [_LIBC] (convert_mbs_to_wcs): Use __mbrtowc
3266 instead of mbrtowc.
3267 [_LIBC]: Use __iswctype instead of iswctype, __wcslen instead of
3268 wcslen, and __wcscoll instead of wcscoll.
3269
ffb9435b
MK
32702001-08-22 Matt Kraai <kraai@alumni.carnegiemellon.edu>
3271
de78f58b
AJ
3272 * fibheap.c (fibheap_init, fibnode_init): Remove.
3273 (fibheap_new, fibnode_new): Use xcalloc to allocate and
3274 initialize memory.
3275 (fibheap_insert): Remove check for node allocation failure.
ffb9435b 3276
f379eac3
RH
32772001-08-21 Richard Henderson <rth@redhat.com>
3278
3279 * Makefile.in (fibheap.o): Depend on config.h.
3280 * fibheap.c: Tidy formatting. Use config.h.` Rearrange some
3281 functions for inlining.
3282
b1c45ae4
CF
3283Tue Aug 21 12:35:04 2001 Christopher Faylor <cgf@cygnus.com>
3284
3285 * configure.in: Need to set HAVE_SYS_ERRLIST and HAVE_SYS_NERR whenever
3286 hosting on cygwin.
3287 * configure: Regenerate.
3288
0310e5ac
AC
32892001-08-20 Andrew Cagney <ac131313@redhat.com>
3290
3291 * floatformat.c (floatformat_m88110_ext): Remove #ifdef
3292 HARRIS_FLOAT_FORMAT.
3293 (floatformat_ia64_spill_little, floatformat_ia64_quad_little)
3294 (floatformat_ia64_spill_big, floatformat_ia64_quad_big)
3295 (floatformat_arm_ext_big, floatformat_arm_ext_littlebyte_bigword)
3296 (floatformat_m88110_harris_ext): New float formats.
3297
8c23e0a4
DB
32982001-08-20 Daniel Berlin <dan@cgsoftware.com>
3299
3300 * fibheap.c: New file. Fibonacci heap.
3301
3302 * Makefile.in (CFILES): Add fibheap.c.
3303 (REQUIRED_OFILES): Add fibheap.o.
3304 (fibheap.o): Add dependencies for fibheap.o.
3305
91625004
CF
33062001-08-17 Christopher Faylor <cgf@cygnus.com>
3307
3308 * configure.in: Always set HAVE_SYS_ERRLIST when targetting cygwin.
3309 * configure: Regenerate.
3310
9e0ba685
RH
33112001-08-16 Richard Henderson <rth@redhat.com>
3312
3313 * hashtab.c (htab_hash_string): New.
3314
d80dedbe
AC
33152001-08-13 Andrew Cagney <ac131313@redhat.com>
3316
3317 * floatformat.c (floatformat_ieee_double_littlebyte_bigword): Fix
3318 name.
3319
ccea0d85
IH
33202001-08-12 Isamu Hasegawa <isamu@yamato.ibm.com>
3321
3322 * regex.c (wcs_regex_compile): Use appropriate string
3323 to compare with collating element.
3324 Fix the padding for the alignment.
3325
b0e9bc8c 33262001-08-10 Andrew Cagney <ac131313@redhat.com>
0ef5547d
AC
3327
3328 * lbasename.c (lbasename): Change function definition to return a
3329 const char pointer.
3330
056400f1
JM
33312001-08-07 Jason Merrill <jason_merrill@redhat.com>
3332
3333 * cp-demangle.c (demangle_special_name): "GR" -> "reference temporary
3334 for".
3335
4e627c41
RH
33362001-08-03 Richard Henderson <rth@redhat.com>
3337
3338 * Makefile.in (concat.o): Depend on config.h.
3339
b6a2f884
AJ
33402001-07-30 Andreas Jaeger <aj@suse.de>
3341
3342 * concat.c: Include "config.h".
3343
c4b9cfe0
AJ
33442001-07-30 Andreas Jaeger <aj@suse.de>
3345
3346 * regex.c: Declare wcs functions only if compiling with
3347 MBS_SUPPORT.
3348 Don't use #elif for traditional C.
3349
33502001-07-23 Ulrich Drepper <drepper@redhat.com>
3351
3352 * regex.c: Revamp memory allocation for WCHAR functions to
3353 not use too much stack.
3354
33552001-07-30 Andreas Jaeger <aj@suse.de>
3356
3357 * regex.c: Declare wcs functions only if compiling with
3358 MBS_SUPPORT.
3359 Don't use #elif for traditional C.
3360
2cf50fd3
DJ
33612001-07-25 Daniel Jacobowitz <drow@mvista.com>
3362
3363 * Makefile.in (regex.o): Add dependency on config.h.
3364
27ffc806
DD
33652001-07-18 Andreas Schwab <schwab@suse.de>
3366
3367 * regex.c (WORDCHAR_P) [WCHAR]: Also return true for the
3368 underscore character.
3369
33702001-07-18 Ulrich Drepper <drepper@redhat.com>
3371
3372 * regex.c: Limit string length printed in debug messages to 100
3373 chars.
3374
33752001-07-18 Andreas Jaeger <aj@suse.de>
3376
3377 * regex.c: Place under LGPL version 2.1.
3378
dd771632
JJ
33792001-07-10 Jeff Johnston <jjohnstn@redhat.com>
3380
3381 * Makefile.in: Add support for regex code.
3382 * regex.c: New file.
3383
29650b2b
MK
33842001-07-05 Mark Klein <mklein@dis.com>
3385
3386 * Makefile.in: Add ffs.c dependency.
3387 * configure.in: Add ffs.c.
3388 * ffs.c: New file.
3389
c8b28221
RH
33902001-06-18 Richard Henderson <rth@redhat.com>
3391
3392 * concat.c: Include <sys/types.h>.
3393
473c2d0b
LR
33942001-06-11 Loren J. Rittle <ljrittle@acm.org>
3395
a4c03da2 3396 bootstrap/3106
473c2d0b
LR
3397 * strerror.c (sys_nerr): Hide the OS header version.
3398 * strsignal.c (sys_nsig): Likewise.
3399
0bdcca68
RH
34002001-06-10 Richard Henderson <rth@redhat.com>
3401
3402 * concat.c: Include string.h. Fix int vs size_t usage.
3403 Simplify the iteration loops. Use memcpy.
3404
6de133d3
MK
34052001-05-16 Matt Kraai <kraai@alumni.carnegiemellon.edu>
3406
3407 * partition.c: Fix misspelling of `implementation'.
3408
8a153288
TS
34092001-05-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3410
3411 * md5.c (md5_init_ctx): Declare constants as unsigned.
3412 (md5_process_block): Likewise.
3413
641b2721
ZW
34142001-05-07 Zack Weinberg <zackw@stanford.edu>
3415
3416 * cp-demangle.c (demangle_v3_with_details,
3417 is_gnu_v3_mangled_ctor, is_gnu_v3_mangled_dtor): Use K+R style
3418 function definition.
3419 * ternary.c: Use K+R style function definitions. Use PTR, not
3420 void *. Make arguments constant where possible.
3421
5cdba4ff
MM
34222001-05-07 Mark Mitchell <mark@codesourcery.com>
3423
3424 * splay-tree.h (splay_tree_max): New function.
3425 (splay_tree_min): Likewise.
3426
9dab060e
DB
34272001-04-15 Daniel Berlin <dan@cgsoftware.com>
3428
3429 * ternary.c: New file - Ternary search tree implementation.
3430
3431 * Makefile.in: Add ternary.o, and ternary.c dependencies.
3432
d02af173
ZW
34332001-04-03 Zack Weinberg <zackw@stanford.edu>
3434
3435 * make-temp-file.c (try): Inline.
3436
94b68558
RH
34372001-02-28 Richard Henderson <rth@redhat.com>
3438
3439 * Makefile.in (make-temp-file.o): Depend on config.h.
3440
27f66c0b
KG
34412001-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3442
3443 * memchr.c (memchr): Adjust condition to avoid infinite loop.
3444
f1a0345c
JJ
34452001-03-23 Jakub Jelinek <jakub@redhat.com>
3446
3447 * cp-demangle.c (demangle_discriminator): `_0' is discriminator #1,
3448 `_' not followed by a digit is invalid.
3449
a519fba6
JB
34502001-03-22 Jim Blandy <jimb@redhat.com>
3451
3452 * cp-demangle.c (string_list_delete): Use dyn_string_delete
3453 instead of free, to free the contents as well as the string
3454 structure.
3455
49ee944b
ZW
34562001-03-21 Zack Weinberg <zackw@stanford.edu>
3457
3458 * make-temp-file.c: Always default DIR_SEPARATOR to '/'.
3459 Don't default P_tmpdir to anything. Try /var/tmp before
3460 /usr/tmp.
3461
33437dc7
ZW
34622001-03-20 Zack Weinberg <zackw@stanford.edu>
3463
3464 * choose-temp.c: Split off make_temp_file, and the code
3465 duplicated between it and choose_temp_base, into...
3466 * make-temp-file.c: ... here; new file.
3467
3468 * Makefile.in (CFILES): Add make-temp-file.c.
3469 (REQUIRED_OFILES): Add make-temp-file.o.
3470
7dce2eff
JB
34712001-03-20 Jim Blandy <jimb@redhat.com>
3472
3473 * cp-demangle.c (struct demangling_def): New fields:
3474 is_constructor and is_destructor.
3475 (demangling_new): Initialize them.
3476 (demangle_ctor_dtor_name): Set them, if we detect a constructor
3477 or destructor.
3478 (demangle_v3_with_details, is_gnu_v3_mangled_ctor,
3479 is_gnu_v3_mangled_dtor): New functions.
3480
e03a61f1
JM
34812001-03-20 Jason Merrill <jason@redhat.com>
3482
3483 * cplus-dem.c (main): Skip initial $.
3484
8860ddab
MM
34852001-03-15 Michael Meissner <meissner@redhat.com>
3486
3487 * hashtab.c (higher_prime_number): Silence warning that 4294967291
3488 might be a signed integer under pre-ISO C systems.
3489
2b757d51
NB
34902001-03-10 Neil Booth <neil@daikokuya.demon.co.uk>
3491 John David Anglin <dave@hiauly1.hia.nrc.ca>
3492
3493 * libiberty/lbasename.c: New file.
3494 * libiberty/Makefile.in: Update for lbasename.
3495
1f50aafb
ZW
34962001-03-06 Zack Weinberg <zackw@stanford.edu>
3497
3498 * aclocal.m4 (libiberty_AC_FUNC_C_ALLOCA): New.
3499 * configure.in: Replace all alloca logic with a simple use of
3500 the above new macro.
3501 * config.table: Kill *-*-beos* entry.
3502 * config/mh-beos: Delete.
3503 * configure, config.in: Regenerate.
3504
3505 * Makefile.in (ALLOCA, HFILES): Kill.
3506 (REQUIRED_OFILES): Add alloca.o.
3507 (alloca.o): Depend on libiberty.h.
3508 (argv.o): Don't depend on alloca-conf.h.
3509 * alloca-conf.h: Delete.
3510 * alloca.c: Include libiberty.h. Kill all #ifdef emacs
3511 blocks. Provide the C alloca unconditionally. Use PTR where
3512 appropriate. Make i00afunc static.
3513 * argv.c: Don't include alloca-conf.h.
3514
d9fd5aae
JDA
35152001-03-04 John David Anglin <dave@hiauly1.hia.nrc.ca>
3516
3517 * cplus-dem.c (main): Cast enum style to int.
3518
4031ed65
LR
35192001-02-16 Loren J. Rittle <ljrittle@acm.org>
3520
3521 * cplus-dem.c (main): Initialize style.
3522
2ca46e8a
PE
35232001-02-02 Phil Edwards <pme@sources.redhat.com>
3524
3525 * COPYING.LIB: Update to LGPL 2.1 from the FSF.
3526
3b60dd8e
BM
35272001-01-31 Bryce McKinlay <bryce@albatross.co.nz>
3528
3529 Add support for Java demangling under the v3 ABI:
3530 * cp-demangle.c (NAMESPACE_SEPARATOR): New define.
3531 (struct demangling_def): Add `style' field.
3532 (demangling_new): New parameter `style'. Set it in demangling_t.
3533 (demangle_prefix): Use NAMESPACE_SEPARATOR.
3534 (demangle_type_ptr): Don't emit pointer symbol if doing Java output.
3535 (cp_demangle): New parameter `style'. Pass it to demangling_new().
3536 (main): Call cp_demangle with extra parameter.
3537 (java_demangle_v3): New function.
3538 (java_builtin_type_names): New. Table of primitive type names used
3539 for Java demangling.
3540 (demangle_builtin_type): Look up in java_builtin_type_names if doing
3541 Java output.
1f50aafb 3542 * cplus-dem.c (cplus_demangle): Use java_demangle_v3 to do Java
3b60dd8e
BM
3543 demangling.
3544 (long_options): Remove obsolete `java' option.
3545 (main): Remove explicit handling of `java' option. Instead, pass style
3546 parameter in cplus_demangle flags as gdb does.
3547 * testsuite/demangle.expected: Add some Java test cases.
3548
584932e9
DD
35492000-12-29 DJ Delorie <dj@redhat.com>
3550
3551 * fnmatch.c: Make the note about the origins of this file more
3552 accurate, at least until we can sync with glibc.
3553 * getopt.c: Ditto.
3554 * getopt1.c: Ditto.
3555 * md5.c: Ditto.
3556 * obstack.c: Ditto.
3557
dac45916
MS
35582000-12-26 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3559
3560 * bsearch.c: New file.
3561 * configure.in (funcs): Add bsearch.
3562 (AC_CHECK_FUNCS): Likewise.
3563 * configure, config.in: Regenerate.
3564
a8e4a997
MS
35652000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3566
3567 * safe-ctype.c: #include "ansidecl.h".
3568 * strtod.c: Likewise.
3569
75444da7
MS
35702000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3571
3572 * strtoul.c: Include safe-ctype.h, not ctype.h.
3573
f6bbde28
ZW
35742000-12-07 Zack Weinberg <zack@wolery.stanford.edu>
3575
3576 * safe-ctype.c: New file.
3577 * Makefile.in (CFILES): Add safe-ctype.c.
3578 (REQUIRED_OFILES): Add safe-ctype.o.
3579
3580 * argv.c: Define ISBLANK and use it, not isspace.
3581 * basename.c, cplus-dem.c, fnmatch.c, pexecute.c, strtod.c,
3582 strtol.c, strtoul.c: Include safe-ctype.h, not ctype.h. Use
3583 uppercase ctype macros. Don't test ISUPPER(c)/ISLOWER(c)
3584 before calling TOLOWER(c)/TOUPPER(c).
3585
6c1ce62b 35862000-12-07 Mike Stump <mrs@wrs.com>
b25a8973
MS
3587
3588 * Makefile.in (distclean): When cleaning, remove testsuite.
3589
b5d1497d
JM
35902000-12-05 Jason Merrill <jason@redhat.com>
3591
3592 * cp-demangle.c (cplus_demangle_v3): Check that it's a v3 mangled
3593 name before allocating the dyn_string.
3594
c6e13630
JM
35952000-12-04 Jason Merrill <jason@redhat.com>
3596
3597 * cp-demangle.c: s/new_abi/v3/.
3598 * cplus-dem.c: Likewise.
3599 (current_demangling_style): Now auto_demangling.
3600 (cplus_demangle): Try v3 demangling if AUTO_DEMANGLING.
f6bbde28 3601 (main): Use standard symbol chars for auto_demangling.
c6e13630 3602
a4c9b97e
MM
36032000-11-26 Mark Mitchell <mark@codesourcery.com>
3604
3605 * hashtab.c (higher_prime_number): Use a table, rather than a
3606 seive, to find the next prime.
3607
3b3bd9a7
L
36082000-11-22 H.J. Lu <hjl@gnu.org>
3609
3610 * cplus-dem.c (main): Handle gnat_demangling.
3611
d1209685
ZW
36122000-11-22 Zack Weinberg <zack@wolery.stanford.edu>
3613
3614 * aclocal.m4 (LIB_AC_PROG_CC): Moved here from configure.in.
3615 (AC_DEFINE_NOAUTOHEADER): New - work around bug in autoheader.
3616 * configure.in: Call AC_C_INLINE and AC_C_CONST. Use three
3617 argument form of AC_DEFINE in dummy definitions block. Use
3618 AC_DEFINE_NOAUTOHEADER for real definitions of things defined
3619 in dummy block. Preload cache variables instead of bypassing
3620 tests, where possible.
3621 * acconfig.h: Removed.
3622
3623 * xmalloc.c (xmalloc_failed): New function, does error
3624 reporting on failed allocation.
3625 (xmalloc, xcalloc, xrealloc): Use it.
3626
cf183ac2
HPN
36272000-11-21 Hans-Peter Nilsson <hp@bitrange.com>
3628
3629 * cplus-dem.c (cplus_demangle): Fix formatting.
3630 (grow_vect): Ditto.
3631 (ada_demangle): Ditto.
3632 (internal_cplus_demangle): Ditto.
3633 (mop_up): Ditto.
3634
36352000-11-21 H.J. Lu <hjl@gnu.org>
3636
3637 * cplus-dem.c (main): Handle java_demangling.
3638
8bcc782c
KG
36392000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3640
3641 * cplus-dem.c (grow_vect): Prototype.
3642 (ada_demangle): Cast the arg of ctype macros to unsigned char.
3643
29120f44
HPN
36442000-11-15 Hans-Peter Nilsson <hp@bitrange.com>
3645
3646 * cplus-dem.c (ada_demangle): Add back ATTRIBUTE_UNUSED for
3647 parameter `option'.
3648
0437a5a8
KB
36492000-11-15 Kenneth Block <kenneth.block@compaq.com>
3650
9e038f71 3651 * cplus-dem.c: Eliminate use of DEFUN, it is obsolete and cannot
0437a5a8
KB
3652 be used in GCC.
3653
eab0c1ab 36542000-11-15 Kenneth Block <kenneth.block@compaq.com>
61ab980a 3655
29120f44 3656 * cplus-dem.c: Add gnat demangler. Add java to demangle style
61ab980a
KB
3657 list.
3658
d50d20ec
HPN
36592000-11-04 Hans-Peter Nilsson <hp@bitrange.com>
3660
3661 * hashtab.c (htab_expand): Change to return int. Use calloc or
c4b9cfe0
AJ
3662 xcalloc depending on htab->return_allocation_failure. Return zero
3663 if calloc fails.
d50d20ec
HPN
3664 (htab_create): Update comment to cover memory allocation.
3665 (htab_try_create): New.
3666 (htab_find_slot_with_hash): Return NULL if htab_expand fails.
c4b9cfe0 3667 Update comment to cover this.
d50d20ec 3668
35e9340f
HPN
36692000-11-03 Hans-Peter Nilsson <hp@bitrange.com>
3670
3671 * hashtab.c: Change void * to PTR where necessary.
3672 (htab_create, htab_expand): Correct formatting of comment before
3673 function.
3674
ea343d1a 36752000-10-22 Alex Samuel <samuel@codesourcery.com>
0870bfd6
AS
3676
3677 * cp-demangle.c (string_list_def): Add caret_position and comments.
3678 (result_caret_pos): New macro.
3679 (result_append_string): Rename to...
3680 (result_add_string): ... this, and insert at caret position.
d1209685 3681 Rename throughout.
0870bfd6
AS
3682 (result_append): Rename to...
3683 (result_add): ... this, and insert at caret position. Rename
d1209685 3684 throughout.
0870bfd6
AS
3685 (result_append_char): Rename to...
3686 (result_add_char): ... this, and insert at caret position. Rename
d1209685 3687 throughout.
0870bfd6
AS
3688 (result_append_space): Remove.
3689 (string_list_new): Initialize caret position.
3690 (result_add_separated_char): Use caret position.
3691 (result_get_caret): New funtion.
3692 (result_set_caret): Likewise.
3693 (result_shift_caret): Likewise.
3694 (result_previous_char_is_space): Likewise.
3695 (substitution_start): Use caret position.
3696 (substitution_add): Likewise.
3697 (demangling_new): Initialize caret position.
3698 (demangle_encoding): Use caret position.
d1209685 3699 (demanglin_nested_name): Put CV qualifiers after name.
0870bfd6
AS
3700 (demangle_type_ptr): Use switch statement. Handle pointers to
3701 arrays. Don't use result_append_space. Use caret position.
3702 (demangle_type): Emit CV qualifiers after underlying type. Adjust
d1209685
ZW
3703 call to demangle_array_type.
3704 (demangle_array_type): Add parameter to handle pointers to arrays.
3705
f15b9af9
MM
37062000-10-01 Mark Mitchell <mark@codesourcery.com>
3707
3708 * splay-tree.c (splay_tree_insert): Fix formatting.
3709
8f17b5c5
MM
37102000-09-16 Mark Mitchell <mark@codesourcery.com>
3711
3712 * splay-tree.c (splay_tree_predecessor): Fix typo in comment.
3713
4eaa189a
MS
37142000-09-14 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3715
3716 * splay-tree.c: #include <stdio.h>.
3717
29791078
HPN
37182000-09-14 Hans-Peter Nilsson <hp@axis.com>
3719
3720 * testsuite/demangle-expected: Add two tests for anonymous
3721 namespaces.
3722 * cplus-dem.c (gnu_special): Handle anonymous namespaces.
3723
2c9f4db7
MM
37242000-09-10 Mark Mitchell <mark@codesourcery.com>
3725
3726 * splay-tree.c (splay_tree_predecessor): New function.
3727 (splay_tree_successor): Likewise.
3728
bb22da4b
HPN
37292000-09-10 Hans-Peter Nilsson <hp@axis.com>
3730
3731 * testsuite/demangle-expected: Add four tests for type_info
3732 mangling.
bb22da4b
HPN
3733 * cplus-dem.c (gnu_special): Use do_type, not demangle_fund_type,
3734 for a non-template non-qualified type_info function or node.
3735
759e8187
AS
37362000-09-08 Alex Samuel <samuel@codesourcery.com>
3737
3738 * cp-demangle.c: Fix copyright banner.
3739
2ecd81ef
MS
37402000-09-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3741
3742 * md5.c: #include "ansidecl.h".
3743
d93998ec
AS
37442000-09-06 Alex Samuel <samuel@codesourcery.com>
3745
3746 * cp-demangle.c (status_allocation_failed): Rearrange whitespace.
3747 (demangle_type): Handle substitution candidates correctly in the
3748 face of special substitutions.
3749
1056d228
AS
37502000-09-05 Alex Samuel <samuel@codesourcery.com>
3751
3752 * cp-demangle.c (demangle_encoding): Rename variable.
3753 (demangle_name): Rename parameter. Handle return type
3754 suppression.
3755 (demangle_nested_name): Rename parameter.
3756 (demangle_prefix): Likewise. Change return type suppression.
3757 (demangle_unqualified_name): Add parameter. Flag constructors and
3758 conversion operators.
3759 (demangle_special_name): Fix comment.
3760 (demangle_type): Rename variable.
3761 (demangle_bare_function_type): Check for missing return type and
d1209685 3762 parameter.
1056d228
AS
3763 (demangle_class_enum_type): Rename parameter.
3764 (demangle_discriminator): Fix misspelling in comment.
3765
2f31ed7e
DD
37662000-08-31 DJ Delorie <dj@redhat.com>
3767
3768 * configure.in (Cygwin): special case cygwin only when we're
3769 building cygwin, not when we're hosting cygwin.
3770
02bcb9c6
AS
37712000-09-04 Alex Samuel <samuel@codesourcery.com>
3772
3773 * cp-demangle.c (demangle_template_arg): Eat an `E' after an
d1209685
ZW
3774 <expression>.
3775
aee749cf
AS
37762000-09-04 Alex Samuel <samuel@codesourcery.com>
3777
3778 * cp-demangle.c (demangle_type_ptr): Increment position past
3779 pointer and reference characters.
3780
92a16bbe
AS
37812000-09-04 Alex Samuel <samuel@codesourcery.com>
3782
3783 * cp-demangle.c (demangle_nv_offset): New function.
3784 (demangle_v_offset): Likewise.
3785 (demangle_call_offset): Likewise.
3786 (demangle_special_name): Update thunk demangling to comply with
3787 ABI changes.
d1209685 3788
31e0ab1f
AS
37892000-09-03 Alex Samuel <samuel@codesourcery.com>
3790
3791 * cp-demangle.c (ANONYMOUS_NAMESPACE_PREFIX): New macro.
3792 (substitution_def): Remove template_parm_number.
3793 (NOT_TEMPLATE_PARM): Remove.
3794 (result_insert_string): New macro.
3795 (result_insert): Likewise.
3796 (result_insert_char): Likewise.
3797 (substitution_add): Remove last parameter. Don't store template
d1209685 3798 parm number.
31e0ab1f
AS
3799 (BFT_NO_RETURN_TYPE): Define as NULL.
3800 (demangle_encoding): Adjust call to demangle_bare_function_type.
3801 (demangle_name): Adjust substitution. Adjust call to
d1209685 3802 substitution_add.
31e0ab1f
AS
3803 (demangle_prefix): Adjust call to substitution_add.
3804 (demangle_identifier): Handle anonymous namespaces.
3805 (demangle_operator_name): Change demangling of vendor-extended
3806 operator to match ABI changes.
3807 (demangle_type_ptr): Change parameters. Make recursive. Handle
d1209685 3808 substitutions here.
31e0ab1f
AS
3809 (demangle_type): Adjust calls to demangle_template_param,
3810 substitution_add, and demangle_type_ptr. Fix substitution of
3811 templated types.
3812 (demangle_function_type): Change parameter to a pointer.
3813 (demangle_bare_function_type): Likewise. Adjust insertion point.
3814 (demangle_template_param): Remove last parameter.
3815 (demangle_expr_primary): Remove unused variable. Adjust call to
d1209685 3816 demangle_template_param.
31e0ab1f
AS
3817 (is_mangled_char): Accept `$' and `.'.
3818 * cplus-dem.c (gnu_new_abi_symbol_characters): Add '$' and '.'.
3819 * dyn-string.c (dyn_string_insert_char): New function.
3820
ccbc3eb7
HPN
38212000-08-31 Hans-Peter Nilsson <hp@axis.com>
3822
3823 * testsuite/demangle-expected: Add nine tests for
3824 underscore-after-number followed by five tests for name-signature
3825 delimiter.
3826
53dce582
RH
38272000-08-28 Richard Henderson <rth@cygnus.com>
3828
3829 * Makefile.in (md5.o): Depend on config.h.
3830
881c6935
JM
38312000-08-28 Jason Merrill <jason@redhat.com>
3832
3833 * Makefile.in (REQUIRED_OFILES): Add md5.o.
3834 (CFILES): Add md5.c.
3835 * md5.c: New file.
3836
a440fd19
AS
38372000-08-27 Alex Samuel <samuel@codesourcery.com>
3838
3839 * cp-demangle.c (demangle_name): Initialize template_p in local
3840 name case. Don't re-add substitutions as candidates.
3841 (demangle_nested_name): Use <unqualified-name>.
3842 (demangle_prefix): Likewise. Don't add template names as
3843 substitution candidates twice, or re-add a substitution or the
3844 last prefix component.
3845 (demangle_local_name): Adjust output format.
3846
d01ce591
AS
38472000-08-25 Alex Samuel <samuel@codesourcery.com>
3848
3849 * cp-demangle.c (result_add_separated_char): Change parameter to
3850 int.
3851 (substitution_add): Don't check for duplicates. Check if
3852 previously allocated size is zero.
3853 (demangle_name): Remove duplicate check for std substitution.
3854 Clear template flag appropriately.
3855 (demangle_prefix): Remove argument to demangle_substitution.
3856 Don't check that template flag is already set.
3857 (demangle_operator_name): Add pt operator.
3858 (demangle_type): Don't treat r as built-in type. Remove argument
3859 to demangle_substitution. Fix substitution candidate mechanics.
3860 Handle <template-template-parm>s. Improve comments.
d1209685 3861 (demangle_template_param): Don't handle template arg lists here.
d01ce591
AS
3862 (demangle_substitution): Remove parameter.
3863 (print_usage): Remove extra fprintf option.
3864
2f59c8eb
GM
38652000-08-24 Greg McGary <greg@mcgary.org>
3866
3867 * libiberty/random.c (end_ptr): Revert previous change.
3868
2f26c11d
GM
38692000-08-24 Greg McGary <greg@mcgary.org>
3870
3871 * libiberty/cplus-dem.c (cplus_demangle_opname, cplus_mangle_opname,
3872 demangle_expression, demangle_function_name): Use ARRAY_SIZE.
3873 * libiberty/random.c (end_ptr): Likewise.
3874
e282c9c9
AS
38752000-08-23 Alex Samuel <samuel@codesourcery.com>
3876
3877 * cp-demangle.c (result_close_template_list): Remove function.
3878 (result_add_separated_char): New function.
3879 (result_open_template_list): New macro.
3880 (result_close_template_list): Likewise.
3881 (demangle_prefix): Don't set template_p if the
3882 prefix ends with a ctor name.
3883 (demangle_type_ptr): Remove duplicate RETURN_IF_ERROR.
3884 (demangle_type): Check for template args after substitution.
3885 (demangle_template_args): Use result_open_template_list.
d1209685 3886
c9b6494a
ZW
38872000-08-02 Zack Weinberg <zack@wolery.cumb.org>
3888
3889 * pexecute.c: Don't use vfork. Initialize 'pid' before retry loop.
3890
d1209685 38912000-07-26 Dave Pitts <dpitts@cozx.com>
4f21e377
DP
3892
3893 * config/mh-openedition.h: Added -DLE370 definition.
3894
0aab2795
ME
38952000-07-26 Mark Elbrecht <snowball3@bigfoot.com>
3896
3897 * pexecute.c (pexecute) [__MSDOS__]: Change __GO32__ to
3898 __DJGPP__. Use P_WAIT instead of constant in the spawnv* call.
3899 Cast program to 'char *' in errmsg_arg assignment.
3900 (PWAIT_ERROR): Define.
3901 (pwait): Use PWAIT_ERROR. Adjust DJGPP's status code to conform
3902 to DJGPP's WIF* macros.
3903
c2f275e4
RB
39042000-07-27 RodneyBrown <RodneyBrown@pmsc.com>
3905 Jeff Law <law@cygnus.com>
3906
73aa9564
RB
3907 * getcwd.c: Include string.h, stdlib.h for prototypes
3908
c2f275e4 3909 * Makefile.in (rename.o, waitpid.o): Depend on config.h
73aa9564
RB
3910 * rename.c: Include config.h, unistd.h
3911 * waitpid.c: Include config.h, sys/wait.h
c2f275e4 3912
ccbc3eb7
HPN
39132000-07-24 Hans-Peter Nilsson <hp@axis.com>
3914
3915 * cplus-dem.c (work_stuff_copy_to_from): New.
3916 (delete_non_B_K_work_stuff): New.
3917 (delete_work_stuff): New.
3918 (mop_up): Break out work_stuff partly destruction to
3919 delete_non_B_K_work_stuff.
3920 (iterate_demangle_function): New.
3921 (demangle_prefix): Call iterate_demangle_function instead of
3922 demangle_function_name. Leave handling of name-signature
3923 __-delimiters to iterate_demangle_function.
3924 (demangle_integral_value): Strip an optional
3925 following underscore cautiously. Handle negative numbers.
3926
3388651c
DB
39272000-07-24 Daniel Berlin <dberlin@redhat.com>
3928
d1209685 3929 * cplus-dem.c (demangle_signature): Change if (GNU_DEMANGLING) to
3388651c
DB
3930 if (AUTO_DEMANGLING || GNU_DEMANGLING)
3931
0fac482e
AS
39322000-07-21 Alex Samuel <samuel@codesourcery.com>
3933
3934 * cp-demangle.c (demangle_ctor_dtor_name): Remove not-in-charge
3935 allocating ctor mangling.
3936 (demangle_array_type): Handle empty and non-constant array length.
3937
8502a100 39382000-07-23 Michael Sokolov <msokolov@ivan.Harhan.ORG>
cd447360
MS
3939 Jeff Law <law@cygnus.com>
3940
c6451ce1
MS
3941 * configure.in (AC_CHECK_HEADERS): Add time.h.
3942 (AC_HEADER_TIME): Add check.
3943 * configure, config.in: Regenerate.
3944 * getruntime.c: Portably #include <sys/time.h> and/or <time.h>.
3945
cd447360
MS
3946 * configure.in (AC_CHECK_HEADERS): Add limits.h.
3947 * configure, config.in: Regenerate.
3948 * sort.c: Portably #include <limits.h> and/or <sys/param.h>.
3949 * strtol.c, strtoul.c: #include "config.h". Portably #include
3950 <limits.h> and/or <sys/param.h>.
3951 * Makefile.in (strtol.o, strtoul.o): Update dependencies.
8502a100 3952
3b58c099
MS
3953 * aclocal.m4 (libiberty_AC_DECLARE_ERRNO): New macro.
3954 * configure.in (libiberty_AC_DECLARE_ERRNO): Add check.
3955 * configure, config.in: Regenerate.
3956 * pexecute.c, strtol.c, strtoul.c: Declare errno if necessary.
3957
8502a100
MS
3958 * cp-demangle.c, mkstemps.c: #include <sys/types.h>.
3959
da0c7743
MS
39602000-07-21 Mike Stump <mrs@wrs.com>
3961
3962 * Makefile.in (xexit.o): Add dependency for config.h in xexit.c.
0c978c46 3963 * (vasprintf.o): Add dependency for config.h in vasprintf.c.
da0c7743 3964
838f8562
KG
39652000-07-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3966
3967 * cp-demangle.c (cp_demangle_type): Wrap in IN_LIBGCC2.
3968
3969 * setenv.c (setenv): Initialize variable `ep'.
3970
3971 * sigsetmask.c (abort): Prototype.
3972
3973 * vasprintf.c: Include config.h. Check ANSI_PROTOTYPES, not
3974 __STDC__ for stdarg.h include.
3975 (int_vasprintf): Prototype.
3976 (checkit): Prototype. Use VPARAMS/ANSI_PROTOTYPES/VA_START in
3977 definition. Cast `global_total_width' in comparison.
3978 (main): Prototype. Return a value.
3979
3980 * vfork.c (fork): Prototype.
3981
3982 * xexit.c: Include config.h.
3983
e9958132
JM
39842000-07-20 Joseph S. Myers <jsm28@cam.ac.uk>
3985
3986 * cplus-dem.c (demangle_fund_type): Make 'dec' an unsigned int,
3987 and print it with %u.
3988
39a6492f
HPN
39892000-07-17 Hans-Peter Nilsson <hp@axis.com>
3990
3991 * testsuite/regress-demangle (failed test): Show result and
3992 expected output.
3993
6d0be369
AH
39942000-07-07 Andrew Haley <aph@cygnus.com>
3995
3996 * cplus-dem.c (main): fflush() after emitting last char before
3997 waiting for input.
3998
bece74bd
AS
39992000-06-28 Alex Samuel <samuel@codesourcery.com>
4000
4001 * cp-demangle.c (demangle_encoding): Accept no substitutions.
4002 (demangle_name): Handle <substitution> followed by
4003 <unqualified-template-name>.
4004 (demangle_type): Follow special substitutions with
4005 <class-enum-type>
4006 (demangle_subtitution): Set template_p for special substitutions.
4007 (main): Fix typos.
d1209685 4008
229b8ec7
AS
40092000-06-27 Alex Samuel <samuel@codesourcery.com>
4010
4011 * cp-demangle.c (demangle_special_name): Swap base and derived
4012 class when demangling construction vtables.
4013
051664b0
AS
40142000-06-21 Alex Samuel <samuel@codesourcery.com>
4015
4016 * cp-demangle.c: Don't include ctype.h.
4017 (IS_DIGIT): New macro.
4018 (IS_ALPHA): Likewise. Use IS_DIGIT and IS_ALPHA throughout
4019 instead of isdigit and isalpanum.
4020 (demangling_def): Make name and next const pointers.
4021 (STATUS_ALLOCATION_FAILED): New status code.
4022 (dyn_string_append_space): Handle failure in
4023 dyn_string_append_char.
4024 (int_to_dyn_string): Likewise. Change return value to status_t.
4025 (string_list_new): Handle failure of dyn_string_init.
4026 (result_close_template_list): Change return type to status_t.
4027 Handle failure in dyn_string_append.
4028 (result_push): Change return value to status_t. Handle failure in
4029 string_list_new. Handle failure of result_push throughout.
4030 (substitution_add): Change return value to status_t. Handle
4031 dyn_string failures. Handle failure of substitution_add
4032 throughout.
4033 (template_arg_list_new): Return NULL on allocation failure.
4034 (result_append_string): Return STATUS_ALLOCATION_FAILED on error.
4035 Handle error result throughout.
4036 (result_append): Likewise.
4037 (result_append_char): Likewise.
4038 (result_append_space): Likewise.
4039 (demangling_new): Make argument a const pointer. Handle
4040 allocation failures.
4041 (demangle_template_args): Handle failure in template_arg_list_new
4042 and result_close_template_list.
4043 (demangle_discriminator): Return if int_to_dyn_string fails.
4044 (cp_demangle): Likewise.
4045 (cp_demangle_type): New function.
4046 (cplus_demangle_new_abi): Don't call dyn_string_delete. Abort on
4047 memory allocation failure.
4048 (main): Likewise.
4049 * dyn-string.c (RETURN_ON_ALLOCATION_FAILURE): Define if
4050 IN_LIBGCC2.
4051 (dyn_string_init): Change return value to int. Handle
4052 RETURN_ON_ALLOCATION_FAILURE case.
4053 (dyn_string_new): Handle RETURN_ON_ALLOCATION_FAILURE case.
4054 (dyn_string_release): Delete the dyn_string.
4055 (dyn_string_resize): Handle RETURN_ON_ALLOCATION_FAILURE case.
4056 (dyn_string_copy): Change return type to int.
4057 (dyn_string_copy_cstr): Likewise.
4058 (dyn_string_prepend): Likewise.
4059 (dyn_string_prepend_cstr): Likewise.
4060 (dyn_string_insert): Likewise.
4061 (dyn_string_insert_cstr): Likewise.
4062 (dyn_string_append): Likewise.
4063 (dyn_string_append_cstr): Likewise.
4064 (dyn_string_append_char): Likewise.
4065 (dyn_string_substring): Likewise.
d1209685 4066
fe06b696
ZW
40672000-06-09 Zack Weinberg <zack@wolery.cumb.org>
4068
4069 * cp-demangle.c (demangle_operator_name): Add spaces before
4070 names beginning with a letter: delete, delete[], new, new[],
4071 sizeof.
4072 (demangle_special_name): Handle TF <type> and TJ <type>.
4073
6223e158
PDM
4074Thu Jun 8 18:52:24 2000 Philippe De Muyter <phdm@macqel.be>
4075
4076 * cp-demangle.c (template_arg_list_new): Revert previous PARAMS patch.
4077
48f3e29b
PDM
4078Thu Jun 8 09:25:54 2000 Philippe De Muyter <phdm@macqel.be>
4079
4080 * cp-demangle.c (stdio.h): File included unconditionaly.
4081 (template_arg_list_new): Parameter list is PARAMS ((void)), not ().
4082 * dyn-string.c (stdio.h): File included.
4083 * partition.c (partition_print): No `&' needed to take the address of
4084 a function.
4085
69197e7e
KG
40862000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4087
4088 * configure.in (ac_libiberty_warn_cflags): Add -pedantic.
d1209685 4089
69197e7e
KG
4090 * choose-temp.c (try, choose_temp_base, make_temp_file): Constify.
4091
4092 * cp-demangle.c (demangle_char): Change parameter from char to int.
4093 (demangle_expression, demangle_expr_primary): Remove extra
4094 semi-colon in prototype.
4095
4096 * dyn-string.c (dyn_string_append_char): Change parameter from
4097 char to int.
4098
4099 * memcmp.c (memcmp): Constify.
4100
4101 * mkstemps.c (gcc_uint64_t): Mark GNUC `long long' case with
4102 __extension__.
4103
4104 * partition.c (elem_compare): Prototype. Don't cast away
4105 const-ness.
4106
4107 * setenv.c (setenv): Use braces to avoid ambiguous `else'.
d1209685 4108
7eb23b1f
KG
41092000-06-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4110
4111 * Makefile.in (cp-demangle.o): Depend on $(INCDIR)/demangle.h.
4112
4113 * cp-demangle.c: Include demangle.h.
4114 (template_arg_list_new): DeANSIfy.
4115 (cp_demangle): Make static and add prototype.
4116 (operator_code, operators): Constify.
4117 (demangle_operator_name): Likewise for variables `p1', `p2' and `p'.
4118
3faa108c
AS
41192000-06-05 Alex Samuel <samuel@codesourcery.com>
4120
4121 * cp-demangle.c (demangle_prefix): Cast argument to isdigit to
4122 unsigned char.
4123 (demangle_unqualified_name): Likewise.
4124 (demangle_number_literally): Likewise.
4125 (demangle_type): Likewise.
4126 (demangle_substitution): Likewise.
4127 (is_mangled_char): Likewise, for isalnum.
4128
69afa80d
AS
41292000-06-04 Alex Samuel <samuel@codesourcery.com>
4130
4131 * Makefile.in (CFILES): Add cp-demangle.c and dyn-string.c.
4132 (REQUIRED_OFILES): Add cp-demangle.o and dyn-string.o.
4133 (cp-demangle.o): New dependency.
4134 (dyn-string.o): Likewise.
4135
4136 * dyn-string.c: Move here from gcc/dyn-string.c. Add new functions.
4137
4138 * cplus-dem.c (libiberty_demanglers): Add initializer for new-ABI
4139 demangler.
4140 (cplus_demangle): Call cplus_demangle_new_abi if in new-ABI
4141 demangling mode.
4142 (gnu_new_abi_symbol_characters): New function.
4143 (main): Use gnu_new_abi_symbol_characters. * cp-demangle.c: New
4144 file.
4145 * cp-demangle.c: New file.
d1209685 4146
0b72c3df
AC
4147Tue May 30 16:45:25 2000 Andrew Cagney <cagney@b1.cygnus.com>
4148
4149 * floatformat.c: Add name to each floatformat field.
4150
270cea06
JL
4151Tue May 30 15:07:52 2000 Jeffrey A Law (law@cygnus.com)
4152
4153 * Makefile.in (objalloc.o): Depend on config.h
4154
d11ec6f0
ZW
41552000-05-29 Zack Weinberg <zack@wolery.cumb.org>
4156
4157 * hashtab.c, partition.c, sort.c, xmemdup.c: Include string.h
4158 if HAVE_STRING_H.
4159 * pexecute.c, xexit.c: Include stdlib.h if HAVE_STDLIB_H.
4160 * objalloc.c: Include config.h. Include stdlib.h and don't
4161 declare malloc or free if HAVE_STDLIB_H.
4162 * strerror.c, strsignal.c: Include stdlib.h if HAVE_STDLIB_H,
4163 else declare malloc without prototype. Include string.h if
4164 HAVE_STRING_H, else declare memset without prototype. Don't
4165 include stddef.h.
4166
f8e2da56
MS
41672000-05-23 Mike Stump <mrs@wrs.com>
4168
4169 * Makefile.in (xmalloc.o): Add dependency for config.h, fixes make
c4b9cfe0 4170 -j3.
f8e2da56 4171
650f3068
DA
41722000-05-18 J. David Anglin <dave@hiauly1.hia.nrc.ca>
4173
4174 * xmalloc.c: Include config.h for HAVE_SBRK definition.
4175
1d2da2e1
HB
41762000-05-16 Horst von Brand <vonbrand@sleipnir.valparaiso.cl>
4177
d1209685 4178 * hashtab.c (hash_pointer): Delete low-order bits which are
1d2da2e1
HB
4179 probably zero, also eliminate a warning on alpha.
4180
47668d0a
DE
41812000-05-15 David Edelsohn <edelsohn@gnu.org>
4182
c7a79a32 4183 * Makefile.in: Change "pic" to depend on $(PICFLAG), not
47668d0a
DE
4184 on $(enable_shared).
4185
36348eab
JJ
41862000-05-10 Jakub Jelinek <jakub@redhat.com>
4187
4188 * config.table: Use mh-sparcpic for sparc*-*-*.
4189
209bbe34
NC
41902000-05-08 Nick Clifton <nickc@cygnus.com>
4191
4192 * Makefile.in (CFILES): Add strncmp.c.
4193 (NEEDED): Add strncmp.
4194
a85a47fb
KG
41952000-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4196
4197 * cplus-dem.c (cplus_demangle_opname, demangle_function_name):
4198 Cast the arguments to `islower' to `unsigned char'.
4199 (print_demangler_list): Prototype.
4200
4aef973c
PDM
4201Thu May 4 17:14:41 2000 Philippe De Muyter <phdm@macqel.be>
4202
4203 * sort.c (UCHAR_MAX): Provide fallback definition.
4204
3b94497c
AO
42052000-04-29 Alexandre Oliva <aoliva@cygnus.com>
4206
4207 * Makefile.in (maintainer-clean-subdir): Fix handling of empty
4208 SUBDIRS.
4209
24eaa47a
KB
42102000-04-28 Kenneth Block <block@zk3.dec.com>
4211 Jason Merrill <jason@casey.cygnus.com>
4212
d1209685
ZW
4213 * cplus-dem.c (libiberty_demanglers): New table for demangle styles.
4214 (cplus_demangle_set_style): New function for setting style.
4215 (cplus_demangle_name_to_style): New function to translate name.
24eaa47a 4216
a9266bfa
KG
42172000-04-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4218
4219 * aclocal.m4: New file with new test libiberty_AC_FUNC_STRNCMP.
4220
4221 * configure.in (AC_CHECK_HEADERS): Add sys/mman.h fcntl.h.
4222 (libiberty_AC_FUNC_STRNCMP): Invoke.
4223
4224 * strncmp.c: New file.
4225
8e02c4d0
JH
4226Thu Apr 27 16:58:43 MET DST 2000 Jan Hubicka <jh@suse.cz>
4227
4228 * hashtab.c (htab_expand): Add prototype.
4229 (find_empty_slot_for_expand): Likewise.
4230
4feeaae3
KG
42312000-04-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4232
4233 * hashtab.c (hash_pointer, eq_pointer): Make definition static to
4234 match prototype.
4235 (htab_expand): Cast the return value of xcalloc.
4236
18a94a2f
MM
42372000-04-24 Mark Mitchell <mark@codesourcery.com>
4238
4239 * hashtab.c (hash_pointer): New function.
4240 (eq_pointer): Likewise.
4241 (htab_hash_pointer): New variable.
4242 (htab_eq_pointer): Likewise.
4243
eeb0656f
MM
42442000-04-23 Mark Mitchell <mark@codesourcery.com>
4245
b51024fc
MM
4246 * sort.c (sort_pointers): Fix endianness bugs.
4247
eeb0656f
MM
4248 * sort.c: New file.
4249 * Makefile.in (CFILES): Add sort.c
4250 (REQUIRED_OFILES): Add sort.o.
4251 (sort.o): New target.
4252
7277f72d
MS
42532000-04-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4254
4255 * Makefile.in (*-subdir): Revamp slightly to avoid losing on
4256 4.3BSD systems.
4257
e38992e8
RK
4258Tue Apr 18 16:23:31 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4259
4260 * hashtab.c: Various minor cleanups.
4261 (htab_find_slot_with_hash): INSERT is now enum insert_option.
4262 (htab_find_slot): Likewise.
4263
498e1ab1
DP
42642000-04-16 Dave Pitts <dpitts@cozx.com>
4265
4266 * cplus-dem.c (cplus_demangle_opname): Changed to use islower.
d1209685 4267
dc17cc7b
RH
42682000-04-05 Richard Henderson <rth@cygnus.com>
4269
4270 * splay-tree.c (splay_tree_remove): New.
4271
b13eb66b
MM
42722000-03-30 Mark Mitchell <mark@codesourcery.com>
4273
4274 * hashtab.c (find_empty_slot_for_expand): Use hashval_t for hash
4275 codes.
4276 (htab_find_with_hash): Likewise.
4277 (htab_find_slot_with_hash): Likewise.
d1209685 4278
0194e877
ZW
42792000-03-29 Zack Weinberg <zack@wolery.cumb.org>
4280
4281 * hashtab.c (htab_find_with_hash): Avoid calculating hash2
4282 unless it will be used. Rearrange loop for better
4283 optimization.
4284 (higher_prime_number): Add static prototype.
4285
abc61fd4
JL
4286Thu Mar 16 01:33:58 2000 Jeffrey A Law (law@cygnus.com)
4287
4288 * Makefile.in (partition.o): Depend on config.h
4289
8c5d513f
BS
42902000-03-14 Bernd Schmidt <bernds@cygnus.co.uk>
4291
4292 * hashtab.c (find_empty_slot_for_expand): New function.
4293 (htab_expand): Use it instead of htab_find_slot.
4294 (htab_find_with_hash): Renamed from htab_find; now accepts extra
4295 argument HASH.
4296 (htab_find_slot_with_hash): Likewise for htab_find_slot.
4297 (htab_find): New wrapper function.
4298 (htab_find_slot): Likewise.
4299 (htab_traverse): Pass slot, not entry, to called function.
4300
d9d4fb43
AS
43012000-03-09 Alex Samuel <samuel@codesourcery.com>
4302
4303 * Makefile.in (CFILES): Add partition.c.
4304 (REQUIRED_OFILES): Add partition.o.
4305 (partition.o): New rule.
4306 * partition.c: New file.
d1209685 4307
5dc9cffd
ZW
43082000-03-09 Zack Weinberg <zack@wolery.cumb.org>
4309
4310 * hashtab.c (htab_create): Set del_f.
4311 (htab_delete, htab_empty, htab_remove_elt, htab_clear_slot):
4312 Use it.
4313
5194cf08
ZW
43142000-03-08 Zack Weinberg <zack@wolery.cumb.org>
4315
4316 * hashtab.c: Remove debugging variables (all_searches,
4317 all_collisions, all_expansions). Delete
4318 all_hash_table_collisions.
4319 (create_hash_table, delete_hash_table, empty_hash_table,
4320 find_hash_table_entry, remove_element_from_hash_table_entry,
4321 clear_hash_table_slot, traverse_hash_table, hash_table_size,
4322 hash_table_elements_number, hash_table_collisions): Rename to:
4323 htab_create, htab_delete, htab_empty, htab_find_slot,
4324 htab_remove_elt, htab_clear_slot, htab_traverse, htab_size,
4325 htab_elements, htab_collisions.
4326 (htab_find): New function, handles common case where you don't
4327 plan to add or delete an entry.
4328 (htab_expand): Don't create a whole new table, just a new
4329 entry vector.
4330 (htab_find_slot): Simplify logic.
4331
5ad5a984
ILT
43321999-08-03 Ian Lance Taylor <ian@zembu.com>
4333
4334 * floatformat.c: Add casts to avoid signed/unsigned warnings.
4335 * pexecute.c: Add ATTRIBUTE_UNUSED as needed on Unix.
4336
4337 * Makefile.in (install_to_libdir): Change $(TARGETLIB).n to
4338 $(TARGETLIB)n so it works on MSDOS.
4339 (install_to_tooldir): Likewise.
4340
43411999-07-21 Ian Lance Taylor <ian@zembu.com>
4342
4343 From Mark Elbrecht:
4344 * makefile.dos: Remove; obsolete.
4345 * configure.bat: Remove; obsolete.
4346
43471999-07-11 Ian Lance Taylor <ian@zembu.com>
4348
4349 * splay-tree.c (splay_tree_insert): Add initialization to avoid
4350 warning.
4351
aeecce42
MK
43522000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4353
4354 * pexecute.c: Conditionally include string.h.
5194cf08 4355 (fix_argv): Handle embedded whitespace in args for Mingw32.
aeecce42 4356
1eaf7d9c
KG
43572000-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4358
4359 * configure.in (ac_libiberty_warn_cflags): Turn on warnings if
4360 we're using gcc.
4361
4362 * Makefile.in (COMPILE.c): Add @ac_libiberty_warn_cflags@
4363
0fadedb2
GK
43641999-12-27 Geoff Keating <geoffk@cygnus.com>
4365
4366 * vasprintf.c (int_vasprintf): Don't re-read the format character
4367 as this mishandles strings like '%%s'.
4368
08230f26
MM
43691999-12-05 Mark Mitchell <mark@codesourcery.com>
4370
4371 * splay-tree.c (splay_tree_new): Use struct splay_tree_node_s
4372 rather than struct splay_tree_node.
4373 (splay_tree_insert): Use struct splay_tree_s rather than struct
4374 splay_tree.
4375
6de9b8ff
PDM
4376Sun Nov 28 00:59:39 1999 Philippe De Muyter <phdm@macqel.be>
4377
4378 * hashtab.c (sys/types.h): File included.
4379
f3636679
JM
43801999-11-22 Jason Merrill <jason@casey.cygnus.com>
4381
4382 * strtoul.c, strtol.c, random.c: Remove advertising clause from
4383 BSD license, pursuant with
4384
4385 ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
4386
36dd3a44
JL
4387Wed Nov 10 09:42:39 1999 Jeffrey A Law (law@cygnus.com)
4388
4389 * hashtab.c: Include stdio.h.
4390
6e300472
JL
4391Mon Nov 8 09:23:41 1999 Jeffrey A Law (law@cygnus.com)
4392
4393 * hashtab.c (traverse_hash_table): Protect prototype with PARAMS.
4394
df548dfc
PDM
4395Tue Nov 2 03:23:13 1999 Philippe De Muyter <phdm@macqel.be>
4396
4397 * xstrdup (sys/types.h): Include this file.
4398
2c375143
NS
43991999-10-28 Nathan Sidwell <nathan@acm.org>
4400
4401 * Makefile.in (SUBDIRS): New macro.
4402 (mostlyclean, clean, distclean, maintainer-clean): Adjust to
4403 avoid multiple subdirectory cleaning.
4404 (*-subdir): Use SUBDIRS.
4405
a82cecda
JK
44061999-10-25 Jim Kingdon <http://developer.redhat.com/>
4407
4408 * cplus-dem.c: Move declarations of standard_symbol_characters and
4409 hp_symbol_characters inside #ifdef MAIN to avoid compiler
4410 warnings.
4411
ed38f5d5
ZW
44121999-10-23 08:51 -0700 Zack Weinberg <zack@bitmover.com>
4413
4414 * hashtab.c (find_hash_table_entry): When returning a
4415 DELETED_ENTRY slot, change it to EMPTY_ENTRY first.
4416 (clear_hash_table_slot): New function which deletes an entry
4417 by its position in the table, not its value.
4418 (traverse_hash_table): New function which calls a hook
4419 function for every live entry in the table.
4420
b60fe4a7
MM
44211999-10-19 Mark Mitchell <mark@codesourcery.com>
4422
4423 * cplus-dem.c (INTBUF_SIZE): New macro.
4424 (string_append_template_idx): New function.
4425 (demangle_expression): Likewise.
4426 (demangle_integral_value): Use it.
4427 (demangle_real_value): New function, split out from ...
4428 (demangle_template_value_parm): ... here. Use
4429 string_append_template_idx. Use demangle_real_value.
4430 (demangle_template): Use string_append_template_idx.
4431 (demangle_qualified): Use consume_count_with_underscores.
4432 (get_count): Tweak formatting.
4433 (do_type): Use string_append_template_idx.
5194cf08 4434
3da5522a
KG
44351999-10-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4436
4437 * calloc.c: Add a public domain notice.
4438
d7d36ea8
PDM
4439Mon Oct 18 02:30:47 1999 Philippe De Muyter <phdm@macqel.be>
4440
4441 * setenv.c (sys/types.h, stdio.h): Include those files unconditionaly.
4442
a2f945c6
VM
4443Fri Oct 15 01:47:51 1999 Vladimir Makarov <vmakarov@loony.cygnus.com>
4444
4445 * Makefile.in (CFILES): Add hashtab.c
4446 (REQUIRED_OFILES): Add hashtab.o
4447 (hashtab.o): Add dependencies.
4448 * hashtab.c: New file
4449
7f22ec2e
MK
4450Wed Oct 13 01:16:47 1999 Mumit Khan <khan@xraylith.wisc.edu>
4451
4452 * basename.c (DIR_SEPARATOR): New macro.
4453 (DIR_SEPARATOR_2): Likewise.
4454 (HAVE_DOS_BASED_FILESYSTEM): Likewise.
4455 (IS_DIR_SEPARATOR): Likewise.
4456 (main): Handle MSDOS style pathname.
4457
7c56a6ce
MM
44581999-10-11 Mark Mitchell <mark@codesourcery.com>
4459
4460 * cplus-dem.c (do_type): Handle pointer to member types whose
4461 enclosing classes have namespace scope.
4462
cd32188b
ME
4463Sun Oct 10 01:23:50 1999 Marc Espie <espie@cvs.openbsd.org>
4464
4465 * config.table: Provide a backup shell for executing move-if-change.
4466
fc232f7a
MM
44671999-10-02 Mark Mitchell <mark@codesourcery.com>
4468
4469 * xmalloc.c (xmalloc): Fix spelling error.
4470 (xcalloc, xrealloc): Likewise.
4471
2a138827
KG
44721999-10-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4473
4474 * cplus-dem.c (fancy_abort, demangle_integral_value,
4475 demangle_arm_hp_template, recursively_demangle,
4476 standard_symbol_characters, hp_symbol_characters, main): Add prototype.
4477 (program_name, program_version, fatal): Constify a char*.
4478 (usage, fatal): Mark with ATTRIBUTE_NORETURN.
4479 (main): Call return, not exit.
4480
5a657fc3
KG
44811999-09-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4482
4483 * choose-temp.c: Remove obsolete comment about gcc.
4484 (make_temp_file): Constify a char*.
4485
33c5ddcd
KG
4486Wed Sep 8 20:03:28 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4487
4488 * xmemdup.c: Include sys/types.h.
4489
b10647f1
JG
44901999-09-07 Jeff Garzik <jgarzik@pobox.com>
4491
4492 * xmemdup.c: New xmemdup function.
4493 * Makefile.in, makefile.vms, vmsbuild.com: Use xmemdup.[co].
4494
3dd6c3af
LV
4495Tue Sep 7 23:32:18 1999 Linas Vepstas <linas@linas.org>
4496
5194cf08 4497 * config.table: Add openedition target.
3dd6c3af
LV
4498 * config/mh-openedition: New file.
4499
19e28e2a
ME
4500Thu Sep 2 01:36:12 1999 Marc Espie <espie@cvs.openbsd.org>
4501
4502 * pexecute.c (pexecute): Fill in temp_base when needed.
4503
4dfeccf9
RH
45041999-08-31 Richard Henderson <rth@cygnus.com>
4505
4506 * getpwd.c: Check HAVE_GETCWD before defining it away.
4507
4ac3cb83
KG
45081999-08-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4509
4510 * Makefile.in (CFILES): Add calloc.c and getpwd.c.
4511 (REQUIRED_OFILES): Add getpwd.o.
4512 (getpwd.o): Add target.
4513
4514 * configure.in (AC_PREREQ): Bump to 2.13.
4515 (AC_CHECK_HEADERS): Add check for <sys/stat.h>.
4516
4517 * getpwd.c: New file, moved here from gcc.
4518
e797ff70
KG
45191999-08-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4520
4521 * cplus-dem.c (gnu_special): Cast a `size_t' to `long' when
4522 comparing against a signed quantity.
4523 (arm_special): Likewise.
4524 (demangle_fund_type): Likewise.
4525 (do_hpacc_template_const_value): Mark parameter `work' with
5194cf08 4526 ATTRIBUTE_UNUSED.
e797ff70
KG
4527 (main): Constify variable `valid_symbols'.
4528
55247fce
PDM
4529Tue Aug 24 02:50:45 1999 Philippe De Muyter <phdm@macqel.be>
4530
4531 * strtoul.c (strtoul): Add parentheses around && within ||.
4532
76632dd0
DJ
4533Fri Aug 6 23:32:29 1999 Daniel Jacobowitz <drow@drow.them.org>
4534
4535 * Makefile.in (FLAGS_TO_PASS): Include prefix, exec_prefix,
4536 libdir, libsubdir and tooldir.
4537
d080bbfa
MM
45381999-08-01 Mark Mitchell <mark@codesourcery.com>
4539
4540 * splay-tree.c (splay_tree_insert): Return the new node.
4541
a81c752a
RH
45421999-07-14 Richard Henderson <rth@cygnus.com>
4543
5194cf08 4544 * argv.c: Include stdlib.h and string.h instead of
a81c752a
RH
4545 prototyping directly.
4546 * choose-temp.c: Conditionally include string.h.
4547
8f1824d9
JM
45481999-07-12 Jason Merrill <jason@yorick.cygnus.com>
4549
4550 * Makefile.in (NEEDED): Add bcmp, bcopy, bzero.
4551
652374d3
ILT
45521999-07-11 Ian Lance Taylor <ian@zembu.com>
4553
4554 * splay-tree.c (splay_tree_insert): Add initialization to avoid
4555 warning.
4556
a4494286
JM
45571999-07-07 Jason Merrill <jason@yorick.cygnus.com>
4558
4559 * Makefile.in (needed-list): Only include stuff we actually need
4560 for libstdc++.
4561
90e72e20
AS
45621999-06-21 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
4563
4564 * configure.in (checkfuncs): Add gettimeofday.
4565 * config.in, configure: Regenerated.
4566
b569200e
MK
4567Mon Jun 21 05:56:01 1999 Mumit Khan <khan@xraylith.wisc.edu>
4568
4569 * configure.in (*-*-uwin*): UWIN has sys_{errlist,nerr} even if
4570 the test fails.
4571 * configure: Regenerate.
4572
73919448
MS
45731999-06-10 Mike Stump <mrs@wrs.com>
4574
4575 * Makefile.in (setenv.o): Add config.h dep for setenv.o to fix
4576 parallel builds.
4577
fee9125c
KG
45781999-05-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4579
4580 * putenv.c: Include ansidecl.h to define `const'.
4581 * setenv.c: Likewise.
4582
71cce721
MN
4583Wed May 26 03:58:20 1999 "Melissa O'Neill" <oneill@cs.sfu.ca>
4584
a7c9637f
JL
4585 * Makefile.in (CFILES): Add putenv.c and setenv.c.
4586 * configure.in (funcs): Add putenv and setenv.
4587 (AC_CHECK_FUNCS): Check for putenv and setenv.
4588 * configure: Rebuilt.
4589 * putenv.c setenv.c: New files.
4590
71cce721
MN
4591 * getcwd.c (getcwd): If pathname is NULL, then obtain SIZE
4592 bytes of space using malloc.
4593
53504016
SG
4594Mon May 17 01:42:34 1999 Stu Grossman <grossman@babylon-5.cygnus.com>
4595
4596 * cplus-dem.c (demangle_fund_type (near 'I' case)): Don't advance
4597 the *mangled pointer beyond the end of the string. Clean up code to
4598 match prevailing coding style.
4599
34842539
MH
46001999-05-13 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4601
4602 * tmpnam.c (L_tmpnam): Fix typo.
4603
3a08531d
ME
4604Thu May 13 01:14:46 1999 Marc Espie <espie@cvs.openbsd.org>
4605
4606 * cplus-dem.c (standard_symbol_characters): Renamed from
4607 standard_symbol_alphabet. No longer modify TABLE.
4608 (hp_symbol_characters): Renamed from hp_symbol_alphabet. No longer
4609 modify TABLE.
4610 (main): Corresponding changes. Use strchr to determine if a
4611 character is valid.
4612
8db9d08b
JB
46131999-05-11 Jim Blandy <jimb@zwingli.cygnus.com>
4614
4615 * cplus-dem.c (main): Use table lookup to distinguish identifier
4616 characters from non-identifier characters.
4617 (standard_symbol_alphabet, hp_symbol_alphabet): New functions.
4618
6a071f4a
FF
4619Thu May 6 20:34:42 1999 Fred Fish <fnf@be.com>
4620
4621 * configure.in (sys/resource.h): Add to AC_CHECK_HEADERS list.
4622 * getruntime.c: Only attempt to include sys/resource.h and
4623 use getrusage if both HAVE_GETRUSAGE and HAVE_SYS_RESOURCE_H
4624 are defined.
4625
7dd88617
DT
4626Mon Apr 26 01:36:06 1999 Donn Terry (donn@interix.com)
4627
4628 * configure.in (alloca detection): Handle alloca directly for interix.
4629 * configure: Rebuilt.
4630
7a1528bc
MK
4631Sun Apr 25 01:18:21 1999 Mumit Khan <khan@xraylith.wisc.edu>
4632
4633 * choose-temp.c (DIR_SEPARATOR): Use '\\' only for native windows32.
4634
76409268
JB
46351999-04-20 Jim Blandy <jimb@zwingli.cygnus.com>
4636
4637 Fix from Dale Hawkins:
5194cf08 4638 * cplus-dem.c (mop_up): Set typevec_size to zero, so it'll be
76409268
JB
4639 reallocated properly if we use it again.
4640
4641 * cplus-dem.c (demangle_fund_type): Check for buffer overrun. Be
4642 stricter about syntax. Always null-terminate string.
4643
acbbd80a
MK
4644Thu Apr 15 23:00:55 1999 Mumit Khan <khan@xraylith.wisc.edu>
4645
4646 * configure.in (checkfuncs): Check for sbrk.
4647 * config.in: Rebuilt.
4648 * configure: Likewise.
4649 * xmalloc.c: Use HAVE_SBRK instead of the host specific definitions.
4650
92523551
JB
46511999-04-12 Jim Blandy <jimb@zwingli.cygnus.com>
4652
4653 Fix from Marcus Daniels:
4654 * cplus-dem.c (demangle_fund_type): Don't run off the end of the
4655 identifier looking for another underscore.
4656
36eb4217
MK
4657Sun Apr 11 23:20:59 1999 Mumit Khan <khan@xraylith.wisc.edu>
4658
4659 * pexecute.c: Change all references to __UWIN__ to _UWIN.
4660 * xmalloc.c: Likewise.
4661 (xcalloc): UWIN has sbrk.
4662 (xrealloc): Fix guard macro.
4663
2c45d1a0
RH
46641999-04-11 Richard Henderson <rth@cygnus.com>
4665
4666 * alloca-conf.h (alloca) [C_ALLOCA]: Don't use Gcc builtin
4667 or <alloca.h>.
4668 * clock.c (GNU_HZ): New definition.
4669 (clock): Use it.
4670 * getruntime.c: Likewise.
4671
4672 * config.table: Use mh-beos.
4673 * config/mh-beos: New file.
4674
391cdef0
MM
46751999-04-11 Mark Mitchell <mark@codesourcery.com>
4676
4677 * cplus-dem.c (demangle_template_value_parm): Handle
4678 pointers-to-members.
4679 (do_type): Handle template parameters as qualifiers.
4680
9d229989
JB
46811999-04-01 Jim Blandy <jimb@zwingli.cygnus.com>
4682
4683 * cplus-dem.c: Attempt to handle overflows in counts with some
4684 semblance of grace.
4685 (consume_count): Detect overflows. Return -1 to indicate errors,
4686 instead of zero.
4687 (demangle_template_value_parm, demangle_template): Handle change
4688 to consume_count's return convention.
4689
7c72138a
TT
46901999-04-05 Tom Tromey <tromey@cygnus.com>
4691
4692 * testsuite/regress-demangle: New file.
4693 * testsuite/demangle-expected: New file.
4694
4695 * Makefile.in (all, check, installcheck, info, install-info,
4696 clean-info, dvi, install, etags, tags, mostlyclean, clean,
4697 distclean, maintainer-clean, realclean): Depend on corresponding
4698 `-subdir' target.
4699 (all-subdir check-subdir installcheck-subdir info-subdir
4700 install-info-subdir clean-info-subdir dvi-subdir
4701 install-info-subdir etags-subdir mostlyclean-subdir clean-subdir
4702 distclean-subdir maintainer-clean-subdir): New target.
4703 * testsuite/Makefile.in: New file.
4704 * configure: Rebuilt.
4705 * configure.in: Create testsuite/Makefile.
4706
ae7f7270
MM
47071999-04-02 Mark Mitchell <mark@codesourcery.com>
4708
4709 * splay-tree.h (splay_tree_compare_pointers): Define.
4710
30f72379
MM
47111999-03-30 Mark Mitchell <mark@codesourcery.com>
4712
4713 * splay-tree.c (splay_tree_compare_ints): Define.
4714
4cc48683
TT
47151999-03-30 Tom Tromey <tromey@cygnus.com>
4716
4717 * cplus-dem.c (consume_count): If `count' wraps, return 0 and
4718 don't advance input pointer.
4719 (demangle_class_name): If consume_count didn't find a count, do
4720 nothing. Don't bother with `strlen' sanity check; consume_count
4721 does it for us.
4722
3510075c
JL
47231999-03-16 Stan Shebs <shebs@andros.cygnus.com>
4724
4725 From Art Haas <ahaas@neosoft.com>:
4726 * cplus-dem.c (demangle_prefix): Don't grab all the '__' strings
4727 when doing arm or hp style.
4728 (demangle_nested_args): Decr forgetting_types field when done.
5194cf08 4729
89f602a7
MK
4730Thu Mar 11 01:22:58 1999 Mumit Khan <khan@xraylith.wisc.edu>
4731
4732 * pexecute.c (__CYGWIN32__): Rename to
4733 (__CYGWIN__): this.
4734 * xmalloc.c: Likewise.
4735
4736 Changes to support i386-pc-uwin.
4737 * configure.in (*-*-uwin*): Workaround for vfork bug.
4738 * configure: Regenerate.
4739 * pexecute.c (pexecute): Be like standard Unix.
4740 (pwait): Likewise.
4741 * xmalloc.c (first_break): Define.
4742 (xmalloc_set_program_name): Use.
4743 (xmalloc): Use.
4744
9346c824
FS
4745Thu Mar 11 01:07:55 1999 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
4746
4747 * config.table: Cleanup and add mh-*pic handling for alpha, arm, powerpc
4748
3510075c
JL
4749Sun Feb 28 22:30:44 1999 Geoffrey Noer <noer@cygnus.com>
4750
4751 * config.table: Check cygwin*, not cygwin32*.
4752
8ec65f13
DB
4753Tue Feb 9 16:39:01 1999 Dave Brolley <brolley@cygnus.com>
4754
4755 * Makefile.in: Change mkstemp -> mkstemps.
4756
687361c8
ME
4757Tue Feb 9 01:12:27 1999 Marc Espie <Marc.Espie@liafa.jussieu.fr>
4758
4759 * Makefile.in (REQUIRED_OFILES): remove mkstemp.o
4760 * configure.in (funcs): Check for and conditionally add mkstemps to
4761 the list of functions libiberty will provide.
4762 * configure: Rebuilt.
5194cf08 4763
b207e09c
MK
4764Wed Feb 3 00:01:15 1999 Mumit Khan <khan@xraylith.wisc.edu>
4765
5194cf08 4766 * clock.c (HZ): Define in terms of (ISO C) CLOCKS_PER_SEC on
b207e09c
MK
4767 platforms that don't have HZ.
4768 * getruntime.c (HZ): Likewise.
4769
16b4c15e
RH
4770Sat Jan 30 13:28:04 1999 Richard Henderson <rth@cygnus.com>
4771
4772 * Makefile.in (xstrdup.o): Depend on config.h.
4773
38beb75c
UD
4774Wed Jan 13 07:26:44 1999 H.J. Lu (hjl@gnu.org)
4775
4776 * cplus-dem.c (mop_up): Set work->previous_argument to NULL after
4777 freeing it.
4778
7e4311a3
KG
4779Wed Jan 13 14:16:36 1999 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4780
4781 * xstrdup.c (xstrdup): Switch from strcpy to memcpy for speed.
4782
3510075c
JL
4783Tue Jan 5 15:58:29 1999 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
4784
4785 * Makefile.in (CFILES): fix typo, splay-tree.c instead of
4786 splay-tree.o.
4787
47881999-01-04 Jason Molenda (jsm@bugshack.cygnus.com)
4789
4790 * configure.in: Require autoconf 2.12.1 or higher.
4791
fb9939b8
MM
47921998-12-30 Michael Meissner <meissner@cygnus.com>
4793
4794 * random.c (NULL): Don't redefine NULL if it is already defined.
4795
087aa398
KG
4796Tue Dec 22 09:43:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4797
4798 * argv.c (buildargv): Cast the result of alloca in assignment.
4799
4800 * choose-temp.c: Include stdlib.h.
38beb75c 4801
087aa398 4802 * cplus-dem.c (demangle_arm_pt): Remove unused prototype.
c4b9cfe0
AJ
4803 (snarf_numeric_literal): Constify first parameter.
4804 (code_for_qualifier): Avoid a gcc extension, make the parameter an
4805 int, not a char.
087aa398
KG
4806 (demangle_qualifier): Likewise.
4807 (demangle_signature): Cast the argument of a ctype function to
4808 unsigned char.
4809 (arm_pt): Add parens around assignment used as truth value.
4810 (demangle_arm_hp_template): Constify variable `args'.
4811 (do_hpacc_template_const_value): Cast the argument of a ctype
4812 function to unsigned char.
4813 (do_hpacc_template_literal): Remove unused variable `i'.
4814 (snarf_numeric_literal): Constify parameter `args'.
4815 Cast the argument of a ctype function to unsigned char.
4816
4817 * floatformat.c (floatformat_to_double): Add explicit braces to
c4b9cfe0 4818 avoid ambiguous `else'.
38beb75c 4819
087aa398 4820 * fnmatch.c (fnmatch): Change type of variables `c', `c1',
c4b9cfe0
AJ
4821 `cstart' and `cend' to unsigned char. Cast the argument of macro
4822 `FOLD', which uses ctype functions, to unsigned char.
087aa398
KG
4823
4824 * objalloc.c (free): Add prototype.
4825
21f2174d
HPN
4826Sun Dec 20 16:03:46 1998 Hans-Peter Nilsson <hp@axis.se>
4827
4828 * Makefile.in (CFILES): Fix typo: splay-tree.c, not splay-tree.o
4829
3510075c
JL
4830Fri Dec 18 17:50:18 1998 David Taylor <taylor@texas.cygnus.com>
4831
4832 * cplus-dem.c (demangle_arm_pt): remove declaration -- function
c4b9cfe0 4833 doesn't exist.
3510075c 4834 (do_hpacc_template_literal): remove unused variable `i'.
5194cf08 4835
e8fc8222
AM
4836Fri Dec 18 16:11:43 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4837
4838 * cplus-dem.c (demangle_fund_type): Process CV and u codes before
4839 bumping the pointer we read from. Also prepend these codes,
4840 as we do in other places.
4841
3510075c
JL
48421998-12-18 Nick Clifton <nickc@cygnus.com>
4843
4844 * cplus-dem.c (demangle_arm_hp_template): Make variable 'args' be
4845 'const char *' in order to match its usage when calling siblings.
4846 (snarf_numeric_literal): Make first arg 'const char **' in order
4847 to match usage.
11a0bb74 4848
f4f30aa1
JL
4849Mon Dec 14 09:55:50 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4850
11a0bb74
KG
4851 * choose-temp.c: Don't check IN_GCC anymore.
4852
4853 * floatformat.c (floatformat_from_double): Use `const', not `CONST'.
4854 * memchr.c (memchr): Likewise.
4855 * memcpy.c (memcpy): Likewise.
4856 * memmove.c (memmove): Likewise.
38beb75c 4857
11a0bb74
KG
4858 * mkstemp.c: Don't check IN_GCC anymore.
4859 * pexecute.c: Likewise.
4860 * splay-tree.c: Likewise.
38beb75c 4861
11a0bb74
KG
4862 * strchr.c (strchr): Use `const', not `CONST'.
4863 * strrchr.c (strrchr): Likewise.
4864 * strtol.c (strtol): Likewise.
4865 * strtoul.c (strtoul): Likewise.
4866
70d5ccef
DT
4867Fri Dec 4 13:51:04 1998 David Taylor <taylor@texas.cygnus.com>
4868 Elena Zannoni <ezannoni@cygnus.com>
4869 Stan Shebs <shebs@cygnus.com>
4870 Edith Epstein <eepstein@cygnus.com>
4871 Andres MacLeod <amacleod@cygnus.com>
4872 Satish Pai <pai@apollo.hp.com>
4873
4874 * HP aCC demangling support.
4875 * cplus-dem.c
4876 (main): Remove default to HP style demangling, set to EDG
c4b9cfe0
AJ
4877 demangling correctly when -edg specified; set the demangling style
4878 when user specifies 'edg'. Set strip_underscore to
4879 prepends_underscore, if not HPUXHPPA. Set
4880 current_demangling_style to hp_demangling if HPUXHPPA. Set
4881 current demangling style correctly if the switch is hp. Read
4882 label correctly also in the HP style case.
70d5ccef 4883 (work_stuff): add temp_start field; add field for volatile member
c4b9cfe0 4884 function.
70d5ccef 4885 (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
c4b9cfe0 4886 style for this case is the same as ARM.
70d5ccef
DT
4887 (demangle_args): handle EDG_DEMANGLING style; support HP style.
4888 (demangle_arm_hp_template): new function. (It was
c4b9cfe0
AJ
4889 demangle_arm_pt.); check and set value of temp_start field in
4890 multiple places. Also, when ceching for end of template args,
4891 check to see if at end of static member of template class.
70d5ccef 4892 (demangle_class): new local variable : save_class_name_end Don't
c4b9cfe0 4893 include template args in string defining class.
70d5ccef
DT
4894 (demangle_class_name): use demangel_arm_hp_template.
4895 (demangle_function_name): handle case where demangling style is
c4b9cfe0
AJ
4896 HP_DEMANGLING and currently point at an 'X' in the mangled name.
4897 Handle EDG_DEMANGLING style. Handle constructor and destructor
4898 ops for HP style.
70d5ccef 4899 (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
c4b9cfe0
AJ
4900 styles. global destructor and constructor for HP style are same
4901 as for ARM style. Same for local variables.
70d5ccef
DT
4902 (demangle_qualified): handle EDG_DEMANGLING style.
4903 (demangle_signature): add case for volatile member function. For
c4b9cfe0
AJ
4904 cases '1' - '9' : initialize the temp_start field to -1 and handle
4905 the EDG_DEMANGLING style. for case 'F' : handle EDG_DEMANGLING
4906 and AUTO_DEMANGLING styles. If expecting a function and managed
4907 to demangle the funct args, then handle the LUCID_DEMANGLING,
4908 ARM_DEMANGLING, and EDG_DEMANGLING styles. Add case for local
4909 class name after "Lnnn_ in HP style case. HP style too needs to
4910 forget types. _nnn is OK for HP style, so don't report failure.
70d5ccef 4911 (do_hpacc_template_const_value): new function. Handle template's
c4b9cfe0 4912 value param for HP/aCC.
70d5ccef 4913 (do_hpacc_template_literal): new function. Handle a template's
c4b9cfe0 4914 literal parameter for HP aCC.
70d5ccef
DT
4915 (recursively_demangle): new function
4916 (snarf_numeric_literal): new function.
4917 (usage): add 'edg' to the list of demangling styles; add hp switch
c4b9cfe0 4918 to message.
70d5ccef 4919
8d525fa8
CF
4920Sat Nov 28 17:25:22 1998 Christopher Faylor <cgf@cygnus.com>
4921
4922 * pexecute.c: Remove obsolete ifdefed cygwin code.
4923
9b1a92d8
KG
4924Fri Nov 27 13:26:06 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4925
4926 * choose-temp.c: Always include libiberty.h. Avoid redundancies.
4927 * cplus-dem.c: Likewise. Conform to libiberty.h.
4928 * pexecute.c: Likewise.
4929 * splay-tree.c: Likewise.
4930
c85c3232
MS
49311998-11-25 Mike Stump <mrs@wrs.com>
4932
4933 * Makefile.in (splay-tree.o): Add config.h dependency.
4934
35a6cd99
KG
4935Mon Nov 23 16:59:49 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4936
4937 * configure.in: Use AC_PREREQ(2.12.1).
4938
6e6e34b7
BK
49391998-11-16 Benjamin Kosnik <bkoz@haight.constant.com>
4940
5194cf08 4941 * cplus-dem.c (demangle_fund_type): Add demangling for C9x types.
6e6e34b7 4942
59b67c11
JL
4943Thu Nov 19 22:15:50 1998 Jeffrey A Law (law@cygnus.com)
4944
4945 * mpw.c (mpw_access): Add missing parens.
4946
a6458d1d
KG
4947Thu Nov 19 12:59:21 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4948
4949 * configure.in: Call AC_HEADER_SYS_WAIT.
4950
4951 * pexecute.c: Include sys/wait.h when !IN_GCC.
4952
3510075c
JL
4953Thu Nov 19 14:38:20 1998 Geoffrey Noer <noer@cygnus.com>
4954
4955 * pexecute.c: revert back to checking old Cygwin
4956 preprocessor symbol until some time has passed.
4957
4958Wed Nov 18 08:52:26 1998 Christopher Faylor <cgf@cygnus.com>
4959
4960 * pexecute.c: Reorganize WIN32 case to accomodate Cygwin
4961 since it will now support similar constructs.
4962
a9acf741
KG
4963Fri Nov 13 19:18:05 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4964
4965 * configure.in: Check for calloc.
4966
4967 * calloc.c: New file.
4968
4969 * xmalloc.c (xcalloc): New function.
4970
a49fb37a
AM
4971Fri Nov 13 08:51:46 EST 1998 Andrew MacLeod <amacleod@cygnus.com>
4972
4973 *cplus-dem.c (demangle_prefix): Use the last "__"
4974 in the mangled name when looking for the signature. This allows
4975 template names to begin with "__".
4976
0e714131
MM
49771998-11-08 Mark Mitchell <mark@markmitchell.com>
4978
ec2288ff
MM
4979 * cplus-dem.c (type_kind_t): Add tk_reference.
4980 (demangle_template_value_parm): Handle it.
4981 (do_type): Use it for references, instead of tk_pointer.
4982
0e714131
MM
4983 * cplus-dem.c (demangle_template_value_parm): Use cplus_demangle,
4984 not internal_cplus_demangle.
4985
2931b6d4
KG
4986Sat Nov 7 16:02:10 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4987
4988 * choose-temp.c: Don't include gansidecl.h.
4989 * mkstemp.c: Likewise.
4990 * pexecute.c: Likewise.
4991
dd8f3ed5
GN
4992Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>
4993
5194cf08
ZW
4994 * configure.in: detect cygwin* instead of cygwin32*
4995 * configure: regenerate
dd8f3ed5 4996
c5f7c445
KG
4997Mon Nov 2 10:22:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4998
4999 * pexecute.c: Check HAVE_CONFIG_H, not IN_GCC, when determining
c4b9cfe0
AJ
5000 whether to include config.h. Possibly include unistd.h in the
5001 !IN_GCC case. Define VFORK_STRING as a printable function call
5002 for error messages (either "vfork" or "fork".) If HAVE_VFORK_H is
5003 defined, include vfork.h. If VMS is defined, define vfork()
5004 appropriately. Remove vfork check on USG, we're using autoconf.
5005 (pexecute): Set `errmsg_fmt' to VFORK_STRING instead of checking
5006 locally what string to use.
c5f7c445 5007
ad3ef78e
MM
50081998-10-26 Mark Mitchell <mark@markmitchell.com>
5009
5010 * splay-tree.c: Tweak include directives to make sure declarations of
5011 xmalloc and free are available.
5012
224301c1
MM
50131998-10-25 Mark Mitchell <mark@markmitchell.com>
5014
5015 * cplus-dem.c (gnu_special): Fix handling of virtual tables in
5016 anonymous namespaces.
38beb75c 5017
d9db46fd
MM
50181998-10-23 Mark Mitchell <mark@markmitchell.com>
5019
5020 * cplus-dem.c (work_stuff): Replace const_type and volatile_type
5021 with type_quals.
5022 (TYPE_UNQUALIFIED): New macro.
5023 (TYPE_QUAL_CONST): Likewise.
5024 (TYPE_QUAL_VOLATILE): Likewise.
5025 (TYPE_QUAL_RESTRICT): Likewise.
5026 (code_for_qualifier): New function.
5027 (qualifier_string): Likewise.
5028 (demangle_qualifier): Likewise.
5029 (internal_cplus_demangle): Use them.
5030 (demangle_signature): Likewise.
5031 (demangle_template_value_parm): Likewise.
5032 (do_type): Likewise.
5033 (demangle_fund_type)): Likewise.
224301c1 5034
b056ad1c
KG
5035Thu Oct 22 19:58:43 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5036
5037 * splay-tree.c (splay_tree_foreach_helper): Make definition static
5038 to match prototype.
5039
ed87f9c8
MM
50401998-10-21 Mark Mitchell <mark@markmitchell.com>
5041
5042 * splay-tree.c: New file.
5043 * Makefile.in (CFILES): Add it.
5044 (REQUIRED_OFILES): Likewise.
5045 (splay-tree.o): Add dependencies.
5046
e0c13971
AS
5047Tue Oct 20 12:29:02 1998 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
5048
5049 * cplus-dem.c (demangle_qualified): Fix off-by-one when checking
5050 range of 'K' index.
5051
91e0f659
KG
5052Thu Oct 15 18:51:12 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5053
5054 * choose-temp.c: Prototype mkstemps() when IN_GCC.
5055
5056 * cplus-dem.c (consume_count): Cast argument of ctype macro to
5057 `unsigned char'.
5058 (cplus_demangle_opname): Cast the result of `strlen' to (int) when
5059 comparing against one.
5060 (cplus_mangle_opname): Likewise.
5061 (demangle_integral_value): Cast argument of ctype macro to
5062 `unsigned char'.
5063 (demangle_template_value_parm): Likewise.
5064 (demangle_template): Initialize variable `bindex'. Cast the
5065 result of `strlen' to (int) when comparing against one. Remove
5066 unused variable `start_of_value_parm'.
5067 (demangle_class_name): Cast the result of `strlen' to (int) when
5068 comparing against one.
5069 (demangle_prefix): Cast argument of ctype macro to `unsigned char'.
5070 (gnu_special): Likewise. Cast the result of `strlen' to (int)
5071 when comparing against one.
5072 (demangle_qualified): Cast argument of ctype macro to `unsigned char'.
5073 (get_count): Likewise.
5074 (do_type): Likewise. Cast the result of `strlen' to (int) when
5075 comparing against one.
5076 (demangle_fund_type): Cast argument of ctype macro to `unsigned char'.
5077 (demangle_function_name): Cast the result of `strlen' to (int)
5078 when comparing against one.
5079
5080 * mkstemp.c (mkstemps): Cast variable `len' to (int) when
5081 comparing against one.
5082
73aeb2ff
JL
5083Tue Oct 13 23:51:51 1998 Jeffrey A Law (law@cygnus.com)
5084
5194cf08
ZW
5085 * mkstemp.c: Check HAVE_SYS_TIME_H before including sys/time.h
5086 * configure.in (AC_CHECK_HEADERS): Check for sys/time.h too.
5087 * config.in, configure: Rebuilt.
ae76f1be 5088
73aeb2ff
JL
5089 * getopt.c: Check HAVE_STRINGS_H before including strings.h.
5090 * configure.in (AC_CHECK_HEADERS): Check for strings.h too.
5091 * config.in, configure: Rebuilt.
5092
dd8f3ed5
GN
5093Mon Oct 12 19:15:59 1998 Geoffrey Noer <noer@cygnus.com>
5094
5194cf08 5095 * configure.in: in comment, call AC_EXEEXT instead of AM_EXEEXT
dd8f3ed5 5096
f77d8413
MT
5097Sun Oct 11 17:36:06 1998 Michael Tiemann <tiemann@holodeck.cygnus.com>
5098
5099 * Makefile.in (cplus-dem.o, obstack.o): Depend upon config.h.
5100
ca6b370d
JL
5101Thu Oct 8 23:42:08 1998 Jeffrey A Law (law@cygnus.com)
5102
5103 * Merge egcs & devo libiberty.
5104
719bb4e3 51051998-09-08 Martin von Löwis <loewis@informatik.hu-berlin.de>
ab4856b1
ML
5106
5107 * cplus-dem.c (demangle_arm_pt): Demangle anonymous namespaces.
5108
96e88994
KG
5109Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5110
5111 * mkstemp.c: Include config.h even when not IN_GCC. Wrap header
c4b9cfe0
AJ
5112 inclusions inside HAVE_*_H macros. Include ansidecl.h when not
5113 IN_GCC.
96e88994
KG
5114
5115 * vasprintf.c: Include stdarg.h/varargs.h first.
5116
5117 * vprintf.c: Likewise.
5118
3f3726a3
JL
5119Sat Sep 5 03:24:49 1998 Jeffrey A Law (law@cygnus.com)
5120
5121 * pexecute.c: Updates from gcc. Copy in gcc has been removed. This
5122 is the canonical copy. Define ISSPACE if !IN_GCC.
7520c31b 5123 * alloca.c, vfprintf.c, choose-temp.c, mkstemp.c, getopt.c: Similarly.
f45da49c 5124 * getopt1.c, obstack.c: Similarly.
16ba4214 5125 * Makefile.in: Build mkstemp.o
3f3726a3 5126
ca6b370d
JL
5127Tue Sep 1 23:12:47 1998 Christopher Faylor <cgf@cygnus.com>
5128
5129 * configure.in: Include asprintf in list of functions known not
5130 to be in newlib.
5131 * configure: Rebuild.
5132
28235a5c
MK
5133Wed Aug 19 14:05:01 1998 Mumit Khan <khan@xraylith.wisc.edu>
5134
5135 * cplus-dem.c (work_stuff): Add dllimported.
5136 (demangled_prefix): Mark symbols imported from PE DLL.
5137 (internal_cplus_demangled): Handle.
5138
5210f3d0
JM
51391998-08-17 Jason Merrill <jason@yorick.cygnus.com>
5140
5141 * cplus-dem.c (do_type): Fix simple array handling. If we fail,
5142 stay failed.
5143
a7825625
KG
5144Mon Aug 17 10:40:34 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5145
5146 * cplus-dem.c: Include config.h if it exists. Also, only
5147 prototype malloc/realloc if we can't get stdlib.h.
5148
ca6b370d
JL
5149Sat Aug 15 16:15:01 1998 Ian Lance Taylor <ian@cygnus.com>
5150
5151 * configure.in: Switch back to checking --with-target-subdir when
5152 deciding whether to check for newlib, undoing part of July 15
5153 change.
5154 * configure: Rebuild.
5155
5156Thu Aug 13 16:47:38 1998 Mark Mitchell <mark@markmitchell.com>
5157
5158 * cplus-dem.c (type_kind_t): New type.
5159 (demangle_template_value_parm): Add type_kind_t parameter. Rely
5160 on this paramter, rather than demangling the type again.
5161 (demangle_integral_value): Pass tk_integral.
5162 (demangle_template_: Pass the value returned from do_type.
5163 (do_type): Return a type_kind_t. Pass tk_integral to
5164 demangle_template_value_parm for array bounds.
5165 (demangle_fund_type): Likewise.
5166
5167 Also incorporate from GCC version:
5168
5169 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
5170
5171 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
5172
5173Thu Aug 13 16:47:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5174
5175 * cplus-dem.c (demangle_nested_args): Make function definition
5176 static to match the prototype.
5177
4d17a06f
MM
5178Tue Jul 28 11:33:09 1998 Mark Mitchell <mark@markmitchell.com>
5179
5180 * cplus-dem.c (type_kind_t): New type.
5181 (demangle_template_value_parm): Add type_kind_t parameter. Rely
5182 on this paramter, rather than demangling the type again.
5183 (demangle_integral_value): Pass tk_integral.
5184 (demangle_template_: Pass the value returned from do_type.
5185 (do_type): Return a type_kind_t. Pass tk_integral to
5186 demangle_template_value_parm for array bounds.
5187 (demangle_fund_type): Likewise.
5188
5189 Also incorporate from GCC version:
5190
5191 Tue Jul 21 13:28:19 1998 Jason Merrill <jason@yorick.cygnus.com>
5192
5193 * cplus-dem.c (do_type): Use demangle_template_value_parm for arrays.
5194
ca6b370d
JL
5195Mon Jul 27 12:16:08 1998 Ian Lance Taylor <ian@cygnus.com>
5196
5197 * Makefile.in (ALLOCA): New variable.
5198 ($(TARGETLIB)): Add $(ALLOCA) to library.
5199 (needed-list): Add $(ALLOCA).
5200 ($(ALLOCA)): Depend upon stamp-picdir.
5201
d94f5c58
KG
5202Sun Jul 19 08:23:17 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5203
5204 * cplus-dem.c (demangle_nested_args): Make function definition
5205 static to match the prototype.
5206
ca6b370d
JL
5207Wed Jul 15 00:12:58 1998 Ian Lance Taylor <ian@cygnus.com>
5208
5209 * configure.in: Check --with-cross-host rather than
5210 --with-target-subdir when deciding whether build uses a cross
5211 compiler, and when deciding where to install the library.
5212 * configure: Rebuild.
5213
5214Sun Jul 12 01:27:05 1998 Jason Merrill <jason@yorick.cygnus.com>
5215
5216 * cplus-dem.c (demangle_nested_args): Return a value.
9923cc56 5217
ca6b370d
JL
5218Sat Jul 11 16:19:48 1998 Mark Mitchell <mark@markmitchell.com>
5219
5220 * cplus-dem.c (string): Move definition before work_stuff.
8a2a7ea2
MM
5221 (work_stuff): Add volatile_type, forgetting_types,
5222 previous_argument, and nrepeats fields.
5223 (SCOPE_STRING): New macro.
5224 (demangle_template): Add `remember' parameter. Add comment.
5225 Register the `B' code type here, if remembering. Tidy. Fix crash
5226 on NULL tmpl_argvec. Be consistent with use of tname/trawname.
5227 (demangle_nested_args): New function.
5228 (internal_cplus_demangle): Handle volatile-qualified member
38beb75c 5229 functions.
8a2a7ea2
MM
5230 (mop_up): Delete the previous_argument string if present.
5231 (demangle_signature): Tidy. Handle volatile-qualified member
5232 functions. Handle back-references using the `B' code. Use extra
5233 parameter to demangle_template and SCOPE_STRING where appropriate.
5234 (demangle_template_value_parm): Fix thinko; 'B' is not an integral
38beb75c 5235 code.
8a2a7ea2
MM
5236 (demangle_class): Use SCOPE_STRING.
5237 (gnu_special): Pass additional argument to demangle_template.
5238 Use SCOPE_STRING.
5239 (demangle_qualified): Save qualified types for later
5240 back-references. Handle constructors and destructors for template
5241 types correctly.
5242 (do_type): Tidy. Use SCOPE_STRING. Pass extra argument to
5243 demangle_template. Use demangled_nested_args. Don't remember
5244 qualified types here; that's now done in demangle_qualified.
5245 Similarly for templates.
5246 (do_arg): Improve commment. Handle 'n' repeat code.
5247 (remember_type): Check forgetting_types.
5248 (demangle_args): Deal with 'n' repeat codes. Tidy.
38beb75c 5249
ca6b370d
JL
5250Thu Jul 2 16:26:24 1998 Ian Lance Taylor <ian@cygnus.com>
5251
5252 * config.table: Only use mh-fbsd21 on *-*-freebsd2.2.[012], not on
5253 *-*-freebsd2.2.*. From Dmitrij Tejblum <tejblum@arc.hq.cti.ru>.
5254
5255Mon Jun 15 16:29:01 1998 Ian Lance Taylor <ian@cygnus.com>
5256
5257 * configure.in (setobjs): Correct quoting error in cygwin32 case.
5258 From Chris Faylor <cgf@cygnus.com>.
5259
5260Mon Jun 1 13:47:55 1998 Jason Molenda (crash@bugshack.cygnus.com)
5261
5262 * obstack.c: Update to latest FSF version.
5263
5264Mon Jun 1 14:17:36 1998 Mike Stump <mrs@wrs.com>
5265
5266 * Makefile.in: Add a dependency on stamp-picdir for the
5267 objects, so that we can do a parallel build.
9923cc56 5268
6391b50a
MK
5269Sat May 30 22:17:13 1998 Mumit Khan <khan@xraylith.wisc.edu>
5270
5271 * configure.in (checkfuncs): Add missing "'".
5272
ca6b370d 5273Fri May 29 12:40:41 1998 Jason Molenda (crash@bugshack.cygnus.com)
10c62dce 5274
ca6b370d
JL
5275 * obstack.c (_obstack_memory_used): Elide this function if we're
5276 on a system with GNU libc.
10c62dce 5277
ca6b370d 5278Tue May 26 18:28:43 1998 Ian Lance Taylor <ian@cygnus.com>
75f6bf44 5279
ca6b370d 5280 * Makefile.in (distclean): Remove config.log.
75f6bf44 5281
ca6b370d 5282Tue May 26 15:01:52 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
7b195f77 5283
ca6b370d
JL
5284 * Makefile.in (distclean): Don't remove alloca-conf.h.
5285
5286Fri May 22 01:38:07 1998 Hans-Peter Nilsson <hp@axis.se>
5287
5288 * cplus-dem.c (MBUF_SIZE): Bumped from 512 to 32767.
7b195f77 5289
1cc75298
MM
52901998-05-21 Mark Mitchell <mmitchell@usa.net>
5291
5292 * cplus-dem.c (do_type): Handle volatile qualification.
38beb75c 5293
39d65850
MH
52941998-05-21 Manfred Hollstein <manfred@s-direktnet.de>
5295
5296 * configure.in: Check for unistd.h as well.
5297 * configure: Rebuild.
5298 * config.in: Rebuild.
5299 * getpagesize.c (GNU_OUR_PAGESIZE): Use sysconf only if _SC_PAGESIZE
5300 is defined in unistd.h. Reformat conditional block for easier reading.
5301
5302 * config.table (shared): Default to no if ${enable_shared}
5303 is unset or empty; this logic is used by the toplevel
5304 configure scripts, too.
5305
c2953795
JL
5306Sat May 16 14:01:26 1998 Jeffrey A Law (law@cygnus.com)
5307
5308 * config.table: Add line to set enable_shared in the Makefile
5309 as needed.
5310
d6f4ec51
KG
5311Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5312
3affd5f0
JL
5313 * cplus-dem.c (squangle_mop_up): Change return type to void.
5314 (internal_cplus_demangle): Remove unused parameter `options'.
5315 All callers changed.
5316 (cplus_demangle_opname): Remove function wide variable `int i' and
5317 replace with `size_t i' at each location where it is used.
5318 (cplus_mangle_opname): change type of `i' from int to size_t.
5319
5320Wed May 13 13:39:38 1998 Ian Lance Taylor <ian@cygnus.com>
5321
5322 * alloca-conf.h: Include config.h. Check HAVE_ALLOCA_H rather
5323 than sparc or sun.
5324 * Makefile.in (argv.o): Depend upon config.h and alloca-conf.h.
5325
5326Fri May 8 00:23:51 1998 Ian Lance Taylor <ian@cygnus.com>
5327
5328 * configure.in: Set libiberty_topdir correctly when srcdir is
5329 "." and with_target_subdir is not set.
5330 * configure: Rebuild.
5331
5332Thu May 7 13:01:44 1998 Ian Lance Taylor <ian@cygnus.com>
5333
5334 * configure.in: Add *-*-mingw32* case.
5335 * configure: Rebuild.
5336
5337Wed May 6 11:33:51 1998 Ian Lance Taylor <ian@cygnus.com>
5338
5339 * config.table: Never use a PIC file for *-*-cygwin32*.
5340
5341 * Makefile.in (config.status): Depend upon config.table.
5342
5343 * configure.in: On a cygwin32 host, always compile random, and
5344 don't test for sys_siglist, strsignal, or psignal.
5345 * configure: Rebuild.
5346
5347 * clock.c: Check HAVE_SYS_PARAM_H rather than NO_SYS_PARAM_H.
5348 * getcwd.c: Likewise.
5349 * getpagesize.c: Likewise.
5350 * getruntime.c: Likewise.
5351
5352Tue May 5 18:08:32 1998 Ian Lance Taylor <ian@cygnus.com>
5353
5354 Use autoconf tests rather than the old dummy.c test:
5355 * configure.in: Add AC_ARG_WITH calls for --with-target-subdir and
5356 --with-newlib. Add AC_CONFIG_HEADER. Use AC_REPLACE_FUNCS for
5357 most functions. Add special cases to handle newlib and VxWorks.
5358 Remove target_makefile_frag. Create stamp-h in AC_OUTPUT if
5359 CONFIG_HEADERS is set. Only call config-ml.in in AC_OUTPUT if
5360 CONFIG_FILES is set; set ac_file before calling it.
5361 * config.table (arm-*-riscix*, *-*-cygwin32): Remove.
5362 (*-*-hpux*, *-*-hiux*, *-*-irix4*, *-*-solaris2*): Remove.
5363 (*-*-sysv4*, *-*-go32, *-*-vxworks5*, *-*-vxworks): Remove
5364 (i[3456]-*-mingw32*): Remove.
5365 * Makefile.in (ERRORS_CC, CONFIG_H, NEEDED_LIST): Remove.
5366 (LIBOBJS): New variable.
5367 (HOST_OFILES, DO_ALSO, STAGESTUFF): Remove.
5368 (all): Depend upon needed-list. Don't check RULE1.
5369 (@target_makefile_frag@): Remove.
5370 (COMPILE.c): Include @DEFS@.
5371 (HFILES): Add alloca-conf.h.
5372 (REQUIRED_OFILES): Remove basename.o.
5373 ($(TARGETLIB)): New target.
5374 (stamp-needed, lneeded-list, needed.awk, stamp-config): Remove.
5375 (lconfig.h, needed2.awk, dummy.o, errors): Remove.
5376 (needed-list, config.h): Rewrite.
5377 (RULE1, $(RULE1), RULE2, $(RULE2)): Remove.
5378 (.always.): Remove.
5379 (Makefile): Set CONFIG_FILES and CONFIG_HEADERS.
5380 (stamp-h): New target.
5381 (atexit.o, clock.o, getcwd.o, getpagesize.o): New targets.
5382 (basename.o): Don't depend upon config.h.
5383 (getruntime.o): Depend upon config.h.
5384 * atexit.c: Include config.h. Check HAVE_ON_EXIT rather than
5385 NEED_on_exit.
5386 * basename.c: Don't include config.h. Don't check NEED_basename.
5387 * clock.c: Include config.h.
5388 * getcwd.c: Likewise.
5389 * getpagesize.c: Likewise.
5390 * getruntime.c: Likewise. Fix checks which set HAVE_GETRUSAGE and
5391 HAVE_TIMES.
5392 * strerror.c: Change uses of NEED_sys_errlist to
5393 HAVE_SYS_ERRLIST. Likewise for NEED_strerror and HAVE_STRERROR.
5394 * strsignal.c: Likewise for NEED_sys_siglist and HAVE_SYS_SIGLIST,
5395 and for NEED_strsignal and HAVE_STRSIGNAL and for NEED_psignal and
5396 HAVE_PSIGNAL.
5397 * acconfig.h: New file.
5398 * dummy.c: Remove.
5399 * functions.def: Remove.
5400 * config/mh-cxux7 (HDEFINES): Remove -DHAVE_SYSCONF.
5401 * config/mh-windows (HDEFINES): Remove.
5402 * config/mh-cygwin32: Remove.
5403 * config/mh-go32: Remove.
5404 * config/mh-irix4: Remove.
5405 * config/mh-riscix: Remove.
5406 * config/mh-sysv4: Remove.
5407 * config/mt-mingw32: Remove.
5408 * config/mt-vxworks5: Remove.
5409 * config.in: New file, generated using autoheader.
5410 * configure: Rebuild.
5411
5412Mon May 4 13:00:28 1998 Ian Lance Taylor <ian@cygnus.com>
5413
5414 * configure.in: Rewrite to use autoconf.
5415 * configure: Generate using autoconf.
5416 * config/mh-a68bsd: Remove.
5417 * config/mh-apollo68: Remove.
5418 * config/mh-hpbsd: Remove.
5419 * config/mh-ncr3000: Remove.
5420 * config/mh-sysv: Remove.
5421 * config/mh-aix (RANLIB, INSTALL): Don't define.
5422 * config/mh-cxux7 (RANLIB, INSTALL): Don't define.
5423 * config/mh-irix4 (CC, RANLIB, INSTALL): Don't define.
5424 * config/mh-sysv4 (RANLIB, INSTALL): Don't define.
5425 * config.table: Change config_shell to CONFIG_SHELL, and use
5426 libiberty_topdir to find move-if-change.
c4b9cfe0 5427 (m68k-apollo-bsd*, m68k-apollo-sysv*): Remove.
3affd5f0
JL
5428 (i[3456]86-ncr-sysv4*, *-*-dgux*, hppa*-hp-bsd*): Remove.
5429 (*-*-irix*, *-*-m88kbcs*, *-*-sysv*): Remove.
5430 * Makefile.in (srcdir): Set to @srcdir@.
5431 (VPATH): Likewise.
5432 (prefix, exec_prefix, bindir, libdir): Set to autoconf variables.
5433 (SHELL, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Likewise.
5434 (CC, CFLAGS, RANLIB)): Likewise.
5435 (datadir, man*dir, infodir, includedir, MAKEINFO): Remove.
5436 (target_makefile_frag, host_makefile_frag): Add substitutions.
5437 (INSTALL_DEST): Set to @INSTALL_DEST@.
5438 (Makefile): Depend upon config.status. Don't depend upon
5439 $(host_makefile_frag) or $(target_makefile_frag).
5440 (config.status): New target.
5441
5442Sun May 3 17:58:49 1998 Ian Lance Taylor <ian@cygnus.com>
5443
5444 * config/mt-sunos4: Remove. Should be handled by --with-headers
5445 and --with-libraries options at top level.
5446 * config.table: Never use mt-sunos4.
5447
5448 * alloca-conf.h: New file, combining alloca-norm.h and
5449 alloca-botch.h.
5450 * alloca-norm.h: Remove.
5451 * alloca-botch.h: Remove.
5452 * configure.in: Set shell variables files and links to empty.
5453 * config.table: Don't set shell variable files.
5454 * configure.bat: Don't create alloca-conf.h.
5455 * makefile.vms: Likewise.
5456 * mpw-config.in: Likewise.
5457 * vmsbuild.com: Likewise.
5458
5459Fri May 1 11:41:42 1998 Ian Lance Taylor <ian@cygnus.com>
5460
5461 * Makefile.in ($(HOST_OFILES) $(REQUIRED_OFILES)): Remove old
5462 target depending upon config.h.
5463 (alloca.o): Add target depending upon config.h
5464 (basename.o, choose-temp.o, fnmatch.o): Likewise.
5465 (getopt.o, getopt1.o, pexecute.o, strerror.o): Likewise.
5466 (strsignal.o, xstrerror.o): Likewise.
d6f4ec51 5467
63586755
PS
5468Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5469
5470 * cplus-dem.c (cplus_demangle_opname): Initialize work.
5471
07623417
AM
5472Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5473
5474 * cplus-dem.c (demangle_qualified): Replace missing else.
5475
7bf40741
AS
5476Sun Apr 26 15:38:50 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
5477
5478 * cplus-dem.c (gnu_special): Fix off-by-one bug when checking the
5479 length in the name of a virtual table.
5480
5e5199e8
AM
5481Wed Apr 22 10:53:49 EDT 1998 Andrew MacLeod <amacleod@cygnus.com>
5482
5483 * cplus-dem.c (struct work stuff): Add field for B and K mangle codes.
5484 (cplus_demangle_opname): Call mop_up_squangle.
38beb75c 5485 (cplus_demangle): Initialize squangle info, then call
5e5199e8 5486 internal_cplus_demangle. (Most code moved there as well)
38beb75c 5487 (internal_cplus_demangle): New function, performs most of what use
5e5199e8
AM
5488 to be done in cplus_demangle, but is only called with this file.
5489 (squangle_mop_up): New function to clean up B and K code data.
5490 (mop_up): set pointers to NULL after freeing.
38beb75c 5491 (demangle_signature, demangle_template, demangle_class): Add
5e5199e8
AM
5492 switch elements to handle K and B codes.
5493 (demangle_prefix, gnu_special, demangle_qualified): Add
5494 code to handle K and B codes.
5495 (do_type, demangle_fund_type): Handle B and K codes.
5496 (remember_Ktype): New function to store K info.
5497 (register_Btype, remember_Btype): New functions for B codes.
5498 (forget_B_and_K_types): New function to destroy B and K info.
5499
3affd5f0 5500Fri Apr 10 01:49:10 1998 Jeffrey A Law (law@cygnus.com)
9ee02b5c 5501
3affd5f0 5502 * COPYING.LIB, choose-temp.c, cplus-dem.c: Sync with egcs & gcc.
f9c85454 5503
0a9e7530
MH
5504Thu Mar 5 09:23:28 1998 Manfred Hollstein <manfred@s-direktnet.de>
5505
5506 * config.table: Make locating frag files failsafe even for the
5507 special case if configuring and building in srcdir.
5508
b9fb3c42
ILT
5509Mon Feb 23 14:33:15 1998 Ian Lance Taylor <ian@cygnus.com>
5510
5511 * choose-temp.c: Fix handling of sys/file.h to work in libiberty.
5512
3affd5f0
JL
5513Sun Feb 22 18:03:23 1998 Jeffrey A Law (law@cygnus.com)
5514
5515 * choose-temp.c: Sync with copy in gcc.
5516
b134508b
ILT
5517Thu Feb 12 16:29:49 1998 Ian Lance Taylor <ian@cygnus.com>
5518
5519 * getopt.c: Update to latest FSF version.
5520 * getopt1.c: Likewise.
5521
5890bc92
JL
5522Tue Feb 10 16:58:33 1998 Stan Shebs <shebs@andros.cygnus.com>
5523
5524 * cplus-dem.c (gnu_special): Don't get confused by .<digits>
5525 strings that are not actually lengths.
5526
f5c3ae66
MH
5527Fri Feb 6 01:35:17 1998 Manfred Hollstein <manfred@s-direktnet.de>
5528
5529 * Makefile.in (FLAGS_TO_PASS): Don't pass PICFLAG.
5530 (.c.o): Check value of enable_shared, not PICFLAG.
5531 (stamp-picdir): Dito.
5532
3affd5f0
JL
5533Thu Feb 5 18:48:56 1998 Geoffrey Noer <noer@cygnus.com>
5534
5194cf08
ZW
5535 * config/mh-cygwin32: remove vasprintf.o from EXTRA_OFILES
5536 since it gets built automatically
3affd5f0 5537
c00f2b9d
MS
5538Sun Feb 1 02:52:32 1998 Mike Stump <mrs@wrs.com>
5539
5540 * config.table (vxworks configs): Default to VxWorks 5.x, as that is
5541 the currently shipping OS.
5542
76a8b46e
JL
5543Tue Jan 27 16:08:20 1998 Pat Rankin <rankin@eql.caltech.edu>
5544
5545 * vmsbuild.com [REQUIRE_OFILES]: Synchronized with Makefile.in:
5546 Add fnmatch.o and objalloc.o; remove vasprintf.o.
5547 [config.h]: Define NEED_strsignal.
5548
5549Mon Jan 19 12:20:01 1998 Ian Lance Taylor <ian@cygnus.com>
5550
5551 * functions.def: Correct argument types for strerror and
5552 strsignal. Reported by Alex Gutman <agutman@emc.com>.
5553
5890bc92
JL
5554Sun Jan 18 15:57:28 1998 Michael Snyder <msnyder@cleaver.cygnus.com>
5555
5556 * vasprintf.c (int_vasprintf): Increase buffer size for float/double
5557 values.
5558
3affd5f0 5559Sat Jan 17 22:28:38 1998 Mumit Khan <khan@xraylith.wisc.edu>
1ce26fc4 5560 J.J. VanderHeijden <J.J.vanderHeijden@student.utwente.nl>
77aff459 5561
1ce26fc4
JL
5562 Add mingw32 support.
5563 * pexecute.c (pexecute): New function for mingw32. Supports pipes.
5564 (pwait): New function for mingw32.
77aff459 5565
1ce26fc4
JL
5566 * config.table (i[3456]86-*-mingw32*): Support for i386-mingw32.
5567 * config/mt-mingw32: New file.
5568 * xmalloc.c (first_break): Not used for mingw32.
5569 (xmalloc_set_program_name): Don't use sbrk on mingw32.
5570 (xmalloc): Likewise.
5571 (xrealloc): Likewise.
77aff459 5572
1ce26fc4 5573Sat Jan 17 22:28:05 1998 Jeffrey A Law (law@cygnus.com)
84f79fea
JL
5574
5575 * choose-temp.c: Sync with gcc version.
5576
1ce26fc4
JL
5577Tue Jan 13 18:34:39 1998 Jim Wilson <wilson@cygnus.com>
5578
5579 * Makefile.in (install_to_libdir, install_to_tooldir): Add MULTISUBDIR
5580 to all filenames in libdir and tooldir.
5581 (distclean): Do MULTICLEAN before deleting Makefile.
5582 (stamp-needed, stamp-config): Add MULTISRCTOP to
5583 pathname for move-if-change.
5584
e7757d69
JL
5585Thu Dec 4 17:25:19 1997 Jeffrey A Law (law@cygnus.com)
5586
5587 * strsignal.c (sys_nsig): Try NSIG and _NSIG.
5588
8b715b2a
JL
5589Wed Nov 19 13:37:06 1997 Michael Meissner <meissner@cygnus.com>
5590
5591 * alloca-norm.h (alloca, GCC case): Don't redefine alloca if it
5890bc92 5592 was already defined previously.
8b715b2a
JL
5593
5594Mon Nov 10 12:48:03 1997 Philippe De Muyter <phdm@macqel.be>
5595
5596 * Makefile.in (INSTALL): Use ../install-sh, not install.
5597
0c23b0b2
JG
5598Tue Oct 28 23:41:15 1997 Judy Goldberg <jodyg@idt.net>
5599
5600 * Makefile.in (CFILES): Add pexecute.c.
5601
a6e74b83
ILT
5602Wed Oct 15 19:13:48 1997 Ian Lance Taylor <ian@cygnus.com>
5603
5604 * asprintf.c: Consistently use either stdarg or varargs.
5605
19ddc834
JM
5606Tue Oct 14 12:01:00 1997 Mark Mitchell <mmitchell@usa.net>
5607
5608 * cplus-dem.c (demangle_signature): Don't look for return types on
5609 constructors. Handle member template constructors.
5610
5611Fri Oct 3 17:53:30 1997 Ian Lance Taylor <ian@cygnus.com>
5612
5613 * README: Fix configuration instructions.
5614
5615Mon Sep 29 12:28:41 1997 Ian Lance Taylor <ian@cygnus.com>
5616
5617 * pexecute.c: Update to current version from /gd/gnu/lib:
5618
5619 Mon Sep 29 12:27:59 1997 Ian Lance Taylor <ian@cygnus.com>
5620
5194cf08 5621 * pexecute.c: Use spawn if __CYGWIN32__.
19ddc834
JM
5622
5623 1997-08-08 Paul Eggert <eggert@twinsun.com>
5624
5194cf08 5625 * pexecute.c: Include "config.h" first, as per autoconf manual.
19ddc834
JM
5626
5627 Fri Jun 27 15:20:29 1997 Scott Christley <scottc@net-community.com>
5628
5194cf08
ZW
5629 * pexecute.c (fix_argv): New function.
5630 (pexecute): Win32 but not Cygwin32 needs its arguments fixed.
5631 Add underscore to cwait function call.
19ddc834 5632
a3a5b5b7
MM
5633Sun Sep 28 12:00:52 1997 Mark Mitchell <mmitchell@usa.net>
5634
5194cf08
ZW
5635 * cplus-dem.c (demangle_template): Add new parameter. Handle new
5636 template-function mangling.
5637 (consume_count_with_underscores): New function.
5638 (demangle_signature): Handle new name-mangling scheme.
a3a5b5b7 5639
19ddc834
JM
5640Wed Sep 24 00:31:59 1997 Felix Lee <flee@yin.cygnus.com>
5641
5642 * asprintf.c: stdarg.h when ALMOST_STDC
5643 * config/mh-windows (EXTRA_OFILES): add asprintf.o and
c4b9cfe0 5644 strncasecmp.o.
19ddc834
JM
5645
5646Thu Aug 28 14:27:15 1997 Andrew Cagney <cagney@b1.cygnus.com>
5647
5648 * vasprintf.c (vasprintf): Allow for _BSD_VA_LIST_.
5649
5650 * config.table: Add case for FreeBSD 2.1 and 2.2, needs mh-fbsd21.
5651
5652 * config/mh-fbsd21 (EXTRA_OFILES): Force vasprintf.o
5653
5654Wed Sep 10 12:43:10 1997 Jason Merrill <jason@yorick.cygnus.com>
5655
5656 * cplus-dem.c (demangle_fund_type): Change "complex" to "__complex".
5657
19ddc834
JM
5658Fri Sep 5 16:34:42 1997 Andrew Cagney <cagney@b1.cygnus.com>
5659
5660 * asprintf.c (asprintf): New file.
5661 * Makefile.in (CFILES): Add asprintf.c
5662 * functions.def: Ditto.
5663
19ddc834
JM
5664Thu Aug 28 18:53:34 1997 Andrew Cagney <cagney@b1.cygnus.com>
5665
5666 * argv.c (dupargv): New function, duplicate an argument vector.
5667
6599da04
JM
5668Tue Aug 19 20:28:45 1997 Geoffrey Noer <noer@cygnus.com>
5669
5670 * config/mh-cygwin32: also build random.o
5671
5672Tue Aug 19 17:10:56 1997 Jason Merrill <jason@yorick.cygnus.com>
5673
5674 * cplus-dem.c: Add 'extern' to prepends_underscore.
5675
3510075c
JL
5676Wed Jul 30 11:42:19 1997 Per Bothner <bothner@cygnus.com>
5677
5678 * cplus-dem.c: Various changes to produce Java output when passed
5679 DMGL_JAVA. Thus "::" becomes "." and "JArray<Foo>" becomes "Foo[]".
5680 (main): Support --java and -j flags to set DMGL_JAVA.
5681
6599da04
JM
5682Tue Jul 22 19:05:23 1997 Robert Hoehne <robert.hoehne@Mathematik.TU-Chemnitz.DE>
5683
5684 * config/mh-go32 (CC, AR, RANLIB): Don't define.
5685
5686Tue Jul 22 17:49:54 1997 Ian Lance Taylor <ian@cygnus.com>
5687
5688 * Makefile.in (REQUIRED_OFILES): Add pexecute.o.
5689 (pexecute.o): New target.
5690
5691 * Makefile.in (stamp-needed): New target, replacing needed-list.
5692 (needed-list): Just depend upon stamp-needed.
5693 (stamp-config): New target, replacing config.h.
5694 (config.h): Just depend upon stamp-config.
5695 (mostlyclean): Remove stamp-*.
5696
5697Thu Jun 12 11:00:18 1997 Angela Marie Thomas (angela@cygnus.com)
5698
5699 * Makefile.in (FLAGS_TO_PASS): pass INSTALL, INSTALL_PROGRAM and
5700 INSTALL_DATA for multilibbed installs
5701
5702Tue Jun 3 13:21:05 1997 Doug Evans <dje@canuck.cygnus.com>
5703
5704 Tue Dec 10 09:44:57 1996 Paul Eggert <eggert@twinsun.com>
5705
5706 * choose-temp.c (choose_temp_base): Don't dump core if TMPDIR is empty.
5707
5708 * choose-temp.c (try): Insist that temp dir be searchable.
5709
5710 Wed Oct 23 17:36:39 1996 Doug Rupp (rupp@gnat.com)
5711
5712 * choose-temp.c (choose_temp_base): On VMS, use proper syntax
5713 for current directory.
5714
5715 Sat Feb 15 19:03:48 1997 Geoffrey Noer (noer@cygnus.com)
5716
5717 * pexecute.c: Remove special cases for cygwin32.
5718 (pwait): Remove local definition of `pid'.
5719
5720 Tue Nov 12 18:26:15 1996 Doug Rupp (rupp@gnat.com)
5721
5722 * pexecute.c (vfork): Supply new definition for VMS.
5723 (pwait): Use waitpid instead of wait for VMS.
5724
5725Tue May 20 14:02:20 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
5726
5727 * cplus-dem.c (do_type): Handle `J'.
5728 (demangle_fund_type): Print "complex" for it.
5729
5730Wed Apr 30 12:15:45 1997 Jason Merrill <jason@yorick.cygnus.com>
5731
5732 * configure.in: Don't turn on multilib here.
5733
5734Mon Apr 28 19:04:31 1997 Michael Snyder <msnyder@cleaver.cygnus.com>
5735
38beb75c 5736 * obstack.c: move _obstack_memory_used outside of ifdef. Cannot be
6599da04
JM
5737 elided; needed by gdb and not present in libc.
5738
5739Thu Apr 24 19:33:47 1997 Ian Lance Taylor <ian@cygnus.com>
5740
5741 * Makefile.in (clean): Remove tmpmulti.out.
5742
5743Tue Apr 22 10:25:15 1997 Fred Fish <fnf@cygnus.com>
5744
38beb75c 5745 * floatformat.c (floatformat_ieee_double_littlebyte_bigword):
6599da04
JM
5746 Add new floatformat, mainly for ARM doubles.
5747
5748Mon Apr 14 12:11:16 1997 Ian Lance Taylor <ian@cygnus.com>
5749
5750 * config.table: Use ${config_shell} with ${moveifchange}. From
5751 Thomas Graichen <graichen@rzpd.de>.
5752
5753Fri Apr 4 03:09:24 1997 Ulrich Drepper <drepper@cygnus.com>
5754
5755 * configure.in: Enable multilibing by default.
5756 Update multilib template to read config-ml.in.
5757
5758Tue Apr 1 16:26:39 1997 Klaus Kaempf <kkaempf@progis.de>
5759
5760 * makefile.vms: Add objalloc.
5761
5762Mon Mar 31 23:57:51 1997 H.J. Lu <hjl@gnu.ai.mit.edu>
5763
5764 * cplus-dem.c (demangle_it): Add prototype declaration.
5765 (usage, fatal): Likewise.
5766
5767 * xexit.c (_xexit_cleanup): Add prototype.
5768
5769 * strerror.c (init_error_tables): Declare.
5770
5771Fri Mar 28 11:43:20 1997 H.J. Lu <hjl@lucon.org>
5772
5773 * functions.def: Add DEF of vasprintf, and DEFFUNC of strsignal.
5774 * strsignal.c: Only define strsignal if NEED_strsignal.
5775 * Makefile.in (REQUIRED_OFILES): Remove vasprintf.o.
5776 * configure.in: Add NEED_strsignal to xconfig.h. Add vasprintf.o
5777 to xneeded-list.
5778 * config/mh-cygwin32 (HDEFINES): Add -DNEED_strsignal.
5779 (EXTRA_OFILES): Define to vasprintf.o.
5780 * config/mh-windows (HDEFINES): Add -DNEED_strsignal.
5781 (EXTRA_OFILES): Add vasprintf.o.
5782 * config/mt-vxworks5 (vxconfig.h): Define NEED_strsignal.
5783 (vxneeded-list): Add vasprintf.o.
5784
5785Thu Mar 20 17:02:09 1997 Ian Lance Taylor <ian@cygnus.com>
5786
5787 * objalloc.c: Include <stdio.h>.
5788
5789Mon Mar 17 19:23:11 1997 Ian Lance Taylor <ian@cygnus.com>
5790
5791 * objalloc.c: New file.
5792 * Makefile.in (CFILES): Add objalloc.c
5793 (REQUIRED_OFILES): Add objalloc.o.
5794 (objalloc.o): New target.
5795
5796Sat Mar 15 18:49:41 1997 Ian Lance Taylor <ian@cygnus.com>
5797
5798 * obstack.c: Update to current FSF version.
5799
5800Fri Mar 14 14:18:47 1997 Ian Lance Taylor <ian@cygnus.com>
5801
38beb75c 5802 * cplus-dem.c: Add prototypes for all static functions.
6599da04
JM
5803 (mystrstr): Make static. Make arguments and result const.
5804 (cplus_match): Remove; not used.
5805
5806Tue Mar 11 14:20:31 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
5807
5808 * cplus-dem.c (gnu_special): Call demangled_fund_type for other
5809 __t* symbols.
5810
5811Tue Mar 11 15:41:21 1997 H.J. Lu <hjl@lucon.org>
5812
5813 * spaces.c: Declare malloc and free properly.
5814 * strsignal.c (init_signal_tables): Add prototype.
5815 * xatexit.c (_xexit_cleanup): Add parameter declarations.
5816
5817Wed Feb 19 15:43:24 1997 Brendan Kehoe <brendan@lisa.cygnus.com>
5818
5819 * Makefile.in (lneeded-list): If alloca.o is needed, xexit.o is
5820 also required because of xmalloc.o.
5821
5822Fri Feb 14 13:43:38 1997 Ian Lance Taylor <ian@cygnus.com>
5823
5824 * strsignal.c: Unconditionally redefine sys_siglist around the
5825 inclusion of the system header files.
5826
5827Thu Feb 13 22:01:04 1997 Klaus Kaempf <kkaempf@progis.de>
5828
5829 * makefile.vms: Remove 8 bit characters. Update to latest
5830 gcc release.
5831
5832Tue Feb 4 11:52:19 1997 Ian Lance Taylor <ian@cygnus.com>
5833
5834 * strsignal.c: Use NEED_sys_siglist instead of
5835 LOSING_SYS_SIGLIST.
5836 * config.table: Don't use mh-lynxos.
5837 * config/mh-lynxos: Remove.
5838
5839Thu Jan 16 14:51:03 1997 Bob Manson <manson@charmed.cygnus.com>
5840
5841 * cplus-dem.c: Fix indenting; make identical to the copy
5842 in GCC.
5843 (do_type, case 'M'): Check for a template as well as a class.
5844
5845Thu Dec 19 13:51:33 1996 Brendan Kehoe <brendan@lisa.cygnus.com>
5846
5847 * config/mt-vxworks5 (vxneeded-list): Remove sigsetmask.o, since
5848 vxworks 5.[0-3] all have sigsetmask in them; the one provided by
5849 libiberty is incorrect, as well.
5850
5851Mon Dec 2 15:03:42 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5852
5853 * alloca.c (alloca): When compiled with an ANSI/ISO compiler,
5854 alloca takes a size_t argument, not just unsigned.
5855
5856Mon Nov 18 15:42:08 1996 Jason Merrill <jason@yorick.cygnus.com>
5857
5858 * cplus-dem.c: Note that this file also lives in GCC.
5859
5860Mon Nov 18 15:19:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
5861
5862 * alloca.c: Remove include of libiberty.h for hpux.
5863 * argv.c: Replace defs from libiberty.h.
5864 * spaces.c: Put back externs from removed from libiberty.h.
5865 * vasprintf.c: Remove include of libiberty.h for hpux.
5866
5867Mon Nov 18 14:08:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
5868
5869 * cplus-dem.c: Checking in again; last checkin filed due to sticky tag.
5870
5871Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
5872
38beb75c
UD
5873 * cplus-dem.c: Revert last two commits due to conflicts with
5874 hpux system headers.
6599da04
JM
5875
5876Wed Nov 13 08:22:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
5877
5878 * alloca.c, argv.c, spaces.c, strcasecmp.c, vasprintf.c, vprintf.c:
38beb75c 5879 Revert last commit due to conflicts with hpux system headers.
6599da04
JM
5880
5881Wed Nov 13 10:36:50 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5882
5883 * cplus-dem.c (x{m,re}alloc): Make declarations compatibile with
5884 libiberty.h when compiled with a standard compiler.
5885
5886Tue Nov 12 16:31:00 1996 Dawn Perchik <dawn@critters.cygnus.com>
5887
38beb75c 5888 * alloca.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
5889 Don't redefine NULL.
5890 * argv.c: Move prototypes to libiberty.h.
38beb75c 5891 * cplus-dem.c: Include libiberty.h for definition of xmalloc.
6599da04
JM
5892 Don't redefine NULL.
5893 Use casts to eliminate compiler warnings.
38beb75c 5894 * spaces.c: Remove prototypes for malloc and free which are
6599da04
JM
5895 already in libibrty.h.
5896 * strcasecmp.c: Use casts to eliminate compiler warnings.
38beb75c 5897 * vasprintf.c: Include libiberty.h for definition of malloc.
6599da04
JM
5898 Don't redefine NULL.
5899 * vprintf.c: Include stdarg.h if __STDC__.
5900
5901Fri Oct 11 15:42:12 1996 Stu Grossman (grossman@critters.cygnus.com)
5902
5903 * config/mh-windows: Add strcasecmp.o to EXTRA_OFILES.
5904
5905Fri Oct 11 11:16:31 1996 Stan Shebs <shebs@andros.cygnus.com>
5906
5907 * mpw.c (mpwify_filename): Rewrite to simplify, and to handle
5908 upward components correctly.
5909
5910Tue Oct 8 08:55:34 1996 Stu Grossman (grossman@critters.cygnus.com)
5911
5912 * config.table, config/mh-windows: Add support for building under
5913 MSVC (the Microsoft build environment).
5914
5915Mon Oct 7 10:50:27 1996 Ian Lance Taylor <ian@cygnus.com>
5916
5917 * fnmatch.c: Undef const if not __STDC__.
5918
5919Thu Oct 3 13:46:39 1996 Ian Lance Taylor <ian@cygnus.com>
5920
5921 * fnmatch.c: New file.
5922 * Makefile.in (CFILES): Add fnmatch.c.
5923 (REQUIRED_OFILES): Add fnmatch.o.
5924 (fnmatch.o): New target.
5925
5926Wed Sep 18 14:49:13 1996 Jason Merrill <jason@yorick.cygnus.com>
5927
5928 * cplus-dem.c (demangle_template): Fix handling of address args.
5929 (gnu_special): Handle type_info stuff.
5930
5931Fri Sep 13 17:52:55 1996 Stan Shebs <shebs@andros.cygnus.com>
5932
5933 * mpw.c (DebugPI): Make settable from the env var DEBUG_PATHNAMES.
5934 (mpwify_filename): Handle "::/" case.
5935
5936Thu Sep 12 13:30:40 1996 Geoffrey Noer <noer@cygnus.com>
5937
5938 * config/mh-cygwin32: new file (need -DNEED_basename and
5939 -DNEED_sys_siglist for native NT rebuilding)
5940 * config.table (*-*-cygwin32): new entry
5941 * choose-temp.c: bring in sync with gcc (revert Aug 17 change)
5942
5943Thu Aug 29 16:48:45 1996 Michael Meissner <meissner@tiktok.cygnus.com>
5944
5945 * config.table (i[345]86-*-*): Recognize i686 for pentium pro.
5946
5947Tue Aug 27 13:47:58 1996 Stan Shebs <shebs@andros.cygnus.com>
5948
5949 * pexecute.c (pexecute) [MPW]: Remove old bogus code that
5950 messed with arguments that included a '/', add escape chars
5951 to double quotes, remove const decl from arg that Mac
5952 compilers don't seem to like.
5953
5954Sat Aug 17 04:44:27 1996 Geoffrey Noer <noer@cygnus.com>
5955
5956 * pexecute.c: Update test for win32 (&& ! cygwin32).
5957 * choose-temp.c: fix WIN32 preprocessor defines
5958
5959Thu Aug 15 12:26:48 1996 Stan Shebs <shebs@andros.cygnus.com>
5960
5961 * mpw-make.sed: Add @DASH_C_FLAG@ and @SEGMENT_FLAG({Default})@
5962 to editing of default makefile rule.
5963
5964Sun Aug 11 21:03:27 1996 Stu Grossman (grossman@critters.cygnus.com)
5965
5966 * alloca-norm.h: Include <malloc.h> if _WIN32.
5967 * argv.c: Include non-prototyped decls for malloc and string
5968 functions if ! _WIN32 or if __GNUC__.
5969
5970Thu Aug 8 12:42:40 1996 Klaus Kaempf <kkaempf@progis.de>
5971
5972 * config.h-vms: New file.
5973 * makefile.vms: Use it.
5974
5975Wed Aug 7 17:16:12 1996 Stu Grossman (grossman@critters.cygnus.com)
5976
5977 * getopt.c (_getopt_internal): If argc is 0, just return (before
5978 we reference *argv and segfault).
5979
5980Mon Aug 5 01:29:08 1996 Jason Merrill <jason@yorick.cygnus.com>
5981
5982 * Makefile.in (distclean): Add multilib.out.
5983
5984Thu Jul 18 17:40:55 1996 Ian Lance Taylor <ian@cygnus.com>
5985
5986 * alloca-norm.h: Change #ifdef sparc to #if defined (sparc) &&
5987 defined (sun). From Andrew Gierth <ANDREWG@microlise.co.uk>.
5988
5989Mon Jul 1 13:40:44 1996 Ken Raeburn <raeburn@cygnus.com>
5990
5991 Tue May 28 15:29:03 1996 Pat Rankin <rankin@eql.caltech.edu>
5992
5993 * vmsbuild.com (REQUIRD_OFILES): Add choose-temp.o and xstrdup.o.
5994
5995 Thu Jan 25 18:20:04 1996 Pat Rankin <rankin@eql.caltech.edu>
5996
5997 * vmsbuild.com: Changes to handle DEFFUNC(on_exit).
5998 (do_ofiles): Allow nonexistent source file in pass 3.
5999 (chk_deffunc): New routine.
6000
6001Tue Jun 25 19:24:43 1996 Doug Evans <dje@canuck.cygnus.com>
6002
6003 * pexecute.c (PEXECUTE_VERBOSE): Define.
6004 (MPW pexecute): Check flags & PEXECUTE_VERBOSE instead of verbose_flag.
6005
6006Tue Jun 25 23:11:48 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
6007
6008 * Makefile.in (docdir): Removed.
6009
6010Tue Jun 25 23:01:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
6011
6012 * Makefile.in (oldincludedir): Removed.
6013
6014Tue Jun 25 22:50:07 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
6015
5194cf08 6016 * Makefile.in (datadir): Set to $(prefix)/share.
6599da04
JM
6017
6018Thu Jun 20 21:17:52 1996 Ian Lance Taylor <ian@cygnus.com>
6019
6020 * cplus-dem.c (demangle_arm_pt): Reindent. Avoid endless loop by
6021 checking for errors from do_type.
6022
6023Tue Jun 18 14:36:19 1996 Klaus Kaempf <kkaempf@progis.de>
6024
6025 * makefile.vms: New file.
6026 * xmalloc.c: If VMS, include <stdlib.h> and <unixlib.h> rather
6027 than declaring malloc, realloc, and sbrk.
6028
6029Mon Jun 10 13:17:17 1996 Doug Evans <dje@canuck.cygnus.com>
6030
6031 * pexecute.c: New file.
6032
6033Wed Jun 5 16:57:45 1996 Richard Henderson <rth@tamu.edu>
6034
6035 * xmalloc.c: Declare sbrk.
6036
6037Sat May 4 05:08:45 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6038
6039 * alloca-norm.h: Add SPARCworks cc compatible __builtin_alloca
6040 declaration.
6041
6042Mon Apr 22 18:41:49 1996 Ian Lance Taylor <ian@cygnus.com>
6043
6044 * xstrerror.c: Include <stdio.h>.
6045
6046Sun Apr 21 11:55:12 1996 Doug Evans <dje@canuck.cygnus.com>
6047
6048 * Makefile.in (CFILES): Add atexit.c.
6049
6050Sun Apr 21 09:50:09 1996 Stephen L Moshier (moshier@world.std.com)
6051
6052 * choose-temp.c: Include sys/types.h before sys/file.h for sco3.2v5.
6053
6054Wed Apr 17 11:17:55 1996 Doug Evans <dje@canuck.cygnus.com>
6055
6056 * choose-temp.c: Don't #include sys/file.h ifdef NO_SYS_FILE_H.
6057 #include <stdio.h>
6058 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_FILE_H.
6059
6060Tue Apr 16 11:27:16 1996 Jeffrey A Law (law@cygnus.com)
6061
5194cf08 6062 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6599da04
JM
6063 Reverts Feb 8, 1995 change.
6064
6065Mon Apr 15 12:53:26 1996 Doug Evans <dje@canuck.cygnus.com>
6066
6067 * choose-temp.c: New file.
6068 * Makefile.in (CFILES): Add choose-temp.c.
6069 (REQUIRED_OFILES): Add choose-temp.o.
6070
6071Sat Apr 13 14:19:30 1996 Stu Grossman (grossman@critters.cygnus.com)
6072
6073 * floatformat.c (floatformat_to_double): Don't bias exponent when
6074 handling zero's, denorms or NaNs.
6075
6076Thu Apr 11 13:36:56 1996 Stu Grossman (grossman@critters.cygnus.com)
6077
6078 * floatformat.c (floatformat_to_double): Fix bugs with handling
6079 numbers with fractions < 32 bits.
6080
6081Mon Apr 8 14:48:34 1996 Ian Lance Taylor <ian@cygnus.com>
6082
6083 * config.table: Permit --enable-shared to specify a list of
6084 directories.
6085
6086Tue Mar 19 22:02:07 1996 Jason Merrill <jason@yorick.cygnus.com>
6087
6088 * cplus-dem.c (demangle_template): Fix for non-mangled pointer
6089 arguments.
6090
6091Fri Mar 8 17:24:18 1996 Ian Lance Taylor <ian@cygnus.com>
6092
6093 * configure.in: If srcdir is `.' and with_target_subdir is not
6094 `.', then set MULTISRCTOP before calling config-ml.in.
6095
6096Thu Mar 7 13:37:10 1996 Stan Shebs <shebs@andros.cygnus.com>
6097
6098 * mpw.c (mpw_open): Add debugging output option.
6099
6100Wed Mar 6 17:36:03 1996 Jason Merrill <jason@yorick.cygnus.com>
6101
6102 * cplus-dem.c (demangle_template): Fix for address-of-extern arguments.
6103
6104Tue Feb 27 12:00:50 1996 Raymond Jou <rjou@mexican.cygnus.com>
6105
6106 * mpw.c (mpwify_filename): Change 6 to 5 in
6107 strncmp (unixname, "/tmp/", 5).
38beb75c 6108
6599da04
JM
6109Tue Feb 20 10:55:53 1996 Ian Lance Taylor <ian@cygnus.com>
6110
6111 * cplus-dem.c (demangle_template): Initialize is_bool. Correctly
6112 handle 0 as a pointer value parameter.
6113
6114Mon Feb 5 16:41:44 1996 Ian Lance Taylor <ian@cygnus.com>
6115
6116 * Makefile.in (all): Depend upon required-list.
6117 (required-list): New target.
6118 (clean): Remove required-list.
6119
6120Wed Jan 31 10:19:41 1996 Steve Chamberlain <sac@slash.cygnus.com>
6121
6122 * win32.c: Deleted.
6123 * config.table (i386-*-win32): Deleted.
6124 * config/mh-i386win32: Deleted.
6125
6126Thu Jan 18 11:34:17 1996 Ian Lance Taylor <ian@cygnus.com>
6127
6128 * cplus-dem.c (cplus_demangle_opname): Change opname parameter to
6129 const char *.
6130 (cplus_mangle_opname): Change return type and opname parameter to
6131 const char *. Don't cast return value.
6132
6133Tue Jan 16 12:13:11 1996 Stan Shebs <shebs@andros.cygnus.com>
6134
6135 * mpw.c: Include Timer.h, in order to get m68k Microseconds trap
6136 definition.
6137
6138Wed Jan 3 13:15:04 1996 Fred Fish <fnf@cygnus.com>
6139
6140 * obstack.c: Update copyright to 1996.
6141 (_obstack_memory_used): Define new function. Called via
6142 obstack_memory_used macro.
6143
6144Thu Dec 28 11:39:40 1995 Ian Lance Taylor <ian@cygnus.com>
6145
6146 * xstrdup.c: New file.
6147 * Makefile.in (CFILES): Add xstrdup.c.
6148 (REQUIRED_OFILES): Add xstrdup.o.
6149 (xstrdup.o): New target.
6150
6151Mon Dec 11 18:18:52 1995 Mike Stump <mrs@cygnus.com>
6152
6153 * atexit.c: New stub to provide atexit on systems that have
6154 on_exit, like SunOS 4.1.x systems.
6155 * functions.def (on_exit, atexit): Ditto.
6156
6157Mon Dec 11 15:42:14 1995 Stan Shebs <shebs@andros.cygnus.com>
6158
6159 * mpw.c (mpw_abort): Remove decl.
6160 (mpw_access): Move debugging printf.
6161
6162Sat Dec 2 01:25:23 1995 Ian Lance Taylor <ian@cygnus.com>
6163
6164 * config.table: Consistently use ${host} rather than ${xhost} or
6165 ${target}.
6166 * configure.in: Don't bother to set ${xhost} before calling
6167 config.table.
6168
6169Tue Nov 28 14:16:57 1995 Brendan Kehoe <brendan@lisa.cygnus.com>
6170
6171 * Makefile.in (.c.o): Use test instead of the left bracket, to
6172 avoid problems with some versions of make.
6173
6174Tue Nov 28 11:45:17 1995 Stan Shebs <shebs@andros.cygnus.com>
6175
6176 * mpw-make.sed: Fix INCDIR edit to work with Nov 14 change.
6177
6178Tue Nov 21 11:26:34 1995 Fred Fish <fnf@rtl.cygnus.com>
6179
6180 * config/mh-hpux: Remove. It was only used to define EXTRA_OFILES,
6181 which was set to just alloca.o, which is now automatically marked
6182 as needed by the autoconfiguration process.
6183
6184Tue Nov 21 14:15:06 1995 Ian Lance Taylor <ian@cygnus.com>
6185
6186 * config.table: Check ${with_cross_host} rather than comparing
6187 ${host} and ${target}.
6188
6189Thu Nov 16 14:34:42 1995 Ian Lance Taylor <ian@cygnus.com>
6190
6191 * configure.in: If with_target_subdir is empty, set xhost to
6192 ${host} rather than ${target} before calling config.table.
6193
6194Tue Nov 14 01:38:30 1995 Doug Evans <dje@canuck.cygnus.com>
6195
6196 * Makefile.in (MULTITOP): Deleted.
6197 (MULTISRCTOP, MULTIBUILDTOP): New.
6198 (FLAGS_TO_PASS): Delete INCDIR.
6199 (INCDIR): Add $(MULTISRCTOP).
6200 (install_to_libdir): Add $(MULTISUBDIR). Call $(MULTIDO).
6201 * configure.in: Delete call to cfg-ml-com.in. Call config-ml.in
6202 instead of cfg-ml-pos.in.
6203 (cross-compile check): Change to test for with_target_subdir.
6204 (EXTRA_LINKS): Delete.
6205
6206Sun Nov 12 12:13:04 1995 Stan Shebs <shebs@andros.cygnus.com>
6207
6208 * mpw-make.sed: Add getpagesize.c.o to needed-list.
6209 * mpw.c [USE_MW_HEADERS]: Conditionalize compiling of
6210 functions that are supplied by Metrowerks libraries.
6211 (fstat): Clean up descriptor->pointer conversion code.
6212 (InstallConsole, etc): Empty definitions, for when linking
6213 with SIOUX.
6214
6215Sun Nov 5 19:25:27 1995 Per Bothner <bothner@kalessin.cygnus.com>
6216
6217 * Makefile.in (FLAGS_TO_PASS): Also pass PICFLAGS.
6218 (.c.o): Stylistic change.
6219
6220Thu Nov 2 12:06:29 1995 Ian Lance Taylor <ian@cygnus.com>
6221
6222 * strtol.c, strtoul.c: Don't include <stdlib.h>. From
6223 phdm@info.ucl.ac.be (Philippe De Muyter).
6224
6225Wed Nov 1 11:59:36 1995 Ian Lance Taylor <ian@cygnus.com>
6226
6227 * configure.in: Correct sed call.
6228
6229Mon Oct 30 13:03:45 1995 Per Bothner <bothner@kalessin.cygnus.com>
6230
6231 * configure.in: Clean up / simplify for native.
6232
6233 * configure.in: Merge in stuff from ../xiberty/configure.in.
6234 * Makefile.in (CC): Add definition (so it can be overrridden
6235 by ../configure).
6236
6237Tue Oct 24 17:57:27 1995 Stan Shebs <shebs@andros.cygnus.com>
6238
6239 * mpw-make.sed: Leave strerror.c.o in standard list of functions.
6240 * mpw.c (R_OK, ENOENT, EACCESS, ENOSYS): Remove.
6241 (link): Remove useless definition with error return.
6242 (last_microseconds, warn_if_spin_delay, record_for_spin_delay):
6243 Use UnsignedWide type for microsecond counts.
6244
6245Thu Oct 19 10:52:07 1995 Michael Meissner <meissner@wogglebug.tiac.net>
6246
6247 * memcmp.c (memcmp): Argument types are const void *, not void
6248 *const.
6249
6250 * strncasecmp.c (strncasecmp): Include ansidecl.h/stdarg.h, not
6251 sys/types.h.
6252 * strcasecmp.c (strcasecmp): Ditto.
6253
6254Tue Oct 10 11:03:24 1995 Fred Fish <fnf@cygnus.com>
6255
6256 * Makefile.in (BISON): Remove macro.
6257
6258Tue Sep 26 15:06:46 1995 Stan Shebs <shebs@andros.cygnus.com>
6259
6260 * Makefile.in (HFILES): Add default empty definition.
6261 * mpw-config.in (config.h): Only update if changed.
6262 * mpw-make.in: Remove.
6263 * mpw-make.sed: New file, edits Makefile.in into MPW makefile.
6264 * mpw.c: Remove semi-clone of strerror code.
6265 (sys_nerr, sys_errlist): Define here.
6266 (Microseconds): Only define as A-line trap if m68k Mac.
6267
6268Wed Sep 20 12:53:32 1995 Ian Lance Taylor <ian@cygnus.com>
6269
6270 * Makefile.in (maintainer-clean): New synonym for distclean.
6271
6272Mon Aug 28 19:47:52 1995 Per Bothner <bothner@kalessin.cygnus.com>
6273
6274 * config.table: For host, generalize rs6000-ibm-aix*
6275 to *-ibm-aix* so we also include powerpc.
6276
6277Tue Aug 22 03:18:05 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6278
6279 Fri Jun 16 18:35:40 1995 Pat Rankin (rankin@eql.caltech.edu)
6280
6281 * xstrerror.c: New file.
6282 * Makefile.in, vmsbuild.com: Compile it.
6283
6284Mon Jul 31 12:16:32 1995 steve chamberlain <sac@slash.cygnus.com>
6285
6286 * config.table (i386-*-win32): New.
6287
6288Fri Jul 21 11:35:52 1995 Doug Evans <dje@canuck.cygnus.com>
6289
6290 * Makefile.in (MULTITOP): New variable.
6291 (MULTIDIRS, MULTISUBDIR, MULTIDO, MULTICLEAN): Likewise.
6292 (all): Add multilib support.
6293 (install_to_tooldir, *clean): Likewise.
6294
6295Mon Jul 10 11:47:27 1995 Ken Raeburn <raeburn@cygnus.com>
6296
6297 * makefile.dos (OBJS): Add hex.o. From DJ Delorie.
6298
6299Fri Jun 30 17:28:59 1995 Pat Rankin (rankin@eql.caltech.edu)
6300
6301 * vmsbuild.com: create "new-lib.olb", build libiberty under that
6302 name, and then make it become "liberty.olb" when done, so that an
6303 incomplete build attempt never leaves behind something which looks
6304 like a complete library.
6305
6306Thu Jun 29 00:22:02 1995 Steve Chamberlain <sac@slash.cygnus.com>
6307
6308 * config/mh-i386pe: New file for PE hosts.
6309 * config.table: Understand PE hosts.
6310
6311Wed Jun 28 19:13:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6312
6313 * cplus-dem.c: Update from gcc.
6314
6315 * argv.c, dummy.c: If __STDC__, #include "alloca-conf.h" after
5194cf08 6316 <stddef.h>.
6599da04
JM
6317 * alloca-norm.h: If __STDC__, declare alloca with its parameter.
6318
6319Thu Jun 22 18:57:47 1995 Stan Shebs <shebs@andros.cygnus.com>
6320
6321 * mpw-make.in (ALL_CFLAGS): Define NEED_basename.
6322 * mpw.c: Only test DebugPI once whenever printing debug info.
6323 (mpwify_filename): If filename is /tmp/foo, change it into :_foo,
6324 also fix to not write on input filename buffer.
6325 (mpw_access): Use stat() instead of open(), works for directories
6326 as well as files.
6327
6328Mon Jun 19 00:33:22 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6329
6330 * Makefile.in: Massage broken shells that require 'else true'.
6331
6332Sat Jun 17 23:21:58 1995 Fred Fish <fnf@cygnus.com>
6333
6334 * alloca-norm.h: Declare alloca as type "PTR" to match functions.def.
6335 Declare __builtin_alloca in the sparc case, as argv.c did.
6336 * argv.c: Replace inline version of alloca-norm.h at start of file with
6337 a #include of alloca-conf.h. Precede it with an include of ansidecl.h
6338 because alloca-norm.h needs to declare alloca as "PTR".
6339
6340Mon Jun 12 14:24:26 1995 Steve Chamberlain <sac@slash.cygnus.com>
6341
6342 * win32.c: New file.
6343
6344Fri Jun 9 15:16:14 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6345
6346 * dummy.c: #include "alloca-conf.h".
6347
6348Wed Jun 7 11:46:23 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6349
6350 * Makefile.in (mostlyclean): Remove stamp-picdir.
6351 (clean): Don't.
6352
6353Mon Jun 5 18:46:06 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6354
6355 * config.table (frags): Use toplevel pic frags.
6356
6357 * Makefile.in (PICFLAG): New macro.
6358 (all): Depend on stamp-picdir.
6359 (needed-list): Ditto.
6360 (.c.o): Also build pic object.
6361 (stamp-picdir): New rule.
6362 (mostlyclean): Remove pic.
6363 (clean): Remove stamp-picdir.
6364
6365Fri Mar 24 16:55:48 1995 Pat Rankin (rankin@eql.caltech.edu)
6366
6367 * vmsbuild.com (config.h): Add `#define NEED_basename'.
6368
6369Tue May 23 10:12:46 1995 Per Bothner <bothner@kalessin.cygnus.com>
6370
6371 * clock.c, getopt.c, strtod.c, vsprintf.c: Change from using LGPL
6372 to libio-style copyright.
6373 * getpagesize.c: Remove FSF copyright.
6374
6375Sat May 20 12:30:23 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6376
6377 Added improved VMS support from Pat Rankin:
6378
6379 Fri Mar 17 18:40:36 1995 Pat Rankin (rankin@eql.caltech.edu)
6380
6381 * vmsbuild.com: new file.
6382
6383 * getpagesize.c (getpagesize): implement for VMS;
6384 * strerror.c (strerror, strerrno, strtoerrno): add rudimentary
6385 support for EVMSERR.
6386
6387Thu May 18 17:01:42 1995 Ken Raeburn <raeburn@kr-laptop.cygnus.com>
6388
6389 Wed May 10 14:28:16 1995 Richard Earnshaw (rearnsha@armltd.co.uk)
6390
6391 * floatformat.c (floatformat_arm_ext): Define.
6392
6393Tue May 16 13:30:59 1995 Per Bothner <bothner@kalessin.cygnus.com>
6394
6395 * basename.c, bcmp.c, getcwd.c, insque.c, rename.c, sigsetmask.c,
6396 strerror.c, strsignal.c: Remove FSF copyright.
6397 * sigsetmask.c: #include <sys/types.h> - seems to be needed by ISC.
6398
6399Mon May 15 19:53:17 1995 Per Bothner <bothner@kalessin.cygnus.com>
6400
6401 * bcopy.c, bzero.c, memcmp.c, memcpy.c, memset.c, strchr.c,
6402 strrchr.c, strstr.c, vfork.c: Remove FSF Copyright, because this
6403 might contaminate libstdc++ with the LGPL. (OK'd by RMS 11 Oct 94.)
6404 * strchr.c, strrchr.c: Add cast to suppress const warning.
6405
6406Thu May 4 14:36:42 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6407
6408 * cplus-dem.c: Use const instead of CONST. Don't include
5194cf08 6409 ansidecl.h directly.
6599da04
JM
6410
6411Wed Apr 19 01:30:27 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6412
6413 * cplus-dem.c: Don't include libiberty.h. Do declare xmalloc and
5194cf08 6414 xrealloc.
6599da04 6415 (-DMAIN): Don't rely on an externally-defined version number;
5194cf08
ZW
6416 instead, require the version number to be defined as a
6417 preprocessor macro. Handle the RS/6000 leading dot. Define
6418 xmalloc, xrealloc and fatal. Don't strip a leading underscore
6419 if we couldn't demangle the word.
6599da04
JM
6420
6421Tue Apr 4 13:03:51 1995 Stan Shebs <shebs@andros.cygnus.com>
6422
6423 (Old mpw.c change descriptions retained for informational value.)
6424 * mpw.c (warning_threshold): Default to .4 sec.
6425 (overflow_count, current_progress): New globals.
6426 (warn_if_spin_delay): Include current progress type,
6427 such as program name, in message.
6428 (mpw_start_progress): Set current_progress variable from arg.
6429 (mpw_end_progress): Report spin delays by power-of-two-size
6430 buckets instead of constant-size buckets.
6431
6432 * mpw.c: Clean up formatting, types, returns, etc.
6433 (ENOSYS): Define.
6434 (mpw_fread, mpw_fwrite): Define.
6435 (sleep): Define correctly.
6436
6437 * mpw.c: New code to implement cursor spinning support.
6438 (umask): New function.
6439 (mpw_fopen, mpw_fseek, stat, fstat): Call PROGRESS.
6440
6441 * mpw.c (mpw_basename, mpw_mixed_basename): New functions, find
6442 basenames for MPW and MPW/Unix filenames.
6443 (mpw_special_init): New function, calls Macsbug if desired.
6444
6445 * mpw.c: Add GPL notice.
6446 (mpwify_filename): Add more transformations.
6447 (mpw_fopen): Call mpwify_filename on file names.
6448 (rename): Remove.
6449 (chdir, getcwd): Add simple definitions.
6450
6451 * mpw.c: Random cleanups, remove unused code bits.
6452 Added copy of strerror.c for gcc's use.
6453 (stat, fstat, _stat): New versions based on Guido van Rossum code.
6454
6455 * mpw.c (mpw_fseek): Make it work correctly when doing SEEK_CUR.
6456
6457 * mpw.c (stat): Remove hack definition, get from sys/stat.h.
6458 (fork, vfork, etc): Print error messages if called.
6459 (getrusage, sbrk, environ, isatty, link, utime, mkdir, rmdir,
6460 rename, chown): Define.
6461
6462 * mpw-config.in: New file, MPW version of configure.in.
6463 * mpw-make.in: New file, MPW version of Makefile.in.
6464 * mpw.c: New file, MPW compatibility routines.
6465
6466Fri Mar 24 14:10:30 1995 Jim Kingdon (kingdon@lioth.cygnus.com)
6467
6468 * basename.c: Include config.h before checking for NEED_basename.
6469
6470Thu Mar 23 19:09:54 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6471
6472 * functions.def: Add DEFFUNC for basename.
6473
6474 * basename.c: Only define basename if NEED_basename.
6475
6476Thu Mar 16 13:36:05 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6477
6478 * config.table: Fix --enable-shared logic for native builds.
6479
6480Mon Mar 13 11:05:11 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6481
6482 * cplus-dem.c (demangle_template): Demangle bool literals properly.
6483
6484Mon Mar 6 23:57:28 1995 Stu Grossman (grossman@cygnus.com)
6485
6486 * strtol.c strtoul.c: Replace these with less buggy versions from
6487 NetBSD. (strtoul in particular couldn't handle base 16.)
6488
6489Wed Mar 1 15:59:01 1995 Ian Lance Taylor <ian@cygnus.com>
6490
6491 * config/mt-vxworks5 (HDEFINES): Define NO_SYS_PARAM_H.
6492
6493 * clock.c: If NO_SYS_PARAM_H is defined, don't include
6494 <sys/param.h>.
6495 * getcwd.c, getpagesize.c, getruntime.c: Likewise.
6496
6497Fri Feb 17 15:40:55 1995 Ian Lance Taylor <ian@cygnus.com>
6498
6499 * getruntime.c (get_run_time): Don't assume that CLOCKS_PER_SEC is
6500 a number; ANSI appears to permit any expression, including a
6501 function call.
6502
6503 * config.table (*-*-vxworks5*): Use mt-vxworks5 when configuring
6504 xiberty.
6505 * config/mt-vxworks5: New file.
6506
6507Thu Feb 9 14:19:45 1995 Ian Lance Taylor <ian@cygnus.com>
6508
6509 * basename.c (basename): Change argument to be const.
6510
6511Wed Feb 8 18:06:52 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6512
6513 * Makefile.in (lneeded-list): Don't worry about xmalloc.
6514
6515Sun Jan 15 00:40:36 1995 Jeff Law (law@snake.cs.utah.edu)
6516
6517 * Makefile.in (distclean): Delete xhost-mkfrag.
6518
6519Thu Jan 12 16:54:18 1995 Jason Merrill <jason@phydeaux.cygnus.com>
6520
6521 * Makefile.in (lneeded-list): If alloca.o is needed, so is xmalloc.o.
6522
6523Wed Jan 11 22:39:56 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
6524
6525 * hex.c: New file.
6526 * Makefile.in (REQUIRED_OFILES, CFILES): List it.
6527 (hex.o): Add dependencies.
6528
6529 * cplus-dem.c (demangle_prefix): For GNU style constructor and
6530 destructor names, try demangling the remainder of the string.
6531
6532Wed Dec 28 00:49:15 1994 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
6533
6534 * vasprintf.c (int_vasprintf): New static function.
6535 (vasprintf): Use int_vasprintf. Removes assumption that va_list
6536 is assignment compatible.
6537
6538Sat Nov 5 19:29:12 1994 Jason Merrill (jason@phydeaux.cygnus.com)
6539
6540 * Makefile.in (LIBCFLAGS): New variable.
6541 (FLAGS_TO_PASS): Pass it.
6542 (.c.o): Use it.
6543
6544Thu Nov 3 19:09:47 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
6545
6546 * getopt.c, getopt1.c: Do compile these functions under Linux,
6547 since many native versions are based on glibc but are buggy.
6548
6549Mon Oct 24 15:16:46 1994 Per Bothner <bothner@kalessin.cygnus.com>
6550
6551 * vasprintf.c: Make 'format' arg be const, to avoid a mismatch
6552 with prototype in GNU libc. Support stdarg.h as well as varargs.h.
6553
6554Tue Oct 11 17:48:27 1994 Jason Merrill (jason@phydeaux.cygnus.com)
6555
6556 * Makefile.in (REQUIRED_OFILES): Add vasprintf.o.
6557 * functions.def: Remove vasprintf.
6558
6559Wed Sep 14 17:04:55 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6560
6561 * xmalloc.c (first_break): New static variable.
6562 (xmalloc_set_program_name): Record sbrk (0) in first_break.
6563 (xmalloc): If memory allocation fails, try to report how much
6564 memory was allocated by the program up to this point.
6565 (xrealloc): Likewise.
6566
6567Sun Sep 04 17:58:10 1994 Richard Earnshaw (rwe@pegasus.esprit.ec.org)
6568
6569 * Makefile.in (ERRORS_CC): New variable, defaulted to $(CC). Use it
6570 when linking dummy.
6571 * config.table: Add host RISCiX Makefile frag.
6572 * config/mh-riscix: New file.
6573
6574Thu Aug 25 17:29:44 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6575
6576 * Makefile.in (FLAGS_TO_PASS): Define.
6577 ($(RULE1)): Use $(FLAGS_TO_PASS).
6578
6579Wed Aug 24 17:08:47 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6580
6581 * vasprintf.c: Include <string.h>.
6582 (vasprintf): Add casts to void for va_arg to avoid gcc warnings.
6583 * xatexit.c: Declare malloc.
6584
6585Fri Aug 19 15:29:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6586
6587 * cplus-dem.c (demangle_args): Fix a bug in previous patch (the
6588 one below).
6589
6590Thu Aug 18 14:37:14 1994 Kung Hsu (kung@mexican.cygnus.com)
6591
6592 * cplus-dem.c (demangle args): Handle ARM repeat encoding where
5194cf08 6593 the type index is greater than 9.
6599da04
JM
6594
6595Wed Aug 17 16:13:49 1994 Kung Hsu (kung@mexican.cygnus.com)
6596
6597 * cplus-dem.c (demangle_qualified): accept optional '_' between
6598 qualified name. This is baecause the template name may end with
6599 numeric and can mixed up with the length of next qualified name.
6600
6601Wed Aug 3 05:52:14 1994 D. V. Henkel-Wallace (gumby@cygnus.com)
6602
6603 * config/mt-sunos4: Use our standard location for cross-includes
6604 and cross-libs when the target is also a "host" environment (ie no
6605 newlib; includes and such don't belong to us). This is specific
6606 to the Cygnus Support environment.
6607
38beb75c 6608Tue Aug 2 15:25:12 1994 Kung Hsu (kung@mexican.cygnus.com)
6599da04 6609
38beb75c 6610 * cplus-dem.c (demangle_template): demangle as xxx<'Q'> not
6599da04
JM
6611 xxx<ch=81>.
6612
6613Mon Aug 1 17:02:48 1994 Kung Hsu (kung@mexican.cygnus.com)
6614
6615 * cplus-dem.c (main): flush stdout to make pipe work.
6616
6617Sat Jul 16 12:56:32 1994 Stan Shebs (shebs@andros.cygnus.com)
6618
6619 * config.table (*-*-cxux7*): Recognize.
6620 * floatformat.c (floatformat_m88110_ext) [HARRIS_FLOAT_FORMAT]:
6621 Harris-specific float format.
6622 * config/mh-cxux7: New file.
6623
6624Wed Jun 29 00:26:17 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6625
6626 * cplus-dem.c (demangle_template): Make sure that the result of
6627 consume_count doesn't index beyond the end of the string.
6628
6629Mon Jun 20 23:54:37 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6630
6631 * cplus-dem.c (gnu_special): Handle vtable mangling of gcc-2.4.5 and
6632 earlier. Improve test for new vtable mangling. Change output back
6633 to `virtual table'.
6634
6635Mon Jun 20 11:37:30 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
6636
6637 * obstack.c: Always compile this code, even if using the GNU
6638 library. Avoids problems with relatively recent binary
6639 incompatibility.
6640
6641Thu Jun 16 17:54:01 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6642
6643 * cplus-dem.c: Include libiberty.h.
6644 (xmalloc, xrealloc, free): Don't declare.
6645 (strstr): Don't declare parameters.
6646 (xmalloc, xrealloc): Don't define.
6647 (long_options): Add no-strip-underscores.
6648 (main): Call xmalloc_set_program_name. Pass n in short options to
6649 getopt_long. Handle option 'n' to not strip underscores.
6650 (usage): Mention -n and --no-strip-underscores.
6651
6652Sun Jun 12 01:37:09 1994 Jason Merrill (jason@deneb.cygnus.com)
6653
6654 * cplus-dem.c (demangle_template): Separate consecutive >'s with a
5194cf08 6655 space.
6599da04
JM
6656 (gnu_special): Demangle template and qualified names in a vtable name.
6657
6658Fri May 27 12:27:52 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6659
6660 From gas-2.3 and binutils-2.4 net releases:
6661
6662 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
6663
6664 * makefile.dos: [new] Makefile for dos/go32
6665 * configure.bat: update for latest files
6666 * msdos.c: remove some functions now in libc.a
6667
6668Fri May 20 18:53:32 1994 Per Bothner (bothner@kalessin.cygnus.com)
6669
6670 * cplus-dem.c (gnu_special): Recognize thunks, as well as
6671 the new naming style for vtables (when -fvtable-thunks).
6672
6673Wed May 18 13:34:06 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6674
6675 * Makefile.in (XTRAFLAGS): Don't define.
6676 (.c.o, dummy.o): Don't use XTRAFLAGS.
6677 ($(RULE1)): Don't pass XTRAFLAGS down in recursive call.
6678
6679Fri May 13 16:02:12 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
6680
6681 * vasprintf.c: New file.
6682 * Makefile.in, functions.def: Add it.
6683
6684Fri May 13 16:20:28 1994 Jason Merrill (jason@deneb.cygnus.com)
6685
6686 * cplus-dem.c (demangle_fund_type): Grok bool.
6687
6688Fri May 6 14:44:21 1994 Steve Chamberlain (sac@cygnus.com)
6689
38beb75c 6690 * config.table: Add go32
6599da04
JM
6691 * config/mh-go32: New template.
6692
6693Fri May 6 11:01:59 1994 D. V. Henkel-Wallace (gumby@rtl.cygnus.com)
6694
6695 * config.table, config/mt-sunos4: config for when sun4 is cross target.
6696
6697Mon Apr 11 00:54:33 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6698
5194cf08
ZW
6699 * getopt.c [not __GNU_LIBRARY__] [__GCC__] [not __STDC__]:
6700 Declare strlen to return int. Don't include stddef.h.
6599da04
JM
6701
6702Fri Apr 1 00:38:17 1994 Jim Wilson (wilson@mole.gnu.ai.mit.edu)
6703
5194cf08
ZW
6704 * getopt.c: Delete use of IN_GCC to control whether
6705 stddef.h or gstddef.h is included.
6599da04
JM
6706
6707Thu Apr 14 14:00:56 1994 Kung Hsu (kung@mexican.cygnus.com)
6708
6709 * cplus-dem.c (demangle_signature): Fix a bug in template function
6710 type numbering.
6711
6712Wed Apr 13 17:23:03 1994 Kung Hsu (kung@mexican.cygnus.com)
6713
6714 * cplus-dem.c (demangle_signature): Fix template function with arm
6715 style argument type number, Tn.
6716
6717Wed Apr 13 17:11:15 1994 Jason Merrill (jason@deneb.cygnus.com)
6718
6719 * cplus-dem.c (optable): Add new[] and delete[].
6720
6721Fri Apr 8 11:21:42 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
6722
6723 * argv.c (buildargv): Don't produce empty argument just because
6724 there is trailing whitespace.
6725
6726Wed Apr 6 11:42:14 1994 Kung Hsu (kung@mexican.cygnus.com)
6727
6728 * cplus-dem.c (demangle_template): fix 'Q' qualified name bug.
6729 Handle 'p' same as 'P'.
6730 * cplus-dem.c (do_type): Handle 'p' same as 'P'.
6731
6732Sat Mar 26 12:00:13 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6733
6734 * floatformat.c (get_field, put_field): Fix off by one error in
6735 little endian case.
6736
6737Thu Mar 24 10:40:19 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
6738
6739 * floatformat.c (floatformat_from_double): Pass unsigned char *,
6740 not char *, to put_field.
6741
6742Fri Mar 18 12:34:33 1994 Per Bothner (bothner@kalessin.cygnus.com)
6743
6744 * memmove.c: Re-wrote; placed in public domain.
6745
6746Wed Mar 16 10:33:07 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
6747
6748 * cplus-dem.c (demangle_prefix): If ARM demangling, don't treat
6749 __Q* as a constructor.
6750
6751Mon Mar 14 12:26:02 1994 Ian Lance Taylor (ian@cygnus.com)
6752
6753 * ieee-float.c: Removed; no longer used.
6754 * Makefile.in: Changed accordingly.
6755
6756Mon Mar 7 12:28:17 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6757
6758 * floatformat.c (get_field): Removed unused local variable i.
6759 (put_field): Removed unused local variable i.
6760
6761Sun Feb 27 21:50:11 1994 Jim Kingdon (kingdon@deneb.cygnus.com)
6762
6763 * floatformat.c: New file, intended to replace ieee-float.c.
6764 * Makefile.in: Change accordingly.
6765
6766Thu Feb 24 11:51:12 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6767
6768 * getopt.c: Remove #ifdef GETOPT_COMPAT and #if 0 code.
38beb75c
UD
6769 (_getopt_initialize): New function, broken out of _getopt_internal.
6770 (_getopt_internal):
6599da04
JM
6771 If long_only and the ARGV-element has the form "-f", where f is
6772 a valid short option, don't consider it an abbreviated form of
6773 a long option that starts with f. Otherwise there would be no
6774 way to give the -f short option.
6775
6776Thu Feb 10 14:44:16 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6777
5194cf08
ZW
6778 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]:
6779 Test just __STDC__, not emacs.
6599da04
JM
6780
6781Wed Feb 9 00:14:00 1994 Richard Stallman (rms@mole.gnu.ai.mit.edu)
6782
5194cf08
ZW
6783 * getopt.c [not __GNU_LIBRARY__] [__GNUC__] [not IN_GCC]
6784 [emacs] [not __STDC__]: Don't include stddef.h. Don't declare strlen.
6599da04
JM
6785
6786Fri Dec 24 19:43:00 1993 Noah Friedman (friedman@nutrimat.gnu.ai.mit.edu)
6787
5194cf08 6788 * getopt.c (_NO_PROTO): Define before config.h is included.
6599da04
JM
6789
6790Mon Sep 20 15:59:03 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6791
5194cf08 6792 * getopt.c, getopt1.c [emacs || CONFIG_BROKETS]: Include
6599da04
JM
6793 <config.h> only under these, else "config.h".
6794
6795Thu Aug 12 18:16:49 1993 Roland McGrath (roland@churchy.gnu.ai.mit.edu)
6796
5194cf08
ZW
6797 * getopt.c, getopt1.c [HAVE_CONFIG_H]: Include
6798 <config.h> instead of "config.h".
6599da04
JM
6799
6800Sun Feb 20 17:17:01 1994 Ian Lance Taylor (ian@lisa.cygnus.com)
6801
6802 * concat.c: Check ANSI_PROTOTYPES rather than __STDC__ to decide
6803 whether to use prototypes or not.
6804 * strerror.c (const): Never undefine; let ansidecl.h handle it.
6805 * strsignal.c (const): Likewise.
6806
6807Thu Feb 17 13:27:35 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6808
6809 * xatexit.c (_xexit_cleanup): Declare as extern; don't initialize.
6810 Merging common and initialized variables need not be supported by
6811 ANSI C compilers.
6812 (xatexit): Initialize _xexit_cleanup if not already set.
6813 * xexit.c: Comment fix.
6814
6815Wed Feb 16 01:15:36 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6816
6817 * xmalloc.c: Don't declare xexit; it's declared in libiberty.h.
6818 (xrealloc): If oldmem is NULL, allocate with malloc, rather than
6819 assuming that realloc works correctly.
6820
6821Tue Feb 15 09:26:16 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6822
6823 * concat.c, ieee-float.c: Replace inclusion of <string.h>
6824 with explicit function declarations, as recommended by Ian Taylor.
6825
6826Sat Feb 12 10:31:11 1994 David J. Mackenzie (djm@rtl.cygnus.com)
6827
6828 * xmalloc.c (xmalloc, xrealloc): Use PTR and size_t throughout.
6829 (malloc, realloc): Declare.
6830
6831Thu Feb 10 17:08:19 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6832
6833 * argv.c, basename.c: Include ansidecl.h and libiberty.h.
6834 * concat.c, fdmatch.c, getruntime.c, spaces.c: Likewise.
6835 * strerror.c, strsignal.c, xatexit.c, xexit.c: Likewise.
6836 * xmalloc.c: Likewise.
6837 * concat.c: Don't declare xmalloc. If __STDC__, use <stdarg.h>
6838 macros, not <varargs.h> macros.
6839 * spaces.c (spaces): Make return type const. Don't crash if
6840 malloc returns NULL.
6841 * strerror.c (struct error_info): Make name and msg fields const.
6842 (error_names): Make const.
6843 (strerrno): Make const.
6844 (strtoerrno): Make argument const.
6845 * strsignal.c (struct signal_info): Make name and msg fields
6846 const.
6847 (signal_names, sys_siglist): Make const.
6848 (strsignal, strsigno): Make const.
6849 (strtosigno): Make argument const.
6850 * xatexit.c: Declare parameter types.
6851 * xmalloc.c (name): Make const.
6852 (xmalloc_set_program_name): Make argument const.
6853 * Makefile.in (INCDIR): Define.
6854 (.c.o): Use $(INCDIR).
6855 (dummy.o): Likewise.
6856 (argv.o, basename.o): New targets; depend on libiberty.h.
6857 (concat.o, fdmatch.o, getruntime.o, spaces.o): Likewise.
6858 (strerror.o, strsignal.o, xatexit.o, xexit.o): Likewise.
6859 (xmalloc.o): Likewise.
6860 (cplus-dem.o): New target; depend on demangle.h.
6861 (getopt.o, getopt1.o): New targets; depend on getopt.h.
6862 (ieee-float.o): New target; depend on ieee-float.h.
6863 (obstack.o): New target; depend on obstack.h.
6864
6865Tue Feb 8 05:29:08 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6866
6867 Handle obstack_chunk_alloc returning NULL. This allows
6868 obstacks to be used by libraries, without forcing them
6869 to call exit or longjmp.
6870 * obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
6871 If CALL_CHUNKFUN returns NULL, set alloc_failed, else clear it.
6872 (_obstack_begin, _obstack_begin_1): Return 1 if successful, 0 if not.
6873
6874Tue Feb 8 00:32:28 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
6875
6876 * concat.c, ieee-float.c: Include <string.h>.
6877
6878Sun Feb 6 21:28:46 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6879
6880 * xmalloc.c (xmalloc_set_program_name): New function.
6881 (xmalloc, xrealloc): Include the name in the error message, if set.
6882
6883 * Replace atexit.c with xatexit.c.
6884 * Makefile.in (CFILES), functions.def: Change references.
6885
6886Sat Feb 5 14:02:32 1994 Stan Shebs (shebs@andros.cygnus.com)
6887
6888 * getruntime.c (get_run_time): Use getrusage or times if
6889 HAVE_GETRUSAGE or HAVE_TIMES are defined.
6890
6891Fri Feb 4 15:49:38 1994 David J. Mackenzie (djm@thepub.cygnus.com)
6892
6893 * atexit.c: New file.
6894 * Makefile.in (CFILES), functions.def: Add it.
6895 * xexit.c: New file.
6896 * Makefile.in (CFILES, REQUIRED_OFILES): Add it.
6897 * xmalloc.c (xmalloc, xrealloc): Call xexit instead of exit.
6898 Change request for 0 bytes into request for 1 byte.
6899
6900Wed Feb 2 11:36:49 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6901
6902 * xmalloc.c (xmalloc, xrealloc): Print size using %lu, and cast to
6903 unsigned long, to avoid warnings.
6904
6905Fri Jan 28 17:49:06 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
6906
6907 * dummy.c: Don't include time.h ever; always define clock_t as
6908 "unsigned long". Until gcc/fixincludes ensures that clock_t
6909 exists, __STDC__ isn't a sufficient test. And if clock() doesn't
6910 exist, clock_t probably doesn't either.
6911
6912Mon Jan 24 11:52:31 1994 Stan Shebs (shebs@andros.cygnus.com)
6913
6914 * clock.c, getruntime.c: New files.
6915 * Makefile.in: Add to file lists.
6916 * functions.def (clock): Add to list.
6917 * dummy.c (time.h): Add if __STDC__.
6918 (clock_t): #define as "unsigned long" if not __STDC__.
6919
6920Tue Jan 11 11:27:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6921
6922 * strtod.c: Declare atof. From edler@jan.ultra.nyu.edu (Jan
6923 Edler).
6924
6925Tue Dec 28 14:17:30 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
6926
6927 * Makefile.in (errors): Use CFLAGS as well as LDFLAGS when
6928 linking.
6929
6930Fri Dec 17 12:26:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
6931
6932 * cplus-dem.c (demangle_arm_pt): New function. Common code
6933 for ARM template demangling.
6934 * cplus-dem.c (demangle_class_name): Use demangle_arm_pt.
6935 * cplus-dem.c (demangle_prefix): Likewise.
6936
6937Tue Nov 30 15:47:48 1993 Jason Merrill (jason@deneb.cygnus.com)
6938
6939 * cplus-dem.c (cplus_demangle_opname): Add CONST to please gcc.
6940
6941Sat Nov 27 11:05:50 1993 Fred Fish (fnf@cygnus.com)
6942
6943 Merge changes from tom@basil.icce.rug.nl (Tom R.Hageman)
6944 * strerror.c, strsignal.c: As a small space optimization, don't
6945 include messages when they aren't actually used.
6946
6947 Merge changes from takefive.co.at!joe (Josef Leherbauer)
6948 * cplus-dem.c (demangle_prefix, demangle_function_name,
6949 cplus_demangle_opname): Fixes for systems where cplus_marker
6950 is something other than '$'.
6951
6952Fri Nov 26 13:51:11 1993 Per Bothner (bothner@kalessin.cygnus.com)
6953
6954 * waitpid.c: Simple-minded approcimation to waitpid
6955 using vanilla wait.
6956 * functions.def, Makefile.in: Update accordingly,
6957
6958Thu Nov 18 18:01:15 1993 Kung Hsu (kung@cirdan.cygnus.com)
6959
6960 * cplus-dem.c(demangle_template): fix bug template instantiation
6961 with value of user defined type.
6962
6963Wed Nov 17 18:30:21 1993 Kung Hsu (kung@cirdan.cygnus.com)
6964
6965 * cplus-dem.c(cplus_demangle_opname): add the subject new function
6966 to support unified search of operator in class.
6967
6968Wed Nov 10 09:47:22 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6969
6970 gcc -Wall lint:
6971 * strtoul.c (strtoul): use "(digit = *s) != '\0'" not just
6972 "digit = *s" as condition in while loop.
6973
6974Tue Nov 9 15:52:22 1993 Mark Eichin (eichin@cygnus.com)
6975
6976 * Makefile.in: pass SHELL to recursive make
6977
6978Thu Nov 4 12:09:26 1993 Per Bothner (bothner@kalessin.cygnus.com)
6979
6980 * vfprintf.c, vprintf.c, vsprintf.c: Make format arg
6981 be (const char*), for ANSI (and gcc w/fixproto) consistency.
6982
6983Thu Nov 4 08:29:04 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6984
6985 * config.table: Make *-*-hiux* use mh-hpux.
6986
6987Fri Oct 22 07:53:15 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6988
6989 * config.table: Add * to end of all OS names.
6990
6991Tue Oct 19 17:12:01 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
6992
6993 * Makefile.in (lneeded-list): ensure that object file names are
6994 not duplicated, as multiple instances of the same object file in
6995 a library causes problems on some machines
6996
6997Mon Oct 18 21:59:28 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
6998
6999 * strcasecmp.c, strncasecmp.c: Change u_char to unsigned char.
7000
7001Fri Oct 15 22:17:11 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7002
7003 * strncasecmp.c: new file, implements strncasecmp
7004 * strcasecmp.c: new file, implement strcasecmp
7005
7006 * Makefile.in (CFILES): list these two new source files
7007
7008 * functions.def: add strcasecmp and strncasecmp entries
7009
7010Fri Oct 15 14:53:05 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7011
7012 * strtoul.c (strtoul), strtol.c (strtol): Handle overflow
7013 according to ANSI C.
7014
7015Thu Oct 14 16:34:19 1993 Kung Hsu (kung@cirdan.cygnus.com)
7016
7017 * cplus-dem.c: add support of ARM global constructor/destructor,
7018 and 'G' for passing record or union in parameter.
7019
7020Wed Oct 13 13:36:19 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7021
7022 * Makefile.in: Fix comment to clarify that stuff in REQUIRED_OFILES
7023 should not be in functions.def.
7024
7025Wed Oct 13 13:13:38 1993 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
7026
7027 * functions.def: Removed xmalloc. Stuff in REQUIRED_OFILES should
7028 not be in functions.def.
7029
7030Mon Oct 4 18:26:39 1993 Kung Hsu (kung@cirdan.cygnus.com)
7031
7032 * cplus-dem.c: change globl constructor/destructor to proper name
7033
7034Tue Sep 28 18:11:07 1993 Kung Hsu (kung@cirdan.cygnus.com)
7035
7036 * cplus-dem.c: fix bug in constructor/destructor
7037
7038Tue Sep 28 16:20:49 1993 Kung Hsu (kung@cirdan.cygnus.com)
7039
7040 * cplus-dem.c: support both old and new _vt$... vtbl mangled names
7041
7042Fri Sep 24 19:07:16 1993 Jason Merrill (jason@deneb.cygnus.com)
7043
7044 * cplus-dem.c: Fix demangle_template prototype
7045
7046Fri Sep 24 17:32:55 1993 Kung Hsu (kung@cirdan.cygnus.com)
7047
7048 * cplus-dem.c: fix template demangling
7049 * cplus-dem.c: fix const type demangling
7050 * cplus-dem.c: fix constructor/destructor, virtual table,
7051 qualifier, global constructor/destructor demangling
7052
7053Wed Sep 1 23:13:11 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7054
7055 * strsignal.c, strerror.c: Use fully-bracketed initializer to
7056 keep gcc -Wall happy.
7057
7058Fri Aug 27 10:30:09 1993 Jason Merrill (jason@deneb.cygnus.com)
7059
7060 * cplus-dem.c (do_type): Add CONSTS to make gcc happy with last
7061 patch.
7062
7063Fri Aug 27 11:24:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7064
7065 Patch from Paul Flinders:
7066 * cplus-dem.c (do_type): Deal with arrays.
7067
7068Tue Aug 24 14:23:50 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7069
7070 * cplus-dem.c (demangle_qualified: Deal with GNU format for more
7071 than 9 classes.
7072
7073Wed Aug 18 19:50:29 1993 Jason Merrill (jason@deneb.cygnus.com)
7074
7075 * Makefile.in (dummy.o): Redirect to /dev/null to avoid "variable
7076 not initialized" warnings under HP/UX
7077
7078Sun Aug 15 20:42:40 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7079
7080 * strerror.c: Move include of stdio.h after sys_errlist #define.
7081 Also remove NULL definition (stdio.h always defines NULL, so it
7082 never did anything but clutter up the code).
7083
7084Sat Aug 14 14:21:49 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7085
7086 * Makefile.in, functions.def: handle xmalloc.c
7087
7088 * xmalloc.c: provide xmalloc and xrealloc functions
7089
7090Thu Aug 12 17:38:57 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7091
7092 * cplus-dem.c: Fix a comment.
7093
7094Sat Aug 7 13:56:35 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7095
7096 * getopt1.c: Declare const the way getopt.c does.
7097
7098Fri Aug 6 17:03:13 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7099
7100 * obstack.c, alloca.c: Update from FSF.
7101 * getopt.c, getopt1.c: Update to current FSF version, which
38beb75c 7102 doesn't use alloca.
6599da04
JM
7103
7104Tue Jul 27 14:03:57 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7105
7106 * Makefile.in (demangle): Add the target with a message saying
7107 where demangle went.
7108
7109Mon Jul 26 15:49:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7110
7111 * Makefile.in: Remove obsolete `demangle' target.
7112
7113Thu Jul 22 08:31:01 1993 Fred Fish (fnf@deneb.cygnus.com)
7114
7115 * cplus-dem.c (arm_special): Apply patch from arg@lucid.com to
7116 avoid infinite loop on vtbl symbols with disambiguating "junk"
7117 tacked on the end.
7118
7119Mon Jul 19 14:10:37 1993 david d `zoo' zuhn (zoo@rtl.cygnus.com)
7120
7121 * strsignal.c: work around some systems losing definitions of
7122 sys_siglist
7123
7124 * config/mh-lynxos: this system has a losing definition of
7125 sys_siglist
7126
7127 * config.table: use mh-lynxos for *-*-lynxos
7128
7129Mon Jul 19 17:08:52 1993 Ken Raeburn (raeburn@rtl.cygnus.com)
7130
7131 * config.table: Add support for HPPA BSD hosts.
7132
7133 * config/mh-hpbsd: New file.
7134
7135Mon Jul 12 18:00:40 1993 K. Richard Pixley (rich@cygnus.com)
7136
7137 * Makefile.in (TAGS): make work when srcdir != objdir.
7138
7139Sun Jun 27 15:35:31 1993 David J. Mackenzie (djm@thepub.cygnus.com)
7140
7141 * cplus-dem.c (main): Add long options, including --help and
7142 --version.
7143 (usage): New function from code in main.
7144
7145Tue Jun 22 11:37:38 1993 Per Bothner (bothner@deneb.cygnus.com)
7146
7147 * config.table: New shell scipt, sourced by both ./configure,in
7148 and ../xiberty/configure.in, to avoid maintainance lossages.
7149 * configure.in and ../xiberty/configure.in: Use config.table.
7150
7151 * configure.in: Don't use mh-aix for AIX 3.2, only for 3.1.
7152 * configure.in: Map *-*-irix* (except irix4) to mh-sysv.
7153 * ../xiberty/configure.in: Update from ./configure.in.
7154
7155Tue Jun 15 17:05:31 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7156
7157 * Makefile.in: remove parentdir support
7158
7159Wed May 26 12:59:09 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
7160
7161 * cplus-dem.c (xrealloc): Match definition with prototype.
7162
7163Tue May 25 14:27:51 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
7164
7165 * cplus-dem.c (demangle_prefix): Demangle cfront
7166 local variables as an extension to ARM demangling.
7167
7168Fri May 21 09:53:57 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
7169
7170 * ieee-float.c: Don't require pointers to double to be aligned.
7171
7172Tue May 18 17:12:10 1993 Fred Fish (fnf@cygnus.com)
7173
5194cf08 7174 (merge changes from dlong@cse.ucsc.edu)
6599da04
JM
7175 * cplus-dem.c (consume_count): Simplify.
7176 * cplus-dem.c (arm_pt, demangle_class_name): New functions.
7177 * cplus-dem.c (various): Calls to arm_pt, demangle_class_name.
7178
7179 * cplus-dem.c (xmalloc, xrealloc, strstr): Make extern decls into
7180 full prototypes.
7181 * cplus-dem.c (free): Add prototype.
7182 * cplus-dem.c (optable): Fully bracketize initializer.
7183
7184Fri May 14 17:13:05 1993 Per Bothner (bothner@cygnus.com)
7185
7186 * cplus-dem.c: Whether initial underscores are stripped
7187 depends on the external variable prepends_underscore
7188 (which is generated by the binutils Makefile).
7189
7190Fri May 14 07:32:20 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
7191
7192 * cplus-dem.c (mop_up, arm_special): Remove some unused variables.
7193
7194Tue May 4 20:31:59 1993 Fred Fish (fnf@cygnus.com)
7195
7196 * cplus-dem.c (consume_count): Return zero if arg does not
7197 start with digit, and don't consume any input.
7198
7199Tue May 4 08:10:28 1993 Jim Kingdon (kingdon@cygnus.com)
7200
7201 * Makefile.in (demangle): Use ${srcdir} not $^.
7202
7203 * strtod.c: New file, needed at least for BSD 4.3.
7204
7205Sun May 2 11:30:42 1993 Fred Fish (fnf@cygnus.com)
7206
7207 * strsignal.c (sys_siglist): For ANSI compilations, type is
7208 "const char *const". Also remove conditionalization on __STDC__
7209 since const is defined away for non-ANSI.
7210
7211Wed Apr 28 19:29:55 1993 Ken Raeburn (raeburn@deneb.cygnus.com)
7212
7213 * configure.in: Recognize *-*-hpux.
7214 * config/mh-hpux: New file.
7215
7216Tue Apr 27 15:22:19 1993 Per Bothner (bothner@cygnus.com)
7217
7218 * tmpnam.c: Added ANSI tmpnam() function.
7219 * functions.def, Makefile.in: Update accordingly.
7220
7221Tue Apr 27 13:38:38 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
7222
7223 * cplus-dem.c (demangle_function_name): Get the demangling of
7224 stop__1A right.
7225
7226Fri Apr 16 23:48:24 1993 Jim Kingdon (kingdon at calvin)
7227
7228 * cplus-dem.c: Declare strstr return type.
7229
7230Fri Mar 26 12:01:26 1993 Jim Kingdon (kingdon@cygnus.com)
7231
7232 * strsignal.c: Add some AIX signals.
7233
7234Thu Mar 25 15:17:23 1993 Ian Lance Taylor (ian@cygnus.com)
7235
7236 * Makefile.in (MAKEOVERRIDES): Define to be empty.
7237
7238Wed Mar 24 01:59:25 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
7239
7240 * Makefile.in: add installcheck & dvi targets
7241
7242Thu Mar 18 14:05:44 1993 Per Bothner (bothner@rtl.cygnus.com)
7243
7244 * ieee-float.c: New file, moved from ../gdb (since it is
7245 needed by ../opcode/m68k-dis.c).
7246
7247Tue Mar 2 17:47:31 1993 Fred Fish (fnf@cygnus.com)
7248
7249 * cplus-dem.c: Replace all references to cfront with ARM.
7250
7251Fri Feb 26 00:17:07 1993 Per Bothner (bothner@rtl.cygnus.com)
7252
7253 * cplus-dem.c: Fix main program (when compiled with -DMAIN)
7254 to be more useful as a filter.
7255
7256Sat Feb 20 21:41:39 1993 Brendan Kehoe (brendan@lisa.cygnus.com)
7257
7258 * Makefile.in (install_to_libdir, install_to_tooldir): Go into the
7259 destination directory before running $(RANLIB), in case that
7260 program tries to create a file in the current directory as part of
7261 its work.
7262
7263Thu Feb 18 23:00:19 1993 John Gilmore (gnu@cygnus.com)
7264
7265 * strsignal.c (sys_siglist): Remove yet another *%^&%&$# "const"
7266 because BSD 4.4 lacks one. Isn't this fun?
7267
7268Thu Feb 18 11:24:25 1993 Fred Fish (fnf@cygnus.com)
7269
7270 * cplus-dem.c (demangle_signature): Set func_done after
7271 demangling a template.
7272 * cplus-dem.c (demangle_template): Fix several small bugs
7273 in demangling GNU style templates.
7274 * cplus-dem.c (demangle_prefix): Fix for templates in GNU
7275 style constructors.
7276 * cplus-dem.c (gnu_special): Fix for templates in GNU style
7277 static data members.
7278
7279Tue Feb 16 17:28:35 1993 Fred Fish (fnf@cygnus.com)
7280
7281 * cplus-dem.c (demangle_signature): Modify to include type
7282 modifiers like static and const in remembered types.
7283
7284Thu Feb 11 22:20:47 1993 Fred Fish (fnf@cygnus.com)
7285
7286 * cplus-dem.c (demangled_qualified): Add new parameter that tells
7287 whether to prepend or append the qualifiers.
7288 * cplus-dem.c (string_prepends): Used now, remove #if 0.
7289 * cplus-dem.c (demangle_signature): Call demangle_qualified
7290 with prepending.
29120f44 7291 * cplus-dem.c (gnu_special): Recognize static data members that
6599da04
JM
7292 use qualified names.
7293 * cplus-dem.c (demangle_qualified): Accumulate qualifiers in a
7294 temporary buffer and the prepend or append them to the result,
7295 as specified by the new "append" flag.
7296 * cplus-dem.c (do_type): Call demangled_qualified with
7297 appending.
7298
7299Mon Dec 28 10:47:19 1992 Ken Raeburn (raeburn@cygnus.com)
7300
7301 * strsignal.c (signal_table): Now const.
7302 (init_signal_tables): Variable eip now points to const.
7303
7304 * strerror.c (error_table): Now const.
7305 (init_error_tables): Variable eip now points to const.
7306
7307Tue Dec 15 15:36:50 1992 Per Bothner (bothner@cygnus.com)
7308
7309 * memchr.c (memchr): New (ANSI standard) function.
7310 * Makefile.in, functions.def: Added memchr.
7311 * Makefile.in (AR_FLAGS): Use rc instad of non-standard cq.
7312
7313Wed Dec 2 22:49:10 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7314
7315 * getopt.c: remove use of USG around <alloca.h>, which never meant
7316 anything anyway
7317
7318 * config/mh-{aix,apollo68,ncr3000,sysv,sysv4}: removed definitions
7319 of USG and USGr4
7320
7321Thu Nov 19 03:09:33 1992 Brendan Kehoe (brendan@lisa.cygnus.com)
7322
7323 * cplus-dem.c (demangle_fund_type): Recognize `w', a wide character;
7324 it's now a type according to the ANSI X3J16 working paper; output
7325 "wchar_t" for it.
7326 (demangle_template): Accept `w' as an integral type.
7327 (xmalloc, xrealloc): Use `char *', not `PTR'. Cast calls to their
7328 counterparts malloc and realloc to `char *'.
7329 (main): Exit with a 0 status.
7330 * Makefile.in (demangle): Don't expect the user to define
7331 DEMANGLE, instead force to be cplus-dem.c. Look in $(srcdir)/../include
7332 for demangle.h. Pass it any HDEFINES or XTRAFLAGS.
7333
7334Wed Nov 18 18:56:20 1992 John Gilmore (gnu@cygnus.com)
7335
7336 * Makefile.in (AR_FLAGS): Avoid verbosity.
7337 * config/mh-sysv4: Remove AR_FLAGS override, use INSTALL=cp,
7338 replace USGr4 with HAVE_SYSCONF.
7339 * config/mh-solaris: Remove; mh-sysv4 works now.
7340 * getpagesize.c: Replace USGr4 with HAVE_SYSCONF.
7341 * configure.in: Simplify host matching table, remove separate
7342 solaris config file.
7343
7344Sun Nov 15 09:35:16 1992 Fred Fish (fnf@cygnus.com)
7345
7346 * configure.in (i[34]86-*-solaris2*): Add, use mh-sysv4.
7347
7348Tue Nov 3 21:27:03 1992 Brendan Kehoe (brendan@cygnus.com)
7349
7350 * cplus-dem.c (xmalloc, xrealloc): Add decls.
7351 (remember_type): Don't cast xmalloc.
7352 (string_need): Likewise; don't cast xrealloc either.
7353
7354Fri Oct 23 08:52:01 1992 Ian Lance Taylor (ian@cygnus.com)
7355
7356 * Makefile.in, functions.defs, rename.c: added simple
7357 implementation of rename, since some binutils programs use it.
7358
7359Thu Oct 15 15:18:22 1992 Per Bothner (bothner@cygnus.com)
7360
7361 * strsignal.c: Add appropriate 'const' to sys_siglist
7362 extern declaration (if __STDC__). (Needed for Linux.)
7363 * strsignal.c (strsignal): Add cast to remove const-ness.
7364
7365Fri Oct 9 03:22:55 1992 John Gilmore (gnu@cygnus.com)
7366
7367 * Makefile.in (needed.awk, needed2.awk): Remove erroneous \'s
7368 before "'s, diagnosed by BSD 4.4 awk.
7369
7370Thu Oct 8 15:25:12 1992 Ian Lance Taylor (ian@cygnus.com)
7371
7372 * Makefile.in: create config.h and needed-list through $(CONFIG_H)
7373 and $(NEEDED_LIST), to give some hooks for xiberty.
7374
7375Thu Oct 1 23:31:42 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7376
7377 * configure.in: use cpu-vendor-triple instead of nested cases
7378
7379Wed Sep 30 11:26:59 1992 Per Bothner (bothner@rtl.cygnus.com)
7380
7381 * Makefile.in, argv.c, basename.c, bcmp.c, bcopy.c, bzero.c,
7382 concat.c, cplus-dem.c, fdmatch.c, getcwd.c, getopt.c, getopt1.c,
7383 getpagesize.c, insque.c, memcmp.c, memcpy.c, memmove.c, memset.c,
7384 obstack.c, sigsetmask.c, spaces.c, strchr.c, strerror.c,
7385 strrchr.c, strsignal.c, strstr.c, vfork.c, vsprintf.c:
7386 Convert from using GPL to LGPL.
7387
7388Sat Sep 26 04:01:30 1992 John Gilmore (gnu@cygnus.com)
7389
7390 * Makefile.in (errors): Leave dummy.o and dummy around so that
7391 we can see how the needed list was generated (it's sometimes wrong).
7392 (mostlyclean): Remove them.
7393
7394Mon Sep 21 14:50:42 1992 Ian Lance Taylor (ian@cygnus.com)
7395
7396 * getcwd.c: supply a default if MAXPATHLEN is not defined.
7397
7398 * config/mh-irix4: set EXTRA_OFILES to alloca.o, from WRS.
7399
7400Wed Sep 9 12:41:48 1992 Ian Lance Taylor (ian@cygnus.com)
7401
7402 * Makefile.in: Use XTRAFLAGS when compiling, so that xiberty works
7403 when cross-compiling.
7404
7405Thu Sep 3 13:29:39 1992 K. Richard Pixley (rich@sendai.cygnus.com)
7406
7407 * cplus-dem.c: (demangle_prefix): reduction in strength of strstr
7408 as a time optimization.
7409
7410 * cplus-dem.c (cplus_demangle): remove strpbrk test. Appears to
7411 be more expensive than simply demangling.
7412
7413 * cplus-dem.c (cplus_match): new function.
7414
7415Tue Sep 1 15:24:04 1992 Per Bothner (bothner@rtl.cygnus.com)
7416
7417 * cplus-dem.c: #include <stdio.h>, to define NULL.
7418 Define current_demangling_style.
7419
7420Sun Aug 30 17:58:19 1992 Per Bothner (bothner@rtl.cygnus.com)
7421
7422 * cplus-dem.c: New file, moved from ../gdb.
7423 * cplus-dem.c (set_cplus_marker_for_demangling): New exported
7424 function, to avoid compiling in target-dependency for CPLUS_MARKER.
7425 * cplus-dem.c (cplus_demangle): Allow demangling style option
7426 to be passed as a parameter, but using the global variable
7427 current_demangling_style as a default.
7428 * Makefile.in: Update for cplus-dem.c
7429
7430Sat Aug 29 10:44:09 1992 Fred Fish (fnf@cygnus.com)
7431
7432 * obstack.c: Merge in comment changes from FSF version. Now
7433 matches the FSF version exactly.
7434
7435Fri Aug 28 18:39:08 1992 John Gilmore (gnu@cygnus.com)
7436
7437 * obstack.c (CALL_FREEFUN): Can't use ?: with void values (at
7438 least on losing DECstations!); use if-then-else instead.
7439
7440Wed Aug 19 14:40:34 1992 Ian Lance Taylor (ian@cygnus.com)
7441
7442 * Makefile.in: always create installation directories.
7443
7444Mon Aug 10 17:33:40 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
7445
f33a23a0 7446 * Makefile.in: clean up definition of CFILES, more comments
6599da04
JM
7447
7448Sat Aug 8 23:10:59 1992 Fred Fish (fnf@cygnus.com)
7449
7450 * getopt.c (my_index): Make first arg const to match strchr,
7451 which it sometimes is remapped to.
7452
7453Sat Aug 1 13:48:50 1992 Fred Fish (fnf@cygnus.com)
7454
7455 * obstack.c (DEFAULT_ALIGNMENT): Update to match FSF version.
7456 * obstack.c (_obstack_begin): Initialize use_extra_arg.
7457 * obstack.c (_obstack_begin_1): New, from FSF version.
7458
7459Mon Jul 20 21:07:58 1992 Fred Fish (fnf@cygnus.com)
7460
7461 * obstack.c (CALL_CHECKFUN, CALL_FREEFUN): Use use_extra_arg and
7462 extra_arg.
7463 * obstack.c (_obstack_begin): Remove area_id and flags arguments
7464 (previously added for mmalloc support, interface has changed).
7465 Also convert flags usage to use use_extra_arg and maybe_empty_object.
7466
7467Fri Jul 10 00:41:53 1992 Fred Fish (fnf@cygnus.com)
7468
7469 * argv.c: Move expandargv inline and eliminate static variables.
7470 Rewrite to always allocate in powers of two. Fix to return an
7471 argv with a single null string arg if passed a null string.
7472
7473Fri Jul 3 20:27:29 1992 Fred Fish (fnf@cygnus.com)
7474
7475 * random.c, sigsetmask.c, strerror.c, strsignal.c: Remove
7476 "(void)" casts from function calls where the return value is
7477 ignored, in accordance with GNU coding standards.
7478
7479Mon Jun 29 10:54:19 1992 Fred Fish (fnf at cygnus.com)
7480
7481 * bcopy.c, strerror.c, strsignal.c: Lint.
7482
7483Thu Jun 25 09:18:41 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7484
7485 * getopt.c: merge changes from make.
7486
7487Thu Jun 25 04:43:22 1992 John Gilmore (gnu at cygnus.com)
7488
7489 * alloca.c: Incorporate fixes from gdb/alloca.c.
7490 FIXME: Eventually move gdb's alloca configuration files here,
7491 and remove gdb/alloca.c and its Makefile.in support.
7492
7493Tue Jun 23 21:56:30 1992 Fred Fish (fnf@cygnus.com)
7494
7495 * dummy.c: Define NOTHING to /*nothing*/, change return type
7496 of main to int and return zero.
7497 * functions.def: Supply NOTHING as the fourth arg to macros
7498 that don't have an explicit arg, to satisfy picky preprocessors.
7499
7500Wed Jun 17 18:13:58 1992 Per Bothner (bothner@rtl.cygnus.com)
7501
7502 * Makefile.in: Clean up *clean rules, as per standards.texi.
7503
7504Tue Jun 16 16:11:59 1992 K. Richard Pixley (rich@rtl.cygnus.com)
7505
7506 * getopt.c, getopt1.c: merged largely gratuitous, mostly
7507 whitespace diffs from other prep distributions.
7508
7509Mon Jun 15 12:25:46 1992 Fred Fish (fnf@cygnus.com)
7510
7511 * config/mh-ncr3000 (INSTALL): Don't use /usr/ucb/install,
7512 it is broken on ncr 3000's.
7513
7514Mon Jun 15 01:03:26 1992 John Gilmore (gnu at cygnus.com)
7515
7516 * sigsetmask.c: Rewrite. Old one was very confused about its
7517 arguments and result. New one can't do much, but at least knows
7518 what it can't do, and it's good enough for GDB's use.
7519
7520Sun Jun 14 15:17:40 1992 Stu Grossman (grossman at cygnus.com)
7521
7522 * functions.def: Use proper prototype for strtoul.
7523
7524Fri Jun 12 19:22:40 1992 John Gilmore (gnu at cygnus.com)
7525
7526 * Makefile.in: Add random.c.
7527 * config/mh-*: Use "true" rather than "echo >/dev/null" for ranlib.
7528 * configure.in: update solaris2 config.
7529
7530Wed Jun 10 16:31:29 1992 Fred Fish (fnf@cygnus.com)
7531
7532 * random.c: Add for random() and srandom().
7533 * functions.def: Add random
7534
7535Tue Jun 9 17:27:18 1992 Fred Fish (fnf@cygnus.com)
7536
7537 * config/{mh-ncr3000, mh-sysv4}: Add definition for INSTALL
7538 using /usr/ucb/install.
7539
7540Mon Jun 1 13:20:17 1992 Per Bothner (bothner@rtl.cygnus.com)
7541
7542 * strerror.c: Kludge to guard against a conflict with
7543 possible declaration of sys_errlist in errno.h.
7544
7545Sun May 31 15:07:47 1992 Mark Eichin (eichin at cygnus.com)
7546
7547 * configure.in, config/mh-solaris: add solaris2 config support.
7548
7549Fri May 29 17:23:23 1992 Per Bothner (bothner@rtl.cygnus.com)
7550
7551 * sigsetmask.c: #ifdef out sigsetmask if SIG_SETMASK
7552 is not defined (should be defined in signal.h, says Posix.).
7553
7554Mon May 18 17:35:04 1992 K. Richard Pixley (rich@cygnus.com)
7555
7556 * getopt.c: merged changes from make-3.62.11.
7557
7558Fri May 8 14:53:07 1992 K. Richard Pixley (rich@cygnus.com)
7559
7560 * getopt.c: merged changes from bison-1.18.
7561
7562Tue May 5 11:51:40 1992 Per Bothner (bothner@rtl.cygnus.com)
7563
7564 * Makefile.in: Don't have $(EXTRA_OFILES) depend on config.h,
7565 since that introduces a circular dependency.
7566 ($(EXTRA_OFILES) are used to build config.h.)
7567
7568 * strtoul.c: Fixes to handle non-decimal bases better.
7569
7570Wed Apr 22 09:27:51 1992 Fred Fish (fnf@cygnus.com)
7571
7572 * config/mh-ncr3000: Replace MINUS_G with CFLAGS.
7573 * Makefile.dos: Finish MINUS_G eradication.
7574 * Makefile.in (CFILES): Add strsignal.c.
7575 * Makefile.in (REQUIRED_OFILES): Add strerror.o strsignal.o
7576 * Makefile.in (needed-list): Split creation of errors file to
7577 separate make target.
7578 * Makefile.in (config.h, needed2.awk, errors): New targets.
7579 * Makefile.in (clean): Split to multiple lines, add needed2.awk
7580 and config.h.
7581 * dummy.c (DEFFUNC, DEFVAR): Add defines and undefs.
7582 * functions.def (strerror): Remove from optional list.
7583 * functions.def (sys_nerr, sys_errlist, sys_siglist): DEFVAR's
7584 * functions.def (strerror, psignal): DEFFUNC's
7585 * strerror.c: Rewrite from scratch to use sys_errlist only if
7586 available, add errno_max(), add strerrno(), add strtoerrno(),
7587 add test driver.
7588 * strsignal.c: New file, signal equivalent to strerror.c.
7589 Uses sys_siglist if available, defines signo_max(), strsignal(),
7590 strsigno(), strtosigno(), psignal(), and test driver.
7591
7592Mon Apr 20 20:49:32 1992 K. Richard Pixley (rich@cygnus.com)
7593
7594 * Makefile.in: do not print recursion line.
7595
7596 * Makefile.in: allow CFLAGS to be passed in from command line.
7597 Removed MINUS_G. Default CFLAGS to -g.
7598
7599Mon Apr 20 12:57:46 1992 Per Bothner (bothner@rtl.cygnus.com)
7600
7601 * config/mh-aix: New. EXTRA_OFILES lists copysign.o,
7602 so libg++ users don't have to be inconvenienced by a
7603 libc.a bug (libc.a needs copysign, but doesn't define it!).
7604 * configure.in: Use config/mh-aix.
7605 * strtoul.c: Handle '-' as required by ANSI.
7606 Clean up radix handling.
7607 * strstr.c: Fix buggy algorithm.
7608 * Makefile.in: Change so that ${EXTRA_OFILES} is
7609 appended to needed-list (which is used by libg++).
7610
7611Fri Apr 10 22:51:41 1992 Fred Fish (fnf@cygnus.com)
7612
7613 * configure.in: Recognize new ncr3000 config.
7614 * config/mh-ncr3000: New config file.
7615
7616Wed Apr 1 23:31:43 1992 John Gilmore (gnu at cygnus.com)
7617
7618 * argv.c, dummy.c: Lint.
7619
7620Tue Mar 31 18:46:44 1992 Fred Fish (fnf@cygnus.com)
7621
7622 * config/mh-sysv4: New config file.
7623 * configure.in (host_makefile_frag): Set to config/mh-sysv4 for
7624 host_os == sysv4.
7625 * getpagesize.c: For SVR4, use sysconf(_SC_PAGESIZE) to get
7626 pagesize.
7627
7628Sun Mar 29 12:26:42 1992 John Gilmore (gnu at cygnus.com)
7629
7630 * getopt.c: Lint.
7631
7632Fri Mar 27 08:32:55 1992 Fred Fish (fnf@cygnus.com)
7633
7634 * functions.def (alloca): Fix return type and args to avoid
7635 type clash with gcc's builtin alloca.
7636
7637Tue Mar 24 23:33:42 1992 K. Richard Pixley (rich@cygnus.com)
7638
7639 * configure.in, config/mh-irix4: irix4 support.
7640
7641 * Makefile.in, functions.def, alloca.c: added alloca.
7642
7643Tue Mar 24 17:34:46 1992 Stu Grossman (grossman at cygnus.com)
7644
7645 * obstack.c (CALL_FREEFUN): Make it compile on DECstations.
7646
7647Thu Mar 19 13:57:42 1992 Fred Fish (fnf@cygnus.com)
7648
7649 * argv.c: Fix various external function definitions to be
7650 correct in an ANSI compilation environment.
7651
7652Sat Mar 14 17:28:17 1992 Fred Fish (fnf@cygnus.com)
7653
7654 * obstack.c: Changes to support calling mmalloc functions,
7655 which take an additional argument over malloc functions.
7656
7657Fri Mar 6 22:01:10 1992 K. Richard Pixley (rich@cygnus.com)
7658
7659 * added check target.
7660
7661Thu Feb 27 22:19:39 1992 Per Bothner (bothner@cygnus.com)
7662
7663 * argv.c: #include alloca-conf.h (needed by AIX).
7664
7665Wed Feb 26 18:04:40 1992 K. Richard Pixley (rich@cygnus.com)
7666
7667 * Makefile.in, configure.in: removed traces of namesubdir,
7668 -subdirs, $(subdir), $(unsubdir), some rcs triggers. Forced
7669 copyrights to '92, changed some from Cygnus to FSF.
7670
7671Sat Feb 22 01:09:21 1992 Stu Grossman (grossman at cygnus.com)
7672
7673 * argv.c: Check in Fred's version which fixes problems with
7674 alloca().
7675
7676Fri Feb 7 21:46:08 1992 Stu Grossman (grossman at cygnus.com)
7677
7678 * makefile.dos: Remove NUL to keep patch from failing.
7679
7680Thu Jan 30 22:48:41 1992 Stu Grossman (grossman at cygnus.com)
7681
7682 * getopt.c (_getopt_internal): Fix usage of enum has_arg.
7683
7684Mon Jan 20 18:53:23 1992 Stu Grossman (grossman at cygnus.com)
7685
c4b9cfe0 7686 * getopt.c, getopt1.c, ../include/getopt.h: Get latest versions.
6599da04
JM
7687
7688Sat Jan 18 16:53:01 1992 Fred Fish (fnf at cygnus.com)
7689
7690 * argv.c: New file to build and destroy standard argument
7691 vectors from a command string.
7692
7693 * Makefile.in: Add argv.c and argv.o to appropriate macros.
7694
7695Fri Dec 20 12:12:57 1991 Fred Fish (fnf at cygnus.com)
7696
7697 * configure.in: Change svr4 references to sysv4.
7698
7699 * rindex.c: Declare return type of externally used function
7700 strrchr().
7701
7702Thu Dec 19 18:35:03 1991 John Gilmore (gnu at cygnus.com)
7703
7704 * Makefile.in: Remove "***" in normal output, since Make produces
7705 this on errors, and it's convenient to search for.
7706
7707Tue Dec 17 23:21:30 1991 Per Bothner (bothner at cygnus.com)
7708
7709 * memcmp.c, memcpy.c, memmove.c, memset.c, strchr.c, strrchr.c:
7710 New ANSI functions. The old non-ANSI functions (such as bcopy)
7711 should be avoided.
7712 * bcopy.c: Fix to correctly handle overlapping regions.
7713 * index.c, rindex.c: Re-write in terms of strchr() and strrchr().
7714 * functions.def: Add the new functions.
7715 * functions.def: Add 4th parameter to DEF macro,
7716 an ansidecl.h-style prototype.
7717 * dummy.c: Use expanded DEF macro to create a dummy function
7718 call, with correct parameter types. (This avoids some
7719 complaints from gcc about predefined builtins.)
7720
7721 Move the functionality of config/mh-default into Makefile.in.
7722 This avoid duplication, and simplifies things slightly.
7723 * Makefile.in: Tweak so we don't need config/mh-default.
7724 * README: Update.
7725 * configure.in: No longer need config/mh-default.
7726 * config/mh-default: Deleted.
7727 * config/mh-sysv: Remove lines copied from old mh-default.
7728
7729Tue Dec 17 05:46:46 1991 John Gilmore (gnu at cygnus.com)
7730
7731 * fdmatch.c (fdmatch): Don't compare st_rdev, which is for
7732 'mknod' device numbers.
7733
7734Mon Dec 16 12:25:34 1991 Fred Fish (fnf at cygnus.com)
7735
7736 * fdmatch.c, Makefile.in: Add new function that takes two
7737 open file descriptors and returns nonzero if they refer to
7738 the same file, zero otherwise. (used in gdb)
7739
7740Wed Dec 11 17:40:39 1991 Steve Chamberlain (sac at rtl.cygnus.com)
7741 From DJ:
7742 * msdos.c: stub functions for dos.
7743 * makefile.dos, configdj.bat: new.
7744 * getopt.c: Don't include alloca-conf.h in a GO32 world.
38beb75c 7745
6599da04
JM
7746
7747Tue Dec 10 04:14:49 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7748
7749 * Makefile.in: infodir belongs in datadir.
7750
7751Fri Dec 6 23:26:45 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7752
7753 * Makefile.in: remove spaces following hyphens because bsd make
7754 can't cope. added standards.text support. install using
7755 INSTALL_DATA.
7756
7757 * configure.in: remove commontargets as it is no longer a
7758 recognized hook.
7759
7760Thu Dec 5 22:46:46 1991 K. Richard Pixley (rich at rtl.cygnus.com)
7761
7762 * Makefile.in: idestdir and ddestdir go away. Added copyrights
7763 and shift gpl to v2. Added ChangeLog if it didn't exist. docdir
7764 and mandir now keyed off datadir by default.
7765
7766Fri Nov 22 19:15:29 1991 John Gilmore (gnu at cygnus.com)
7767
7768 * Makefile.in: find-needed.awk does not fit in 14 chars.
7769
7770 * Makefile.in: Suppress error checking when compiling the test
7771 program, because Ultrix make/sh aborts there due to a bug.
7772
7773Fri Nov 22 12:23:17 1991 Per Bothner (bothner at cygnus.com)
7774
7775 * Makefile.in: Re-did how EXTRA_OFILES is used to be more useful.
7776 * README: Explained how the auto-configuration works,
7777 and how to add new files and/or configurations.
7778
7779Fri Nov 22 09:45:23 1991 John Gilmore (gnu at cygnus.com)
7780
7781 * strtoul.c: Avoid defining ULONG_MAX if already defined;
7782 cast a const char * to char * for pedants.
7783
7784 * getopt.c: Only define "const" after local include files get to,
7785 and only if they haven't defined it.
7786
7787Thu Nov 21 16:58:53 1991 John Gilmore (gnu at cygnus.com)
7788
7789 * getcwd.c (remove getwd.c): GNU code should call getcwd(). We
7790 emulate it with getwd() if available. This avoids callers having
7791 to find a MAXPATHLEN or PATH_MAX value from somewhere.
7792 * Makefile.in, functions.def: getwd->getcwd.
7793 * configure.in: Use generic case for every system.
7794 * config/mh-{delta88,mach,rs6000,svr4}: Remove.
7795 * config/mh-sysv: Use default handling, just add -DUSG.
7796
7797Thu Nov 14 10:58:05 1991 Per Bothner (bothner at cygnus.com)
7798
7799 * Makefile.in, config/mh-default: Re-do make magic
7800 so that for the default ("automatic") mode we only
7801 compile the files we actually need. Do this using
7802 a recursive make: The top-level generates the list
7803 of needed files (loosely, the ones missing in libc),
7804 and then passes that list to the recursive make.
7805 * config/mh-mach: Remove obsolete STRERROR-{C,O} macros.
7806
7807Tue Nov 12 19:10:57 1991 John Gilmore (gnu at cygnus.com)
7808
7809 RS/6000 host support (grumble).
7810
7811 * configure.in: Build alloca-conf.h file from alloca-norm.h
7812 (everything else) or alloca-botch.h (rs/6000).
7813 * Makefile.in: Include . on the include path.
7814 * getopt.c: Use alloca-conf.h.
7815 * alloca-norm.h: How to declare alloca on reasonable machines.
7816 * alloca-botch.h: How to declare alloca on braindead machines.
7817
7818Tue Nov 12 09:21:48 1991 Fred Fish (fnf at cygnus.com)
7819
7820 * concat.c : New file, like concat() in gdb but can take a
7821 variable number of arguments rather than fixed at 3 args. For
7822 now, client applications must supply an xmalloc(), which is a
7823 front end function to malloc() that deals with out-of-memory
7824 conditions.
7825
7826 * Makefile.in: Add concat.c and concat.o to appropriate macros.
7827
7828Sat Nov 9 13:29:59 1991 Fred Fish (fnf at cygnus.com)
7829
7830 * config/mh-svr4: Add sigsetmask to list of required functions.
7831
7832Sun Nov 3 11:57:56 1991 Per Bothner (bothner at cygnus.com)
7833
7834 * vsprintf.c: New file.
7835 * functions.def, Makefile.in: Add vsprintf.
7836
7837Sun Oct 27 16:31:22 1991 John Gilmore (gnu at cygnus.com)
7838
7839 * configure.in, config/mh-rs6000: Add rs/6000 host support.
7840 * Makefile.in: Compile with debug info.
7841
7842Fri Oct 25 17:01:12 1991 Per Bothner (bothner at cygnus.com)
7843
7844 * Makefile.in, configure.in, and new files: dummy.c, functions.def,
7845 config/mf-default: Added a default configuration mode,
7846 which includes into libiberty.a functions that are "missing" in libc.
7847 * strdup.c, vprintf.c, vfprintf.c: New files.
7848
7849Thu Oct 24 02:29:26 1991 Fred Fish (fnf at cygnus.com)
7850
7851 * config/hmake-svr4: New file.
7852
7853 * config/hmake-sysv: Add HOST_CFILES and HOST_OFILES.
7854
7855 * basename.c, bcmp.c, bcopy.c, bzero.c, getpagesize.c getwd.c,
7856 index.c, insque.c, rindex.c, spaces.c, strstr.c, vfork.c: New
7857 files containing either portable C versions or emulations using
7858 native library calls.
7859
7860 * strerror.c: Add copyright, internal documentation, etc.
7861
7862 * strtol.c: Replace hardwired hex constants with some more
7863 portable macros. Remove illegal (according to gcc) cast.
7864
7865 * strtoul.c: Replace hardwired hex constant with more portable
7866 macro.
7867
7868 * Makefile.in: Move TARGETLIB and CFLAGS where makefile fragments
7869 can override them. Add new source and object file names to CFILES
7870 and OFILES respectively.
7871
7872 * configure.in: Add support for SVR4 makefile fragments.
7873
7874Tue Oct 22 19:00:23 1991 Steve Chamberlain (steve at cygnus.com)
7875
7876 * Makefile.in: Move RANLIB, AR and AR_FLAGS to where they can be
7877 over-ridden by config/hmake-*
7878 * configure.in: added m88kcvs to sysv list
7879
7880Fri Oct 4 01:29:08 1991 John Gilmore (gnu at cygnus.com)
7881
7882 * Makefile.in: Most hosts need strerror, but one or two don't,
7883 and they override these definitions in the host-dependent makefile
7884 fragment.
7885 * config/hmake-mach: The odd man out on strerror -- it's supplied.
7886 * strerror.c: New file.
7887
7888 * strtol.c, strtoul.c: Add strtol to libiberty, since Mach lacks
7889 it and bfd uses it.
7890 * configure.in, Makefile.in, config/hmake-mach: Only configure
7891 strtol & strotoul in on Mach.
7892
7893Tue Sep 3 06:36:23 1991 John Gilmore (gnu at cygint.cygnus.com)
7894
7895 * obstack.c: Merge with latest FSF version.
7896
7897\f
7898Local Variables:
7899version-control: never
7900End: