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